diff --git a/pom.xml b/pom.xml index 23c9fec..fe1c5f7 100644 --- a/pom.xml +++ b/pom.xml @@ -1,30 +1,24 @@ - 4.0.0 com.equinix.networkedge network-edge-sample - 1.0-RELEASE - network-edge-sample - Sample code to demonstrate how to use the Network Edge APIs - - - UTF-8 - UTF-8 - 1.8 - - - - project-repo - - always - true - - file://${project.basedir}/lib - - + 1.0-SNAPSHOT + + + + org.apache.maven.plugins + maven-compiler-plugin + + 1.8 + 1.8 + + + + @@ -37,7 +31,48 @@ lombok 1.16.18 - + + + com.google.code.gson + gson + 2.8.5 + + + + io.swagger + swagger-annotations + 2.0.0-rc2 + + + + io.swagger + swagger-annotations + 1.5.0 + + + + io.swagger + swagger-core + 1.5.0 + + + com.mashape.unirest + unirest-java + 1.4.9 + + + + io.swagger + swagger-core + 2.0.0-rc2 + + + + io.swagger + swagger-models + 2.0.0-rc2 + - + + \ No newline at end of file diff --git a/src/main/java/com/equinix/networkedge/APIException.java b/src/main/java/com/equinix/networkedge/APIException.java deleted file mode 100644 index 5eb256f..0000000 --- a/src/main/java/com/equinix/networkedge/APIException.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * The Apache License - * - * Copyright 2019 Equinix Inc. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. - */ -package com.equinix.networkedge; - -import lombok.Data; - -/** - * @author aanchala 7/13/2018 - **/ -public @Data class APIException extends Exception { - - private int code = 0; - private String message = null; - - public APIException() { } - - public APIException(int code, String message) { - this.code = code; - this.message = message; - } -} - diff --git a/src/main/java/com/equinix/networkedge/APIHandler.java b/src/main/java/com/equinix/networkedge/APIHandler.java deleted file mode 100644 index e63e876..0000000 --- a/src/main/java/com/equinix/networkedge/APIHandler.java +++ /dev/null @@ -1,279 +0,0 @@ -/* - * The Apache License - * - * Copyright 2017 Equinix Inc. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. - */ -package com.equinix.networkedge; - -import com.equinix.networkedge.config.ApiConfiguration; -import com.equinix.networkedge.model.*; -import com.equinix.networkedge.model.HttpRequest; -import org.springframework.core.ParameterizedTypeReference; -import org.springframework.http.*; -import org.springframework.web.client.RestTemplate; -import org.springframework.web.util.UriComponentsBuilder; - -import java.util.List; - -import static com.equinix.networkedge.config.URIType.*; - - -public class APIHandler { - - private ApiConfiguration properties = new ApiConfiguration(); - - private RestTemplate restTemplate = new RestTemplate(); - - public APIHandler() { - } - - public Oauth2TokenResponse getOauth2AccessToken(HttpHeaders headers, Oauth2TokenRequest request) throws APIException { - - String url = properties.getUri() + OAUTH.path(); - final HttpEntity entity = new HttpEntity(request, headers); - headers.setContentType(MediaType.APPLICATION_JSON); - Object[] args = new String[]{}; - try { - ResponseEntity metroResponse = restTemplate.exchange(url, HttpMethod.POST, entity, - Oauth2TokenResponse.class, args); - return metroResponse.getBody(); - } catch (Exception e) { - throw new APIException(1000, e.getMessage()); - } - } - - public List getAllMetros(Oauth2TokenResponse oauthToken) throws APIException { - - String url = properties.getUri() + METRO.path(); - HttpHeaders headers = new HttpHeaders(); - headers.setContentType(MediaType.APPLICATION_JSON); - headers.add("Authorization", ApiConfiguration.BEARER + oauthToken.getAccess_token()); - final HttpEntity entity = new HttpEntity(headers); - Object[] args = new String[]{}; - try { - ResponseEntity> metroResponse = restTemplate.exchange(url, HttpMethod.GET, entity, new - ParameterizedTypeReference>() { - }, args); - return metroResponse.getBody(); - } catch (Exception e) { - throw new APIException(2000, e.getMessage()); - } - } - - public List getPorts(Oauth2TokenResponse oauthToken) throws APIException { - - String url = properties.getUri() + USERPORT.path(); - HttpHeaders headers = new HttpHeaders(); - headers.setContentType(MediaType.APPLICATION_JSON); - headers.add("Authorization", ApiConfiguration.BEARER + oauthToken.getAccess_token()); - final HttpEntity entity = new HttpEntity(headers); - Object[] args = new String[]{}; - try { - ResponseEntity> metroResponse = restTemplate.exchange(url, HttpMethod.GET, entity, - new ParameterizedTypeReference>() { - }, args); - return metroResponse.getBody(); - } catch (Exception e) { - throw new APIException(3000, e.getMessage()); - } - - } - - public List getAllConnections(Oauth2TokenResponse oauthToken) throws - APIException { - - String url = properties.getUri() + BUYER_CONNECTIONS.path(); - HttpHeaders headers = new HttpHeaders(); - headers.setContentType(MediaType.APPLICATION_JSON); - headers.add("Authorization", ApiConfiguration.BEARER + oauthToken.getAccess_token()); - final HttpEntity entity = new HttpEntity(headers); - Object[] args = new String[]{}; - try { - ResponseEntity buyerResponse = restTemplate.exchange(url, HttpMethod.GET, entity, - BuyerResponse.class, args); - return buyerResponse.getBody().getContent(); - } catch (Exception e) { - throw new APIException(4000, e.getMessage()); - } - } - - public List validateAuthKey(Oauth2TokenResponse oauthToken, ValidateRequest request) throws - APIException { - - String url = properties.getUri() + VALIDATE_AUTHKEY.path(); - HttpHeaders headers = new HttpHeaders(); - headers.setContentType(MediaType.APPLICATION_JSON); - headers.add("Authorization", ApiConfiguration.BEARER + oauthToken.getAccess_token()); - final HttpEntity entity = new HttpEntity(headers); - Object[] args = new String[]{}; - UriComponentsBuilder builder = UriComponentsBuilder.fromUriString(url) - .queryParam("authorizationKey", request.getAuthorizationkey()) - .queryParam("profileId", request.getProfileId()) - .queryParam("region", request.getRegion()) - .queryParam("metroCode", request.getMetroCode()); - try { - ResponseEntity> validateResponse = restTemplate.exchange(builder.toUriString(), - HttpMethod.GET, entity, new ParameterizedTypeReference>() { - }, args); - return validateResponse.getBody(); - } catch (Exception e) { - throw new APIException(5000, e.getMessage()); - } - } - - public ConnectionResponse createConnection(Oauth2TokenResponse oauthToken, ConnectionRequest request) throws - APIException { - - String url = properties.getUri() + CONNECTIONS.path(); - HttpHeaders headers = new HttpHeaders(); - headers.setContentType(MediaType.APPLICATION_JSON); - headers.add("Authorization", ApiConfiguration.BEARER + oauthToken.getAccess_token()); - final HttpEntity entity = new HttpEntity(headers); - Object[] args = new String[]{}; - try { - ResponseEntity metroResponse = restTemplate.exchange(url, HttpMethod.POST, entity, - ConnectionResponse.class, args); - return metroResponse.getBody(); - } catch (Exception e) { - throw new APIException(6000, e.getMessage()); - } - } - - public ConnectionResponse deleteConnection(Oauth2TokenResponse oauthToken, String connId) throws APIException { - - String url = properties.getUri() + CRUD_CONNECTIONS.path(); - HttpHeaders headers = new HttpHeaders(); - headers.setContentType(MediaType.APPLICATION_JSON); - headers.add("Authorization", ApiConfiguration.BEARER + oauthToken.getAccess_token()); - final HttpEntity entity = new HttpEntity(headers); - Object[] args = new String[]{connId}; - try { - ResponseEntity metroResponse = restTemplate.exchange(url, HttpMethod.DELETE, entity, - ConnectionResponse.class, args); - return metroResponse.getBody(); - } catch (Exception e) { - throw new APIException(7000, e.getMessage()); - } - } - - public ConnectionResponse updateConnection(Oauth2TokenResponse oauthToken, String connId) throws APIException { - - String url = properties.getUri() + CRUD_CONNECTIONS.path(); - HttpHeaders headers = new HttpHeaders(); - headers.setContentType(MediaType.APPLICATION_JSON); - headers.add("Authorization", ApiConfiguration.BEARER + oauthToken.getAccess_token()); - final HttpEntity entity = new HttpEntity(headers); - Object[] args = new String[]{connId}; - try { - ResponseEntity metroResponse = restTemplate.exchange(url, HttpMethod.PATCH, entity, - ConnectionResponse.class, args); - return metroResponse.getBody(); - } catch (Exception e) { - throw new APIException(7000, e.getMessage()); - } - } - - public BuyerConnectionResponse getConnection(Oauth2TokenResponse oauthToken, String connId) throws APIException { - - String url = properties.getUri() + CRUD_CONNECTIONS.path(); - HttpHeaders headers = new HttpHeaders(); - headers.setContentType(MediaType.APPLICATION_JSON); - headers.add("Authorization", ApiConfiguration.BEARER + oauthToken.getAccess_token()); - final HttpEntity entity = new HttpEntity(headers); - Object[] args = new String[]{connId}; - try { - ResponseEntity metroResponse = restTemplate.exchange(url, HttpMethod.GET, entity, - BuyerConnectionResponse.class, args); - return metroResponse.getBody(); - } catch (Exception e) { - throw new APIException(7000, e.getMessage()); - } - } - - - public Object getSellerProfile(Oauth2TokenResponse oauthToken, HttpRequest httpRequest, - String uuid) throws APIException { - String url = properties.getUri(); - HttpHeaders headers = new HttpHeaders(); - headers.setContentType(MediaType.APPLICATION_JSON); - headers.add("Authorization", ApiConfiguration.BEARER + oauthToken.getAccess_token()); - final HttpEntity entity = new HttpEntity(headers); - Object[] args = new String[]{uuid}; - if (httpRequest != null) { - url = url + SELLER_PROFILES.path(); - UriComponentsBuilder builder = UriComponentsBuilder.fromUriString(url) - .queryParam("page", httpRequest.getPageNumber()) - .queryParam("metroCode", String.join(",", httpRequest.getMetroCode())) - .queryParam("total", httpRequest.getPageSize()); - url = builder.toUriString(); - try { - ResponseEntity metroResponse = restTemplate.exchange(url, HttpMethod.GET, - entity, SellerReponse.class, args); - return metroResponse.getBody().getContent(); - } catch (Exception e) { - throw new APIException(8000, e.getMessage()); - } - - } else if(uuid != null) { - url = url + SELLER_PROFILES_BY_UUID.path(); - try { - ResponseEntity metroResponse = restTemplate.exchange(url, HttpMethod.GET, - entity, ServiceProfileResponse.class, args); - return metroResponse.getBody(); - } catch (Exception e) { - throw new APIException(8000, e.getMessage()); - } - }else{ - url = url + SELLER_PROFILES.path(); - try { - ResponseEntity metroResponse = restTemplate.exchange(url, HttpMethod.GET, - entity, SellerReponse.class, args); - return metroResponse.getBody().getContent(); - } catch (Exception e) { - throw new APIException(8000, e.getMessage()); - } - } - - } - - public BuyerPreferenceResponse getBuyerPreferences(Oauth2TokenResponse oauthToken, BuyerPreferenceRequest - request, HttpMethod method) - throws APIException { - String url = properties.getUri() + BUYER_PREFERENCES.path(); - HttpHeaders headers = new HttpHeaders(); - headers.setContentType(MediaType.APPLICATION_JSON); - headers.add("Authorization", ApiConfiguration.BEARER + oauthToken.getAccess_token()); - Object[] args = new String[]{}; - ResponseEntity buyerPrefs = null; - try { - if (request == null) { - buyerPrefs = restTemplate.exchange(url, method, - new HttpEntity(headers), BuyerPreferenceResponse.class, args); - } else { - buyerPrefs = restTemplate.exchange(url, method, - new HttpEntity(request, headers), BuyerPreferenceResponse.class, args); - } - return buyerPrefs.getBody(); - } catch (Exception e) { - throw new APIException(9000, e.getMessage()); - } - } -} diff --git a/src/main/java/com/equinix/networkedge/Util.java b/src/main/java/com/equinix/networkedge/Util.java deleted file mode 100644 index 26e4f00..0000000 --- a/src/main/java/com/equinix/networkedge/Util.java +++ /dev/null @@ -1,83 +0,0 @@ -/* - * The Apache License - * - * Copyright 2017 Equinix Inc. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. - */ -package com.equinix.networkedge; - -import com.equinix.networkedge.config.ApiConfiguration; -import com.equinix.networkedge.model.Oauth2TokenRequest; -import com.equinix.networkedge.model.Oauth2TokenResponse; -import com.fasterxml.jackson.databind.ObjectMapper; -import com.fasterxml.jackson.databind.SerializationFeature; -import org.springframework.http.HttpHeaders; - -public class Util { - - public static ObjectMapper mapper = new ObjectMapper(); - - public static ObjectMapper getObjectMapper() { - mapper.configure(SerializationFeature.INDENT_OUTPUT, true); - return mapper; - } - - public static Oauth2TokenResponse createToken() throws APIException { - Oauth2TokenResponse oauthResponse = null; - - Oauth2TokenRequest oathReq = new Oauth2TokenRequest(); - /* - * Set the Client ID received from Equinix - */ - oathReq.setClient_id(ApiConfiguration.CLIENT_ID); - /* - * Set the client secret received from Equinix - */ - oathReq.setClient_secret(ApiConfiguration.CLIENT_SECRET); - - /* - * Do not change this. This represents client_credentials - */ - oathReq.setGrant_type(ApiConfiguration.GRANT_TYPE); - - /* - * Set the user name to access the cloud exchange - */ - oathReq.setUser_name(ApiConfiguration.USER_NAME); - - /* - * Set the user password for the above user name - */ - oathReq.setUser_password(ApiConfiguration.PASSWORD); - - - try { - APIHandler handler = new APIHandler(); - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - oauthResponse = handler.getOauth2AccessToken(headers, oathReq); - System.out.println("Response is:: " + oauthResponse.toString()); - } catch (Exception ex) { - throw new APIException(2000, ex.getMessage()); - } - return oauthResponse; - } - -} diff --git a/src/main/java/com/equinix/networkedge/clients/CreateL2Connection.java b/src/main/java/com/equinix/networkedge/clients/CreateL2Connection.java new file mode 100644 index 0000000..09c6e32 --- /dev/null +++ b/src/main/java/com/equinix/networkedge/clients/CreateL2Connection.java @@ -0,0 +1,87 @@ +/* + * The Apache License + * + * Copyright 2017 Equinix Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ + + +package com.equinix.networkedge.clients; + +import com.equinix.networkedge.model.OAuthResponse; +import com.equinix.networkedge.model.PostConnectionRequest; +import com.google.gson.Gson; +import com.mashape.unirest.http.HttpResponse; +import com.mashape.unirest.http.Unirest; +import com.mashape.unirest.http.exceptions.UnirestException; + +import java.util.ArrayList; +import java.util.List; + +import static com.equinix.networkedge.utils.ConfigUtil.createOAuthRequest; +import static com.equinix.networkedge.utils.ConfigUtil.get; +import static com.equinix.networkedge.utils.ConfigUtil.getAuthToken; + +public class CreateL2Connection { + public static void main(String... args) { + // Prerequisites for creating an L2 Connection with a NON-HA single vNF Edge Device. + // 1. The Device should be PROVISIONED and the Licensed REGISTERED before any L2 connections can be created with the device. + // 2. The Service Profile UUID should be known which will be used for L2 connection. + // 3. Any CSP related ServiceKey or Authorization keys need to be provided. + + List emails = new ArrayList<>(); + Gson gson = new Gson(); + emails.add("api-notifications@mycompany.com"); + String hostname = get("ne.url.hostname"); + String urlL2Connection = hostname + get("ne.url.ecx.l2.connection"); + + PostConnectionRequest request = new PostConnectionRequest(); + request.primaryName("ttestt_012_primary_vc") + .profileUUID("174067c5-3ffa-45e3-9f29-c88fcb14dc09") + .speed(50) + .speedUnit("MB") + .notifications(emails) + .purchaseOrderNumber("") + .virtualDeviceUUID("bde6a11c-6b19-4e1e-94cc-14a7737c28d8") + //.secondaryName("ttestt_011_secondary_vc") + //.secondaryVirtualDeviceUUID("def2c652-baaa-44d0-aa85-c3aad32e2962") + //.secondarySpeed(50) + //.secondarySpeedUnit("MB") + //.secondaryAuthorizationKey("123456789123") + .sellerRegion("us-east-1") + .sellerMetroCode("DC") + .authorizationKey("123456789123"); + + // 4. Good idea to validate the Auth key before you set it in the L2 Connection Request. + + String authToken = getAuthToken(); + HttpResponse httpResponse = null; + try { + httpResponse = Unirest.post(urlL2Connection) + .header("Content-Type", get("ne.client.http.body.contenttype")) + .header("Authorization", "Bearer " + authToken) + .body(gson.toJson(request)).asString(); + } catch (UnirestException e) { + e.printStackTrace(); + } + + System.out.println("L2 Connection Response: " + httpResponse.getBody()); + } +} diff --git a/src/main/java/com/equinix/networkedge/clients/CreateOAuth2AccessToken.java b/src/main/java/com/equinix/networkedge/clients/CreateOAuth2AccessToken.java new file mode 100644 index 0000000..c7480f5 --- /dev/null +++ b/src/main/java/com/equinix/networkedge/clients/CreateOAuth2AccessToken.java @@ -0,0 +1,69 @@ +/* + * The Apache License + * + * Copyright 2017 Equinix Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ + + +package com.equinix.networkedge.clients; + +import com.equinix.networkedge.model.OAuthRequest; +import com.equinix.networkedge.model.OAuthResponse; +import com.google.gson.Gson; +import com.mashape.unirest.http.HttpResponse; +import com.mashape.unirest.http.Unirest; + +import java.util.Base64; + +import static com.equinix.networkedge.utils.ConfigUtil.get; + +public class CreateOAuth2AccessToken { + public static void main(String... args) { + // 1. Generate OAuth2 Access Token. + // 2. Verify the hostname. + + OAuthRequest oathReq = new OAuthRequest(); + Gson gson = new Gson(); + String hostname = get("ne.url.hostname"); + String urlOAuth2 = hostname + get("ne.url.auth"); + + try { + // 3. Set the generated Client ID, Secret generated in https://developer.equinix.com (Your App). + // 4. Set the grant type to "password' or 'client_credentials' if you want API Gateway to generate the Access token. + oathReq.clientId(get("ne.client.access.client.id")); + oathReq.clientSecret(get("ne.client.access.client.secret")); + oathReq.grantType(get("ne.client.access.client.granttype")); + oathReq.userName(get("ne.client.access.client.username")); + String password = new String(Base64.getDecoder().decode(get("ne.client.access.client.base64.password")), "UTF-8"); + oathReq.userPassword(password); + + HttpResponse response = Unirest.post(urlOAuth2) + .header("Content-Type", get("ne.client.http.body.contenttype")) + .body(gson.toJson(oathReq)).asString(); + OAuthResponse oauthResponse = gson.fromJson(response.getBody(), OAuthResponse.class); + + + System.out.println("OAuth2 Access Token: " + oauthResponse.getAccessToken()); + } catch (Exception e) { + e.printStackTrace(); + } + } +} diff --git a/src/main/java/com/equinix/networkedge/clients/CreateSingleCiscoCSR1000VDevice.java b/src/main/java/com/equinix/networkedge/clients/CreateSingleCiscoCSR1000VDevice.java new file mode 100644 index 0000000..c9922b9 --- /dev/null +++ b/src/main/java/com/equinix/networkedge/clients/CreateSingleCiscoCSR1000VDevice.java @@ -0,0 +1,122 @@ +/* + * The Apache License + * + * Copyright 2017 Equinix Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ + +package com.equinix.networkedge.clients; + +import com.equinix.networkedge.model.OAuthRequest; +import com.equinix.networkedge.model.OAuthResponse; +import com.equinix.networkedge.model.SshUsers; +import com.equinix.networkedge.model.VirtualDeviceRequest; +import com.google.gson.Gson; +import com.mashape.unirest.http.HttpResponse; +import com.mashape.unirest.http.Unirest; + +import java.io.UnsupportedEncodingException; +import java.util.ArrayList; +import java.util.Base64; +import java.util.List; + +import static com.equinix.networkedge.utils.ConfigUtil.get; + +public class CreateSingleCiscoCSR1000VDevice { + public static void main(String... args) { + Gson gson = new Gson(); + List sshAcls = new ArrayList<>(); + List sshUsers = new ArrayList<>(); + List notifications = new ArrayList<>(); + + try { + // 1. Generate Access Token. + OAuthRequest oathReq = createOAuthRequest(); + + // 2. Create Device Request. + VirtualDeviceRequest deviceRequest = new VirtualDeviceRequest(); + deviceRequest.virtualDeviceName("cc2-from-api-nonha-jun20-dev04") + .deviceTypeCode("CSR1000V") + .accountNumber("903759") + .additionalBandwidth(30) + .throughput(500) + .throughputUnit("Mbps") + .metroCode("DC") + .licenseMode("Sub") + .packageCode("SEC") + .termLength(1) + .hostNamePrefix("cc2-jun20"); + + sshAcls.add("15.0.0.0/8"); + + SshUsers users = new SshUsers(); + users.action("CREATE"); + users.sshUsername("user10911"); + users.sshPassword("password"); + sshUsers.add(users); + + notifications.add("rvaranasi@equinix.com"); + + deviceRequest.setSshAcl(sshAcls); + deviceRequest.sshUsers(sshUsers); + deviceRequest.notifications(notifications); + + // 3. Invoke Access Token API and get the token. + String hostname = get("ne.url.hostname"); + String urlOAuth2 = hostname + get("ne.url.auth"); + String urlDevice = hostname + get("ne.url.device"); + + // UniRest is a lightweight HTTPClient built on top of widely used Apache HTTP Client. + // http://unirest.io/java.html + HttpResponse response = Unirest.post(urlOAuth2) + .header("Content-Type", get("ne.client.http.body.contenttype")) + .body(gson.toJson(oathReq)).asString(); + OAuthResponse oauthResponse = gson.fromJson(response.getBody(), OAuthResponse.class); + + // 4. Invoke Create Device API. + response = Unirest.post(urlDevice) + .header("Content-Type", get("ne.client.http.body.contenttype")) + .header("Authorization", "Bearer " + oauthResponse.getAccessToken()) + .body(gson.toJson(deviceRequest)).asString(); + + System.out.println(response.getBody()); + + } catch (Exception ex) { + ex.printStackTrace(); + } + } + + public static OAuthRequest createOAuthRequest() { + // Generate OAuth2 Access Token. + OAuthRequest oathReq = new OAuthRequest(); + try { + oathReq.clientId(get("ne.client.access.client.id")); + oathReq.clientSecret(get("ne.client.access.client.secret")); + oathReq.grantType(get("ne.client.access.client.granttype")); + oathReq.userName(get("ne.client.access.client.username")); + String password = new String(Base64.getDecoder().decode(get("ne.client.access.client.base64.password")), "UTF-8"); + oathReq.userPassword(password); + } catch (UnsupportedEncodingException e) { + e.printStackTrace(); + } + + return oathReq; + } +} diff --git a/src/main/java/com/equinix/networkedge/config/ApiConfiguration.java b/src/main/java/com/equinix/networkedge/config/ApiConfiguration.java deleted file mode 100644 index fdb2b5c..0000000 --- a/src/main/java/com/equinix/networkedge/config/ApiConfiguration.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * The Apache License - * - * Copyright 2019 Equinix Inc. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. - */ - -package com.equinix.networkedge.config; - -import lombok.Data; - -public @Data -class ApiConfiguration { - - public static final String BEARER = "Bearer "; - - /* - * Please provide client id, client secret, grant type, user name and password - * - * */ - /* - * Set the Client ID received from Equinix - */ - public static final String CLIENT_ID = "<>"; - - /* - * Set the client secret received from Equinix - */ - public static final String CLIENT_SECRET = "<>"; - - /* - * Do not change this. This represents client_credentials - */ - public static final String GRANT_TYPE = "<>"; - - /* - * Set the user name to access the cloud exchange - */ - public static final String USER_NAME = "<>"; - - /* - * Set the user password for the above user name - */ - public static final String PASSWORD = "<>"; - - private String uri = "https://api.equinix.com"; -} diff --git a/src/main/java/com/equinix/networkedge/config/URIType.java b/src/main/java/com/equinix/networkedge/config/URIType.java deleted file mode 100644 index 795b41d..0000000 --- a/src/main/java/com/equinix/networkedge/config/URIType.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * The Apache License - * - * Copyright 2017 Equinix Inc. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. - */ -package com.equinix.networkedge.config; - -import lombok.Getter; - -/** - * @author aanchala 7/12/2018 - **/ -public enum URIType { - - OAUTH("/oauth2/v1/token","Oauth2 Token API"), - SELLER_PROFILES("/ne/v1/l2/serviceprofiles/services","Fetch all seller profile for given metros"), - SELLER_PROFILES_BY_UUID("/ne/b1/l2/serviceprofiles/services/{uuid}","Fetch all seller profile based on uuid"), - METRO("/ne/v1/l2/common/metros","Return list of all metros"), - VALIDATE_AUTHKEY("/ne/v1/l2/connections/validateAuthorizationKey","Return list of all metros"), - - private final String version="/v1/serviceProvider"; - - private String pathSegment; - @Getter - private String type; - - URIType(String path, String type) { - this.pathSegment = path; - this.type = type; - } - - public String path(){ - return this.pathSegment; - } -} - diff --git a/src/main/java/com/equinix/networkedge/examples/AccessTokenExample.java b/src/main/java/com/equinix/networkedge/examples/AccessTokenExample.java deleted file mode 100644 index 87665e3..0000000 --- a/src/main/java/com/equinix/networkedge/examples/AccessTokenExample.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * The Apache License - * - * Copyright 2017 Equinix Inc. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. - */ -package com.equinix.networkedge.examples; - -import com.equinix.networkedge.APIHandler; -import com.equinix.networkedge.Util; -import com.equinix.networkedge.config.ApiConfiguration; -import com.equinix.networkedge.model.Oauth2TokenRequest; -import com.equinix.networkedge.model.Oauth2TokenResponse; -import org.springframework.http.HttpHeaders; - -/** - * This example will trigger a Api call to get Access Token from Equinix Inc. - * @author aanchala 7/13/2018 - **/ - -public class AccessTokenExample { - - - public static void main(String[] args) { - - /* - * Provide ClientId, ClientSecret, GrantType, UserName and password in ApiConfiguration class - */ - - Oauth2TokenRequest oathReq = new Oauth2TokenRequest(); - oathReq.setClient_id(ApiConfiguration.CLIENT_ID); - oathReq.setClient_secret(ApiConfiguration.CLIENT_SECRET); - oathReq.setGrant_type(ApiConfiguration.GRANT_TYPE); - oathReq.setUser_name(ApiConfiguration.USER_NAME); - oathReq.setUser_password(ApiConfiguration.PASSWORD); - - try { - APIHandler handler = new APIHandler(); - HttpHeaders headers = new HttpHeaders(); - headers.add("Content-Type", "application/json"); - Oauth2TokenResponse oauthResponse = handler.getOauth2AccessToken(headers, oathReq); - System.out.println("Response is :: \n " + Util.getObjectMapper().writerWithDefaultPrettyPrinter().writeValueAsString - (oauthResponse)); - } catch (Exception ex) { - ex.printStackTrace(); - System.out.println("Get Access Token Response " + ex.getMessage()); - } - } -} - diff --git a/src/main/java/com/equinix/networkedge/examples/BuyerPreferencesExample.java b/src/main/java/com/equinix/networkedge/examples/BuyerPreferencesExample.java deleted file mode 100644 index 5927281..0000000 --- a/src/main/java/com/equinix/networkedge/examples/BuyerPreferencesExample.java +++ /dev/null @@ -1,122 +0,0 @@ -/* - * The Apache License - * - * Copyright 2017 Equinix Inc. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. - */ -package com.equinix.networkedge.examples; - -import com.equinix.networkedge.APIException; -import com.equinix.networkedge.APIHandler; -import com.equinix.networkedge.Util; -import com.equinix.networkedge.model.BuyerPreferenceRequest; -import com.equinix.networkedge.model.BuyerPreferenceResponse; -import com.equinix.networkedge.model.Oauth2TokenResponse; -import org.springframework.http.HttpMethod; - -import java.util.ArrayList; -import java.util.List; - -/** - * This example will trigger a Api call to get buyer preference for specific Access token/user, - * create buyer preference, delete buyer preference and update buyer preference . - * @author aanchala 7/13/2018 - **/ -public class BuyerPreferencesExample { - - private static Oauth2TokenResponse oauthToken; - APIHandler handler = new APIHandler(); - - public static void main(String[] args) { - BuyerPreferencesExample buyerPreferencesExample = new BuyerPreferencesExample(); - try { - oauthToken = Util.createToken(); - } catch (APIException ex) { - ex.printStackTrace(); - System.out.println("OAuth Error Response is " + ex.getMessage()); - } - // buyerPreferencesExample.updateBuyerPreferences(oauthToken); - // buyerPreferencesExample.saveBuyerPreferences(oauthToken); - // buyerPreferencesExample.deleteBuyerPreferences(oauthToken); - buyerPreferencesExample.getBuyerPreferences(oauthToken); - } - - - private void saveBuyerPreferences(Oauth2TokenResponse oauthToken) { - try { - BuyerPreferenceRequest buyerPreferenceRequest = new BuyerPreferenceRequest(); - List emails = new ArrayList(); - emails.add("test@test.com"); - buyerPreferenceRequest.setPortThreshold("10"); - buyerPreferenceRequest.setEmails(emails); - BuyerPreferenceResponse bResponse = handler.getBuyerPreferences(oauthToken, buyerPreferenceRequest, - HttpMethod.POST); - System.out.println("saveBuyerPreferences is :: \n " + Util.mapper.writerWithDefaultPrettyPrinter().writeValueAsString - (bResponse)); - } catch (Exception e) { - e.printStackTrace(); - System.out.println("saveBuyerPreferences Error Response " + e.getMessage()); - } - } - - private void updateBuyerPreferences(Oauth2TokenResponse oauthToken) { - try { - BuyerPreferenceRequest buyerPreferenceRequest = new BuyerPreferenceRequest(); - List emails = new ArrayList(); - emails.add("test@test.com"); - buyerPreferenceRequest.setPortThreshold("10"); - buyerPreferenceRequest.setEmails(emails); - BuyerPreferenceResponse bResponse = handler.getBuyerPreferences(oauthToken, buyerPreferenceRequest, - HttpMethod.PATCH); - System.out.println("updateBuyerPreferences is :: \n " + Util.mapper.writerWithDefaultPrettyPrinter().writeValueAsString - (bResponse)); - } catch (Exception e) { - e.printStackTrace(); - System.out.println("updateBuyerPreferences Error Response " + e.getMessage()); - } - } - - private void deleteBuyerPreferences(Oauth2TokenResponse oauthToken) { - try { - - BuyerPreferenceResponse bResponse = handler.getBuyerPreferences(oauthToken, null, - HttpMethod.DELETE); - System.out.println("deleteBuyerPreferences is :: \n " + Util.mapper.writerWithDefaultPrettyPrinter().writeValueAsString - (bResponse)); - } catch (Exception e) { - e.printStackTrace(); - System.out.println("deleteBuyerPreferences Error Response " + e.getMessage()); - } - } - - private void getBuyerPreferences(Oauth2TokenResponse oauthToken) { - try { - - BuyerPreferenceResponse bResponse = handler.getBuyerPreferences(oauthToken, null, - HttpMethod.GET); - System.out.println("getBuyerPreferences is :: \n " + Util.mapper.writerWithDefaultPrettyPrinter().writeValueAsString - (bResponse)); - } catch (Exception e) { - e.printStackTrace(); - System.out.println("getBuyerPreferences Error Response " + e.getMessage()); - } - } - -} diff --git a/src/main/java/com/equinix/networkedge/examples/L2ConnectionsExample.java b/src/main/java/com/equinix/networkedge/examples/L2ConnectionsExample.java deleted file mode 100644 index 9be9b5d..0000000 --- a/src/main/java/com/equinix/networkedge/examples/L2ConnectionsExample.java +++ /dev/null @@ -1,124 +0,0 @@ -package com.equinix.networkedge.examples; - -import com.equinix.networkedge.APIException; -import com.equinix.networkedge.APIHandler; -import com.equinix.networkedge.Util; -import com.equinix.networkedge.model.BuyerConnectionResponse; -import com.equinix.networkedge.model.ConnectionRequest; -import com.equinix.networkedge.model.ConnectionResponse; -import com.equinix.networkedge.model.Oauth2TokenResponse; - -import java.util.ArrayList; -import java.util.List; - -/** - * This example will trigger a Api call to get all connections for specific Access token/user, - * create connection, delete connection and update connection using connection Id. - * @author aanchala 7/13/2018 - **/ -public class BuyerConnectionsExample { - - private static Oauth2TokenResponse oauthToken; - APIHandler handler = new APIHandler(); - - public static void main(String[] args) { - BuyerConnectionsExample buyerConnections = new BuyerConnectionsExample(); - String connId = null; - try { - oauthToken = Util.createToken(); - } catch (APIException ex) { - ex.printStackTrace(); - System.out.println("OAuth Error Response is " + ex.getMessage()); - } - buyerConnections.getAllConnections(oauthToken); - buyerConnections.getConnection(oauthToken, connId); - ConnectionResponse connectionResponse = buyerConnections.createConnection(oauthToken); - buyerConnections.deleteConnection(oauthToken, connectionResponse.getPrimaryConnectionId()); - //buyerConnections.updateConnection(oauthToken, connId); - } - - private void getAllConnections(Oauth2TokenResponse oauthToken) { - try { - List buyerConnectionResponses = handler.getAllConnections(oauthToken); - System.out.println("Get All Response is :: \n " + Util.mapper.writerWithDefaultPrettyPrinter() - .writeValueAsString - (buyerConnectionResponses)); - } catch (Exception e) { - e.printStackTrace(); - System.out.println("Get All Connections Error Response " + e.getMessage()); - } - } - - private ConnectionResponse createConnection(Oauth2TokenResponse oauthToken) { - ConnectionResponse connectionResponse = new ConnectionResponse(); - try { - ConnectionRequest request = populateRequest(); - connectionResponse = handler.createConnection(oauthToken, request); - System.out.println("Create Connection Response is :: \n " + Util.mapper.writerWithDefaultPrettyPrinter() - .writeValueAsString - (connectionResponse)); - } catch (Exception e) { - e.printStackTrace(); - System.out.println("Create Connection Error Response " + e.getMessage()); - } - return connectionResponse; - } - - private void deleteConnection(Oauth2TokenResponse oauthToken, String connId) { - try { - - ConnectionResponse connectionResponse = handler.deleteConnection(oauthToken, connId); - System.out.println("Delete Connection is :: \n " + Util.mapper.writerWithDefaultPrettyPrinter().writeValueAsString - (connectionResponse)); - } catch (Exception e) { - e.printStackTrace(); - System.out.println("Delete Connection Error Response " + e.getMessage()); - } - } - - private void getConnection(Oauth2TokenResponse oauthToken, String connId) { - try { - BuyerConnectionResponse connectionResponse = handler.getConnection(oauthToken, connId); - System.out.println("Get Connection is :: \n " + Util.mapper.writerWithDefaultPrettyPrinter().writeValueAsString - (connectionResponse)); - } catch (Exception e) { - e.printStackTrace(); - System.out.println("Get Connection Error Response " + e.getMessage()); - } - } - - - private void updateConnection(Oauth2TokenResponse oauthToken, String connId) { - try { - ConnectionResponse connectionResponse = handler.updateConnection(oauthToken, connId); - System.out.println("Update Connection is :: \n " + Util.mapper.writerWithDefaultPrettyPrinter().writeValueAsString - (connectionResponse)); - } catch (Exception e) { - e.printStackTrace(); - System.out.println("Update Connection Error Response " + e.getMessage()); - } - } - - - private ConnectionRequest populateRequest() { - - ConnectionRequest request = new ConnectionRequest(); - request.setPrimaryName("Sample Connection primary"); - request.setPrimaryPortUUID(""); - request.setPrimaryVlanCTag(45); - request.setProfileUUID(""); - request.setAuthorizationKey(""); - request.setSpeed(50); - request.setSpeedUnit(ConnectionRequest.SpeedUnit.MB); - List emails = new ArrayList(); - emails.add("test@test.com"); - request.setNotifications(emails); - request.setPurchaseOrderNumber("PO"); - request.setSellerRegion(""); - request.setSellerMetroCode(""); - request.setNamedTag("private"); - - return request; - } -} - diff --git a/src/main/java/com/equinix/networkedge/examples/MetrosExample.java b/src/main/java/com/equinix/networkedge/examples/MetrosExample.java deleted file mode 100644 index 2b3e192..0000000 --- a/src/main/java/com/equinix/networkedge/examples/MetrosExample.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * The Apache License - * - * Copyright 2017 Equinix Inc. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. - */ -package com.equinix.networkedge.examples; - -import com.equinix.networkedge.APIException; -import com.equinix.networkedge.APIHandler; -import com.equinix.networkedge.Util; -import com.equinix.networkedge.model.Metro; -import com.equinix.networkedge.model.Oauth2TokenResponse; -import org.springframework.context.annotation.ComponentScan; - -import java.util.List; - -/** - * This example will trigger a Api call to get all the metros specific Access token/user. - * @author aanchala 7/12/2018 - **/ -@ComponentScan(basePackages = " com.equinix.networkedge") -public class MetrosExample { - private static Oauth2TokenResponse oauthToken; - - public static void main(String[] args) { - - APIHandler handler = new APIHandler(); - try { - oauthToken = Util.createToken(); - } catch (APIException ex) { - ex.printStackTrace(); - System.out.println("OAuth Error Response is " + ex.getMessage()); - } - - try { - List metroResponse = handler.getAllMetros(oauthToken); - System.out.println("Response is :: \n " + Util.mapper.writerWithDefaultPrettyPrinter().writeValueAsString - (metroResponse)); - } catch (Exception e) { - e.printStackTrace(); - System.out.println("Get Metros Error Response " + e.getMessage()); - } - } - -} diff --git a/src/main/java/com/equinix/networkedge/examples/SellerProfileExample.java b/src/main/java/com/equinix/networkedge/examples/SellerProfileExample.java deleted file mode 100644 index e6d8a41..0000000 --- a/src/main/java/com/equinix/networkedge/examples/SellerProfileExample.java +++ /dev/null @@ -1,107 +0,0 @@ -/* - * The Apache License - * - * Copyright 2017 Equinix Inc. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. - */ -package com.equinix.networkedge.examples; - -import com.equinix.networkedge.APIException; -import com.equinix.networkedge.APIHandler; -import com.equinix.networkedge.Util; -import com.equinix.networkedge.model.HttpRequest; -import com.equinix.networkedge.model.Oauth2TokenResponse; -import com.equinix.networkedge.model.ServiceProfileResponse; - -import java.util.List; - -/** - * @author aanchala 7/13/2018 - **/ -public class SellerProfileExample { - - private static Oauth2TokenResponse oauthToken; - APIHandler handler = new APIHandler(); - - public static void main(String[] args) { - SellerProfileExample sellerProfileExample = new SellerProfileExample(); - - - - try { - oauthToken = Util.createToken(); - } catch (APIException ex) { - ex.printStackTrace(); - System.out.println("OAuth Error Response is " + ex.getMessage()); - } - - /** - * This API call will fetch all the service profiles associated with the Access token provided if metros and - * page details are not provided. - * To get service profile specific to Metro, add query parameter to the url as provided in - * getAllServiceProfiles Method - */ - - sellerProfileExample.getAllServiceProfiles(oauthToken); - - /** - * This API call will fetch service profiles by using access token and the UUID of the service profile - * - * Provide service profile UUID and uncomment the below method call. - */ - - String uuid = ""; - //sellerProfileExample.getServiceProfileByUUID(oauthToken, uuid); - } - - - private void getAllServiceProfiles(Oauth2TokenResponse oauthToken) { - try { - /** - * Provide the metro detail - * Provide page number and page size - */ - String[] metros = {"DC", "SV"}; - HttpRequest httpRequest = new HttpRequest(); - httpRequest.setPageNumber("2"); - httpRequest.setPageSize("5"); - httpRequest.setMetroCode(metros); - List spResponse = (List)handler.getSellerProfile - (oauthToken, httpRequest, null); - System.out.println("Response is :: \n " + Util.mapper.writerWithDefaultPrettyPrinter().writeValueAsString - (spResponse)); - } catch (Exception e) { - e.printStackTrace(); - System.out.println("Get Metros Error Response " + e.getMessage()); - } - } - - private void getServiceProfileByUUID(Oauth2TokenResponse oauthToken, String uuid) { - try { - ServiceProfileResponse spResponse = (ServiceProfileResponse)handler.getSellerProfile(oauthToken, null, - uuid); - System.out.println("**** Response for UUID :: \n " + Util.mapper.writerWithDefaultPrettyPrinter() - .writeValueAsString(spResponse)); - } catch (Exception e) { - e.printStackTrace(); - System.out.println("Get Metros Error Response " + e.getMessage()); - } - } -} diff --git a/src/main/java/com/equinix/networkedge/examples/ValidateAuthorizationKeyExample.java b/src/main/java/com/equinix/networkedge/examples/ValidateAuthorizationKeyExample.java deleted file mode 100644 index 6727b86..0000000 --- a/src/main/java/com/equinix/networkedge/examples/ValidateAuthorizationKeyExample.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * The Apache License - * - * Copyright 2017 Equinix Inc. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. - */ -package com.equinix.networkedge.examples; - -import com.equinix.networkedge.APIException; -import com.equinix.networkedge.APIHandler; -import com.equinix.networkedge.Util; -import com.equinix.networkedge.model.Oauth2TokenResponse; -import com.equinix.networkedge.model.ValidateRequest; -import com.equinix.networkedge.model.ValidateResponse; - -import java.util.List; - -/** - * This example will trigger a Api call to Validate Authorization Key for a Access token/user - * @author aanchala 7/13/2018 - **/ -public class ValidateAuthorizationKeyExample { - - private static Oauth2TokenResponse oauthToken; - - public static void main(String[] args) { - - APIHandler handler = new APIHandler(); - try { - oauthToken = Util.createToken(); - } catch (APIException ex) { - ex.printStackTrace(); - System.out.println("OAuth Error Response is " + ex.getMessage()); - } - - try { - ValidateRequest validateRequest = new ValidateRequest(); - - /* - * This Api will validate the Authorization/Service key based on Metro code, Profile Id and Region - * Provide Authorization key, Profile Id, Region and Metro Code to validate the Key - */ - - validateRequest.setAuthorizationkey(""); - validateRequest.setMetroCode(""); - validateRequest.setProfileId(""); - validateRequest.setRegion(""); - List validateResponse = handler.validateAuthKey(oauthToken, validateRequest); - System.out.println("Validate Key Response is :: \n " + Util.mapper.writerWithDefaultPrettyPrinter() - .writeValueAsString - (validateResponse)); - } catch (Exception e) { - e.printStackTrace(); - System.out.println("Validate Key Error Response " + e.getMessage()); - } - } - -} diff --git a/src/main/java/com/equinix/networkedge/examples/createNonHACSRDevice.java b/src/main/java/com/equinix/networkedge/examples/createNonHACSRDevice.java deleted file mode 100644 index 3dc825f..0000000 --- a/src/main/java/com/equinix/networkedge/examples/createNonHACSRDevice.java +++ /dev/null @@ -1,122 +0,0 @@ -/* - * The Apache License - * - * Copyright 2017 Equinix Inc. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. - */ -package com.equinix.networkedge.examples; - -import com.equinix.networkedge.APIException; -import com.equinix.networkedge.APIHandler; -import com.equinix.networkedge.Util; -import com.equinix.networkedge.model.BuyerPreferenceRequest; -import com.equinix.networkedge.model.BuyerPreferenceResponse; -import com.equinix.networkedge.model.Oauth2TokenResponse; -import org.springframework.http.HttpMethod; - -import java.util.ArrayList; -import java.util.List; - -/** - * This example will trigger a Api call to get buyer preference for specific Access token/user, - * create buyer preference, delete buyer preference and update buyer preference . - * @author aanchala 7/13/2018 - **/ -public class createNonHACSRDeviceExample { - - private static Oauth2TokenResponse oauthToken; - APIHandler handler = new APIHandler(); - - public static void main(String[] args) { - createNonHACSRDeviceExample createNonHACSRDeviceExample = new createNonHACSRDeviceExample(); - try { - oauthToken = Util.createToken(); - } catch (APIException ex) { - ex.printStackTrace(); - System.out.println("OAuth Error Response is " + ex.getMessage()); - } - // createNonHACSRDeviceExample.updatecreateNonHACSRDevice(oauthToken); - // createNonHACSRDeviceExample.savecreateNonHACSRDevice(oauthToken); - // createNonHACSRDeviceExample.deletecreateNonHACSRDevice(oauthToken); - createNonHACSRDeviceExample.getcreateNonHACSRDevice(oauthToken); - } - - - private void savecreateNonHACSRDevice(Oauth2TokenResponse oauthToken) { - try { - BuyerPreferenceRequest buyerPreferenceRequest = new BuyerPreferenceRequest(); - List emails = new ArrayList(); - emails.add("test@test.com"); - buyerPreferenceRequest.setPortThreshold("10"); - buyerPreferenceRequest.setEmails(emails); - BuyerPreferenceResponse bResponse = handler.getcreateNonHACSRDevice(oauthToken, buyerPreferenceRequest, - HttpMethod.POST); - System.out.println("savecreateNonHACSRDevice is :: \n " + Util.mapper.writerWithDefaultPrettyPrinter().writeValueAsString - (bResponse)); - } catch (Exception e) { - e.printStackTrace(); - System.out.println("savecreateNonHACSRDevice Error Response " + e.getMessage()); - } - } - - private void updatecreateNonHACSRDevice(Oauth2TokenResponse oauthToken) { - try { - BuyerPreferenceRequest buyerPreferenceRequest = new BuyerPreferenceRequest(); - List emails = new ArrayList(); - emails.add("test@test.com"); - buyerPreferenceRequest.setPortThreshold("10"); - buyerPreferenceRequest.setEmails(emails); - BuyerPreferenceResponse bResponse = handler.getcreateNonHACSRDevice(oauthToken, buyerPreferenceRequest, - HttpMethod.PATCH); - System.out.println("updatecreateNonHACSRDevice is :: \n " + Util.mapper.writerWithDefaultPrettyPrinter().writeValueAsString - (bResponse)); - } catch (Exception e) { - e.printStackTrace(); - System.out.println("updatecreateNonHACSRDevice Error Response " + e.getMessage()); - } - } - - private void deletecreateNonHACSRDevice(Oauth2TokenResponse oauthToken) { - try { - - BuyerPreferenceResponse bResponse = handler.getcreateNonHACSRDevice(oauthToken, null, - HttpMethod.DELETE); - System.out.println("deletecreateNonHACSRDevice is :: \n " + Util.mapper.writerWithDefaultPrettyPrinter().writeValueAsString - (bResponse)); - } catch (Exception e) { - e.printStackTrace(); - System.out.println("deletecreateNonHACSRDevice Error Response " + e.getMessage()); - } - } - - private void getcreateNonHACSRDevice(Oauth2TokenResponse oauthToken) { - try { - - BuyerPreferenceResponse bResponse = handler.getcreateNonHACSRDevice(oauthToken, null, - HttpMethod.GET); - System.out.println("getcreateNonHACSRDevice is :: \n " + Util.mapper.writerWithDefaultPrettyPrinter().writeValueAsString - (bResponse)); - } catch (Exception e) { - e.printStackTrace(); - System.out.println("getcreateNonHACSRDevice Error Response " + e.getMessage()); - } - } - -} diff --git a/src/main/java/com/equinix/networkedge/model/AdditionalBandwidthUpdateRequest.java b/src/main/java/com/equinix/networkedge/model/AdditionalBandwidthUpdateRequest.java new file mode 100644 index 0000000..1d4ea17 --- /dev/null +++ b/src/main/java/com/equinix/networkedge/model/AdditionalBandwidthUpdateRequest.java @@ -0,0 +1,88 @@ +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; + +/** + * AdditionalBandwidthUpdateRequest + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class AdditionalBandwidthUpdateRequest { + @SerializedName("additionalBandwidth") + private Integer additionalBandwidth = null; + + public AdditionalBandwidthUpdateRequest additionalBandwidth(Integer additionalBandwidth) { + this.additionalBandwidth = additionalBandwidth; + return this; + } + + /** + * Additional bandwidth to be configured on virtual device + * @return additionalBandwidth + **/ + @ApiModelProperty(example = "200", required = true, value = "Additional bandwidth to be configured on virtual device") + public Integer getAdditionalBandwidth() { + return additionalBandwidth; + } + + public void setAdditionalBandwidth(Integer additionalBandwidth) { + this.additionalBandwidth = additionalBandwidth; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AdditionalBandwidthUpdateRequest additionalBandwidthUpdateRequest = (AdditionalBandwidthUpdateRequest) o; + return Objects.equals(this.additionalBandwidth, additionalBandwidthUpdateRequest.additionalBandwidth); + } + + @Override + public int hashCode() { + return Objects.hash(additionalBandwidth); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AdditionalBandwidthUpdateRequest {\n"); + + sb.append(" additionalBandwidth: ").append(toIndentedString(additionalBandwidth)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/AdditionalBuyerInfo.java b/src/main/java/com/equinix/networkedge/model/AdditionalBuyerInfo.java deleted file mode 100644 index 5b54f13..0000000 --- a/src/main/java/com/equinix/networkedge/model/AdditionalBuyerInfo.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * The Apache License - * - * Copyright 2017 Equinix Inc. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. - */ -package com.equinix.networkedge.model; - -import lombok.Data; - -import javax.validation.constraints.NotNull; - -/** - * @author aanchala 7/13/2018 - **/ -public @Data class AdditionalBuyerInfo { - - private static final long serialVersionUID = 1L; - - @NotNull(message = "name can not be null for additionalBuyerInfo") - private String name; - - @NotNull(message = "description can not be null for additionalBuyerInfo") - private String description; - - @NotNull(message = "isMandatory can not be null for additionalBuyerInfo") - private Boolean mandatory; - - @NotNull(message = "datatype can not be null for additionalBuyerInfo") - private DatatypeENUM datatype; - - private Boolean captureInEmail; -} diff --git a/src/main/java/com/equinix/networkedge/model/AgreementAcceptRequest.java b/src/main/java/com/equinix/networkedge/model/AgreementAcceptRequest.java new file mode 100644 index 0000000..96af933 --- /dev/null +++ b/src/main/java/com/equinix/networkedge/model/AgreementAcceptRequest.java @@ -0,0 +1,249 @@ +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; + +/** + * AgreementAcceptRequest + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class AgreementAcceptRequest { + @SerializedName("accountNumber") + private String accountNumber = null; + + @SerializedName("activationDate") + private String activationDate = null; + + @SerializedName("apttusId") + private String apttusId = null; + + @SerializedName("fileName") + private String fileName = null; + + @SerializedName("fileType") + private String fileType = null; + + @SerializedName("signatureType") + private String signatureType = null; + + @SerializedName("signedPDF") + private String signedPDF = null; + + @SerializedName("source") + private String source = null; + + public AgreementAcceptRequest accountNumber(String accountNumber) { + this.accountNumber = accountNumber; + return this; + } + + /** + * Get accountNumber + * @return accountNumber + **/ + @ApiModelProperty(value = "") + public String getAccountNumber() { + return accountNumber; + } + + public void setAccountNumber(String accountNumber) { + this.accountNumber = accountNumber; + } + + public AgreementAcceptRequest activationDate(String activationDate) { + this.activationDate = activationDate; + return this; + } + + /** + * Get activationDate + * @return activationDate + **/ + @ApiModelProperty(value = "") + public String getActivationDate() { + return activationDate; + } + + public void setActivationDate(String activationDate) { + this.activationDate = activationDate; + } + + public AgreementAcceptRequest apttusId(String apttusId) { + this.apttusId = apttusId; + return this; + } + + /** + * Get apttusId + * @return apttusId + **/ + @ApiModelProperty(value = "") + public String getApttusId() { + return apttusId; + } + + public void setApttusId(String apttusId) { + this.apttusId = apttusId; + } + + public AgreementAcceptRequest fileName(String fileName) { + this.fileName = fileName; + return this; + } + + /** + * Get fileName + * @return fileName + **/ + @ApiModelProperty(value = "") + public String getFileName() { + return fileName; + } + + public void setFileName(String fileName) { + this.fileName = fileName; + } + + public AgreementAcceptRequest fileType(String fileType) { + this.fileType = fileType; + return this; + } + + /** + * Get fileType + * @return fileType + **/ + @ApiModelProperty(value = "") + public String getFileType() { + return fileType; + } + + public void setFileType(String fileType) { + this.fileType = fileType; + } + + public AgreementAcceptRequest signatureType(String signatureType) { + this.signatureType = signatureType; + return this; + } + + /** + * Get signatureType + * @return signatureType + **/ + @ApiModelProperty(value = "") + public String getSignatureType() { + return signatureType; + } + + public void setSignatureType(String signatureType) { + this.signatureType = signatureType; + } + + public AgreementAcceptRequest signedPDF(String signedPDF) { + this.signedPDF = signedPDF; + return this; + } + + /** + * Get signedPDF + * @return signedPDF + **/ + @ApiModelProperty(value = "") + public String getSignedPDF() { + return signedPDF; + } + + public void setSignedPDF(String signedPDF) { + this.signedPDF = signedPDF; + } + + public AgreementAcceptRequest source(String source) { + this.source = source; + return this; + } + + /** + * Get source + * @return source + **/ + @ApiModelProperty(value = "") + public String getSource() { + return source; + } + + public void setSource(String source) { + this.source = source; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AgreementAcceptRequest agreementAcceptRequest = (AgreementAcceptRequest) o; + return Objects.equals(this.accountNumber, agreementAcceptRequest.accountNumber) && + Objects.equals(this.activationDate, agreementAcceptRequest.activationDate) && + Objects.equals(this.apttusId, agreementAcceptRequest.apttusId) && + Objects.equals(this.fileName, agreementAcceptRequest.fileName) && + Objects.equals(this.fileType, agreementAcceptRequest.fileType) && + Objects.equals(this.signatureType, agreementAcceptRequest.signatureType) && + Objects.equals(this.signedPDF, agreementAcceptRequest.signedPDF) && + Objects.equals(this.source, agreementAcceptRequest.source); + } + + @Override + public int hashCode() { + return Objects.hash(accountNumber, activationDate, apttusId, fileName, fileType, signatureType, signedPDF, source); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AgreementAcceptRequest {\n"); + + sb.append(" accountNumber: ").append(toIndentedString(accountNumber)).append("\n"); + sb.append(" activationDate: ").append(toIndentedString(activationDate)).append("\n"); + sb.append(" apttusId: ").append(toIndentedString(apttusId)).append("\n"); + sb.append(" fileName: ").append(toIndentedString(fileName)).append("\n"); + sb.append(" fileType: ").append(toIndentedString(fileType)).append("\n"); + sb.append(" signatureType: ").append(toIndentedString(signatureType)).append("\n"); + sb.append(" signedPDF: ").append(toIndentedString(signedPDF)).append("\n"); + sb.append(" source: ").append(toIndentedString(source)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/AgreementAcceptResponse.java b/src/main/java/com/equinix/networkedge/model/AgreementAcceptResponse.java new file mode 100644 index 0000000..102fd00 --- /dev/null +++ b/src/main/java/com/equinix/networkedge/model/AgreementAcceptResponse.java @@ -0,0 +1,88 @@ +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; + +/** + * AgreementAcceptResponse + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class AgreementAcceptResponse { + @SerializedName("status") + private String status = null; + + public AgreementAcceptResponse status(String status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + **/ + @ApiModelProperty(value = "") + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AgreementAcceptResponse agreementAcceptResponse = (AgreementAcceptResponse) o; + return Objects.equals(this.status, agreementAcceptResponse.status); + } + + @Override + public int hashCode() { + return Objects.hash(status); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AgreementAcceptResponse {\n"); + + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/AgreementStatusResponse.java b/src/main/java/com/equinix/networkedge/model/AgreementStatusResponse.java new file mode 100644 index 0000000..269642b --- /dev/null +++ b/src/main/java/com/equinix/networkedge/model/AgreementStatusResponse.java @@ -0,0 +1,283 @@ +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; + +import java.util.ArrayList; +import java.util.List; + +/** + * AgreementStatusResponse + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class AgreementStatusResponse { + @SerializedName("errorMessage") + private String errorMessage = null; + + @SerializedName("gtcStatus") + private String gtcStatus = null; + + @SerializedName("ibxInclusionListInMCA") + private List ibxInclusionListInMCA = null; + + @SerializedName("isIBXIncludedInMCA") + private String isIBXIncludedInMCA = null; + + @SerializedName("isValid") + private String isValid = null; + + @SerializedName("mcaStatus") + private String mcaStatus = null; + + @SerializedName("shortFormAgrStatus") + private String shortFormAgrStatus = null; + + @SerializedName("terms") + private String terms = null; + + @SerializedName("termsVersionID") + private String termsVersionID = null; + + public AgreementStatusResponse errorMessage(String errorMessage) { + this.errorMessage = errorMessage; + return this; + } + + /** + * Get errorMessage + * @return errorMessage + **/ + @ApiModelProperty(value = "") + public String getErrorMessage() { + return errorMessage; + } + + public void setErrorMessage(String errorMessage) { + this.errorMessage = errorMessage; + } + + public AgreementStatusResponse gtcStatus(String gtcStatus) { + this.gtcStatus = gtcStatus; + return this; + } + + /** + * Get gtcStatus + * @return gtcStatus + **/ + @ApiModelProperty(value = "") + public String getGtcStatus() { + return gtcStatus; + } + + public void setGtcStatus(String gtcStatus) { + this.gtcStatus = gtcStatus; + } + + public AgreementStatusResponse ibxInclusionListInMCA(List ibxInclusionListInMCA) { + this.ibxInclusionListInMCA = ibxInclusionListInMCA; + return this; + } + + public AgreementStatusResponse addIbxInclusionListInMCAItem(String ibxInclusionListInMCAItem) { + if (this.ibxInclusionListInMCA == null) { + this.ibxInclusionListInMCA = new ArrayList(); + } + this.ibxInclusionListInMCA.add(ibxInclusionListInMCAItem); + return this; + } + + /** + * Get ibxInclusionListInMCA + * @return ibxInclusionListInMCA + **/ + @ApiModelProperty(value = "") + public List getIbxInclusionListInMCA() { + return ibxInclusionListInMCA; + } + + public void setIbxInclusionListInMCA(List ibxInclusionListInMCA) { + this.ibxInclusionListInMCA = ibxInclusionListInMCA; + } + + public AgreementStatusResponse isIBXIncludedInMCA(String isIBXIncludedInMCA) { + this.isIBXIncludedInMCA = isIBXIncludedInMCA; + return this; + } + + /** + * Get isIBXIncludedInMCA + * @return isIBXIncludedInMCA + **/ + @ApiModelProperty(value = "") + public String getIsIBXIncludedInMCA() { + return isIBXIncludedInMCA; + } + + public void setIsIBXIncludedInMCA(String isIBXIncludedInMCA) { + this.isIBXIncludedInMCA = isIBXIncludedInMCA; + } + + public AgreementStatusResponse isValid(String isValid) { + this.isValid = isValid; + return this; + } + + /** + * Get isValid + * @return isValid + **/ + @ApiModelProperty(value = "") + public String getIsValid() { + return isValid; + } + + public void setIsValid(String isValid) { + this.isValid = isValid; + } + + public AgreementStatusResponse mcaStatus(String mcaStatus) { + this.mcaStatus = mcaStatus; + return this; + } + + /** + * Get mcaStatus + * @return mcaStatus + **/ + @ApiModelProperty(value = "") + public String getMcaStatus() { + return mcaStatus; + } + + public void setMcaStatus(String mcaStatus) { + this.mcaStatus = mcaStatus; + } + + public AgreementStatusResponse shortFormAgrStatus(String shortFormAgrStatus) { + this.shortFormAgrStatus = shortFormAgrStatus; + return this; + } + + /** + * Get shortFormAgrStatus + * @return shortFormAgrStatus + **/ + @ApiModelProperty(value = "") + public String getShortFormAgrStatus() { + return shortFormAgrStatus; + } + + public void setShortFormAgrStatus(String shortFormAgrStatus) { + this.shortFormAgrStatus = shortFormAgrStatus; + } + + public AgreementStatusResponse terms(String terms) { + this.terms = terms; + return this; + } + + /** + * Get terms + * @return terms + **/ + @ApiModelProperty(value = "") + public String getTerms() { + return terms; + } + + public void setTerms(String terms) { + this.terms = terms; + } + + public AgreementStatusResponse termsVersionID(String termsVersionID) { + this.termsVersionID = termsVersionID; + return this; + } + + /** + * Get termsVersionID + * @return termsVersionID + **/ + @ApiModelProperty(value = "") + public String getTermsVersionID() { + return termsVersionID; + } + + public void setTermsVersionID(String termsVersionID) { + this.termsVersionID = termsVersionID; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AgreementStatusResponse agreementStatusResponse = (AgreementStatusResponse) o; + return Objects.equals(this.errorMessage, agreementStatusResponse.errorMessage) && + Objects.equals(this.gtcStatus, agreementStatusResponse.gtcStatus) && + Objects.equals(this.ibxInclusionListInMCA, agreementStatusResponse.ibxInclusionListInMCA) && + Objects.equals(this.isIBXIncludedInMCA, agreementStatusResponse.isIBXIncludedInMCA) && + Objects.equals(this.isValid, agreementStatusResponse.isValid) && + Objects.equals(this.mcaStatus, agreementStatusResponse.mcaStatus) && + Objects.equals(this.shortFormAgrStatus, agreementStatusResponse.shortFormAgrStatus) && + Objects.equals(this.terms, agreementStatusResponse.terms) && + Objects.equals(this.termsVersionID, agreementStatusResponse.termsVersionID); + } + + @Override + public int hashCode() { + return Objects.hash(errorMessage, gtcStatus, ibxInclusionListInMCA, isIBXIncludedInMCA, isValid, mcaStatus, shortFormAgrStatus, terms, termsVersionID); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AgreementStatusResponse {\n"); + + sb.append(" errorMessage: ").append(toIndentedString(errorMessage)).append("\n"); + sb.append(" gtcStatus: ").append(toIndentedString(gtcStatus)).append("\n"); + sb.append(" ibxInclusionListInMCA: ").append(toIndentedString(ibxInclusionListInMCA)).append("\n"); + sb.append(" isIBXIncludedInMCA: ").append(toIndentedString(isIBXIncludedInMCA)).append("\n"); + sb.append(" isValid: ").append(toIndentedString(isValid)).append("\n"); + sb.append(" mcaStatus: ").append(toIndentedString(mcaStatus)).append("\n"); + sb.append(" shortFormAgrStatus: ").append(toIndentedString(shortFormAgrStatus)).append("\n"); + sb.append(" terms: ").append(toIndentedString(terms)).append("\n"); + sb.append(" termsVersionID: ").append(toIndentedString(termsVersionID)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/BgpAsyncResponse.java b/src/main/java/com/equinix/networkedge/model/BgpAsyncResponse.java new file mode 100644 index 0000000..f79748e --- /dev/null +++ b/src/main/java/com/equinix/networkedge/model/BgpAsyncResponse.java @@ -0,0 +1,88 @@ +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; + +/** + * BgpAsyncResponse + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class BgpAsyncResponse { + @SerializedName("uuid") + private String uuid = null; + + public BgpAsyncResponse uuid(String uuid) { + this.uuid = uuid; + return this; + } + + /** + * Get uuid + * @return uuid + **/ + @ApiModelProperty(value = "") + public String getUuid() { + return uuid; + } + + public void setUuid(String uuid) { + this.uuid = uuid; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BgpAsyncResponse bgpAsyncResponse = (BgpAsyncResponse) o; + return Objects.equals(this.uuid, bgpAsyncResponse.uuid); + } + + @Override + public int hashCode() { + return Objects.hash(uuid); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BgpAsyncResponse {\n"); + + sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/BgpConfigAddRequest.java b/src/main/java/com/equinix/networkedge/model/BgpConfigAddRequest.java new file mode 100644 index 0000000..b27978b --- /dev/null +++ b/src/main/java/com/equinix/networkedge/model/BgpConfigAddRequest.java @@ -0,0 +1,203 @@ +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; + +/** + * BgpConfigAddRequest + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class BgpConfigAddRequest { + @SerializedName("authenticationKey") + private String authenticationKey = null; + + @SerializedName("connectionUUID") + private String connectionUUID = null; + + @SerializedName("localAsn") + private Long localAsn = null; + + @SerializedName("localIpAddress") + private String localIpAddress = null; + + @SerializedName("remoteAsn") + private Long remoteAsn = null; + + @SerializedName("remoteIpAddress") + private String remoteIpAddress = null; + + public BgpConfigAddRequest authenticationKey(String authenticationKey) { + this.authenticationKey = authenticationKey; + return this; + } + + /** + * Provide a key value that you can use later to authenticate. + * @return authenticationKey + **/ + @ApiModelProperty(example = "pass123", value = "Provide a key value that you can use later to authenticate.") + public String getAuthenticationKey() { + return authenticationKey; + } + + public void setAuthenticationKey(String authenticationKey) { + this.authenticationKey = authenticationKey; + } + + public BgpConfigAddRequest connectionUUID(String connectionUUID) { + this.connectionUUID = connectionUUID; + return this; + } + + /** + * UUID of the connection between the virtual device and the cloud service provider + * @return connectionUUID + **/ + @ApiModelProperty(example = "f79eead8-b837-41d3-9095-9b15c2c4996d", value = "UUID of the connection between the virtual device and the cloud service provider") + public String getConnectionUUID() { + return connectionUUID; + } + + public void setConnectionUUID(String connectionUUID) { + this.connectionUUID = connectionUUID; + } + + public BgpConfigAddRequest localAsn(Long localAsn) { + this.localAsn = localAsn; + return this; + } + + /** + * Local ASN (autonomous system network). This is the ASN of the virtual device. + * @return localAsn + **/ + @ApiModelProperty(example = "10012", value = "Local ASN (autonomous system network). This is the ASN of the virtual device.") + public Long getLocalAsn() { + return localAsn; + } + + public void setLocalAsn(Long localAsn) { + this.localAsn = localAsn; + } + + public BgpConfigAddRequest localIpAddress(String localIpAddress) { + this.localIpAddress = localIpAddress; + return this; + } + + /** + * Local IP Address. This is the IP address of the virtual device in CIDR format. + * @return localIpAddress + **/ + @ApiModelProperty(example = "100.210.1.221/30", value = "Local IP Address. This is the IP address of the virtual device in CIDR format.") + public String getLocalIpAddress() { + return localIpAddress; + } + + public void setLocalIpAddress(String localIpAddress) { + this.localIpAddress = localIpAddress; + } + + public BgpConfigAddRequest remoteAsn(Long remoteAsn) { + this.remoteAsn = remoteAsn; + return this; + } + + /** + * Remote ASN (autonomous system network). This is the ASN of the cloud service provider. + * @return remoteAsn + **/ + @ApiModelProperty(example = "10013", value = "Remote ASN (autonomous system network). This is the ASN of the cloud service provider.") + public Long getRemoteAsn() { + return remoteAsn; + } + + public void setRemoteAsn(Long remoteAsn) { + this.remoteAsn = remoteAsn; + } + + public BgpConfigAddRequest remoteIpAddress(String remoteIpAddress) { + this.remoteIpAddress = remoteIpAddress; + return this; + } + + /** + * Remote IP Address. This is the IP address of the cloud service provider. + * @return remoteIpAddress + **/ + @ApiModelProperty(example = "100.210.1.31", value = "Remote IP Address. This is the IP address of the cloud service provider.") + public String getRemoteIpAddress() { + return remoteIpAddress; + } + + public void setRemoteIpAddress(String remoteIpAddress) { + this.remoteIpAddress = remoteIpAddress; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BgpConfigAddRequest bgpConfigAddRequest = (BgpConfigAddRequest) o; + return Objects.equals(this.authenticationKey, bgpConfigAddRequest.authenticationKey) && + Objects.equals(this.connectionUUID, bgpConfigAddRequest.connectionUUID) && + Objects.equals(this.localAsn, bgpConfigAddRequest.localAsn) && + Objects.equals(this.localIpAddress, bgpConfigAddRequest.localIpAddress) && + Objects.equals(this.remoteAsn, bgpConfigAddRequest.remoteAsn) && + Objects.equals(this.remoteIpAddress, bgpConfigAddRequest.remoteIpAddress); + } + + @Override + public int hashCode() { + return Objects.hash(authenticationKey, connectionUUID, localAsn, localIpAddress, remoteAsn, remoteIpAddress); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BgpConfigAddRequest {\n"); + + sb.append(" authenticationKey: ").append(toIndentedString(authenticationKey)).append("\n"); + sb.append(" connectionUUID: ").append(toIndentedString(connectionUUID)).append("\n"); + sb.append(" localAsn: ").append(toIndentedString(localAsn)).append("\n"); + sb.append(" localIpAddress: ").append(toIndentedString(localIpAddress)).append("\n"); + sb.append(" remoteAsn: ").append(toIndentedString(remoteAsn)).append("\n"); + sb.append(" remoteIpAddress: ").append(toIndentedString(remoteIpAddress)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/BgpConnectionInfo.java b/src/main/java/com/equinix/networkedge/model/BgpConnectionInfo.java new file mode 100644 index 0000000..e4d89f3 --- /dev/null +++ b/src/main/java/com/equinix/networkedge/model/BgpConnectionInfo.java @@ -0,0 +1,296 @@ +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; +import com.equinix.networkedge.model.BgpConnectionInfo; + +/** + * BgpConnectionInfo + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class BgpConnectionInfo { + @SerializedName("bgpStatus") + private String bgpStatus = null; + + @SerializedName("isPrimary") + private Boolean isPrimary = null; + + @SerializedName("metro") + private String metro = null; + + @SerializedName("name") + private String name = null; + + @SerializedName("providerStatus") + private String providerStatus = null; + + @SerializedName("redundantConnection") + private BgpConnectionInfo redundantConnection = null; + + @SerializedName("redundantUUID") + private String redundantUUID = null; + + @SerializedName("sellerOrganizationName") + private String sellerOrganizationName = null; + + @SerializedName("status") + private String status = null; + + @SerializedName("uuid") + private String uuid = null; + + public BgpConnectionInfo bgpStatus(String bgpStatus) { + this.bgpStatus = bgpStatus; + return this; + } + + /** + * Get bgpStatus + * @return bgpStatus + **/ + @ApiModelProperty(value = "") + public String getBgpStatus() { + return bgpStatus; + } + + public void setBgpStatus(String bgpStatus) { + this.bgpStatus = bgpStatus; + } + + public BgpConnectionInfo isPrimary(Boolean isPrimary) { + this.isPrimary = isPrimary; + return this; + } + + /** + * Get isPrimary + * @return isPrimary + **/ + @ApiModelProperty(value = "") + public Boolean isIsPrimary() { + return isPrimary; + } + + public void setIsPrimary(Boolean isPrimary) { + this.isPrimary = isPrimary; + } + + public BgpConnectionInfo metro(String metro) { + this.metro = metro; + return this; + } + + /** + * Get metro + * @return metro + **/ + @ApiModelProperty(value = "") + public String getMetro() { + return metro; + } + + public void setMetro(String metro) { + this.metro = metro; + } + + public BgpConnectionInfo name(String name) { + this.name = name; + return this; + } + + /** + * Get name + * @return name + **/ + @ApiModelProperty(value = "") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public BgpConnectionInfo providerStatus(String providerStatus) { + this.providerStatus = providerStatus; + return this; + } + + /** + * Get providerStatus + * @return providerStatus + **/ + @ApiModelProperty(value = "") + public String getProviderStatus() { + return providerStatus; + } + + public void setProviderStatus(String providerStatus) { + this.providerStatus = providerStatus; + } + + public BgpConnectionInfo redundantConnection(BgpConnectionInfo redundantConnection) { + this.redundantConnection = redundantConnection; + return this; + } + + /** + * Get redundantConnection + * @return redundantConnection + **/ + @ApiModelProperty(value = "") + public BgpConnectionInfo getRedundantConnection() { + return redundantConnection; + } + + public void setRedundantConnection(BgpConnectionInfo redundantConnection) { + this.redundantConnection = redundantConnection; + } + + public BgpConnectionInfo redundantUUID(String redundantUUID) { + this.redundantUUID = redundantUUID; + return this; + } + + /** + * Get redundantUUID + * @return redundantUUID + **/ + @ApiModelProperty(value = "") + public String getRedundantUUID() { + return redundantUUID; + } + + public void setRedundantUUID(String redundantUUID) { + this.redundantUUID = redundantUUID; + } + + public BgpConnectionInfo sellerOrganizationName(String sellerOrganizationName) { + this.sellerOrganizationName = sellerOrganizationName; + return this; + } + + /** + * Get sellerOrganizationName + * @return sellerOrganizationName + **/ + @ApiModelProperty(value = "") + public String getSellerOrganizationName() { + return sellerOrganizationName; + } + + public void setSellerOrganizationName(String sellerOrganizationName) { + this.sellerOrganizationName = sellerOrganizationName; + } + + public BgpConnectionInfo status(String status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + **/ + @ApiModelProperty(value = "") + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public BgpConnectionInfo uuid(String uuid) { + this.uuid = uuid; + return this; + } + + /** + * Get uuid + * @return uuid + **/ + @ApiModelProperty(value = "") + public String getUuid() { + return uuid; + } + + public void setUuid(String uuid) { + this.uuid = uuid; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BgpConnectionInfo bgpConnectionInfo = (BgpConnectionInfo) o; + return Objects.equals(this.bgpStatus, bgpConnectionInfo.bgpStatus) && + Objects.equals(this.isPrimary, bgpConnectionInfo.isPrimary) && + Objects.equals(this.metro, bgpConnectionInfo.metro) && + Objects.equals(this.name, bgpConnectionInfo.name) && + Objects.equals(this.providerStatus, bgpConnectionInfo.providerStatus) && + Objects.equals(this.redundantConnection, bgpConnectionInfo.redundantConnection) && + Objects.equals(this.redundantUUID, bgpConnectionInfo.redundantUUID) && + Objects.equals(this.sellerOrganizationName, bgpConnectionInfo.sellerOrganizationName) && + Objects.equals(this.status, bgpConnectionInfo.status) && + Objects.equals(this.uuid, bgpConnectionInfo.uuid); + } + + @Override + public int hashCode() { + return Objects.hash(bgpStatus, isPrimary, metro, name, providerStatus, redundantConnection, redundantUUID, sellerOrganizationName, status, uuid); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BgpConnectionInfo {\n"); + + sb.append(" bgpStatus: ").append(toIndentedString(bgpStatus)).append("\n"); + sb.append(" isPrimary: ").append(toIndentedString(isPrimary)).append("\n"); + sb.append(" metro: ").append(toIndentedString(metro)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" providerStatus: ").append(toIndentedString(providerStatus)).append("\n"); + sb.append(" redundantConnection: ").append(toIndentedString(redundantConnection)).append("\n"); + sb.append(" redundantUUID: ").append(toIndentedString(redundantUUID)).append("\n"); + sb.append(" sellerOrganizationName: ").append(toIndentedString(sellerOrganizationName)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/BgpInfo.java b/src/main/java/com/equinix/networkedge/model/BgpInfo.java new file mode 100644 index 0000000..3cf4b8a --- /dev/null +++ b/src/main/java/com/equinix/networkedge/model/BgpInfo.java @@ -0,0 +1,571 @@ +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; + +/** + * BgpInfo + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class BgpInfo { + @SerializedName("authenticationKey") + private String authenticationKey = null; + + @SerializedName("connectionUUID") + private String connectionUUID = null; + + @SerializedName("createdBy") + private String createdBy = null; + + @SerializedName("createdByEmail") + private String createdByEmail = null; + + @SerializedName("createdByFullName") + private String createdByFullName = null; + + @SerializedName("createdDate") + private String createdDate = null; + + @SerializedName("deletedBy") + private String deletedBy = null; + + @SerializedName("deletedByEmail") + private String deletedByEmail = null; + + @SerializedName("deletedByFullName") + private String deletedByFullName = null; + + @SerializedName("deletedDate") + private String deletedDate = null; + + @SerializedName("lastUpdatedBy") + private String lastUpdatedBy = null; + + @SerializedName("lastUpdatedByEmail") + private String lastUpdatedByEmail = null; + + @SerializedName("lastUpdatedByFullName") + private String lastUpdatedByFullName = null; + + @SerializedName("lastUpdatedDate") + private String lastUpdatedDate = null; + + @SerializedName("localAsn") + private Long localAsn = null; + + @SerializedName("localIpAddress") + private String localIpAddress = null; + + @SerializedName("provisioningStatus") + private String provisioningStatus = null; + + @SerializedName("remoteAsn") + private Long remoteAsn = null; + + @SerializedName("remoteIpAddress") + private String remoteIpAddress = null; + + @SerializedName("state") + private String state = null; + + @SerializedName("uuid") + private String uuid = null; + + @SerializedName("virtualDeviceUUID") + private String virtualDeviceUUID = null; + + public BgpInfo authenticationKey(String authenticationKey) { + this.authenticationKey = authenticationKey; + return this; + } + + /** + * Get authenticationKey + * @return authenticationKey + **/ + @ApiModelProperty(value = "") + public String getAuthenticationKey() { + return authenticationKey; + } + + public void setAuthenticationKey(String authenticationKey) { + this.authenticationKey = authenticationKey; + } + + public BgpInfo connectionUUID(String connectionUUID) { + this.connectionUUID = connectionUUID; + return this; + } + + /** + * Get connectionUUID + * @return connectionUUID + **/ + @ApiModelProperty(value = "") + public String getConnectionUUID() { + return connectionUUID; + } + + public void setConnectionUUID(String connectionUUID) { + this.connectionUUID = connectionUUID; + } + + public BgpInfo createdBy(String createdBy) { + this.createdBy = createdBy; + return this; + } + + /** + * Get createdBy + * @return createdBy + **/ + @ApiModelProperty(value = "") + public String getCreatedBy() { + return createdBy; + } + + public void setCreatedBy(String createdBy) { + this.createdBy = createdBy; + } + + public BgpInfo createdByEmail(String createdByEmail) { + this.createdByEmail = createdByEmail; + return this; + } + + /** + * Get createdByEmail + * @return createdByEmail + **/ + @ApiModelProperty(value = "") + public String getCreatedByEmail() { + return createdByEmail; + } + + public void setCreatedByEmail(String createdByEmail) { + this.createdByEmail = createdByEmail; + } + + public BgpInfo createdByFullName(String createdByFullName) { + this.createdByFullName = createdByFullName; + return this; + } + + /** + * Get createdByFullName + * @return createdByFullName + **/ + @ApiModelProperty(value = "") + public String getCreatedByFullName() { + return createdByFullName; + } + + public void setCreatedByFullName(String createdByFullName) { + this.createdByFullName = createdByFullName; + } + + public BgpInfo createdDate(String createdDate) { + this.createdDate = createdDate; + return this; + } + + /** + * Get createdDate + * @return createdDate + **/ + @ApiModelProperty(value = "") + public String getCreatedDate() { + return createdDate; + } + + public void setCreatedDate(String createdDate) { + this.createdDate = createdDate; + } + + public BgpInfo deletedBy(String deletedBy) { + this.deletedBy = deletedBy; + return this; + } + + /** + * Get deletedBy + * @return deletedBy + **/ + @ApiModelProperty(value = "") + public String getDeletedBy() { + return deletedBy; + } + + public void setDeletedBy(String deletedBy) { + this.deletedBy = deletedBy; + } + + public BgpInfo deletedByEmail(String deletedByEmail) { + this.deletedByEmail = deletedByEmail; + return this; + } + + /** + * Get deletedByEmail + * @return deletedByEmail + **/ + @ApiModelProperty(value = "") + public String getDeletedByEmail() { + return deletedByEmail; + } + + public void setDeletedByEmail(String deletedByEmail) { + this.deletedByEmail = deletedByEmail; + } + + public BgpInfo deletedByFullName(String deletedByFullName) { + this.deletedByFullName = deletedByFullName; + return this; + } + + /** + * Get deletedByFullName + * @return deletedByFullName + **/ + @ApiModelProperty(value = "") + public String getDeletedByFullName() { + return deletedByFullName; + } + + public void setDeletedByFullName(String deletedByFullName) { + this.deletedByFullName = deletedByFullName; + } + + public BgpInfo deletedDate(String deletedDate) { + this.deletedDate = deletedDate; + return this; + } + + /** + * Get deletedDate + * @return deletedDate + **/ + @ApiModelProperty(value = "") + public String getDeletedDate() { + return deletedDate; + } + + public void setDeletedDate(String deletedDate) { + this.deletedDate = deletedDate; + } + + public BgpInfo lastUpdatedBy(String lastUpdatedBy) { + this.lastUpdatedBy = lastUpdatedBy; + return this; + } + + /** + * Get lastUpdatedBy + * @return lastUpdatedBy + **/ + @ApiModelProperty(value = "") + public String getLastUpdatedBy() { + return lastUpdatedBy; + } + + public void setLastUpdatedBy(String lastUpdatedBy) { + this.lastUpdatedBy = lastUpdatedBy; + } + + public BgpInfo lastUpdatedByEmail(String lastUpdatedByEmail) { + this.lastUpdatedByEmail = lastUpdatedByEmail; + return this; + } + + /** + * Get lastUpdatedByEmail + * @return lastUpdatedByEmail + **/ + @ApiModelProperty(value = "") + public String getLastUpdatedByEmail() { + return lastUpdatedByEmail; + } + + public void setLastUpdatedByEmail(String lastUpdatedByEmail) { + this.lastUpdatedByEmail = lastUpdatedByEmail; + } + + public BgpInfo lastUpdatedByFullName(String lastUpdatedByFullName) { + this.lastUpdatedByFullName = lastUpdatedByFullName; + return this; + } + + /** + * Get lastUpdatedByFullName + * @return lastUpdatedByFullName + **/ + @ApiModelProperty(value = "") + public String getLastUpdatedByFullName() { + return lastUpdatedByFullName; + } + + public void setLastUpdatedByFullName(String lastUpdatedByFullName) { + this.lastUpdatedByFullName = lastUpdatedByFullName; + } + + public BgpInfo lastUpdatedDate(String lastUpdatedDate) { + this.lastUpdatedDate = lastUpdatedDate; + return this; + } + + /** + * Get lastUpdatedDate + * @return lastUpdatedDate + **/ + @ApiModelProperty(value = "") + public String getLastUpdatedDate() { + return lastUpdatedDate; + } + + public void setLastUpdatedDate(String lastUpdatedDate) { + this.lastUpdatedDate = lastUpdatedDate; + } + + public BgpInfo localAsn(Long localAsn) { + this.localAsn = localAsn; + return this; + } + + /** + * Get localAsn + * @return localAsn + **/ + @ApiModelProperty(value = "") + public Long getLocalAsn() { + return localAsn; + } + + public void setLocalAsn(Long localAsn) { + this.localAsn = localAsn; + } + + public BgpInfo localIpAddress(String localIpAddress) { + this.localIpAddress = localIpAddress; + return this; + } + + /** + * Get localIpAddress + * @return localIpAddress + **/ + @ApiModelProperty(value = "") + public String getLocalIpAddress() { + return localIpAddress; + } + + public void setLocalIpAddress(String localIpAddress) { + this.localIpAddress = localIpAddress; + } + + public BgpInfo provisioningStatus(String provisioningStatus) { + this.provisioningStatus = provisioningStatus; + return this; + } + + /** + * Get provisioningStatus + * @return provisioningStatus + **/ + @ApiModelProperty(value = "") + public String getProvisioningStatus() { + return provisioningStatus; + } + + public void setProvisioningStatus(String provisioningStatus) { + this.provisioningStatus = provisioningStatus; + } + + public BgpInfo remoteAsn(Long remoteAsn) { + this.remoteAsn = remoteAsn; + return this; + } + + /** + * Get remoteAsn + * @return remoteAsn + **/ + @ApiModelProperty(value = "") + public Long getRemoteAsn() { + return remoteAsn; + } + + public void setRemoteAsn(Long remoteAsn) { + this.remoteAsn = remoteAsn; + } + + public BgpInfo remoteIpAddress(String remoteIpAddress) { + this.remoteIpAddress = remoteIpAddress; + return this; + } + + /** + * Get remoteIpAddress + * @return remoteIpAddress + **/ + @ApiModelProperty(value = "") + public String getRemoteIpAddress() { + return remoteIpAddress; + } + + public void setRemoteIpAddress(String remoteIpAddress) { + this.remoteIpAddress = remoteIpAddress; + } + + public BgpInfo state(String state) { + this.state = state; + return this; + } + + /** + * Get state + * @return state + **/ + @ApiModelProperty(value = "") + public String getState() { + return state; + } + + public void setState(String state) { + this.state = state; + } + + public BgpInfo uuid(String uuid) { + this.uuid = uuid; + return this; + } + + /** + * Get uuid + * @return uuid + **/ + @ApiModelProperty(value = "") + public String getUuid() { + return uuid; + } + + public void setUuid(String uuid) { + this.uuid = uuid; + } + + public BgpInfo virtualDeviceUUID(String virtualDeviceUUID) { + this.virtualDeviceUUID = virtualDeviceUUID; + return this; + } + + /** + * Get virtualDeviceUUID + * @return virtualDeviceUUID + **/ + @ApiModelProperty(value = "") + public String getVirtualDeviceUUID() { + return virtualDeviceUUID; + } + + public void setVirtualDeviceUUID(String virtualDeviceUUID) { + this.virtualDeviceUUID = virtualDeviceUUID; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BgpInfo bgpInfo = (BgpInfo) o; + return Objects.equals(this.authenticationKey, bgpInfo.authenticationKey) && + Objects.equals(this.connectionUUID, bgpInfo.connectionUUID) && + Objects.equals(this.createdBy, bgpInfo.createdBy) && + Objects.equals(this.createdByEmail, bgpInfo.createdByEmail) && + Objects.equals(this.createdByFullName, bgpInfo.createdByFullName) && + Objects.equals(this.createdDate, bgpInfo.createdDate) && + Objects.equals(this.deletedBy, bgpInfo.deletedBy) && + Objects.equals(this.deletedByEmail, bgpInfo.deletedByEmail) && + Objects.equals(this.deletedByFullName, bgpInfo.deletedByFullName) && + Objects.equals(this.deletedDate, bgpInfo.deletedDate) && + Objects.equals(this.lastUpdatedBy, bgpInfo.lastUpdatedBy) && + Objects.equals(this.lastUpdatedByEmail, bgpInfo.lastUpdatedByEmail) && + Objects.equals(this.lastUpdatedByFullName, bgpInfo.lastUpdatedByFullName) && + Objects.equals(this.lastUpdatedDate, bgpInfo.lastUpdatedDate) && + Objects.equals(this.localAsn, bgpInfo.localAsn) && + Objects.equals(this.localIpAddress, bgpInfo.localIpAddress) && + Objects.equals(this.provisioningStatus, bgpInfo.provisioningStatus) && + Objects.equals(this.remoteAsn, bgpInfo.remoteAsn) && + Objects.equals(this.remoteIpAddress, bgpInfo.remoteIpAddress) && + Objects.equals(this.state, bgpInfo.state) && + Objects.equals(this.uuid, bgpInfo.uuid) && + Objects.equals(this.virtualDeviceUUID, bgpInfo.virtualDeviceUUID); + } + + @Override + public int hashCode() { + return Objects.hash(authenticationKey, connectionUUID, createdBy, createdByEmail, createdByFullName, createdDate, deletedBy, deletedByEmail, deletedByFullName, deletedDate, lastUpdatedBy, lastUpdatedByEmail, lastUpdatedByFullName, lastUpdatedDate, localAsn, localIpAddress, provisioningStatus, remoteAsn, remoteIpAddress, state, uuid, virtualDeviceUUID); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BgpInfo {\n"); + + sb.append(" authenticationKey: ").append(toIndentedString(authenticationKey)).append("\n"); + sb.append(" connectionUUID: ").append(toIndentedString(connectionUUID)).append("\n"); + sb.append(" createdBy: ").append(toIndentedString(createdBy)).append("\n"); + sb.append(" createdByEmail: ").append(toIndentedString(createdByEmail)).append("\n"); + sb.append(" createdByFullName: ").append(toIndentedString(createdByFullName)).append("\n"); + sb.append(" createdDate: ").append(toIndentedString(createdDate)).append("\n"); + sb.append(" deletedBy: ").append(toIndentedString(deletedBy)).append("\n"); + sb.append(" deletedByEmail: ").append(toIndentedString(deletedByEmail)).append("\n"); + sb.append(" deletedByFullName: ").append(toIndentedString(deletedByFullName)).append("\n"); + sb.append(" deletedDate: ").append(toIndentedString(deletedDate)).append("\n"); + sb.append(" lastUpdatedBy: ").append(toIndentedString(lastUpdatedBy)).append("\n"); + sb.append(" lastUpdatedByEmail: ").append(toIndentedString(lastUpdatedByEmail)).append("\n"); + sb.append(" lastUpdatedByFullName: ").append(toIndentedString(lastUpdatedByFullName)).append("\n"); + sb.append(" lastUpdatedDate: ").append(toIndentedString(lastUpdatedDate)).append("\n"); + sb.append(" localAsn: ").append(toIndentedString(localAsn)).append("\n"); + sb.append(" localIpAddress: ").append(toIndentedString(localIpAddress)).append("\n"); + sb.append(" provisioningStatus: ").append(toIndentedString(provisioningStatus)).append("\n"); + sb.append(" remoteAsn: ").append(toIndentedString(remoteAsn)).append("\n"); + sb.append(" remoteIpAddress: ").append(toIndentedString(remoteIpAddress)).append("\n"); + sb.append(" state: ").append(toIndentedString(state)).append("\n"); + sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n"); + sb.append(" virtualDeviceUUID: ").append(toIndentedString(virtualDeviceUUID)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/BgpUpdateRequest.java b/src/main/java/com/equinix/networkedge/model/BgpUpdateRequest.java new file mode 100644 index 0000000..e87b897 --- /dev/null +++ b/src/main/java/com/equinix/networkedge/model/BgpUpdateRequest.java @@ -0,0 +1,180 @@ +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; + +/** + * BgpUpdateRequest + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class BgpUpdateRequest { + @SerializedName("authenticationKey") + private String authenticationKey = null; + + @SerializedName("localAsn") + private Long localAsn = null; + + @SerializedName("localIpAddress") + private String localIpAddress = null; + + @SerializedName("remoteAsn") + private Long remoteAsn = null; + + @SerializedName("remoteIpAddress") + private String remoteIpAddress = null; + + public BgpUpdateRequest authenticationKey(String authenticationKey) { + this.authenticationKey = authenticationKey; + return this; + } + + /** + * Authentication Key + * @return authenticationKey + **/ + @ApiModelProperty(example = "pass123", value = "Authentication Key") + public String getAuthenticationKey() { + return authenticationKey; + } + + public void setAuthenticationKey(String authenticationKey) { + this.authenticationKey = authenticationKey; + } + + public BgpUpdateRequest localAsn(Long localAsn) { + this.localAsn = localAsn; + return this; + } + + /** + * Local ASN + * @return localAsn + **/ + @ApiModelProperty(example = "10012", value = "Local ASN") + public Long getLocalAsn() { + return localAsn; + } + + public void setLocalAsn(Long localAsn) { + this.localAsn = localAsn; + } + + public BgpUpdateRequest localIpAddress(String localIpAddress) { + this.localIpAddress = localIpAddress; + return this; + } + + /** + * Local IP Address with subnet + * @return localIpAddress + **/ + @ApiModelProperty(example = "100.210.1.221/30", value = "Local IP Address with subnet") + public String getLocalIpAddress() { + return localIpAddress; + } + + public void setLocalIpAddress(String localIpAddress) { + this.localIpAddress = localIpAddress; + } + + public BgpUpdateRequest remoteAsn(Long remoteAsn) { + this.remoteAsn = remoteAsn; + return this; + } + + /** + * Remote ASN + * @return remoteAsn + **/ + @ApiModelProperty(example = "10013", value = "Remote ASN") + public Long getRemoteAsn() { + return remoteAsn; + } + + public void setRemoteAsn(Long remoteAsn) { + this.remoteAsn = remoteAsn; + } + + public BgpUpdateRequest remoteIpAddress(String remoteIpAddress) { + this.remoteIpAddress = remoteIpAddress; + return this; + } + + /** + * Remote IP Address + * @return remoteIpAddress + **/ + @ApiModelProperty(example = "100.210.1.31", value = "Remote IP Address") + public String getRemoteIpAddress() { + return remoteIpAddress; + } + + public void setRemoteIpAddress(String remoteIpAddress) { + this.remoteIpAddress = remoteIpAddress; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BgpUpdateRequest bgpUpdateRequest = (BgpUpdateRequest) o; + return Objects.equals(this.authenticationKey, bgpUpdateRequest.authenticationKey) && + Objects.equals(this.localAsn, bgpUpdateRequest.localAsn) && + Objects.equals(this.localIpAddress, bgpUpdateRequest.localIpAddress) && + Objects.equals(this.remoteAsn, bgpUpdateRequest.remoteAsn) && + Objects.equals(this.remoteIpAddress, bgpUpdateRequest.remoteIpAddress); + } + + @Override + public int hashCode() { + return Objects.hash(authenticationKey, localAsn, localIpAddress, remoteAsn, remoteIpAddress); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BgpUpdateRequest {\n"); + + sb.append(" authenticationKey: ").append(toIndentedString(authenticationKey)).append("\n"); + sb.append(" localAsn: ").append(toIndentedString(localAsn)).append("\n"); + sb.append(" localIpAddress: ").append(toIndentedString(localIpAddress)).append("\n"); + sb.append(" remoteAsn: ").append(toIndentedString(remoteAsn)).append("\n"); + sb.append(" remoteIpAddress: ").append(toIndentedString(remoteIpAddress)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/BuyerConnectionResponse.java b/src/main/java/com/equinix/networkedge/model/BuyerConnectionResponse.java deleted file mode 100644 index 906249c..0000000 --- a/src/main/java/com/equinix/networkedge/model/BuyerConnectionResponse.java +++ /dev/null @@ -1,250 +0,0 @@ -/* - * The Apache License - * - * Copyright 2017 Equinix Inc. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. - */ -package com.equinix.networkedge.model; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.databind.JsonNode; -import lombok.AllArgsConstructor; -import lombok.Data; -import lombok.Getter; - -import java.util.List; - -/** - * @author aanchala 7/13/2018 - **/ -public @Data class BuyerConnectionResponse { - - @JsonProperty - private String buyerOrganizationName; - - @JsonProperty - private String uuid; - - @JsonProperty - private String name; - - @JsonProperty - private Integer vlanCTag; - - @JsonProperty - private Integer vlanSTag; - - @JsonProperty - private String portUUID; - - @JsonIgnore - private String portIbx; - - @JsonProperty - private String portName; - - @JsonProperty - private String asideEncapsulation; - - @JsonProperty - private String metroCode; - - @JsonProperty - private String metroDescription; - - @JsonProperty - private String state; - - @JsonProperty - private String status; - - @JsonProperty - private String billingTier; - - @JsonProperty - private String orderNumber; - - @JsonProperty - private String serviceOrderNumber; - - @JsonProperty - private String billingStatus; - - @JsonProperty - private String profileUUID; - - @JsonProperty - private String authorizationKey; - - @JsonProperty - private Integer speed; - - @JsonProperty - private SpeedUnit speedUnit; - - @JsonProperty - private String redundancyType; - - @JsonProperty - private String redundancyGroup; - - @JsonProperty - private String sellerRegion; - - @JsonProperty - private String sellerMetroCode; - - @JsonProperty - private String sellerMetroDescription; - - @JsonProperty - private String sellerServiceName; - - @JsonProperty - private String sellerServiceUUID; - - @JsonProperty - private String sellerOrganizationName; - - @JsonProperty( value = "zSidePortName") - private String zsidePortName; - - @JsonProperty( value = "zSidePortUUID") - private String zsidePortUUID; - - @JsonIgnore - private String zsidePortIbx; - - @JsonProperty( value = "zSideVlanCTag") - private Integer zsideVlanCTag; - - @JsonProperty( value = "zSideVlanSTag") - private Integer zsideVlanSTag; - - @JsonProperty( value = "remote") - private Boolean remote; - - @JsonProperty( value = "private") - private Boolean privateProfile; - - @JsonProperty( value = "self") - private Boolean self; - - @JsonProperty - private List notifications; - - @JsonProperty - private String purchaseOrderNumber; - - @JsonProperty - private String namedTag; - - @JsonProperty - private String manualCTag; // seller c tag - - @JsonProperty - private String sTag; - - @JsonProperty - private List additionalInfo; - - @JsonProperty - private JsonNode actionDetails; - - @JsonProperty - private JsonNode metadata; - - @JsonProperty - private String createdDate; - - @JsonProperty - private String createdBy; - - @JsonProperty - private String createdByFullName; - - @JsonProperty - private String createdByEmail; - - @JsonProperty - private String lastUpdatedBy; - - @JsonProperty - private String lastUpdatedDate; - - @JsonProperty - private String lastUpdatedByFullName; - - @JsonProperty - private String lastUpdatedByEmail; - - @JsonProperty - private String deletedBy; - - @JsonProperty - private String deletedDate; - - @JsonProperty - private String deletedByEmail; - - @JsonProperty(value = "rejectComment") - private String comments; - - @JsonProperty( value = "redundantUUID") - private String redundantUUID; - - - @JsonProperty - private Integer suggestedSecondaryZSideVlanCTag; - - @JsonProperty - private Integer suggestedPrimaryZSideVlanCTag; - - @JsonIgnore - private String globalCustId; - - public void setSpeedUnit(String speedUnit) { - if (speedUnit.equalsIgnoreCase(SpeedUnit.GB.getUnit())) this.speedUnit = SpeedUnit.GB; - if (speedUnit.equalsIgnoreCase(SpeedUnit.MB.getUnit())) this.speedUnit = SpeedUnit.MB; - } - - @JsonIgnoreProperties(ignoreUnknown=true) - @AllArgsConstructor - @Data - public static class AdditionalInfo { - private String name; - private String value; - } - - public enum SpeedUnit { - MB("MB"), GB("GB"); - - @Getter - private String unit; - - SpeedUnit(String unit) { - this.unit = unit; - } - } - - -} diff --git a/src/main/java/com/equinix/networkedge/model/BuyerPreferenceRequest.java b/src/main/java/com/equinix/networkedge/model/BuyerPreferenceRequest.java deleted file mode 100644 index 0d50308..0000000 --- a/src/main/java/com/equinix/networkedge/model/BuyerPreferenceRequest.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * The Apache License - * - * Copyright 2017 Equinix Inc. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. - */ -package com.equinix.networkedge.model; - -import lombok.Data; - -import java.util.List; - -/** - * @author aanchala 7/13/2018 - **/ -public @Data class BuyerPreferenceRequest { - - private List emails; - private String portThreshold; - -} diff --git a/src/main/java/com/equinix/networkedge/model/BuyerPreferenceResponse.java b/src/main/java/com/equinix/networkedge/model/BuyerPreferenceResponse.java deleted file mode 100644 index a334847..0000000 --- a/src/main/java/com/equinix/networkedge/model/BuyerPreferenceResponse.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * The Apache License - * - * Copyright 2017 Equinix Inc. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. - */ -package com.equinix.networkedge.model; - -import lombok.Data; - -import java.util.List; - -/** - * @author aanchala 7/13/2018 - **/ -public @Data class BuyerPreferenceResponse { - private List emails; - private String portThreshold; -} diff --git a/src/main/java/com/equinix/networkedge/model/BuyerResponse.java b/src/main/java/com/equinix/networkedge/model/BuyerResponse.java deleted file mode 100644 index e7868e0..0000000 --- a/src/main/java/com/equinix/networkedge/model/BuyerResponse.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * The Apache License - * - * Copyright 2017 Equinix Inc. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. - */ -package com.equinix.networkedge.model; - -import lombok.Data; - -import java.util.List; - -/** - * @author aanchala 7/13/2018 - **/ -public @Data class BuyerResponse { - - private String pageSize; - private List content; -} diff --git a/src/main/java/com/equinix/networkedge/model/Charges.java b/src/main/java/com/equinix/networkedge/model/Charges.java new file mode 100644 index 0000000..122ce1e --- /dev/null +++ b/src/main/java/com/equinix/networkedge/model/Charges.java @@ -0,0 +1,111 @@ +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; + +/** + * Charges + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class Charges { + @SerializedName("description") + private String description = null; + + @SerializedName("monthlyRecurringCharges") + private String monthlyRecurringCharges = null; + + public Charges description(String description) { + this.description = description; + return this; + } + + /** + * Description of the charge, whether it is for the virtual device, the device license, or the additional bandwidth + * @return description + **/ + @ApiModelProperty(value = "Description of the charge, whether it is for the virtual device, the device license, or the additional bandwidth") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Charges monthlyRecurringCharges(String monthlyRecurringCharges) { + this.monthlyRecurringCharges = monthlyRecurringCharges; + return this; + } + + /** + * Monthly charges + * @return monthlyRecurringCharges + **/ + @ApiModelProperty(value = "Monthly charges") + public String getMonthlyRecurringCharges() { + return monthlyRecurringCharges; + } + + public void setMonthlyRecurringCharges(String monthlyRecurringCharges) { + this.monthlyRecurringCharges = monthlyRecurringCharges; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Charges charges = (Charges) o; + return Objects.equals(this.description, charges.description) && + Objects.equals(this.monthlyRecurringCharges, charges.monthlyRecurringCharges); + } + + @Override + public int hashCode() { + return Objects.hash(description, monthlyRecurringCharges); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Charges {\n"); + + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" monthlyRecurringCharges: ").append(toIndentedString(monthlyRecurringCharges)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/CompositePriceResponse.java b/src/main/java/com/equinix/networkedge/model/CompositePriceResponse.java new file mode 100644 index 0000000..3085944 --- /dev/null +++ b/src/main/java/com/equinix/networkedge/model/CompositePriceResponse.java @@ -0,0 +1,135 @@ +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; + +/** + * CompositePriceResponse + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class CompositePriceResponse { + @SerializedName("primary") + private PriceResponse primary = null; + + @SerializedName("secondary") + private PriceResponse secondary = null; + + @SerializedName("termLength") + private String termLength = null; + + public CompositePriceResponse primary(PriceResponse primary) { + this.primary = primary; + return this; + } + + /** + * Get primary + * @return primary + **/ + @ApiModelProperty(value = "") + public PriceResponse getPrimary() { + return primary; + } + + public void setPrimary(PriceResponse primary) { + this.primary = primary; + } + + public CompositePriceResponse secondary(PriceResponse secondary) { + this.secondary = secondary; + return this; + } + + /** + * Get secondary + * @return secondary + **/ + @ApiModelProperty(value = "") + public PriceResponse getSecondary() { + return secondary; + } + + public void setSecondary(PriceResponse secondary) { + this.secondary = secondary; + } + + public CompositePriceResponse termLength(String termLength) { + this.termLength = termLength; + return this; + } + + /** + * Get termLength + * @return termLength + **/ + @ApiModelProperty(example = "24", value = "") + public String getTermLength() { + return termLength; + } + + public void setTermLength(String termLength) { + this.termLength = termLength; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CompositePriceResponse compositePriceResponse = (CompositePriceResponse) o; + return Objects.equals(this.primary, compositePriceResponse.primary) && + Objects.equals(this.secondary, compositePriceResponse.secondary) && + Objects.equals(this.termLength, compositePriceResponse.termLength); + } + + @Override + public int hashCode() { + return Objects.hash(primary, secondary, termLength); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CompositePriceResponse {\n"); + + sb.append(" primary: ").append(toIndentedString(primary)).append("\n"); + sb.append(" secondary: ").append(toIndentedString(secondary)).append("\n"); + sb.append(" termLength: ").append(toIndentedString(termLength)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/Connection.java b/src/main/java/com/equinix/networkedge/model/Connection.java deleted file mode 100644 index 0effe0f..0000000 --- a/src/main/java/com/equinix/networkedge/model/Connection.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * The Apache License - * - * Copyright 2017 Equinix Inc. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. - */ -package com.equinix.networkedge.model; - -import lombok.Data; - -import java.util.ArrayList; -import java.util.List; - -/** - * @author aanchala 7/13/2018 - **/ -public @Data class Connection { - - private String id = null; - private String name = null; - private String connection_type = null; - private String buyer_port_name = null; - private String seller_service_name = null; - private String service_key = null; - private String aws_account = null; - private String digital_authorization_key = null; - private String buyer_vlan_id = null; - private String speed = null; - private String state = null; - private String status = null; - private String created_date = null; - private String created_by = null; - private List notification_contacts = new ArrayList(); - private String seller_port_name = null; - private String seller_vlan_id = null; - private String metro_code = null; - private String metro_name = null; - private String ibx_name = null; - private String redundant_id = null; - private String instance_id = null; - private String instance_speed = null; - private String billing_tier = null; - private String equinix_bgp_asn = null; - private String equinix_peer_ip = null; - private String buyer_bgp_asn = null; - private String buyer_peer_ip = null; - private String bgp_authentication_key = null; - private String named_tag = null; - private List metadata = new ArrayList(); - private String purchase_order_no = null; - private String buyer_public_prefixes = null; -} diff --git a/src/main/java/com/equinix/networkedge/model/ConnectionList.java b/src/main/java/com/equinix/networkedge/model/ConnectionList.java new file mode 100644 index 0000000..d8386d0 --- /dev/null +++ b/src/main/java/com/equinix/networkedge/model/ConnectionList.java @@ -0,0 +1,296 @@ +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; +import com.equinix.networkedge.model.ConnectionList; + +/** + * ConnectionList + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class ConnectionList { + @SerializedName("interfaceUuid") + private String interfaceUuid = null; + + @SerializedName("isPrimary") + private Boolean isPrimary = null; + + @SerializedName("metro") + private String metro = null; + + @SerializedName("name") + private String name = null; + + @SerializedName("redundantConnection") + private ConnectionList redundantConnection = null; + + @SerializedName("redundantUuid") + private String redundantUuid = null; + + @SerializedName("sellerOrganizationName") + private String sellerOrganizationName = null; + + @SerializedName("state") + private String state = null; + + @SerializedName("status") + private String status = null; + + @SerializedName("uuid") + private String uuid = null; + + public ConnectionList interfaceUuid(String interfaceUuid) { + this.interfaceUuid = interfaceUuid; + return this; + } + + /** + * Get interfaceUuid + * @return interfaceUuid + **/ + @ApiModelProperty(value = "") + public String getInterfaceUuid() { + return interfaceUuid; + } + + public void setInterfaceUuid(String interfaceUuid) { + this.interfaceUuid = interfaceUuid; + } + + public ConnectionList isPrimary(Boolean isPrimary) { + this.isPrimary = isPrimary; + return this; + } + + /** + * Get isPrimary + * @return isPrimary + **/ + @ApiModelProperty(value = "") + public Boolean isIsPrimary() { + return isPrimary; + } + + public void setIsPrimary(Boolean isPrimary) { + this.isPrimary = isPrimary; + } + + public ConnectionList metro(String metro) { + this.metro = metro; + return this; + } + + /** + * Get metro + * @return metro + **/ + @ApiModelProperty(value = "") + public String getMetro() { + return metro; + } + + public void setMetro(String metro) { + this.metro = metro; + } + + public ConnectionList name(String name) { + this.name = name; + return this; + } + + /** + * Get name + * @return name + **/ + @ApiModelProperty(value = "") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public ConnectionList redundantConnection(ConnectionList redundantConnection) { + this.redundantConnection = redundantConnection; + return this; + } + + /** + * Get redundantConnection + * @return redundantConnection + **/ + @ApiModelProperty(value = "") + public ConnectionList getRedundantConnection() { + return redundantConnection; + } + + public void setRedundantConnection(ConnectionList redundantConnection) { + this.redundantConnection = redundantConnection; + } + + public ConnectionList redundantUuid(String redundantUuid) { + this.redundantUuid = redundantUuid; + return this; + } + + /** + * Get redundantUuid + * @return redundantUuid + **/ + @ApiModelProperty(value = "") + public String getRedundantUuid() { + return redundantUuid; + } + + public void setRedundantUuid(String redundantUuid) { + this.redundantUuid = redundantUuid; + } + + public ConnectionList sellerOrganizationName(String sellerOrganizationName) { + this.sellerOrganizationName = sellerOrganizationName; + return this; + } + + /** + * Get sellerOrganizationName + * @return sellerOrganizationName + **/ + @ApiModelProperty(value = "") + public String getSellerOrganizationName() { + return sellerOrganizationName; + } + + public void setSellerOrganizationName(String sellerOrganizationName) { + this.sellerOrganizationName = sellerOrganizationName; + } + + public ConnectionList state(String state) { + this.state = state; + return this; + } + + /** + * Get state + * @return state + **/ + @ApiModelProperty(value = "") + public String getState() { + return state; + } + + public void setState(String state) { + this.state = state; + } + + public ConnectionList status(String status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + **/ + @ApiModelProperty(value = "") + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public ConnectionList uuid(String uuid) { + this.uuid = uuid; + return this; + } + + /** + * Get uuid + * @return uuid + **/ + @ApiModelProperty(value = "") + public String getUuid() { + return uuid; + } + + public void setUuid(String uuid) { + this.uuid = uuid; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ConnectionList connectionList = (ConnectionList) o; + return Objects.equals(this.interfaceUuid, connectionList.interfaceUuid) && + Objects.equals(this.isPrimary, connectionList.isPrimary) && + Objects.equals(this.metro, connectionList.metro) && + Objects.equals(this.name, connectionList.name) && + Objects.equals(this.redundantConnection, connectionList.redundantConnection) && + Objects.equals(this.redundantUuid, connectionList.redundantUuid) && + Objects.equals(this.sellerOrganizationName, connectionList.sellerOrganizationName) && + Objects.equals(this.state, connectionList.state) && + Objects.equals(this.status, connectionList.status) && + Objects.equals(this.uuid, connectionList.uuid); + } + + @Override + public int hashCode() { + return Objects.hash(interfaceUuid, isPrimary, metro, name, redundantConnection, redundantUuid, sellerOrganizationName, state, status, uuid); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ConnectionList {\n"); + + sb.append(" interfaceUuid: ").append(toIndentedString(interfaceUuid)).append("\n"); + sb.append(" isPrimary: ").append(toIndentedString(isPrimary)).append("\n"); + sb.append(" metro: ").append(toIndentedString(metro)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" redundantConnection: ").append(toIndentedString(redundantConnection)).append("\n"); + sb.append(" redundantUuid: ").append(toIndentedString(redundantUuid)).append("\n"); + sb.append(" sellerOrganizationName: ").append(toIndentedString(sellerOrganizationName)).append("\n"); + sb.append(" state: ").append(toIndentedString(state)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/ConnectionRequest.java b/src/main/java/com/equinix/networkedge/model/ConnectionRequest.java deleted file mode 100644 index 0111cba..0000000 --- a/src/main/java/com/equinix/networkedge/model/ConnectionRequest.java +++ /dev/null @@ -1,151 +0,0 @@ -/* - * The Apache License - * - * Copyright 2017 Equinix Inc. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. - */ -package com.equinix.networkedge.model; - -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Data; -import lombok.Getter; -import org.hibernate.validator.constraints.NotEmpty; -import org.hibernate.validator.constraints.Range; - -import javax.validation.constraints.NotNull; -import javax.validation.constraints.Size; -import java.util.List; - -/** - * @author aanchala 7/13/2018 - **/ -public @Data class ConnectionRequest { - - - @JsonProperty - @NotNull - @NotEmpty - @Size(max = 24,message = "Max 24 characters are allowed for Primary Connection Name") - private String primaryName; - - @JsonProperty - @Range(min=2,max=4094, message = "Primary CTag must be between 2 and 4094") - private Integer primaryVlanCTag; - - @JsonProperty - @NotNull - @Range(min=2,max=4094, message = "Primary STag must be between 2 and 4094") - private Integer primaryVlanSTag; - - @JsonProperty - @NotNull - @NotEmpty - private String primaryPortUUID; - - @JsonProperty - @Size(max = 24,message = "Max 24 characters are allowed for Secondary Connection Name") - @NotEmpty // validate only when object is not null - private String secondaryName; - - @JsonProperty - @Range(min=2,max=4094) - private Integer secondaryVlanCTag; - - @JsonProperty - @Range(min=2,max=4094) - private Integer secondaryVlanSTag; - - @JsonProperty - private String secondaryPortUUID; - - @JsonProperty - @NotNull - private String profileUUID; - - @JsonProperty - private String authorizationKey; - - @JsonProperty - private Integer speed; - - @JsonProperty - private SpeedUnit speedUnit; - - @JsonProperty - private String primaryZSidePortUUID; - - @JsonProperty - @Range(min=2,max=4094) - private Integer primaryZSideVlanCTag; - - @JsonProperty - @Range(min=2,max=4094) - private Integer primaryZSideVlanSTag; - - @JsonProperty - @Range(min=2,max=4094, message = "Secondary CTag must be between 2 and 4094") - private Integer secondaryZSideVlanCTag; - - @JsonProperty - @Range(min=2,max=4094, message = "Secondary STag must be between 2 and 4094") - private Integer secondaryZSideVlanSTag; - - @JsonProperty - private String secondaryZSidePortUUID; - - @JsonProperty - private String sellerRegion; - - @JsonProperty - private String sellerMetroCode; - - @JsonProperty - @NotNull - private List notifications; - - @JsonProperty - @NotNull - @Size(max = 25) - private String purchaseOrderNumber; - - @JsonProperty - private String namedTag; - - @JsonProperty - private String manualCTag; // seller c tag - - @JsonProperty - private String sTag; // - - - public enum SpeedUnit { - MB("MB"), GB("GB"); - - @Getter - private String unit; - - SpeedUnit(String unit) { - this.unit = unit; - } - } - - - -} diff --git a/src/main/java/com/equinix/networkedge/model/ConnectionResponse.java b/src/main/java/com/equinix/networkedge/model/ConnectionResponse.java deleted file mode 100644 index 170ddcb..0000000 --- a/src/main/java/com/equinix/networkedge/model/ConnectionResponse.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * The Apache License - * - * Copyright 2017 Equinix Inc. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. - */ -package com.equinix.networkedge.model; - -import lombok.Data; - -/** - * @author aanchala 7/13/2018 - **/ -public @Data class ConnectionResponse { - - private String message; - private String primaryConnectionId; - private String secondaryConnectionId; - private String status; -} diff --git a/src/main/java/com/equinix/networkedge/model/Connections.java b/src/main/java/com/equinix/networkedge/model/Connections.java deleted file mode 100644 index 5f3608f..0000000 --- a/src/main/java/com/equinix/networkedge/model/Connections.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * The Apache License - * - * Copyright 2017 Equinix Inc. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. - */ -package com.equinix.networkedge.model; - -import lombok.Data; - -import java.util.ArrayList; -import java.util.List; - -/** - * @author aanchala 7/13/2018 - **/ -public @Data class Connections { - private List connections = new ArrayList(); - - public String toString() - { - StringBuilder sb = new StringBuilder(); - sb.append("class Connections {\n"); - - sb.append(" connections: ").append(this.connections).append("\n"); - sb.append("}\n"); - return sb.toString(); - } -} diff --git a/src/main/java/com/equinix/networkedge/model/CustomerInfo.java b/src/main/java/com/equinix/networkedge/model/CustomerInfo.java new file mode 100644 index 0000000..7625189 --- /dev/null +++ b/src/main/java/com/equinix/networkedge/model/CustomerInfo.java @@ -0,0 +1,203 @@ +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; + +/** + * CustomerInfo + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class CustomerInfo { + @SerializedName("city") + private String city = null; + + @SerializedName("country") + private String country = null; + + @SerializedName("name") + private String name = null; + + @SerializedName("postalCode") + private String postalCode = null; + + @SerializedName("state") + private String state = null; + + @SerializedName("street") + private String street = null; + + public CustomerInfo city(String city) { + this.city = city; + return this; + } + + /** + * City + * @return city + **/ + @ApiModelProperty(example = "San Jose", value = "City") + public String getCity() { + return city; + } + + public void setCity(String city) { + this.city = city; + } + + public CustomerInfo country(String country) { + this.country = country; + return this; + } + + /** + * Country + * @return country + **/ + @ApiModelProperty(example = "USA", value = "Country") + public String getCountry() { + return country; + } + + public void setCountry(String country) { + this.country = country; + } + + public CustomerInfo name(String name) { + this.name = name; + return this; + } + + /** + * Customer name + * @return name + **/ + @ApiModelProperty(example = "Volta Mac", value = "Customer name") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public CustomerInfo postalCode(String postalCode) { + this.postalCode = postalCode; + return this; + } + + /** + * Postal code + * @return postalCode + **/ + @ApiModelProperty(example = "95131", value = "Postal code") + public String getPostalCode() { + return postalCode; + } + + public void setPostalCode(String postalCode) { + this.postalCode = postalCode; + } + + public CustomerInfo state(String state) { + this.state = state; + return this; + } + + /** + * State + * @return state + **/ + @ApiModelProperty(example = "CA", value = "State") + public String getState() { + return state; + } + + public void setState(String state) { + this.state = state; + } + + public CustomerInfo street(String street) { + this.street = street; + return this; + } + + /** + * Street + * @return street + **/ + @ApiModelProperty(example = "2000 Junesong Court", value = "Street") + public String getStreet() { + return street; + } + + public void setStreet(String street) { + this.street = street; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CustomerInfo customerInfo = (CustomerInfo) o; + return Objects.equals(this.city, customerInfo.city) && + Objects.equals(this.country, customerInfo.country) && + Objects.equals(this.name, customerInfo.name) && + Objects.equals(this.postalCode, customerInfo.postalCode) && + Objects.equals(this.state, customerInfo.state) && + Objects.equals(this.street, customerInfo.street); + } + + @Override + public int hashCode() { + return Objects.hash(city, country, name, postalCode, state, street); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CustomerInfo {\n"); + + sb.append(" city: ").append(toIndentedString(city)).append("\n"); + sb.append(" country: ").append(toIndentedString(country)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" postalCode: ").append(toIndentedString(postalCode)).append("\n"); + sb.append(" state: ").append(toIndentedString(state)).append("\n"); + sb.append(" street: ").append(toIndentedString(street)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/DatatypeENUM.java b/src/main/java/com/equinix/networkedge/model/DatatypeENUM.java deleted file mode 100644 index fbe38f8..0000000 --- a/src/main/java/com/equinix/networkedge/model/DatatypeENUM.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * The Apache License - * - * Copyright 2017 Equinix Inc. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. - */ -package com.equinix.networkedge.model; - -import java.util.regex.Pattern; - -public enum DatatypeENUM { - - INTEGER("INTEGER", "^[0-9]{0,10}+$"), - BOOLEAN("BOOLEAN", "^(true|false){1}$"), - LONG("LONG", "^[0-9]{0,19}+$"), - FLOAT("FLOAT", "^[0-9]+\\.{1}[0-9]{0,10}+$"), - DOUBLE("DOUBLE", "^[0-9]+\\.{1}[0-9]{0,10}+$"), - STRING("STRING", "(.*)"); - - String value; - Pattern pattern; - - /** - * Constructor - * - * @param value - */ - DatatypeENUM(String value, String pattern) { - this.value = value; - this.pattern = Pattern.compile(pattern); - } - - /** - * API to get value - * - * @return - */ - public String getValue() { - return value; - } - - /** - * - * @param input - * @return - */ - public boolean isValidInput(String input){ - return this.pattern.matcher( input ).find(); - } -} diff --git a/src/main/java/com/equinix/networkedge/model/DeleteConnectionResponse.java b/src/main/java/com/equinix/networkedge/model/DeleteConnectionResponse.java new file mode 100644 index 0000000..c3206ee --- /dev/null +++ b/src/main/java/com/equinix/networkedge/model/DeleteConnectionResponse.java @@ -0,0 +1,111 @@ +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; + +/** + * DeleteConnectionResponse + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class DeleteConnectionResponse { + @SerializedName("message") + private String message = null; + + @SerializedName("primaryConnectionId") + private String primaryConnectionId = null; + + public DeleteConnectionResponse message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(example = "Message", value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public DeleteConnectionResponse primaryConnectionId(String primaryConnectionId) { + this.primaryConnectionId = primaryConnectionId; + return this; + } + + /** + * Get primaryConnectionId + * @return primaryConnectionId + **/ + @ApiModelProperty(example = "xxxxx191-xx70-xxxx-xx04-xxxxxxxa37xx", value = "") + public String getPrimaryConnectionId() { + return primaryConnectionId; + } + + public void setPrimaryConnectionId(String primaryConnectionId) { + this.primaryConnectionId = primaryConnectionId; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DeleteConnectionResponse deleteConnectionResponse = (DeleteConnectionResponse) o; + return Objects.equals(this.message, deleteConnectionResponse.message) && + Objects.equals(this.primaryConnectionId, deleteConnectionResponse.primaryConnectionId); + } + + @Override + public int hashCode() { + return Objects.hash(message, primaryConnectionId); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteConnectionResponse {\n"); + + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" primaryConnectionId: ").append(toIndentedString(primaryConnectionId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/EnabledFeatures.java b/src/main/java/com/equinix/networkedge/model/EnabledFeatures.java deleted file mode 100644 index fa173ea..0000000 --- a/src/main/java/com/equinix/networkedge/model/EnabledFeatures.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * The Apache License - * - * Copyright 2017 Equinix Inc. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. - */ -package com.equinix.networkedge.model; - -import lombok.Data; - -import java.io.Serializable; - -/** - * Class for Enable Feature - */ - -public @Data class EnabledFeatures implements Serializable { - - private static final long serialVersionUID = 1L; - - private Boolean cloudReach; - - private Boolean testProfile; - -} diff --git a/src/main/java/com/equinix/networkedge/model/ErrorMessageResponse.java b/src/main/java/com/equinix/networkedge/model/ErrorMessageResponse.java new file mode 100644 index 0000000..64bd993 --- /dev/null +++ b/src/main/java/com/equinix/networkedge/model/ErrorMessageResponse.java @@ -0,0 +1,157 @@ +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; + +/** + * ErrorMessageResponse + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class ErrorMessageResponse { + @SerializedName("errorCode") + private String errorCode = null; + + @SerializedName("errorMessage") + private String errorMessage = null; + + @SerializedName("moreInfo") + private String moreInfo = null; + + @SerializedName("property") + private String property = null; + + public ErrorMessageResponse errorCode(String errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public String getErrorCode() { + return errorCode; + } + + public void setErrorCode(String errorCode) { + this.errorCode = errorCode; + } + + public ErrorMessageResponse errorMessage(String errorMessage) { + this.errorMessage = errorMessage; + return this; + } + + /** + * Get errorMessage + * @return errorMessage + **/ + @ApiModelProperty(value = "") + public String getErrorMessage() { + return errorMessage; + } + + public void setErrorMessage(String errorMessage) { + this.errorMessage = errorMessage; + } + + public ErrorMessageResponse moreInfo(String moreInfo) { + this.moreInfo = moreInfo; + return this; + } + + /** + * Get moreInfo + * @return moreInfo + **/ + @ApiModelProperty(value = "") + public String getMoreInfo() { + return moreInfo; + } + + public void setMoreInfo(String moreInfo) { + this.moreInfo = moreInfo; + } + + public ErrorMessageResponse property(String property) { + this.property = property; + return this; + } + + /** + * Get property + * @return property + **/ + @ApiModelProperty(value = "") + public String getProperty() { + return property; + } + + public void setProperty(String property) { + this.property = property; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ErrorMessageResponse errorMessageResponse = (ErrorMessageResponse) o; + return Objects.equals(this.errorCode, errorMessageResponse.errorCode) && + Objects.equals(this.errorMessage, errorMessageResponse.errorMessage) && + Objects.equals(this.moreInfo, errorMessageResponse.moreInfo) && + Objects.equals(this.property, errorMessageResponse.property); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, errorMessage, moreInfo, property); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ErrorMessageResponse {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" errorMessage: ").append(toIndentedString(errorMessage)).append("\n"); + sb.append(" moreInfo: ").append(toIndentedString(moreInfo)).append("\n"); + sb.append(" property: ").append(toIndentedString(property)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/ErrorResponse.java b/src/main/java/com/equinix/networkedge/model/ErrorResponse.java new file mode 100644 index 0000000..ffab193 --- /dev/null +++ b/src/main/java/com/equinix/networkedge/model/ErrorResponse.java @@ -0,0 +1,157 @@ +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; + +/** + * ErrorResponse + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class ErrorResponse { + @SerializedName("errorCode") + private String errorCode = null; + + @SerializedName("errorMessage") + private String errorMessage = null; + + @SerializedName("moreInfo") + private String moreInfo = null; + + @SerializedName("property") + private String property = null; + + public ErrorResponse errorCode(String errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(example = "ErrorCode", value = "") + public String getErrorCode() { + return errorCode; + } + + public void setErrorCode(String errorCode) { + this.errorCode = errorCode; + } + + public ErrorResponse errorMessage(String errorMessage) { + this.errorMessage = errorMessage; + return this; + } + + /** + * Get errorMessage + * @return errorMessage + **/ + @ApiModelProperty(example = "Error message", value = "") + public String getErrorMessage() { + return errorMessage; + } + + public void setErrorMessage(String errorMessage) { + this.errorMessage = errorMessage; + } + + public ErrorResponse moreInfo(String moreInfo) { + this.moreInfo = moreInfo; + return this; + } + + /** + * Get moreInfo + * @return moreInfo + **/ + @ApiModelProperty(example = "More Info", value = "") + public String getMoreInfo() { + return moreInfo; + } + + public void setMoreInfo(String moreInfo) { + this.moreInfo = moreInfo; + } + + public ErrorResponse property(String property) { + this.property = property; + return this; + } + + /** + * Get property + * @return property + **/ + @ApiModelProperty(example = "Property", value = "") + public String getProperty() { + return property; + } + + public void setProperty(String property) { + this.property = property; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ErrorResponse errorResponse = (ErrorResponse) o; + return Objects.equals(this.errorCode, errorResponse.errorCode) && + Objects.equals(this.errorMessage, errorResponse.errorMessage) && + Objects.equals(this.moreInfo, errorResponse.moreInfo) && + Objects.equals(this.property, errorResponse.property); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, errorMessage, moreInfo, property); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ErrorResponse {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" errorMessage: ").append(toIndentedString(errorMessage)).append("\n"); + sb.append(" moreInfo: ").append(toIndentedString(moreInfo)).append("\n"); + sb.append(" property: ").append(toIndentedString(property)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/ErrorResponseArray.java b/src/main/java/com/equinix/networkedge/model/ErrorResponseArray.java new file mode 100644 index 0000000..de62604 --- /dev/null +++ b/src/main/java/com/equinix/networkedge/model/ErrorResponseArray.java @@ -0,0 +1,65 @@ +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.equinix.networkedge.model.ErrorResponse; +import java.util.ArrayList; + +/** + * ErrorResponseArray + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class ErrorResponseArray extends ArrayList { + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + return super.equals(o); + } + + @Override + public int hashCode() { + return Objects.hash(super.hashCode()); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ErrorResponseArray {\n"); + sb.append(" ").append(toIndentedString(super.toString())).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/FieldErrorResponse.java b/src/main/java/com/equinix/networkedge/model/FieldErrorResponse.java new file mode 100644 index 0000000..ab44f6c --- /dev/null +++ b/src/main/java/com/equinix/networkedge/model/FieldErrorResponse.java @@ -0,0 +1,180 @@ +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; + +/** + * FieldErrorResponse + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class FieldErrorResponse { + @SerializedName("errorCode") + private String errorCode = null; + + @SerializedName("errorMessage") + private String errorMessage = null; + + @SerializedName("moreInfo") + private String moreInfo = null; + + @SerializedName("property") + private String property = null; + + @SerializedName("status") + private String status = null; + + public FieldErrorResponse errorCode(String errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public String getErrorCode() { + return errorCode; + } + + public void setErrorCode(String errorCode) { + this.errorCode = errorCode; + } + + public FieldErrorResponse errorMessage(String errorMessage) { + this.errorMessage = errorMessage; + return this; + } + + /** + * Get errorMessage + * @return errorMessage + **/ + @ApiModelProperty(value = "") + public String getErrorMessage() { + return errorMessage; + } + + public void setErrorMessage(String errorMessage) { + this.errorMessage = errorMessage; + } + + public FieldErrorResponse moreInfo(String moreInfo) { + this.moreInfo = moreInfo; + return this; + } + + /** + * Get moreInfo + * @return moreInfo + **/ + @ApiModelProperty(value = "") + public String getMoreInfo() { + return moreInfo; + } + + public void setMoreInfo(String moreInfo) { + this.moreInfo = moreInfo; + } + + public FieldErrorResponse property(String property) { + this.property = property; + return this; + } + + /** + * Get property + * @return property + **/ + @ApiModelProperty(value = "") + public String getProperty() { + return property; + } + + public void setProperty(String property) { + this.property = property; + } + + public FieldErrorResponse status(String status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + **/ + @ApiModelProperty(value = "") + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FieldErrorResponse fieldErrorResponse = (FieldErrorResponse) o; + return Objects.equals(this.errorCode, fieldErrorResponse.errorCode) && + Objects.equals(this.errorMessage, fieldErrorResponse.errorMessage) && + Objects.equals(this.moreInfo, fieldErrorResponse.moreInfo) && + Objects.equals(this.property, fieldErrorResponse.property) && + Objects.equals(this.status, fieldErrorResponse.status); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, errorMessage, moreInfo, property, status); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FieldErrorResponse {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" errorMessage: ").append(toIndentedString(errorMessage)).append("\n"); + sb.append(" moreInfo: ").append(toIndentedString(moreInfo)).append("\n"); + sb.append(" property: ").append(toIndentedString(property)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/GETConnectionByUUidResponse.java b/src/main/java/com/equinix/networkedge/model/GETConnectionByUUidResponse.java new file mode 100644 index 0000000..b9dcf16 --- /dev/null +++ b/src/main/java/com/equinix/networkedge/model/GETConnectionByUUidResponse.java @@ -0,0 +1,1019 @@ +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; + +import java.util.ArrayList; +import java.util.List; + +/** + * GETConnectionByUUidResponse + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class GETConnectionByUUidResponse { + @SerializedName("buyerOrganizationName") + private String buyerOrganizationName = null; + + @SerializedName("uuid") + private String uuid = null; + + @SerializedName("name") + private String name = null; + + @SerializedName("vlanSTag") + private Integer vlanSTag = null; + + @SerializedName("portUUID") + private String portUUID = null; + + @SerializedName("portName") + private String portName = null; + + @SerializedName("asideEncapsulation") + private String asideEncapsulation = null; + + @SerializedName("metroCode") + private String metroCode = null; + + @SerializedName("metroDescription") + private String metroDescription = null; + + @SerializedName("providerStatus") + private String providerStatus = null; + + @SerializedName("status") + private String status = null; + + @SerializedName("billingTier") + private String billingTier = null; + + @SerializedName("authorizationKey") + private String authorizationKey = null; + + @SerializedName("speed") + private Integer speed = null; + + @SerializedName("speedUnit") + private String speedUnit = null; + + @SerializedName("redundancyType") + private String redundancyType = null; + + @SerializedName("redundancyGroup") + private String redundancyGroup = null; + + @SerializedName("sellerMetroCode") + private String sellerMetroCode = null; + + @SerializedName("sellerMetroDescription") + private String sellerMetroDescription = null; + + @SerializedName("sellerServiceName") + private String sellerServiceName = null; + + @SerializedName("sellerServiceUUID") + private String sellerServiceUUID = null; + + @SerializedName("sellerOrganizationName") + private String sellerOrganizationName = null; + + @SerializedName("notifications") + private List notifications = null; + + @SerializedName("purchaseOrderNumber") + private String purchaseOrderNumber = null; + + @SerializedName("namedTag") + private String namedTag = null; + + @SerializedName("createdDate") + private String createdDate = null; + + @SerializedName("createdBy") + private String createdBy = null; + + @SerializedName("createdByFullName") + private String createdByFullName = null; + + @SerializedName("createdByEmail") + private String createdByEmail = null; + + @SerializedName("lastUpdatedBy") + private String lastUpdatedBy = null; + + @SerializedName("lastUpdatedDate") + private String lastUpdatedDate = null; + + @SerializedName("lastUpdatedByFullName") + private String lastUpdatedByFullName = null; + + @SerializedName("lastUpdatedByEmail") + private String lastUpdatedByEmail = null; + + @SerializedName("zSidePortName") + private String zSidePortName = null; + + @SerializedName("zSidePortUUID") + private String zSidePortUUID = null; + + @SerializedName("zSideVlanCTag") + private Integer zSideVlanCTag = null; + + @SerializedName("zSideVlanSTag") + private Integer zSideVlanSTag = null; + + @SerializedName("remote") + private Boolean remote = null; + + @SerializedName("private") + private Boolean _private = null; + + @SerializedName("self") + private Boolean self = null; + + @SerializedName("redundantUUID") + private String redundantUUID = null; + + public GETConnectionByUUidResponse buyerOrganizationName(String buyerOrganizationName) { + this.buyerOrganizationName = buyerOrganizationName; + return this; + } + + /** + * Get buyerOrganizationName + * @return buyerOrganizationName + **/ + @ApiModelProperty(example = "Forsythe Solutions Group, Inc.", value = "") + public String getBuyerOrganizationName() { + return buyerOrganizationName; + } + + public void setBuyerOrganizationName(String buyerOrganizationName) { + this.buyerOrganizationName = buyerOrganizationName; + } + + public GETConnectionByUUidResponse uuid(String uuid) { + this.uuid = uuid; + return this; + } + + /** + * Get uuid + * @return uuid + **/ + @ApiModelProperty(example = "xxxxx191-xx70-xxxx-xx04-xxxxxxxa37xx", value = "") + public String getUuid() { + return uuid; + } + + public void setUuid(String uuid) { + this.uuid = uuid; + } + + public GETConnectionByUUidResponse name(String name) { + this.name = name; + return this; + } + + /** + * Get name + * @return name + **/ + @ApiModelProperty(example = "Test-123", value = "") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public GETConnectionByUUidResponse vlanSTag(Integer vlanSTag) { + this.vlanSTag = vlanSTag; + return this; + } + + /** + * Get vlanSTag + * @return vlanSTag + **/ + @ApiModelProperty(example = "1015", value = "") + public Integer getVlanSTag() { + return vlanSTag; + } + + public void setVlanSTag(Integer vlanSTag) { + this.vlanSTag = vlanSTag; + } + + public GETConnectionByUUidResponse portUUID(String portUUID) { + this.portUUID = portUUID; + return this; + } + + /** + * Get portUUID + * @return portUUID + **/ + @ApiModelProperty(example = "xxxxx191-xx70-xxxx-xx04-xxxxxxxa37xx", value = "") + public String getPortUUID() { + return portUUID; + } + + public void setPortUUID(String portUUID) { + this.portUUID = portUUID; + } + + public GETConnectionByUUidResponse portName(String portName) { + this.portName = portName; + return this; + } + + /** + * Get portName + * @return portName + **/ + @ApiModelProperty(example = "TEST-CH2-CX-SEC-01", value = "") + public String getPortName() { + return portName; + } + + public void setPortName(String portName) { + this.portName = portName; + } + + public GETConnectionByUUidResponse asideEncapsulation(String asideEncapsulation) { + this.asideEncapsulation = asideEncapsulation; + return this; + } + + /** + * Get asideEncapsulation + * @return asideEncapsulation + **/ + @ApiModelProperty(example = "dot1q", value = "") + public String getAsideEncapsulation() { + return asideEncapsulation; + } + + public void setAsideEncapsulation(String asideEncapsulation) { + this.asideEncapsulation = asideEncapsulation; + } + + public GETConnectionByUUidResponse metroCode(String metroCode) { + this.metroCode = metroCode; + return this; + } + + /** + * Get metroCode + * @return metroCode + **/ + @ApiModelProperty(example = "CH", value = "") + public String getMetroCode() { + return metroCode; + } + + public void setMetroCode(String metroCode) { + this.metroCode = metroCode; + } + + public GETConnectionByUUidResponse metroDescription(String metroDescription) { + this.metroDescription = metroDescription; + return this; + } + + /** + * Get metroDescription + * @return metroDescription + **/ + @ApiModelProperty(example = "Chicago", value = "") + public String getMetroDescription() { + return metroDescription; + } + + public void setMetroDescription(String metroDescription) { + this.metroDescription = metroDescription; + } + + public GETConnectionByUUidResponse providerStatus(String providerStatus) { + this.providerStatus = providerStatus; + return this; + } + + /** + * Get providerStatus + * @return providerStatus + **/ + @ApiModelProperty(example = "PROVISIONED", value = "") + public String getProviderStatus() { + return providerStatus; + } + + public void setProviderStatus(String providerStatus) { + this.providerStatus = providerStatus; + } + + public GETConnectionByUUidResponse status(String status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + **/ + @ApiModelProperty(example = "PROVISIONED", value = "") + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public GETConnectionByUUidResponse billingTier(String billingTier) { + this.billingTier = billingTier; + return this; + } + + /** + * Get billingTier + * @return billingTier + **/ + @ApiModelProperty(example = "Up to 500MB", value = "") + public String getBillingTier() { + return billingTier; + } + + public void setBillingTier(String billingTier) { + this.billingTier = billingTier; + } + + public GETConnectionByUUidResponse authorizationKey(String authorizationKey) { + this.authorizationKey = authorizationKey; + return this; + } + + /** + * Get authorizationKey + * @return authorizationKey + **/ + @ApiModelProperty(example = "xxxxx191-xx70-xxxx-xx04-xxxxxxxa37xx", value = "") + public String getAuthorizationKey() { + return authorizationKey; + } + + public void setAuthorizationKey(String authorizationKey) { + this.authorizationKey = authorizationKey; + } + + public GETConnectionByUUidResponse speed(Integer speed) { + this.speed = speed; + return this; + } + + /** + * Get speed + * @return speed + **/ + @ApiModelProperty(example = "500", value = "") + public Integer getSpeed() { + return speed; + } + + public void setSpeed(Integer speed) { + this.speed = speed; + } + + public GETConnectionByUUidResponse speedUnit(String speedUnit) { + this.speedUnit = speedUnit; + return this; + } + + /** + * Get speedUnit + * @return speedUnit + **/ + @ApiModelProperty(example = "MB", value = "") + public String getSpeedUnit() { + return speedUnit; + } + + public void setSpeedUnit(String speedUnit) { + this.speedUnit = speedUnit; + } + + public GETConnectionByUUidResponse redundancyType(String redundancyType) { + this.redundancyType = redundancyType; + return this; + } + + /** + * Get redundancyType + * @return redundancyType + **/ + @ApiModelProperty(example = "secondary", value = "") + public String getRedundancyType() { + return redundancyType; + } + + public void setRedundancyType(String redundancyType) { + this.redundancyType = redundancyType; + } + + public GETConnectionByUUidResponse redundancyGroup(String redundancyGroup) { + this.redundancyGroup = redundancyGroup; + return this; + } + + /** + * Get redundancyGroup + * @return redundancyGroup + **/ + @ApiModelProperty(example = "xxxxx191-xx70-xxxx-xx04-xxxxxxxa37xx", value = "") + public String getRedundancyGroup() { + return redundancyGroup; + } + + public void setRedundancyGroup(String redundancyGroup) { + this.redundancyGroup = redundancyGroup; + } + + public GETConnectionByUUidResponse sellerMetroCode(String sellerMetroCode) { + this.sellerMetroCode = sellerMetroCode; + return this; + } + + /** + * Get sellerMetroCode + * @return sellerMetroCode + **/ + @ApiModelProperty(example = "CH", value = "") + public String getSellerMetroCode() { + return sellerMetroCode; + } + + public void setSellerMetroCode(String sellerMetroCode) { + this.sellerMetroCode = sellerMetroCode; + } + + public GETConnectionByUUidResponse sellerMetroDescription(String sellerMetroDescription) { + this.sellerMetroDescription = sellerMetroDescription; + return this; + } + + /** + * Get sellerMetroDescription + * @return sellerMetroDescription + **/ + @ApiModelProperty(example = "Chicago", value = "") + public String getSellerMetroDescription() { + return sellerMetroDescription; + } + + public void setSellerMetroDescription(String sellerMetroDescription) { + this.sellerMetroDescription = sellerMetroDescription; + } + + public GETConnectionByUUidResponse sellerServiceName(String sellerServiceName) { + this.sellerServiceName = sellerServiceName; + return this; + } + + /** + * Get sellerServiceName + * @return sellerServiceName + **/ + @ApiModelProperty(example = "XYZ Cloud Service", value = "") + public String getSellerServiceName() { + return sellerServiceName; + } + + public void setSellerServiceName(String sellerServiceName) { + this.sellerServiceName = sellerServiceName; + } + + public GETConnectionByUUidResponse sellerServiceUUID(String sellerServiceUUID) { + this.sellerServiceUUID = sellerServiceUUID; + return this; + } + + /** + * Get sellerServiceUUID + * @return sellerServiceUUID + **/ + @ApiModelProperty(example = "xxxxx191-xx70-xxxx-xx04-xxxxxxxa37xx", value = "") + public String getSellerServiceUUID() { + return sellerServiceUUID; + } + + public void setSellerServiceUUID(String sellerServiceUUID) { + this.sellerServiceUUID = sellerServiceUUID; + } + + public GETConnectionByUUidResponse sellerOrganizationName(String sellerOrganizationName) { + this.sellerOrganizationName = sellerOrganizationName; + return this; + } + + /** + * Get sellerOrganizationName + * @return sellerOrganizationName + **/ + @ApiModelProperty(example = "EQUINIX-CLOUD-EXCHANGE", value = "") + public String getSellerOrganizationName() { + return sellerOrganizationName; + } + + public void setSellerOrganizationName(String sellerOrganizationName) { + this.sellerOrganizationName = sellerOrganizationName; + } + + public GETConnectionByUUidResponse notifications(List notifications) { + this.notifications = notifications; + return this; + } + + public GETConnectionByUUidResponse addNotificationsItem(String notificationsItem) { + if (this.notifications == null) { + this.notifications = new ArrayList(); + } + this.notifications.add(notificationsItem); + return this; + } + + /** + * Get notifications + * @return notifications + **/ + @ApiModelProperty(value = "") + public List getNotifications() { + return notifications; + } + + public void setNotifications(List notifications) { + this.notifications = notifications; + } + + public GETConnectionByUUidResponse purchaseOrderNumber(String purchaseOrderNumber) { + this.purchaseOrderNumber = purchaseOrderNumber; + return this; + } + + /** + * Get purchaseOrderNumber + * @return purchaseOrderNumber + **/ + @ApiModelProperty(example = "O-1234567890", value = "") + public String getPurchaseOrderNumber() { + return purchaseOrderNumber; + } + + public void setPurchaseOrderNumber(String purchaseOrderNumber) { + this.purchaseOrderNumber = purchaseOrderNumber; + } + + public GETConnectionByUUidResponse namedTag(String namedTag) { + this.namedTag = namedTag; + return this; + } + + /** + * Get namedTag + * @return namedTag + **/ + @ApiModelProperty(example = "Private", value = "") + public String getNamedTag() { + return namedTag; + } + + public void setNamedTag(String namedTag) { + this.namedTag = namedTag; + } + + public GETConnectionByUUidResponse createdDate(String createdDate) { + this.createdDate = createdDate; + return this; + } + + /** + * Get createdDate + * @return createdDate + **/ + @ApiModelProperty(example = "2017-09-26T22:46:24.312Z", value = "") + public String getCreatedDate() { + return createdDate; + } + + public void setCreatedDate(String createdDate) { + this.createdDate = createdDate; + } + + public GETConnectionByUUidResponse createdBy(String createdBy) { + this.createdBy = createdBy; + return this; + } + + /** + * Get createdBy + * @return createdBy + **/ + @ApiModelProperty(example = "sandboxuser@example-company.com", value = "") + public String getCreatedBy() { + return createdBy; + } + + public void setCreatedBy(String createdBy) { + this.createdBy = createdBy; + } + + public GETConnectionByUUidResponse createdByFullName(String createdByFullName) { + this.createdByFullName = createdByFullName; + return this; + } + + /** + * Get createdByFullName + * @return createdByFullName + **/ + @ApiModelProperty(example = "Sandbox User", value = "") + public String getCreatedByFullName() { + return createdByFullName; + } + + public void setCreatedByFullName(String createdByFullName) { + this.createdByFullName = createdByFullName; + } + + public GETConnectionByUUidResponse createdByEmail(String createdByEmail) { + this.createdByEmail = createdByEmail; + return this; + } + + /** + * Get createdByEmail + * @return createdByEmail + **/ + @ApiModelProperty(example = "sandboxuser@example-company.com", value = "") + public String getCreatedByEmail() { + return createdByEmail; + } + + public void setCreatedByEmail(String createdByEmail) { + this.createdByEmail = createdByEmail; + } + + public GETConnectionByUUidResponse lastUpdatedBy(String lastUpdatedBy) { + this.lastUpdatedBy = lastUpdatedBy; + return this; + } + + /** + * Get lastUpdatedBy + * @return lastUpdatedBy + **/ + @ApiModelProperty(example = "sandboxuser@example-company.com", value = "") + public String getLastUpdatedBy() { + return lastUpdatedBy; + } + + public void setLastUpdatedBy(String lastUpdatedBy) { + this.lastUpdatedBy = lastUpdatedBy; + } + + public GETConnectionByUUidResponse lastUpdatedDate(String lastUpdatedDate) { + this.lastUpdatedDate = lastUpdatedDate; + return this; + } + + /** + * Get lastUpdatedDate + * @return lastUpdatedDate + **/ + @ApiModelProperty(example = "2017-09-26T23:01:46Z", value = "") + public String getLastUpdatedDate() { + return lastUpdatedDate; + } + + public void setLastUpdatedDate(String lastUpdatedDate) { + this.lastUpdatedDate = lastUpdatedDate; + } + + public GETConnectionByUUidResponse lastUpdatedByFullName(String lastUpdatedByFullName) { + this.lastUpdatedByFullName = lastUpdatedByFullName; + return this; + } + + /** + * Get lastUpdatedByFullName + * @return lastUpdatedByFullName + **/ + @ApiModelProperty(example = "Sandbox User", value = "") + public String getLastUpdatedByFullName() { + return lastUpdatedByFullName; + } + + public void setLastUpdatedByFullName(String lastUpdatedByFullName) { + this.lastUpdatedByFullName = lastUpdatedByFullName; + } + + public GETConnectionByUUidResponse lastUpdatedByEmail(String lastUpdatedByEmail) { + this.lastUpdatedByEmail = lastUpdatedByEmail; + return this; + } + + /** + * Get lastUpdatedByEmail + * @return lastUpdatedByEmail + **/ + @ApiModelProperty(example = "sandboxuser@example-company.com", value = "") + public String getLastUpdatedByEmail() { + return lastUpdatedByEmail; + } + + public void setLastUpdatedByEmail(String lastUpdatedByEmail) { + this.lastUpdatedByEmail = lastUpdatedByEmail; + } + + public GETConnectionByUUidResponse zSidePortName(String zSidePortName) { + this.zSidePortName = zSidePortName; + return this; + } + + /** + * Get zSidePortName + * @return zSidePortName + **/ + @ApiModelProperty(example = "TEST-CHG-06GMR-Tes-2-TES-C", value = "") + public String getZSidePortName() { + return zSidePortName; + } + + public void setZSidePortName(String zSidePortName) { + this.zSidePortName = zSidePortName; + } + + public GETConnectionByUUidResponse zSidePortUUID(String zSidePortUUID) { + this.zSidePortUUID = zSidePortUUID; + return this; + } + + /** + * Get zSidePortUUID + * @return zSidePortUUID + **/ + @ApiModelProperty(example = "xxxxx191-xx70-xxxx-xx04-xxxxxxxa37xx", value = "") + public String getZSidePortUUID() { + return zSidePortUUID; + } + + public void setZSidePortUUID(String zSidePortUUID) { + this.zSidePortUUID = zSidePortUUID; + } + + public GETConnectionByUUidResponse zSideVlanCTag(Integer zSideVlanCTag) { + this.zSideVlanCTag = zSideVlanCTag; + return this; + } + + /** + * Get zSideVlanCTag + * @return zSideVlanCTag + **/ + @ApiModelProperty(example = "515", value = "") + public Integer getZSideVlanCTag() { + return zSideVlanCTag; + } + + public void setZSideVlanCTag(Integer zSideVlanCTag) { + this.zSideVlanCTag = zSideVlanCTag; + } + + public GETConnectionByUUidResponse zSideVlanSTag(Integer zSideVlanSTag) { + this.zSideVlanSTag = zSideVlanSTag; + return this; + } + + /** + * Get zSideVlanSTag + * @return zSideVlanSTag + **/ + @ApiModelProperty(example = "2", value = "") + public Integer getZSideVlanSTag() { + return zSideVlanSTag; + } + + public void setZSideVlanSTag(Integer zSideVlanSTag) { + this.zSideVlanSTag = zSideVlanSTag; + } + + public GETConnectionByUUidResponse remote(Boolean remote) { + this.remote = remote; + return this; + } + + /** + * Get remote + * @return remote + **/ + @ApiModelProperty(example = "false", value = "") + public Boolean isRemote() { + return remote; + } + + public void setRemote(Boolean remote) { + this.remote = remote; + } + + public GETConnectionByUUidResponse _private(Boolean _private) { + this._private = _private; + return this; + } + + /** + * Get _private + * @return _private + **/ + @ApiModelProperty(example = "false", value = "") + public Boolean isPrivate() { + return _private; + } + + public void setPrivate(Boolean _private) { + this._private = _private; + } + + public GETConnectionByUUidResponse self(Boolean self) { + this.self = self; + return this; + } + + /** + * Get self + * @return self + **/ + @ApiModelProperty(example = "false", value = "") + public Boolean isSelf() { + return self; + } + + public void setSelf(Boolean self) { + this.self = self; + } + + public GETConnectionByUUidResponse redundantUUID(String redundantUUID) { + this.redundantUUID = redundantUUID; + return this; + } + + /** + * Get redundantUUID + * @return redundantUUID + **/ + @ApiModelProperty(example = "xxxxx191-xx70-xxxx-xx04-xxxxxxxa37xx", value = "") + public String getRedundantUUID() { + return redundantUUID; + } + + public void setRedundantUUID(String redundantUUID) { + this.redundantUUID = redundantUUID; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GETConnectionByUUidResponse geTConnectionByUUidResponse = (GETConnectionByUUidResponse) o; + return Objects.equals(this.buyerOrganizationName, geTConnectionByUUidResponse.buyerOrganizationName) && + Objects.equals(this.uuid, geTConnectionByUUidResponse.uuid) && + Objects.equals(this.name, geTConnectionByUUidResponse.name) && + Objects.equals(this.vlanSTag, geTConnectionByUUidResponse.vlanSTag) && + Objects.equals(this.portUUID, geTConnectionByUUidResponse.portUUID) && + Objects.equals(this.portName, geTConnectionByUUidResponse.portName) && + Objects.equals(this.asideEncapsulation, geTConnectionByUUidResponse.asideEncapsulation) && + Objects.equals(this.metroCode, geTConnectionByUUidResponse.metroCode) && + Objects.equals(this.metroDescription, geTConnectionByUUidResponse.metroDescription) && + Objects.equals(this.providerStatus, geTConnectionByUUidResponse.providerStatus) && + Objects.equals(this.status, geTConnectionByUUidResponse.status) && + Objects.equals(this.billingTier, geTConnectionByUUidResponse.billingTier) && + Objects.equals(this.authorizationKey, geTConnectionByUUidResponse.authorizationKey) && + Objects.equals(this.speed, geTConnectionByUUidResponse.speed) && + Objects.equals(this.speedUnit, geTConnectionByUUidResponse.speedUnit) && + Objects.equals(this.redundancyType, geTConnectionByUUidResponse.redundancyType) && + Objects.equals(this.redundancyGroup, geTConnectionByUUidResponse.redundancyGroup) && + Objects.equals(this.sellerMetroCode, geTConnectionByUUidResponse.sellerMetroCode) && + Objects.equals(this.sellerMetroDescription, geTConnectionByUUidResponse.sellerMetroDescription) && + Objects.equals(this.sellerServiceName, geTConnectionByUUidResponse.sellerServiceName) && + Objects.equals(this.sellerServiceUUID, geTConnectionByUUidResponse.sellerServiceUUID) && + Objects.equals(this.sellerOrganizationName, geTConnectionByUUidResponse.sellerOrganizationName) && + Objects.equals(this.notifications, geTConnectionByUUidResponse.notifications) && + Objects.equals(this.purchaseOrderNumber, geTConnectionByUUidResponse.purchaseOrderNumber) && + Objects.equals(this.namedTag, geTConnectionByUUidResponse.namedTag) && + Objects.equals(this.createdDate, geTConnectionByUUidResponse.createdDate) && + Objects.equals(this.createdBy, geTConnectionByUUidResponse.createdBy) && + Objects.equals(this.createdByFullName, geTConnectionByUUidResponse.createdByFullName) && + Objects.equals(this.createdByEmail, geTConnectionByUUidResponse.createdByEmail) && + Objects.equals(this.lastUpdatedBy, geTConnectionByUUidResponse.lastUpdatedBy) && + Objects.equals(this.lastUpdatedDate, geTConnectionByUUidResponse.lastUpdatedDate) && + Objects.equals(this.lastUpdatedByFullName, geTConnectionByUUidResponse.lastUpdatedByFullName) && + Objects.equals(this.lastUpdatedByEmail, geTConnectionByUUidResponse.lastUpdatedByEmail) && + Objects.equals(this.zSidePortName, geTConnectionByUUidResponse.zSidePortName) && + Objects.equals(this.zSidePortUUID, geTConnectionByUUidResponse.zSidePortUUID) && + Objects.equals(this.zSideVlanCTag, geTConnectionByUUidResponse.zSideVlanCTag) && + Objects.equals(this.zSideVlanSTag, geTConnectionByUUidResponse.zSideVlanSTag) && + Objects.equals(this.remote, geTConnectionByUUidResponse.remote) && + Objects.equals(this._private, geTConnectionByUUidResponse._private) && + Objects.equals(this.self, geTConnectionByUUidResponse.self) && + Objects.equals(this.redundantUUID, geTConnectionByUUidResponse.redundantUUID); + } + + @Override + public int hashCode() { + return Objects.hash(buyerOrganizationName, uuid, name, vlanSTag, portUUID, portName, asideEncapsulation, metroCode, metroDescription, providerStatus, status, billingTier, authorizationKey, speed, speedUnit, redundancyType, redundancyGroup, sellerMetroCode, sellerMetroDescription, sellerServiceName, sellerServiceUUID, sellerOrganizationName, notifications, purchaseOrderNumber, namedTag, createdDate, createdBy, createdByFullName, createdByEmail, lastUpdatedBy, lastUpdatedDate, lastUpdatedByFullName, lastUpdatedByEmail, zSidePortName, zSidePortUUID, zSideVlanCTag, zSideVlanSTag, remote, _private, self, redundantUUID); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GETConnectionByUUidResponse {\n"); + + sb.append(" buyerOrganizationName: ").append(toIndentedString(buyerOrganizationName)).append("\n"); + sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" vlanSTag: ").append(toIndentedString(vlanSTag)).append("\n"); + sb.append(" portUUID: ").append(toIndentedString(portUUID)).append("\n"); + sb.append(" portName: ").append(toIndentedString(portName)).append("\n"); + sb.append(" asideEncapsulation: ").append(toIndentedString(asideEncapsulation)).append("\n"); + sb.append(" metroCode: ").append(toIndentedString(metroCode)).append("\n"); + sb.append(" metroDescription: ").append(toIndentedString(metroDescription)).append("\n"); + sb.append(" providerStatus: ").append(toIndentedString(providerStatus)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" billingTier: ").append(toIndentedString(billingTier)).append("\n"); + sb.append(" authorizationKey: ").append(toIndentedString(authorizationKey)).append("\n"); + sb.append(" speed: ").append(toIndentedString(speed)).append("\n"); + sb.append(" speedUnit: ").append(toIndentedString(speedUnit)).append("\n"); + sb.append(" redundancyType: ").append(toIndentedString(redundancyType)).append("\n"); + sb.append(" redundancyGroup: ").append(toIndentedString(redundancyGroup)).append("\n"); + sb.append(" sellerMetroCode: ").append(toIndentedString(sellerMetroCode)).append("\n"); + sb.append(" sellerMetroDescription: ").append(toIndentedString(sellerMetroDescription)).append("\n"); + sb.append(" sellerServiceName: ").append(toIndentedString(sellerServiceName)).append("\n"); + sb.append(" sellerServiceUUID: ").append(toIndentedString(sellerServiceUUID)).append("\n"); + sb.append(" sellerOrganizationName: ").append(toIndentedString(sellerOrganizationName)).append("\n"); + sb.append(" notifications: ").append(toIndentedString(notifications)).append("\n"); + sb.append(" purchaseOrderNumber: ").append(toIndentedString(purchaseOrderNumber)).append("\n"); + sb.append(" namedTag: ").append(toIndentedString(namedTag)).append("\n"); + sb.append(" createdDate: ").append(toIndentedString(createdDate)).append("\n"); + sb.append(" createdBy: ").append(toIndentedString(createdBy)).append("\n"); + sb.append(" createdByFullName: ").append(toIndentedString(createdByFullName)).append("\n"); + sb.append(" createdByEmail: ").append(toIndentedString(createdByEmail)).append("\n"); + sb.append(" lastUpdatedBy: ").append(toIndentedString(lastUpdatedBy)).append("\n"); + sb.append(" lastUpdatedDate: ").append(toIndentedString(lastUpdatedDate)).append("\n"); + sb.append(" lastUpdatedByFullName: ").append(toIndentedString(lastUpdatedByFullName)).append("\n"); + sb.append(" lastUpdatedByEmail: ").append(toIndentedString(lastUpdatedByEmail)).append("\n"); + sb.append(" zSidePortName: ").append(toIndentedString(zSidePortName)).append("\n"); + sb.append(" zSidePortUUID: ").append(toIndentedString(zSidePortUUID)).append("\n"); + sb.append(" zSideVlanCTag: ").append(toIndentedString(zSideVlanCTag)).append("\n"); + sb.append(" zSideVlanSTag: ").append(toIndentedString(zSideVlanSTag)).append("\n"); + sb.append(" remote: ").append(toIndentedString(remote)).append("\n"); + sb.append(" _private: ").append(toIndentedString(_private)).append("\n"); + sb.append(" self: ").append(toIndentedString(self)).append("\n"); + sb.append(" redundantUUID: ").append(toIndentedString(redundantUUID)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/GetBuyerConResContent.java b/src/main/java/com/equinix/networkedge/model/GetBuyerConResContent.java new file mode 100644 index 0000000..0216ba8 --- /dev/null +++ b/src/main/java/com/equinix/networkedge/model/GetBuyerConResContent.java @@ -0,0 +1,996 @@ +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; + +import java.util.ArrayList; +import java.util.List; + +/** + * GetBuyerConResContent + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class GetBuyerConResContent { + @SerializedName("asideEncapsulation") + private String asideEncapsulation = null; + + @SerializedName("authorizationKey") + private String authorizationKey = null; + + @SerializedName("billingTier") + private String billingTier = null; + + @SerializedName("buyerOrganizationName") + private String buyerOrganizationName = null; + + @SerializedName("createdBy") + private String createdBy = null; + + @SerializedName("createdByEmail") + private String createdByEmail = null; + + @SerializedName("createdByFullName") + private String createdByFullName = null; + + @SerializedName("createdDate") + private String createdDate = null; + + @SerializedName("lastUpdatedBy") + private String lastUpdatedBy = null; + + @SerializedName("lastUpdatedByEmail") + private String lastUpdatedByEmail = null; + + @SerializedName("lastUpdatedByFullName") + private String lastUpdatedByFullName = null; + + @SerializedName("lastUpdatedDate") + private String lastUpdatedDate = null; + + @SerializedName("metroCode") + private String metroCode = null; + + @SerializedName("metroDescription") + private String metroDescription = null; + + @SerializedName("name") + private String name = null; + + @SerializedName("namedTag") + private String namedTag = null; + + @SerializedName("notifications") + private List notifications = null; + + @SerializedName("virtualDeviceUUID") + private String virtualDeviceUUID = null; + + @SerializedName("private") + private Boolean _private = null; + + @SerializedName("purchaseOrderNumber") + private String purchaseOrderNumber = null; + + @SerializedName("redundancyGroup") + private String redundancyGroup = null; + + @SerializedName("redundancyType") + private String redundancyType = null; + + @SerializedName("redundantUUID") + private String redundantUUID = null; + + @SerializedName("remote") + private Boolean remote = null; + + @SerializedName("self") + private Boolean self = null; + + @SerializedName("sellerMetroCode") + private String sellerMetroCode = null; + + @SerializedName("sellerMetroDescription") + private String sellerMetroDescription = null; + + @SerializedName("sellerOrganizationName") + private String sellerOrganizationName = null; + + @SerializedName("sellerServiceName") + private String sellerServiceName = null; + + @SerializedName("sellerServiceUUID") + private String sellerServiceUUID = null; + + @SerializedName("speed") + private Integer speed = null; + + @SerializedName("speedUnit") + private String speedUnit = null; + + @SerializedName("providerStatus") + private String providerStatus = null; + + @SerializedName("status") + private String status = null; + + @SerializedName("uuid") + private String uuid = null; + + @SerializedName("vlanSTag") + private Integer vlanSTag = null; + + @SerializedName("zSidePortName") + private String zSidePortName = null; + + @SerializedName("zSidePortUUID") + private String zSidePortUUID = null; + + @SerializedName("zSideVlanCTag") + private Integer zSideVlanCTag = null; + + @SerializedName("zSideVlanSTag") + private Integer zSideVlanSTag = null; + + public GetBuyerConResContent asideEncapsulation(String asideEncapsulation) { + this.asideEncapsulation = asideEncapsulation; + return this; + } + + /** + * Get asideEncapsulation + * @return asideEncapsulation + **/ + @ApiModelProperty(example = "dot1q", value = "") + public String getAsideEncapsulation() { + return asideEncapsulation; + } + + public void setAsideEncapsulation(String asideEncapsulation) { + this.asideEncapsulation = asideEncapsulation; + } + + public GetBuyerConResContent authorizationKey(String authorizationKey) { + this.authorizationKey = authorizationKey; + return this; + } + + /** + * Get authorizationKey + * @return authorizationKey + **/ + @ApiModelProperty(example = "xxxxx191-xx70-xxxx-xx04-xxxxxxxa37xx", value = "") + public String getAuthorizationKey() { + return authorizationKey; + } + + public void setAuthorizationKey(String authorizationKey) { + this.authorizationKey = authorizationKey; + } + + public GetBuyerConResContent billingTier(String billingTier) { + this.billingTier = billingTier; + return this; + } + + /** + * Get billingTier + * @return billingTier + **/ + @ApiModelProperty(example = "Up to 50 MB", value = "") + public String getBillingTier() { + return billingTier; + } + + public void setBillingTier(String billingTier) { + this.billingTier = billingTier; + } + + public GetBuyerConResContent buyerOrganizationName(String buyerOrganizationName) { + this.buyerOrganizationName = buyerOrganizationName; + return this; + } + + /** + * Get buyerOrganizationName + * @return buyerOrganizationName + **/ + @ApiModelProperty(example = "Sandbox User", value = "") + public String getBuyerOrganizationName() { + return buyerOrganizationName; + } + + public void setBuyerOrganizationName(String buyerOrganizationName) { + this.buyerOrganizationName = buyerOrganizationName; + } + + public GetBuyerConResContent createdBy(String createdBy) { + this.createdBy = createdBy; + return this; + } + + /** + * Get createdBy + * @return createdBy + **/ + @ApiModelProperty(example = "Sandbox User", value = "") + public String getCreatedBy() { + return createdBy; + } + + public void setCreatedBy(String createdBy) { + this.createdBy = createdBy; + } + + public GetBuyerConResContent createdByEmail(String createdByEmail) { + this.createdByEmail = createdByEmail; + return this; + } + + /** + * Get createdByEmail + * @return createdByEmail + **/ + @ApiModelProperty(example = "sandboxuser@example-company.com", value = "") + public String getCreatedByEmail() { + return createdByEmail; + } + + public void setCreatedByEmail(String createdByEmail) { + this.createdByEmail = createdByEmail; + } + + public GetBuyerConResContent createdByFullName(String createdByFullName) { + this.createdByFullName = createdByFullName; + return this; + } + + /** + * Get createdByFullName + * @return createdByFullName + **/ + @ApiModelProperty(example = "Sandbox USER", value = "") + public String getCreatedByFullName() { + return createdByFullName; + } + + public void setCreatedByFullName(String createdByFullName) { + this.createdByFullName = createdByFullName; + } + + public GetBuyerConResContent createdDate(String createdDate) { + this.createdDate = createdDate; + return this; + } + + /** + * Get createdDate + * @return createdDate + **/ + @ApiModelProperty(example = "2018-04-12T18:05:24.167Z", value = "") + public String getCreatedDate() { + return createdDate; + } + + public void setCreatedDate(String createdDate) { + this.createdDate = createdDate; + } + + public GetBuyerConResContent lastUpdatedBy(String lastUpdatedBy) { + this.lastUpdatedBy = lastUpdatedBy; + return this; + } + + /** + * Get lastUpdatedBy + * @return lastUpdatedBy + **/ + @ApiModelProperty(example = "Sandbox User", value = "") + public String getLastUpdatedBy() { + return lastUpdatedBy; + } + + public void setLastUpdatedBy(String lastUpdatedBy) { + this.lastUpdatedBy = lastUpdatedBy; + } + + public GetBuyerConResContent lastUpdatedByEmail(String lastUpdatedByEmail) { + this.lastUpdatedByEmail = lastUpdatedByEmail; + return this; + } + + /** + * Get lastUpdatedByEmail + * @return lastUpdatedByEmail + **/ + @ApiModelProperty(example = "sandboxuser@example-company.com", value = "") + public String getLastUpdatedByEmail() { + return lastUpdatedByEmail; + } + + public void setLastUpdatedByEmail(String lastUpdatedByEmail) { + this.lastUpdatedByEmail = lastUpdatedByEmail; + } + + public GetBuyerConResContent lastUpdatedByFullName(String lastUpdatedByFullName) { + this.lastUpdatedByFullName = lastUpdatedByFullName; + return this; + } + + /** + * Get lastUpdatedByFullName + * @return lastUpdatedByFullName + **/ + @ApiModelProperty(example = "Sandbox User", value = "") + public String getLastUpdatedByFullName() { + return lastUpdatedByFullName; + } + + public void setLastUpdatedByFullName(String lastUpdatedByFullName) { + this.lastUpdatedByFullName = lastUpdatedByFullName; + } + + public GetBuyerConResContent lastUpdatedDate(String lastUpdatedDate) { + this.lastUpdatedDate = lastUpdatedDate; + return this; + } + + /** + * Get lastUpdatedDate + * @return lastUpdatedDate + **/ + @ApiModelProperty(example = "2018-04-12T17:13:53.031Z", value = "") + public String getLastUpdatedDate() { + return lastUpdatedDate; + } + + public void setLastUpdatedDate(String lastUpdatedDate) { + this.lastUpdatedDate = lastUpdatedDate; + } + + public GetBuyerConResContent metroCode(String metroCode) { + this.metroCode = metroCode; + return this; + } + + /** + * Get metroCode + * @return metroCode + **/ + @ApiModelProperty(example = "CH", value = "") + public String getMetroCode() { + return metroCode; + } + + public void setMetroCode(String metroCode) { + this.metroCode = metroCode; + } + + public GetBuyerConResContent metroDescription(String metroDescription) { + this.metroDescription = metroDescription; + return this; + } + + /** + * Get metroDescription + * @return metroDescription + **/ + @ApiModelProperty(example = "Chicago", value = "") + public String getMetroDescription() { + return metroDescription; + } + + public void setMetroDescription(String metroDescription) { + this.metroDescription = metroDescription; + } + + public GetBuyerConResContent name(String name) { + this.name = name; + return this; + } + + /** + * Get name + * @return name + **/ + @ApiModelProperty(example = "Sandbox 001S", value = "") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public GetBuyerConResContent namedTag(String namedTag) { + this.namedTag = namedTag; + return this; + } + + /** + * Get namedTag + * @return namedTag + **/ + @ApiModelProperty(value = "") + public String getNamedTag() { + return namedTag; + } + + public void setNamedTag(String namedTag) { + this.namedTag = namedTag; + } + + public GetBuyerConResContent notifications(List notifications) { + this.notifications = notifications; + return this; + } + + public GetBuyerConResContent addNotificationsItem(String notificationsItem) { + if (this.notifications == null) { + this.notifications = new ArrayList(); + } + this.notifications.add(notificationsItem); + return this; + } + + /** + * Get notifications + * @return notifications + **/ + @ApiModelProperty(value = "") + public List getNotifications() { + return notifications; + } + + public void setNotifications(List notifications) { + this.notifications = notifications; + } + + public GetBuyerConResContent virtualDeviceUUID(String virtualDeviceUUID) { + this.virtualDeviceUUID = virtualDeviceUUID; + return this; + } + + /** + * Get virtualDeviceUUID + * @return virtualDeviceUUID + **/ + @ApiModelProperty(example = "xxxxx191-xx70-xxxx-xx04-xxxxxxxa37xx", value = "") + public String getVirtualDeviceUUID() { + return virtualDeviceUUID; + } + + public void setVirtualDeviceUUID(String virtualDeviceUUID) { + this.virtualDeviceUUID = virtualDeviceUUID; + } + + public GetBuyerConResContent _private(Boolean _private) { + this._private = _private; + return this; + } + + /** + * Get _private + * @return _private + **/ + @ApiModelProperty(example = "false", value = "") + public Boolean isPrivate() { + return _private; + } + + public void setPrivate(Boolean _private) { + this._private = _private; + } + + public GetBuyerConResContent purchaseOrderNumber(String purchaseOrderNumber) { + this.purchaseOrderNumber = purchaseOrderNumber; + return this; + } + + /** + * Get purchaseOrderNumber + * @return purchaseOrderNumber + **/ + @ApiModelProperty(example = "111", value = "") + public String getPurchaseOrderNumber() { + return purchaseOrderNumber; + } + + public void setPurchaseOrderNumber(String purchaseOrderNumber) { + this.purchaseOrderNumber = purchaseOrderNumber; + } + + public GetBuyerConResContent redundancyGroup(String redundancyGroup) { + this.redundancyGroup = redundancyGroup; + return this; + } + + /** + * Get redundancyGroup + * @return redundancyGroup + **/ + @ApiModelProperty(example = "xxxxx191-xx70-xxxx-xx04-xxxxxxxa37xx", value = "") + public String getRedundancyGroup() { + return redundancyGroup; + } + + public void setRedundancyGroup(String redundancyGroup) { + this.redundancyGroup = redundancyGroup; + } + + public GetBuyerConResContent redundancyType(String redundancyType) { + this.redundancyType = redundancyType; + return this; + } + + /** + * Get redundancyType + * @return redundancyType + **/ + @ApiModelProperty(example = "secondary", value = "") + public String getRedundancyType() { + return redundancyType; + } + + public void setRedundancyType(String redundancyType) { + this.redundancyType = redundancyType; + } + + public GetBuyerConResContent redundantUUID(String redundantUUID) { + this.redundantUUID = redundantUUID; + return this; + } + + /** + * Get redundantUUID + * @return redundantUUID + **/ + @ApiModelProperty(example = "xxxxx191-xx70-xxxx-xx04-xxxxxxxa37xx", value = "") + public String getRedundantUUID() { + return redundantUUID; + } + + public void setRedundantUUID(String redundantUUID) { + this.redundantUUID = redundantUUID; + } + + public GetBuyerConResContent remote(Boolean remote) { + this.remote = remote; + return this; + } + + /** + * Get remote + * @return remote + **/ + @ApiModelProperty(example = "true", value = "") + public Boolean isRemote() { + return remote; + } + + public void setRemote(Boolean remote) { + this.remote = remote; + } + + public GetBuyerConResContent self(Boolean self) { + this.self = self; + return this; + } + + /** + * Get self + * @return self + **/ + @ApiModelProperty(example = "false", value = "") + public Boolean isSelf() { + return self; + } + + public void setSelf(Boolean self) { + this.self = self; + } + + public GetBuyerConResContent sellerMetroCode(String sellerMetroCode) { + this.sellerMetroCode = sellerMetroCode; + return this; + } + + /** + * Get sellerMetroCode + * @return sellerMetroCode + **/ + @ApiModelProperty(example = "Sv", value = "") + public String getSellerMetroCode() { + return sellerMetroCode; + } + + public void setSellerMetroCode(String sellerMetroCode) { + this.sellerMetroCode = sellerMetroCode; + } + + public GetBuyerConResContent sellerMetroDescription(String sellerMetroDescription) { + this.sellerMetroDescription = sellerMetroDescription; + return this; + } + + /** + * Get sellerMetroDescription + * @return sellerMetroDescription + **/ + @ApiModelProperty(example = "Silicon Valley", value = "") + public String getSellerMetroDescription() { + return sellerMetroDescription; + } + + public void setSellerMetroDescription(String sellerMetroDescription) { + this.sellerMetroDescription = sellerMetroDescription; + } + + public GetBuyerConResContent sellerOrganizationName(String sellerOrganizationName) { + this.sellerOrganizationName = sellerOrganizationName; + return this; + } + + /** + * Get sellerOrganizationName + * @return sellerOrganizationName + **/ + @ApiModelProperty(example = "sit-001", value = "") + public String getSellerOrganizationName() { + return sellerOrganizationName; + } + + public void setSellerOrganizationName(String sellerOrganizationName) { + this.sellerOrganizationName = sellerOrganizationName; + } + + public GetBuyerConResContent sellerServiceName(String sellerServiceName) { + this.sellerServiceName = sellerServiceName; + return this; + } + + /** + * Get sellerServiceName + * @return sellerServiceName + **/ + @ApiModelProperty(example = "Azure Express Route", value = "") + public String getSellerServiceName() { + return sellerServiceName; + } + + public void setSellerServiceName(String sellerServiceName) { + this.sellerServiceName = sellerServiceName; + } + + public GetBuyerConResContent sellerServiceUUID(String sellerServiceUUID) { + this.sellerServiceUUID = sellerServiceUUID; + return this; + } + + /** + * Get sellerServiceUUID + * @return sellerServiceUUID + **/ + @ApiModelProperty(example = "xxxxx191-xx70-xxxx-xx04-xxxxxxxa37xx", value = "") + public String getSellerServiceUUID() { + return sellerServiceUUID; + } + + public void setSellerServiceUUID(String sellerServiceUUID) { + this.sellerServiceUUID = sellerServiceUUID; + } + + public GetBuyerConResContent speed(Integer speed) { + this.speed = speed; + return this; + } + + /** + * Get speed + * @return speed + **/ + @ApiModelProperty(example = "50", value = "") + public Integer getSpeed() { + return speed; + } + + public void setSpeed(Integer speed) { + this.speed = speed; + } + + public GetBuyerConResContent speedUnit(String speedUnit) { + this.speedUnit = speedUnit; + return this; + } + + /** + * Get speedUnit + * @return speedUnit + **/ + @ApiModelProperty(example = "MB", value = "") + public String getSpeedUnit() { + return speedUnit; + } + + public void setSpeedUnit(String speedUnit) { + this.speedUnit = speedUnit; + } + + public GetBuyerConResContent providerStatus(String providerStatus) { + this.providerStatus = providerStatus; + return this; + } + + /** + * Get providerStatus + * @return providerStatus + **/ + @ApiModelProperty(example = "PROVISIONED", value = "") + public String getProviderStatus() { + return providerStatus; + } + + public void setProviderStatus(String providerStatus) { + this.providerStatus = providerStatus; + } + + public GetBuyerConResContent status(String status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + **/ + @ApiModelProperty(example = "PROVISIONED", value = "") + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public GetBuyerConResContent uuid(String uuid) { + this.uuid = uuid; + return this; + } + + /** + * Get uuid + * @return uuid + **/ + @ApiModelProperty(example = "xxxxx191-xx70-xxxx-xx04-xxxxxxxa37xx", value = "") + public String getUuid() { + return uuid; + } + + public void setUuid(String uuid) { + this.uuid = uuid; + } + + public GetBuyerConResContent vlanSTag(Integer vlanSTag) { + this.vlanSTag = vlanSTag; + return this; + } + + /** + * Get vlanSTag + * @return vlanSTag + **/ + @ApiModelProperty(example = "11", value = "") + public Integer getVlanSTag() { + return vlanSTag; + } + + public void setVlanSTag(Integer vlanSTag) { + this.vlanSTag = vlanSTag; + } + + public GetBuyerConResContent zSidePortName(String zSidePortName) { + this.zSidePortName = zSidePortName; + return this; + } + + /** + * Get zSidePortName + * @return zSidePortName + **/ + @ApiModelProperty(example = "SJC-TEST-TEST-06TES-CIS-5-TES-A", value = "") + public String getZSidePortName() { + return zSidePortName; + } + + public void setZSidePortName(String zSidePortName) { + this.zSidePortName = zSidePortName; + } + + public GetBuyerConResContent zSidePortUUID(String zSidePortUUID) { + this.zSidePortUUID = zSidePortUUID; + return this; + } + + /** + * Get zSidePortUUID + * @return zSidePortUUID + **/ + @ApiModelProperty(example = "xxxxx191-xx70-xxxx-xx04-xxxxxxxa37xx", value = "") + public String getZSidePortUUID() { + return zSidePortUUID; + } + + public void setZSidePortUUID(String zSidePortUUID) { + this.zSidePortUUID = zSidePortUUID; + } + + public GetBuyerConResContent zSideVlanCTag(Integer zSideVlanCTag) { + this.zSideVlanCTag = zSideVlanCTag; + return this; + } + + /** + * Get zSideVlanCTag + * @return zSideVlanCTag + **/ + @ApiModelProperty(example = "201", value = "") + public Integer getZSideVlanCTag() { + return zSideVlanCTag; + } + + public void setZSideVlanCTag(Integer zSideVlanCTag) { + this.zSideVlanCTag = zSideVlanCTag; + } + + public GetBuyerConResContent zSideVlanSTag(Integer zSideVlanSTag) { + this.zSideVlanSTag = zSideVlanSTag; + return this; + } + + /** + * Get zSideVlanSTag + * @return zSideVlanSTag + **/ + @ApiModelProperty(example = "11", value = "") + public Integer getZSideVlanSTag() { + return zSideVlanSTag; + } + + public void setZSideVlanSTag(Integer zSideVlanSTag) { + this.zSideVlanSTag = zSideVlanSTag; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetBuyerConResContent getBuyerConResContent = (GetBuyerConResContent) o; + return Objects.equals(this.asideEncapsulation, getBuyerConResContent.asideEncapsulation) && + Objects.equals(this.authorizationKey, getBuyerConResContent.authorizationKey) && + Objects.equals(this.billingTier, getBuyerConResContent.billingTier) && + Objects.equals(this.buyerOrganizationName, getBuyerConResContent.buyerOrganizationName) && + Objects.equals(this.createdBy, getBuyerConResContent.createdBy) && + Objects.equals(this.createdByEmail, getBuyerConResContent.createdByEmail) && + Objects.equals(this.createdByFullName, getBuyerConResContent.createdByFullName) && + Objects.equals(this.createdDate, getBuyerConResContent.createdDate) && + Objects.equals(this.lastUpdatedBy, getBuyerConResContent.lastUpdatedBy) && + Objects.equals(this.lastUpdatedByEmail, getBuyerConResContent.lastUpdatedByEmail) && + Objects.equals(this.lastUpdatedByFullName, getBuyerConResContent.lastUpdatedByFullName) && + Objects.equals(this.lastUpdatedDate, getBuyerConResContent.lastUpdatedDate) && + Objects.equals(this.metroCode, getBuyerConResContent.metroCode) && + Objects.equals(this.metroDescription, getBuyerConResContent.metroDescription) && + Objects.equals(this.name, getBuyerConResContent.name) && + Objects.equals(this.namedTag, getBuyerConResContent.namedTag) && + Objects.equals(this.notifications, getBuyerConResContent.notifications) && + Objects.equals(this.virtualDeviceUUID, getBuyerConResContent.virtualDeviceUUID) && + Objects.equals(this._private, getBuyerConResContent._private) && + Objects.equals(this.purchaseOrderNumber, getBuyerConResContent.purchaseOrderNumber) && + Objects.equals(this.redundancyGroup, getBuyerConResContent.redundancyGroup) && + Objects.equals(this.redundancyType, getBuyerConResContent.redundancyType) && + Objects.equals(this.redundantUUID, getBuyerConResContent.redundantUUID) && + Objects.equals(this.remote, getBuyerConResContent.remote) && + Objects.equals(this.self, getBuyerConResContent.self) && + Objects.equals(this.sellerMetroCode, getBuyerConResContent.sellerMetroCode) && + Objects.equals(this.sellerMetroDescription, getBuyerConResContent.sellerMetroDescription) && + Objects.equals(this.sellerOrganizationName, getBuyerConResContent.sellerOrganizationName) && + Objects.equals(this.sellerServiceName, getBuyerConResContent.sellerServiceName) && + Objects.equals(this.sellerServiceUUID, getBuyerConResContent.sellerServiceUUID) && + Objects.equals(this.speed, getBuyerConResContent.speed) && + Objects.equals(this.speedUnit, getBuyerConResContent.speedUnit) && + Objects.equals(this.providerStatus, getBuyerConResContent.providerStatus) && + Objects.equals(this.status, getBuyerConResContent.status) && + Objects.equals(this.uuid, getBuyerConResContent.uuid) && + Objects.equals(this.vlanSTag, getBuyerConResContent.vlanSTag) && + Objects.equals(this.zSidePortName, getBuyerConResContent.zSidePortName) && + Objects.equals(this.zSidePortUUID, getBuyerConResContent.zSidePortUUID) && + Objects.equals(this.zSideVlanCTag, getBuyerConResContent.zSideVlanCTag) && + Objects.equals(this.zSideVlanSTag, getBuyerConResContent.zSideVlanSTag); + } + + @Override + public int hashCode() { + return Objects.hash(asideEncapsulation, authorizationKey, billingTier, buyerOrganizationName, createdBy, createdByEmail, createdByFullName, createdDate, lastUpdatedBy, lastUpdatedByEmail, lastUpdatedByFullName, lastUpdatedDate, metroCode, metroDescription, name, namedTag, notifications, virtualDeviceUUID, _private, purchaseOrderNumber, redundancyGroup, redundancyType, redundantUUID, remote, self, sellerMetroCode, sellerMetroDescription, sellerOrganizationName, sellerServiceName, sellerServiceUUID, speed, speedUnit, providerStatus, status, uuid, vlanSTag, zSidePortName, zSidePortUUID, zSideVlanCTag, zSideVlanSTag); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GetBuyerConResContent {\n"); + + sb.append(" asideEncapsulation: ").append(toIndentedString(asideEncapsulation)).append("\n"); + sb.append(" authorizationKey: ").append(toIndentedString(authorizationKey)).append("\n"); + sb.append(" billingTier: ").append(toIndentedString(billingTier)).append("\n"); + sb.append(" buyerOrganizationName: ").append(toIndentedString(buyerOrganizationName)).append("\n"); + sb.append(" createdBy: ").append(toIndentedString(createdBy)).append("\n"); + sb.append(" createdByEmail: ").append(toIndentedString(createdByEmail)).append("\n"); + sb.append(" createdByFullName: ").append(toIndentedString(createdByFullName)).append("\n"); + sb.append(" createdDate: ").append(toIndentedString(createdDate)).append("\n"); + sb.append(" lastUpdatedBy: ").append(toIndentedString(lastUpdatedBy)).append("\n"); + sb.append(" lastUpdatedByEmail: ").append(toIndentedString(lastUpdatedByEmail)).append("\n"); + sb.append(" lastUpdatedByFullName: ").append(toIndentedString(lastUpdatedByFullName)).append("\n"); + sb.append(" lastUpdatedDate: ").append(toIndentedString(lastUpdatedDate)).append("\n"); + sb.append(" metroCode: ").append(toIndentedString(metroCode)).append("\n"); + sb.append(" metroDescription: ").append(toIndentedString(metroDescription)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" namedTag: ").append(toIndentedString(namedTag)).append("\n"); + sb.append(" notifications: ").append(toIndentedString(notifications)).append("\n"); + sb.append(" virtualDeviceUUID: ").append(toIndentedString(virtualDeviceUUID)).append("\n"); + sb.append(" _private: ").append(toIndentedString(_private)).append("\n"); + sb.append(" purchaseOrderNumber: ").append(toIndentedString(purchaseOrderNumber)).append("\n"); + sb.append(" redundancyGroup: ").append(toIndentedString(redundancyGroup)).append("\n"); + sb.append(" redundancyType: ").append(toIndentedString(redundancyType)).append("\n"); + sb.append(" redundantUUID: ").append(toIndentedString(redundantUUID)).append("\n"); + sb.append(" remote: ").append(toIndentedString(remote)).append("\n"); + sb.append(" self: ").append(toIndentedString(self)).append("\n"); + sb.append(" sellerMetroCode: ").append(toIndentedString(sellerMetroCode)).append("\n"); + sb.append(" sellerMetroDescription: ").append(toIndentedString(sellerMetroDescription)).append("\n"); + sb.append(" sellerOrganizationName: ").append(toIndentedString(sellerOrganizationName)).append("\n"); + sb.append(" sellerServiceName: ").append(toIndentedString(sellerServiceName)).append("\n"); + sb.append(" sellerServiceUUID: ").append(toIndentedString(sellerServiceUUID)).append("\n"); + sb.append(" speed: ").append(toIndentedString(speed)).append("\n"); + sb.append(" speedUnit: ").append(toIndentedString(speedUnit)).append("\n"); + sb.append(" providerStatus: ").append(toIndentedString(providerStatus)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n"); + sb.append(" vlanSTag: ").append(toIndentedString(vlanSTag)).append("\n"); + sb.append(" zSidePortName: ").append(toIndentedString(zSidePortName)).append("\n"); + sb.append(" zSidePortUUID: ").append(toIndentedString(zSidePortUUID)).append("\n"); + sb.append(" zSideVlanCTag: ").append(toIndentedString(zSideVlanCTag)).append("\n"); + sb.append(" zSideVlanSTag: ").append(toIndentedString(zSideVlanSTag)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/GetBuyerConnectionResponse.java b/src/main/java/com/equinix/networkedge/model/GetBuyerConnectionResponse.java new file mode 100644 index 0000000..b645b4f --- /dev/null +++ b/src/main/java/com/equinix/networkedge/model/GetBuyerConnectionResponse.java @@ -0,0 +1,215 @@ +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; +import com.equinix.networkedge.model.GetBuyerConResContent; + +import java.util.ArrayList; +import java.util.List; + +/** + * GetBuyerConnectionResponse + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class GetBuyerConnectionResponse { + @SerializedName("pageSize") + private Integer pageSize = null; + + @SerializedName("content") + private List content = null; + + @SerializedName("isFirstPage") + private Boolean isFirstPage = null; + + @SerializedName("isLastPage") + private Boolean isLastPage = null; + + @SerializedName("pageNumber") + private Integer pageNumber = null; + + @SerializedName("totalCount") + private Integer totalCount = null; + + public GetBuyerConnectionResponse pageSize(Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Get pageSize + * @return pageSize + **/ + @ApiModelProperty(example = "10000", value = "") + public Integer getPageSize() { + return pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public GetBuyerConnectionResponse content(List content) { + this.content = content; + return this; + } + + public GetBuyerConnectionResponse addContentItem(GetBuyerConResContent contentItem) { + if (this.content == null) { + this.content = new ArrayList(); + } + this.content.add(contentItem); + return this; + } + + /** + * Get content + * @return content + **/ + @ApiModelProperty(value = "") + public List getContent() { + return content; + } + + public void setContent(List content) { + this.content = content; + } + + public GetBuyerConnectionResponse isFirstPage(Boolean isFirstPage) { + this.isFirstPage = isFirstPage; + return this; + } + + /** + * Get isFirstPage + * @return isFirstPage + **/ + @ApiModelProperty(example = "true", value = "") + public Boolean isIsFirstPage() { + return isFirstPage; + } + + public void setIsFirstPage(Boolean isFirstPage) { + this.isFirstPage = isFirstPage; + } + + public GetBuyerConnectionResponse isLastPage(Boolean isLastPage) { + this.isLastPage = isLastPage; + return this; + } + + /** + * Get isLastPage + * @return isLastPage + **/ + @ApiModelProperty(example = "true", value = "") + public Boolean isIsLastPage() { + return isLastPage; + } + + public void setIsLastPage(Boolean isLastPage) { + this.isLastPage = isLastPage; + } + + public GetBuyerConnectionResponse pageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + return this; + } + + /** + * Get pageNumber + * @return pageNumber + **/ + @ApiModelProperty(example = "0", value = "") + public Integer getPageNumber() { + return pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public GetBuyerConnectionResponse totalCount(Integer totalCount) { + this.totalCount = totalCount; + return this; + } + + /** + * Get totalCount + * @return totalCount + **/ + @ApiModelProperty(example = "9", value = "") + public Integer getTotalCount() { + return totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetBuyerConnectionResponse getBuyerConnectionResponse = (GetBuyerConnectionResponse) o; + return Objects.equals(this.pageSize, getBuyerConnectionResponse.pageSize) && + Objects.equals(this.content, getBuyerConnectionResponse.content) && + Objects.equals(this.isFirstPage, getBuyerConnectionResponse.isFirstPage) && + Objects.equals(this.isLastPage, getBuyerConnectionResponse.isLastPage) && + Objects.equals(this.pageNumber, getBuyerConnectionResponse.pageNumber) && + Objects.equals(this.totalCount, getBuyerConnectionResponse.totalCount); + } + + @Override + public int hashCode() { + return Objects.hash(pageSize, content, isFirstPage, isLastPage, pageNumber, totalCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GetBuyerConnectionResponse {\n"); + + sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n"); + sb.append(" content: ").append(toIndentedString(content)).append("\n"); + sb.append(" isFirstPage: ").append(toIndentedString(isFirstPage)).append("\n"); + sb.append(" isLastPage: ").append(toIndentedString(isLastPage)).append("\n"); + sb.append(" pageNumber: ").append(toIndentedString(pageNumber)).append("\n"); + sb.append(" totalCount: ").append(toIndentedString(totalCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/GetServProfServicesResp.java b/src/main/java/com/equinix/networkedge/model/GetServProfServicesResp.java new file mode 100644 index 0000000..ae4a594 --- /dev/null +++ b/src/main/java/com/equinix/networkedge/model/GetServProfServicesResp.java @@ -0,0 +1,215 @@ +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; +import com.equinix.networkedge.model.GetServProfServicesRespContent; + +import java.util.ArrayList; +import java.util.List; + +/** + * GetServProfServicesResp + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class GetServProfServicesResp { + @SerializedName("isLastPage") + private Boolean isLastPage = null; + + @SerializedName("totalCount") + private Integer totalCount = null; + + @SerializedName("isFirstPage") + private Boolean isFirstPage = null; + + @SerializedName("pageSize") + private Integer pageSize = null; + + @SerializedName("pageNumber") + private Integer pageNumber = null; + + @SerializedName("content") + private List content = null; + + public GetServProfServicesResp isLastPage(Boolean isLastPage) { + this.isLastPage = isLastPage; + return this; + } + + /** + * Get isLastPage + * @return isLastPage + **/ + @ApiModelProperty(example = "true", value = "") + public Boolean isIsLastPage() { + return isLastPage; + } + + public void setIsLastPage(Boolean isLastPage) { + this.isLastPage = isLastPage; + } + + public GetServProfServicesResp totalCount(Integer totalCount) { + this.totalCount = totalCount; + return this; + } + + /** + * Get totalCount + * @return totalCount + **/ + @ApiModelProperty(example = "55", value = "") + public Integer getTotalCount() { + return totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public GetServProfServicesResp isFirstPage(Boolean isFirstPage) { + this.isFirstPage = isFirstPage; + return this; + } + + /** + * Get isFirstPage + * @return isFirstPage + **/ + @ApiModelProperty(example = "true", value = "") + public Boolean isIsFirstPage() { + return isFirstPage; + } + + public void setIsFirstPage(Boolean isFirstPage) { + this.isFirstPage = isFirstPage; + } + + public GetServProfServicesResp pageSize(Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Get pageSize + * @return pageSize + **/ + @ApiModelProperty(example = "1000", value = "") + public Integer getPageSize() { + return pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public GetServProfServicesResp pageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + return this; + } + + /** + * Get pageNumber + * @return pageNumber + **/ + @ApiModelProperty(example = "1", value = "") + public Integer getPageNumber() { + return pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public GetServProfServicesResp content(List content) { + this.content = content; + return this; + } + + public GetServProfServicesResp addContentItem(GetServProfServicesRespContent contentItem) { + if (this.content == null) { + this.content = new ArrayList(); + } + this.content.add(contentItem); + return this; + } + + /** + * Get content + * @return content + **/ + @ApiModelProperty(value = "") + public List getContent() { + return content; + } + + public void setContent(List content) { + this.content = content; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetServProfServicesResp getServProfServicesResp = (GetServProfServicesResp) o; + return Objects.equals(this.isLastPage, getServProfServicesResp.isLastPage) && + Objects.equals(this.totalCount, getServProfServicesResp.totalCount) && + Objects.equals(this.isFirstPage, getServProfServicesResp.isFirstPage) && + Objects.equals(this.pageSize, getServProfServicesResp.pageSize) && + Objects.equals(this.pageNumber, getServProfServicesResp.pageNumber) && + Objects.equals(this.content, getServProfServicesResp.content); + } + + @Override + public int hashCode() { + return Objects.hash(isLastPage, totalCount, isFirstPage, pageSize, pageNumber, content); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GetServProfServicesResp {\n"); + + sb.append(" isLastPage: ").append(toIndentedString(isLastPage)).append("\n"); + sb.append(" totalCount: ").append(toIndentedString(totalCount)).append("\n"); + sb.append(" isFirstPage: ").append(toIndentedString(isFirstPage)).append("\n"); + sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n"); + sb.append(" pageNumber: ").append(toIndentedString(pageNumber)).append("\n"); + sb.append(" content: ").append(toIndentedString(content)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/GetServProfServicesRespContent.java b/src/main/java/com/equinix/networkedge/model/GetServProfServicesRespContent.java new file mode 100644 index 0000000..0c1a388 --- /dev/null +++ b/src/main/java/com/equinix/networkedge/model/GetServProfServicesRespContent.java @@ -0,0 +1,585 @@ +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; +import com.equinix.networkedge.model.GetServProfServicesRespContentMetros; +import com.equinix.networkedge.model.GetServProfServicesRespContentfeatures; +import com.equinix.networkedge.model.SpeedBand; + +import java.util.ArrayList; +import java.util.List; + +/** + * GetServProfServicesRespContent + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class GetServProfServicesRespContent { + @SerializedName("uuid") + private String uuid = null; + + @SerializedName("name") + private String name = null; + + @SerializedName("authKeyLabel") + private String authKeyLabel = null; + + @SerializedName("connectionNameLabel") + private String connectionNameLabel = null; + + @SerializedName("requiredRedundancy") + private Boolean requiredRedundancy = null; + + @SerializedName("allowCustomSpeed") + private Boolean allowCustomSpeed = null; + + @SerializedName("speedBands") + private List speedBands = null; + + @SerializedName("metros") + private GetServProfServicesRespContentMetros metros = null; + + @SerializedName("createdDate") + private String createdDate = null; + + @SerializedName("createdBy") + private String createdBy = null; + + @SerializedName("lastUpdatedDate") + private String lastUpdatedDate = null; + + @SerializedName("lastUpdatedBy") + private String lastUpdatedBy = null; + + @SerializedName("vlanSameAsPrimary") + private Boolean vlanSameAsPrimary = null; + + @SerializedName("tagType") + private String tagType = null; + + @SerializedName("ctagLabel") + private String ctagLabel = null; + + @SerializedName("apiAvailable") + private Boolean apiAvailable = null; + + @SerializedName("selfProfile") + private Boolean selfProfile = null; + + @SerializedName("profileEncapsulation") + private String profileEncapsulation = null; + + @SerializedName("authorizationKey") + private String authorizationKey = null; + + @SerializedName("organizationName") + private String organizationName = null; + + @SerializedName("private") + private Boolean _private = null; + + @SerializedName("features") + private GetServProfServicesRespContentfeatures features = null; + + public GetServProfServicesRespContent uuid(String uuid) { + this.uuid = uuid; + return this; + } + + /** + * Get uuid + * @return uuid + **/ + @ApiModelProperty(example = "xxxxx191-xx70-xxxx-xx04-xxxxxxxa37xx", value = "") + public String getUuid() { + return uuid; + } + + public void setUuid(String uuid) { + this.uuid = uuid; + } + + public GetServProfServicesRespContent name(String name) { + this.name = name; + return this; + } + + /** + * Get name + * @return name + **/ + @ApiModelProperty(example = "test", value = "") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public GetServProfServicesRespContent authKeyLabel(String authKeyLabel) { + this.authKeyLabel = authKeyLabel; + return this; + } + + /** + * Get authKeyLabel + * @return authKeyLabel + **/ + @ApiModelProperty(example = "Authorization Key", value = "") + public String getAuthKeyLabel() { + return authKeyLabel; + } + + public void setAuthKeyLabel(String authKeyLabel) { + this.authKeyLabel = authKeyLabel; + } + + public GetServProfServicesRespContent connectionNameLabel(String connectionNameLabel) { + this.connectionNameLabel = connectionNameLabel; + return this; + } + + /** + * Get connectionNameLabel + * @return connectionNameLabel + **/ + @ApiModelProperty(example = "Connection Name", value = "") + public String getConnectionNameLabel() { + return connectionNameLabel; + } + + public void setConnectionNameLabel(String connectionNameLabel) { + this.connectionNameLabel = connectionNameLabel; + } + + public GetServProfServicesRespContent requiredRedundancy(Boolean requiredRedundancy) { + this.requiredRedundancy = requiredRedundancy; + return this; + } + + /** + * Get requiredRedundancy + * @return requiredRedundancy + **/ + @ApiModelProperty(example = "false", value = "") + public Boolean isRequiredRedundancy() { + return requiredRedundancy; + } + + public void setRequiredRedundancy(Boolean requiredRedundancy) { + this.requiredRedundancy = requiredRedundancy; + } + + public GetServProfServicesRespContent allowCustomSpeed(Boolean allowCustomSpeed) { + this.allowCustomSpeed = allowCustomSpeed; + return this; + } + + /** + * Get allowCustomSpeed + * @return allowCustomSpeed + **/ + @ApiModelProperty(example = "false", value = "") + public Boolean isAllowCustomSpeed() { + return allowCustomSpeed; + } + + public void setAllowCustomSpeed(Boolean allowCustomSpeed) { + this.allowCustomSpeed = allowCustomSpeed; + } + + public GetServProfServicesRespContent speedBands(List speedBands) { + this.speedBands = speedBands; + return this; + } + + public GetServProfServicesRespContent addSpeedBandsItem(SpeedBand speedBandsItem) { + if (this.speedBands == null) { + this.speedBands = new ArrayList(); + } + this.speedBands.add(speedBandsItem); + return this; + } + + /** + * Get speedBands + * @return speedBands + **/ + @ApiModelProperty(value = "") + public List getSpeedBands() { + return speedBands; + } + + public void setSpeedBands(List speedBands) { + this.speedBands = speedBands; + } + + public GetServProfServicesRespContent metros(GetServProfServicesRespContentMetros metros) { + this.metros = metros; + return this; + } + + /** + * Get metros + * @return metros + **/ + @ApiModelProperty(value = "") + public GetServProfServicesRespContentMetros getMetros() { + return metros; + } + + public void setMetros(GetServProfServicesRespContentMetros metros) { + this.metros = metros; + } + + public GetServProfServicesRespContent createdDate(String createdDate) { + this.createdDate = createdDate; + return this; + } + + /** + * Get createdDate + * @return createdDate + **/ + @ApiModelProperty(example = "2018-03-22T04:34:48.231Z", value = "") + public String getCreatedDate() { + return createdDate; + } + + public void setCreatedDate(String createdDate) { + this.createdDate = createdDate; + } + + public GetServProfServicesRespContent createdBy(String createdBy) { + this.createdBy = createdBy; + return this; + } + + /** + * Get createdBy + * @return createdBy + **/ + @ApiModelProperty(example = "Sandbox User", value = "") + public String getCreatedBy() { + return createdBy; + } + + public void setCreatedBy(String createdBy) { + this.createdBy = createdBy; + } + + public GetServProfServicesRespContent lastUpdatedDate(String lastUpdatedDate) { + this.lastUpdatedDate = lastUpdatedDate; + return this; + } + + /** + * Get lastUpdatedDate + * @return lastUpdatedDate + **/ + @ApiModelProperty(example = "2018-04-03T00:30:57.055Z", value = "") + public String getLastUpdatedDate() { + return lastUpdatedDate; + } + + public void setLastUpdatedDate(String lastUpdatedDate) { + this.lastUpdatedDate = lastUpdatedDate; + } + + public GetServProfServicesRespContent lastUpdatedBy(String lastUpdatedBy) { + this.lastUpdatedBy = lastUpdatedBy; + return this; + } + + /** + * Get lastUpdatedBy + * @return lastUpdatedBy + **/ + @ApiModelProperty(example = "Sandbox User", value = "") + public String getLastUpdatedBy() { + return lastUpdatedBy; + } + + public void setLastUpdatedBy(String lastUpdatedBy) { + this.lastUpdatedBy = lastUpdatedBy; + } + + public GetServProfServicesRespContent vlanSameAsPrimary(Boolean vlanSameAsPrimary) { + this.vlanSameAsPrimary = vlanSameAsPrimary; + return this; + } + + /** + * Get vlanSameAsPrimary + * @return vlanSameAsPrimary + **/ + @ApiModelProperty(example = "false", value = "") + public Boolean isVlanSameAsPrimary() { + return vlanSameAsPrimary; + } + + public void setVlanSameAsPrimary(Boolean vlanSameAsPrimary) { + this.vlanSameAsPrimary = vlanSameAsPrimary; + } + + public GetServProfServicesRespContent tagType(String tagType) { + this.tagType = tagType; + return this; + } + + /** + * Get tagType + * @return tagType + **/ + @ApiModelProperty(example = "CTAGED", value = "") + public String getTagType() { + return tagType; + } + + public void setTagType(String tagType) { + this.tagType = tagType; + } + + public GetServProfServicesRespContent ctagLabel(String ctagLabel) { + this.ctagLabel = ctagLabel; + return this; + } + + /** + * Get ctagLabel + * @return ctagLabel + **/ + @ApiModelProperty(example = "Seller-Side C-Tag", value = "") + public String getCtagLabel() { + return ctagLabel; + } + + public void setCtagLabel(String ctagLabel) { + this.ctagLabel = ctagLabel; + } + + public GetServProfServicesRespContent apiAvailable(Boolean apiAvailable) { + this.apiAvailable = apiAvailable; + return this; + } + + /** + * Get apiAvailable + * @return apiAvailable + **/ + @ApiModelProperty(example = "false", value = "") + public Boolean isApiAvailable() { + return apiAvailable; + } + + public void setApiAvailable(Boolean apiAvailable) { + this.apiAvailable = apiAvailable; + } + + public GetServProfServicesRespContent selfProfile(Boolean selfProfile) { + this.selfProfile = selfProfile; + return this; + } + + /** + * Get selfProfile + * @return selfProfile + **/ + @ApiModelProperty(example = "false", value = "") + public Boolean isSelfProfile() { + return selfProfile; + } + + public void setSelfProfile(Boolean selfProfile) { + this.selfProfile = selfProfile; + } + + public GetServProfServicesRespContent profileEncapsulation(String profileEncapsulation) { + this.profileEncapsulation = profileEncapsulation; + return this; + } + + /** + * Get profileEncapsulation + * @return profileEncapsulation + **/ + @ApiModelProperty(example = "Dot1q", value = "") + public String getProfileEncapsulation() { + return profileEncapsulation; + } + + public void setProfileEncapsulation(String profileEncapsulation) { + this.profileEncapsulation = profileEncapsulation; + } + + public GetServProfServicesRespContent authorizationKey(String authorizationKey) { + this.authorizationKey = authorizationKey; + return this; + } + + /** + * Get authorizationKey + * @return authorizationKey + **/ + @ApiModelProperty(example = "535235", value = "") + public String getAuthorizationKey() { + return authorizationKey; + } + + public void setAuthorizationKey(String authorizationKey) { + this.authorizationKey = authorizationKey; + } + + public GetServProfServicesRespContent organizationName(String organizationName) { + this.organizationName = organizationName; + return this; + } + + /** + * Get organizationName + * @return organizationName + **/ + @ApiModelProperty(example = "Equinix-ADMIN", value = "") + public String getOrganizationName() { + return organizationName; + } + + public void setOrganizationName(String organizationName) { + this.organizationName = organizationName; + } + + public GetServProfServicesRespContent _private(Boolean _private) { + this._private = _private; + return this; + } + + /** + * Get _private + * @return _private + **/ + @ApiModelProperty(example = "false", value = "") + public Boolean isPrivate() { + return _private; + } + + public void setPrivate(Boolean _private) { + this._private = _private; + } + + public GetServProfServicesRespContent features(GetServProfServicesRespContentfeatures features) { + this.features = features; + return this; + } + + /** + * Get features + * @return features + **/ + @ApiModelProperty(value = "") + public GetServProfServicesRespContentfeatures getFeatures() { + return features; + } + + public void setFeatures(GetServProfServicesRespContentfeatures features) { + this.features = features; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetServProfServicesRespContent getServProfServicesRespContent = (GetServProfServicesRespContent) o; + return Objects.equals(this.uuid, getServProfServicesRespContent.uuid) && + Objects.equals(this.name, getServProfServicesRespContent.name) && + Objects.equals(this.authKeyLabel, getServProfServicesRespContent.authKeyLabel) && + Objects.equals(this.connectionNameLabel, getServProfServicesRespContent.connectionNameLabel) && + Objects.equals(this.requiredRedundancy, getServProfServicesRespContent.requiredRedundancy) && + Objects.equals(this.allowCustomSpeed, getServProfServicesRespContent.allowCustomSpeed) && + Objects.equals(this.speedBands, getServProfServicesRespContent.speedBands) && + Objects.equals(this.metros, getServProfServicesRespContent.metros) && + Objects.equals(this.createdDate, getServProfServicesRespContent.createdDate) && + Objects.equals(this.createdBy, getServProfServicesRespContent.createdBy) && + Objects.equals(this.lastUpdatedDate, getServProfServicesRespContent.lastUpdatedDate) && + Objects.equals(this.lastUpdatedBy, getServProfServicesRespContent.lastUpdatedBy) && + Objects.equals(this.vlanSameAsPrimary, getServProfServicesRespContent.vlanSameAsPrimary) && + Objects.equals(this.tagType, getServProfServicesRespContent.tagType) && + Objects.equals(this.ctagLabel, getServProfServicesRespContent.ctagLabel) && + Objects.equals(this.apiAvailable, getServProfServicesRespContent.apiAvailable) && + Objects.equals(this.selfProfile, getServProfServicesRespContent.selfProfile) && + Objects.equals(this.profileEncapsulation, getServProfServicesRespContent.profileEncapsulation) && + Objects.equals(this.authorizationKey, getServProfServicesRespContent.authorizationKey) && + Objects.equals(this.organizationName, getServProfServicesRespContent.organizationName) && + Objects.equals(this._private, getServProfServicesRespContent._private) && + Objects.equals(this.features, getServProfServicesRespContent.features); + } + + @Override + public int hashCode() { + return Objects.hash(uuid, name, authKeyLabel, connectionNameLabel, requiredRedundancy, allowCustomSpeed, speedBands, metros, createdDate, createdBy, lastUpdatedDate, lastUpdatedBy, vlanSameAsPrimary, tagType, ctagLabel, apiAvailable, selfProfile, profileEncapsulation, authorizationKey, organizationName, _private, features); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GetServProfServicesRespContent {\n"); + + sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" authKeyLabel: ").append(toIndentedString(authKeyLabel)).append("\n"); + sb.append(" connectionNameLabel: ").append(toIndentedString(connectionNameLabel)).append("\n"); + sb.append(" requiredRedundancy: ").append(toIndentedString(requiredRedundancy)).append("\n"); + sb.append(" allowCustomSpeed: ").append(toIndentedString(allowCustomSpeed)).append("\n"); + sb.append(" speedBands: ").append(toIndentedString(speedBands)).append("\n"); + sb.append(" metros: ").append(toIndentedString(metros)).append("\n"); + sb.append(" createdDate: ").append(toIndentedString(createdDate)).append("\n"); + sb.append(" createdBy: ").append(toIndentedString(createdBy)).append("\n"); + sb.append(" lastUpdatedDate: ").append(toIndentedString(lastUpdatedDate)).append("\n"); + sb.append(" lastUpdatedBy: ").append(toIndentedString(lastUpdatedBy)).append("\n"); + sb.append(" vlanSameAsPrimary: ").append(toIndentedString(vlanSameAsPrimary)).append("\n"); + sb.append(" tagType: ").append(toIndentedString(tagType)).append("\n"); + sb.append(" ctagLabel: ").append(toIndentedString(ctagLabel)).append("\n"); + sb.append(" apiAvailable: ").append(toIndentedString(apiAvailable)).append("\n"); + sb.append(" selfProfile: ").append(toIndentedString(selfProfile)).append("\n"); + sb.append(" profileEncapsulation: ").append(toIndentedString(profileEncapsulation)).append("\n"); + sb.append(" authorizationKey: ").append(toIndentedString(authorizationKey)).append("\n"); + sb.append(" organizationName: ").append(toIndentedString(organizationName)).append("\n"); + sb.append(" _private: ").append(toIndentedString(_private)).append("\n"); + sb.append(" features: ").append(toIndentedString(features)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/GetServProfServicesRespContentMetros.java b/src/main/java/com/equinix/networkedge/model/GetServProfServicesRespContentMetros.java new file mode 100644 index 0000000..62b51e1 --- /dev/null +++ b/src/main/java/com/equinix/networkedge/model/GetServProfServicesRespContentMetros.java @@ -0,0 +1,191 @@ +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; + +import java.util.ArrayList; +import java.util.List; + +/** + * GetServProfServicesRespContentMetros + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class GetServProfServicesRespContentMetros { + @SerializedName("code") + private String code = null; + + @SerializedName("name") + private String name = null; + + @SerializedName("ibxs") + private List ibxs = null; + + @SerializedName("inTrail") + private Boolean inTrail = null; + + @SerializedName("displayName") + private String displayName = null; + + public GetServProfServicesRespContentMetros code(String code) { + this.code = code; + return this; + } + + /** + * Get code + * @return code + **/ + @ApiModelProperty(example = "SV", value = "") + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } + + public GetServProfServicesRespContentMetros name(String name) { + this.name = name; + return this; + } + + /** + * Get name + * @return name + **/ + @ApiModelProperty(example = "Silicon Valley", value = "") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public GetServProfServicesRespContentMetros ibxs(List ibxs) { + this.ibxs = ibxs; + return this; + } + + public GetServProfServicesRespContentMetros addIbxsItem(String ibxsItem) { + if (this.ibxs == null) { + this.ibxs = new ArrayList(); + } + this.ibxs.add(ibxsItem); + return this; + } + + /** + * Get ibxs + * @return ibxs + **/ + @ApiModelProperty(value = "") + public List getIbxs() { + return ibxs; + } + + public void setIbxs(List ibxs) { + this.ibxs = ibxs; + } + + public GetServProfServicesRespContentMetros inTrail(Boolean inTrail) { + this.inTrail = inTrail; + return this; + } + + /** + * Get inTrail + * @return inTrail + **/ + @ApiModelProperty(example = "false", value = "") + public Boolean isInTrail() { + return inTrail; + } + + public void setInTrail(Boolean inTrail) { + this.inTrail = inTrail; + } + + public GetServProfServicesRespContentMetros displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Get displayName + * @return displayName + **/ + @ApiModelProperty(example = "Silicon Valley", value = "") + public String getDisplayName() { + return displayName; + } + + public void setDisplayName(String displayName) { + this.displayName = displayName; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetServProfServicesRespContentMetros getServProfServicesRespContentMetros = (GetServProfServicesRespContentMetros) o; + return Objects.equals(this.code, getServProfServicesRespContentMetros.code) && + Objects.equals(this.name, getServProfServicesRespContentMetros.name) && + Objects.equals(this.ibxs, getServProfServicesRespContentMetros.ibxs) && + Objects.equals(this.inTrail, getServProfServicesRespContentMetros.inTrail) && + Objects.equals(this.displayName, getServProfServicesRespContentMetros.displayName); + } + + @Override + public int hashCode() { + return Objects.hash(code, name, ibxs, inTrail, displayName); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GetServProfServicesRespContentMetros {\n"); + + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" ibxs: ").append(toIndentedString(ibxs)).append("\n"); + sb.append(" inTrail: ").append(toIndentedString(inTrail)).append("\n"); + sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/GetServProfServicesRespContentfeatures.java b/src/main/java/com/equinix/networkedge/model/GetServProfServicesRespContentfeatures.java new file mode 100644 index 0000000..b40983c --- /dev/null +++ b/src/main/java/com/equinix/networkedge/model/GetServProfServicesRespContentfeatures.java @@ -0,0 +1,111 @@ +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; + +/** + * GetServProfServicesRespContentfeatures + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class GetServProfServicesRespContentfeatures { + @SerializedName("cloudReach") + private Boolean cloudReach = null; + + @SerializedName("testProfile") + private Boolean testProfile = null; + + public GetServProfServicesRespContentfeatures cloudReach(Boolean cloudReach) { + this.cloudReach = cloudReach; + return this; + } + + /** + * Get cloudReach + * @return cloudReach + **/ + @ApiModelProperty(example = "true", value = "") + public Boolean isCloudReach() { + return cloudReach; + } + + public void setCloudReach(Boolean cloudReach) { + this.cloudReach = cloudReach; + } + + public GetServProfServicesRespContentfeatures testProfile(Boolean testProfile) { + this.testProfile = testProfile; + return this; + } + + /** + * Get testProfile + * @return testProfile + **/ + @ApiModelProperty(example = "false", value = "") + public Boolean isTestProfile() { + return testProfile; + } + + public void setTestProfile(Boolean testProfile) { + this.testProfile = testProfile; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetServProfServicesRespContentfeatures getServProfServicesRespContentfeatures = (GetServProfServicesRespContentfeatures) o; + return Objects.equals(this.cloudReach, getServProfServicesRespContentfeatures.cloudReach) && + Objects.equals(this.testProfile, getServProfServicesRespContentfeatures.testProfile); + } + + @Override + public int hashCode() { + return Objects.hash(cloudReach, testProfile); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GetServProfServicesRespContentfeatures {\n"); + + sb.append(" cloudReach: ").append(toIndentedString(cloudReach)).append("\n"); + sb.append(" testProfile: ").append(toIndentedString(testProfile)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/GetValidateAuthKeyRes.java b/src/main/java/com/equinix/networkedge/model/GetValidateAuthKeyRes.java new file mode 100644 index 0000000..11a2b9a --- /dev/null +++ b/src/main/java/com/equinix/networkedge/model/GetValidateAuthKeyRes.java @@ -0,0 +1,159 @@ +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; +import com.equinix.networkedge.model.GetValidateAuthkeyresPrimary; +import com.equinix.networkedge.model.GetValidateAuthkeyresSecondary; + +/** + * GetValidateAuthKeyRes + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class GetValidateAuthKeyRes { + @SerializedName("message") + private String message = null; + + @SerializedName("status") + private String status = null; + + @SerializedName("primary") + private GetValidateAuthkeyresPrimary primary = null; + + @SerializedName("secondary") + private GetValidateAuthkeyresSecondary secondary = null; + + public GetValidateAuthKeyRes message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(example = "Authorization key provided is valid", value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public GetValidateAuthKeyRes status(String status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + **/ + @ApiModelProperty(example = "VALID", value = "") + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public GetValidateAuthKeyRes primary(GetValidateAuthkeyresPrimary primary) { + this.primary = primary; + return this; + } + + /** + * Get primary + * @return primary + **/ + @ApiModelProperty(value = "") + public GetValidateAuthkeyresPrimary getPrimary() { + return primary; + } + + public void setPrimary(GetValidateAuthkeyresPrimary primary) { + this.primary = primary; + } + + public GetValidateAuthKeyRes secondary(GetValidateAuthkeyresSecondary secondary) { + this.secondary = secondary; + return this; + } + + /** + * Get secondary + * @return secondary + **/ + @ApiModelProperty(value = "") + public GetValidateAuthkeyresSecondary getSecondary() { + return secondary; + } + + public void setSecondary(GetValidateAuthkeyresSecondary secondary) { + this.secondary = secondary; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetValidateAuthKeyRes getValidateAuthKeyRes = (GetValidateAuthKeyRes) o; + return Objects.equals(this.message, getValidateAuthKeyRes.message) && + Objects.equals(this.status, getValidateAuthKeyRes.status) && + Objects.equals(this.primary, getValidateAuthKeyRes.primary) && + Objects.equals(this.secondary, getValidateAuthKeyRes.secondary); + } + + @Override + public int hashCode() { + return Objects.hash(message, status, primary, secondary); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GetValidateAuthKeyRes {\n"); + + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" primary: ").append(toIndentedString(primary)).append("\n"); + sb.append(" secondary: ").append(toIndentedString(secondary)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/GetValidateAuthkeyresPrimary.java b/src/main/java/com/equinix/networkedge/model/GetValidateAuthkeyresPrimary.java new file mode 100644 index 0000000..c26257d --- /dev/null +++ b/src/main/java/com/equinix/networkedge/model/GetValidateAuthkeyresPrimary.java @@ -0,0 +1,88 @@ +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; + +/** + * GetValidateAuthkeyresPrimary + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class GetValidateAuthkeyresPrimary { + @SerializedName("bandwidth") + private String bandwidth = null; + + public GetValidateAuthkeyresPrimary bandwidth(String bandwidth) { + this.bandwidth = bandwidth; + return this; + } + + /** + * Get bandwidth + * @return bandwidth + **/ + @ApiModelProperty(example = "50MB", value = "") + public String getBandwidth() { + return bandwidth; + } + + public void setBandwidth(String bandwidth) { + this.bandwidth = bandwidth; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetValidateAuthkeyresPrimary getValidateAuthkeyresPrimary = (GetValidateAuthkeyresPrimary) o; + return Objects.equals(this.bandwidth, getValidateAuthkeyresPrimary.bandwidth); + } + + @Override + public int hashCode() { + return Objects.hash(bandwidth); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GetValidateAuthkeyresPrimary {\n"); + + sb.append(" bandwidth: ").append(toIndentedString(bandwidth)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/GetValidateAuthkeyresSecondary.java b/src/main/java/com/equinix/networkedge/model/GetValidateAuthkeyresSecondary.java new file mode 100644 index 0000000..010de7a --- /dev/null +++ b/src/main/java/com/equinix/networkedge/model/GetValidateAuthkeyresSecondary.java @@ -0,0 +1,88 @@ +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; + +/** + * GetValidateAuthkeyresSecondary + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class GetValidateAuthkeyresSecondary { + @SerializedName("bandwidth") + private String bandwidth = null; + + public GetValidateAuthkeyresSecondary bandwidth(String bandwidth) { + this.bandwidth = bandwidth; + return this; + } + + /** + * Get bandwidth + * @return bandwidth + **/ + @ApiModelProperty(example = "50MB", value = "") + public String getBandwidth() { + return bandwidth; + } + + public void setBandwidth(String bandwidth) { + this.bandwidth = bandwidth; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetValidateAuthkeyresSecondary getValidateAuthkeyresSecondary = (GetValidateAuthkeyresSecondary) o; + return Objects.equals(this.bandwidth, getValidateAuthkeyresSecondary.bandwidth); + } + + @Override + public int hashCode() { + return Objects.hash(bandwidth); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GetValidateAuthkeyresSecondary {\n"); + + sb.append(" bandwidth: ").append(toIndentedString(bandwidth)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/HttpRequest.java b/src/main/java/com/equinix/networkedge/model/HttpRequest.java deleted file mode 100644 index 8027a05..0000000 --- a/src/main/java/com/equinix/networkedge/model/HttpRequest.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * The Apache License - * - * Copyright 2017 Equinix Inc. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. - */ -package com.equinix.networkedge.model; - -import lombok.Data; - -/** - * @author aanchala 7/13/2018 - **/ -public @Data -class HttpRequest { - - private String[] metroCode; - private String pageNumber; - private String pageSize; - private String metro; - -} diff --git a/src/main/java/com/equinix/networkedge/model/InterfaceBasicInfoResponse.java b/src/main/java/com/equinix/networkedge/model/InterfaceBasicInfoResponse.java new file mode 100644 index 0000000..77bfd2c --- /dev/null +++ b/src/main/java/com/equinix/networkedge/model/InterfaceBasicInfoResponse.java @@ -0,0 +1,203 @@ +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; + +/** + * InterfaceBasicInfoResponse + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class InterfaceBasicInfoResponse { + @SerializedName("id") + private String id = null; + + @SerializedName("ipv4Mask") + private String ipv4Mask = null; + + @SerializedName("ipv4Subnet") + private String ipv4Subnet = null; + + @SerializedName("name") + private String name = null; + + @SerializedName("status") + private String status = null; + + @SerializedName("type") + private String type = null; + + public InterfaceBasicInfoResponse id(String id) { + this.id = id; + return this; + } + + /** + * Get id + * @return id + **/ + @ApiModelProperty(example = "877a3aa2-c49a-4af1-98a6-007424e737ae", value = "") + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public InterfaceBasicInfoResponse ipv4Mask(String ipv4Mask) { + this.ipv4Mask = ipv4Mask; + return this; + } + + /** + * Get ipv4Mask + * @return ipv4Mask + **/ + @ApiModelProperty(example = "255.255.255.0", value = "") + public String getIpv4Mask() { + return ipv4Mask; + } + + public void setIpv4Mask(String ipv4Mask) { + this.ipv4Mask = ipv4Mask; + } + + public InterfaceBasicInfoResponse ipv4Subnet(String ipv4Subnet) { + this.ipv4Subnet = ipv4Subnet; + return this; + } + + /** + * Get ipv4Subnet + * @return ipv4Subnet + **/ + @ApiModelProperty(example = "192.168.0.5", value = "") + public String getIpv4Subnet() { + return ipv4Subnet; + } + + public void setIpv4Subnet(String ipv4Subnet) { + this.ipv4Subnet = ipv4Subnet; + } + + public InterfaceBasicInfoResponse name(String name) { + this.name = name; + return this; + } + + /** + * Get name + * @return name + **/ + @ApiModelProperty(example = "ethernet1", value = "") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public InterfaceBasicInfoResponse status(String status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + **/ + @ApiModelProperty(example = "ASSIGNED", value = "") + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public InterfaceBasicInfoResponse type(String type) { + this.type = type; + return this; + } + + /** + * Get type + * @return type + **/ + @ApiModelProperty(example = "DATA", value = "") + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + InterfaceBasicInfoResponse interfaceBasicInfoResponse = (InterfaceBasicInfoResponse) o; + return Objects.equals(this.id, interfaceBasicInfoResponse.id) && + Objects.equals(this.ipv4Mask, interfaceBasicInfoResponse.ipv4Mask) && + Objects.equals(this.ipv4Subnet, interfaceBasicInfoResponse.ipv4Subnet) && + Objects.equals(this.name, interfaceBasicInfoResponse.name) && + Objects.equals(this.status, interfaceBasicInfoResponse.status) && + Objects.equals(this.type, interfaceBasicInfoResponse.type); + } + + @Override + public int hashCode() { + return Objects.hash(id, ipv4Mask, ipv4Subnet, name, status, type); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class InterfaceBasicInfoResponse {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" ipv4Mask: ").append(toIndentedString(ipv4Mask)).append("\n"); + sb.append(" ipv4Subnet: ").append(toIndentedString(ipv4Subnet)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/InterfaceBasicInfoResponseDto.java b/src/main/java/com/equinix/networkedge/model/InterfaceBasicInfoResponseDto.java new file mode 100644 index 0000000..c91358d --- /dev/null +++ b/src/main/java/com/equinix/networkedge/model/InterfaceBasicInfoResponseDto.java @@ -0,0 +1,134 @@ +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; + +/** + * InterfaceBasicInfoResponseDto + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class InterfaceBasicInfoResponseDto { + @SerializedName("description") + private String description = null; + + @SerializedName("name") + private String name = null; + + @SerializedName("status") + private String status = null; + + public InterfaceBasicInfoResponseDto description(String description) { + this.description = description; + return this; + } + + /** + * Get description + * @return description + **/ + @ApiModelProperty(example = "ethernet1", value = "") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public InterfaceBasicInfoResponseDto name(String name) { + this.name = name; + return this; + } + + /** + * Get name + * @return name + **/ + @ApiModelProperty(example = "ethernet1", value = "") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public InterfaceBasicInfoResponseDto status(String status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + **/ + @ApiModelProperty(example = "ASSIGNED", value = "") + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + InterfaceBasicInfoResponseDto interfaceBasicInfoResponseDto = (InterfaceBasicInfoResponseDto) o; + return Objects.equals(this.description, interfaceBasicInfoResponseDto.description) && + Objects.equals(this.name, interfaceBasicInfoResponseDto.name) && + Objects.equals(this.status, interfaceBasicInfoResponseDto.status); + } + + @Override + public int hashCode() { + return Objects.hash(description, name, status); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class InterfaceBasicInfoResponseDto {\n"); + + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/LicenseFileMappingDto.java b/src/main/java/com/equinix/networkedge/model/LicenseFileMappingDto.java new file mode 100644 index 0000000..a4a55fe --- /dev/null +++ b/src/main/java/com/equinix/networkedge/model/LicenseFileMappingDto.java @@ -0,0 +1,134 @@ +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; + +/** + * LicenseFileMappingDto + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class LicenseFileMappingDto { + @SerializedName("filename") + private String filename = null; + + @SerializedName("throughput") + private Integer throughput = null; + + @SerializedName("throughputUnit") + private String throughputUnit = null; + + public LicenseFileMappingDto filename(String filename) { + this.filename = filename; + return this; + } + + /** + * Get filename + * @return filename + **/ + @ApiModelProperty(value = "") + public String getFilename() { + return filename; + } + + public void setFilename(String filename) { + this.filename = filename; + } + + public LicenseFileMappingDto throughput(Integer throughput) { + this.throughput = throughput; + return this; + } + + /** + * Get throughput + * @return throughput + **/ + @ApiModelProperty(value = "") + public Integer getThroughput() { + return throughput; + } + + public void setThroughput(Integer throughput) { + this.throughput = throughput; + } + + public LicenseFileMappingDto throughputUnit(String throughputUnit) { + this.throughputUnit = throughputUnit; + return this; + } + + /** + * Get throughputUnit + * @return throughputUnit + **/ + @ApiModelProperty(value = "") + public String getThroughputUnit() { + return throughputUnit; + } + + public void setThroughputUnit(String throughputUnit) { + this.throughputUnit = throughputUnit; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LicenseFileMappingDto licenseFileMappingDto = (LicenseFileMappingDto) o; + return Objects.equals(this.filename, licenseFileMappingDto.filename) && + Objects.equals(this.throughput, licenseFileMappingDto.throughput) && + Objects.equals(this.throughputUnit, licenseFileMappingDto.throughputUnit); + } + + @Override + public int hashCode() { + return Objects.hash(filename, throughput, throughputUnit); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LicenseFileMappingDto {\n"); + + sb.append(" filename: ").append(toIndentedString(filename)).append("\n"); + sb.append(" throughput: ").append(toIndentedString(throughput)).append("\n"); + sb.append(" throughputUnit: ").append(toIndentedString(throughputUnit)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/LicenseOptions.java b/src/main/java/com/equinix/networkedge/model/LicenseOptions.java new file mode 100644 index 0000000..504841e --- /dev/null +++ b/src/main/java/com/equinix/networkedge/model/LicenseOptions.java @@ -0,0 +1,111 @@ +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; + +/** + * LicenseOptions + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class LicenseOptions { + @SerializedName("name") + private String name = null; + + @SerializedName("type") + private String type = null; + + public LicenseOptions name(String name) { + this.name = name; + return this; + } + + /** + * License name + * @return name + **/ + @ApiModelProperty(example = "Subscription", value = "License name") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public LicenseOptions type(String type) { + this.type = type; + return this; + } + + /** + * License type + * @return type + **/ + @ApiModelProperty(example = "Sub", value = "License type") + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LicenseOptions licenseOptions = (LicenseOptions) o; + return Objects.equals(this.name, licenseOptions.name) && + Objects.equals(this.type, licenseOptions.type); + } + + @Override + public int hashCode() { + return Objects.hash(name, type); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LicenseOptions {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/LicenseUpdateRequest.java b/src/main/java/com/equinix/networkedge/model/LicenseUpdateRequest.java new file mode 100644 index 0000000..fd01343 --- /dev/null +++ b/src/main/java/com/equinix/networkedge/model/LicenseUpdateRequest.java @@ -0,0 +1,88 @@ +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; + +/** + * LicenseUpdateRequest + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class LicenseUpdateRequest { + @SerializedName("token") + private String token = null; + + public LicenseUpdateRequest token(String token) { + this.token = token; + return this; + } + + /** + * Get token + * @return token + **/ + @ApiModelProperty(example = "A1025025", value = "") + public String getToken() { + return token; + } + + public void setToken(String token) { + this.token = token; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LicenseUpdateRequest licenseUpdateRequest = (LicenseUpdateRequest) o; + return Objects.equals(this.token, licenseUpdateRequest.token); + } + + @Override + public int hashCode() { + return Objects.hash(token); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LicenseUpdateRequest {\n"); + + sb.append(" token: ").append(toIndentedString(token)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/LicenseUploadResponse.java b/src/main/java/com/equinix/networkedge/model/LicenseUploadResponse.java new file mode 100644 index 0000000..813ca37 --- /dev/null +++ b/src/main/java/com/equinix/networkedge/model/LicenseUploadResponse.java @@ -0,0 +1,88 @@ +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; + +/** + * LicenseUploadResponse + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class LicenseUploadResponse { + @SerializedName("fileId") + private String fileId = null; + + public LicenseUploadResponse fileId(String fileId) { + this.fileId = fileId; + return this; + } + + /** + * Get fileId + * @return fileId + **/ + @ApiModelProperty(value = "") + public String getFileId() { + return fileId; + } + + public void setFileId(String fileId) { + this.fileId = fileId; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LicenseUploadResponse licenseUploadResponse = (LicenseUploadResponse) o; + return Objects.equals(this.fileId, licenseUploadResponse.fileId); + } + + @Override + public int hashCode() { + return Objects.hash(fileId); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LicenseUploadResponse {\n"); + + sb.append(" fileId: ").append(toIndentedString(fileId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/Metadata.java b/src/main/java/com/equinix/networkedge/model/Metadata.java index 5fff6e3..34c8bb5 100644 --- a/src/main/java/com/equinix/networkedge/model/Metadata.java +++ b/src/main/java/com/equinix/networkedge/model/Metadata.java @@ -1,34 +1,88 @@ -/* - * The Apache License - * - * Copyright 2017 Equinix Inc. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. - */ -package com.equinix.networkedge.model; - -import lombok.Data; - -/** - * @author aanchala 7/13/2018 - **/ -public @Data class Metadata { - private String key = null; - private String value = null; -} +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; + +/** + * Metadata + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class Metadata { + @SerializedName("supportedInterfaceCount") + private Integer supportedInterfaceCount = null; + + public Metadata supportedInterfaceCount(Integer supportedInterfaceCount) { + this.supportedInterfaceCount = supportedInterfaceCount; + return this; + } + + /** + * Get supportedInterfaceCount + * @return supportedInterfaceCount + **/ + @ApiModelProperty(value = "") + public Integer getSupportedInterfaceCount() { + return supportedInterfaceCount; + } + + public void setSupportedInterfaceCount(Integer supportedInterfaceCount) { + this.supportedInterfaceCount = supportedInterfaceCount; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Metadata metadata = (Metadata) o; + return Objects.equals(this.supportedInterfaceCount, metadata.supportedInterfaceCount); + } + + @Override + public int hashCode() { + return Objects.hash(supportedInterfaceCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Metadata {\n"); + + sb.append(" supportedInterfaceCount: ").append(toIndentedString(supportedInterfaceCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/Metro.java b/src/main/java/com/equinix/networkedge/model/Metro.java index 0203dda..91e19cd 100644 --- a/src/main/java/com/equinix/networkedge/model/Metro.java +++ b/src/main/java/com/equinix/networkedge/model/Metro.java @@ -1,70 +1,134 @@ -/* - * The Apache License - * - * Copyright 2017 Equinix Inc. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. - */ -package com.equinix.networkedge.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Data; - -import java.util.Arrays; -import java.util.List; - - -public @Data class Metro { - - @JsonProperty - private String name; - - @JsonProperty - private String code; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty - private String region; - - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty - private List cloudReach; - - @JsonProperty - @JsonInclude(JsonInclude.Include.NON_NULL) - private List ibxs; - - @JsonProperty("availability_status") - @JsonInclude(JsonInclude.Include.NON_NULL) - private String availabeStatus; - - @Override - public String toString() { - return "Metro{" + - "name='" + name + '\'' + - ", code='" + code + '\'' + - ", region='" + region + '\'' + - ", cloudReach=" + cloudReach + - ", ibxs=" + ibxs + - ", availabeStatus='" + availabeStatus + '\'' + - '}' +"\n"; - } -} +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; + +/** + * Metro + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class Metro { + @SerializedName("metroCode") + private String metroCode = null; + + @SerializedName("metroDescription") + private String metroDescription = null; + + @SerializedName("region") + private String region = null; + + public Metro metroCode(String metroCode) { + this.metroCode = metroCode; + return this; + } + + /** + * Metro code + * @return metroCode + **/ + @ApiModelProperty(example = "DC", value = "Metro code") + public String getMetroCode() { + return metroCode; + } + + public void setMetroCode(String metroCode) { + this.metroCode = metroCode; + } + + public Metro metroDescription(String metroDescription) { + this.metroDescription = metroDescription; + return this; + } + + /** + * Metro description + * @return metroDescription + **/ + @ApiModelProperty(example = "Ashburn", value = "Metro description") + public String getMetroDescription() { + return metroDescription; + } + + public void setMetroDescription(String metroDescription) { + this.metroDescription = metroDescription; + } + + public Metro region(String region) { + this.region = region; + return this; + } + + /** + * Region. It may have several metros. + * @return region + **/ + @ApiModelProperty(example = "AMER", value = "Region. It may have several metros.") + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Metro metro = (Metro) o; + return Objects.equals(this.metroCode, metro.metroCode) && + Objects.equals(this.metroDescription, metro.metroDescription) && + Objects.equals(this.region, metro.region); + } + + @Override + public int hashCode() { + return Objects.hash(metroCode, metroDescription, region); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Metro {\n"); + + sb.append(" metroCode: ").append(toIndentedString(metroCode)).append("\n"); + sb.append(" metroDescription: ").append(toIndentedString(metroDescription)).append("\n"); + sb.append(" region: ").append(toIndentedString(region)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/MetroAccountResponse.java b/src/main/java/com/equinix/networkedge/model/MetroAccountResponse.java new file mode 100644 index 0000000..084feb4 --- /dev/null +++ b/src/main/java/com/equinix/networkedge/model/MetroAccountResponse.java @@ -0,0 +1,180 @@ +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; + +/** + * MetroAccountResponse + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class MetroAccountResponse { + @SerializedName("accountName") + private String accountName = null; + + @SerializedName("accountNumber") + private Integer accountNumber = null; + + @SerializedName("accountUcmId") + private String accountUcmId = null; + + @SerializedName("accountStatus") + private String accountStatus = null; + + @SerializedName("referenceId") + private String referenceId = null; + + public MetroAccountResponse accountName(String accountName) { + this.accountName = accountName; + return this; + } + + /** + * account Name + * @return accountName + **/ + @ApiModelProperty(example = "nfv1", value = "account Name") + public String getAccountName() { + return accountName; + } + + public void setAccountName(String accountName) { + this.accountName = accountName; + } + + public MetroAccountResponse accountNumber(Integer accountNumber) { + this.accountNumber = accountNumber; + return this; + } + + /** + * account number + * @return accountNumber + **/ + @ApiModelProperty(example = "2252619", value = "account number") + public Integer getAccountNumber() { + return accountNumber; + } + + public void setAccountNumber(Integer accountNumber) { + this.accountNumber = accountNumber; + } + + public MetroAccountResponse accountUcmId(String accountUcmId) { + this.accountUcmId = accountUcmId; + return this; + } + + /** + * account UcmId + * @return accountUcmId + **/ + @ApiModelProperty(example = "92D27009-EA33-4b60-B4FB-D3C4ED589649", value = "account UcmId") + public String getAccountUcmId() { + return accountUcmId; + } + + public void setAccountUcmId(String accountUcmId) { + this.accountUcmId = accountUcmId; + } + + public MetroAccountResponse accountStatus(String accountStatus) { + this.accountStatus = accountStatus; + return this; + } + + /** + * account status + * @return accountStatus + **/ + @ApiModelProperty(example = "Active", value = "account status") + public String getAccountStatus() { + return accountStatus; + } + + public void setAccountStatus(String accountStatus) { + this.accountStatus = accountStatus; + } + + public MetroAccountResponse referenceId(String referenceId) { + this.referenceId = referenceId; + return this; + } + + /** + * referenceId + * @return referenceId + **/ + @ApiModelProperty(example = "", value = "referenceId") + public String getReferenceId() { + return referenceId; + } + + public void setReferenceId(String referenceId) { + this.referenceId = referenceId; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MetroAccountResponse metroAccountResponse = (MetroAccountResponse) o; + return Objects.equals(this.accountName, metroAccountResponse.accountName) && + Objects.equals(this.accountNumber, metroAccountResponse.accountNumber) && + Objects.equals(this.accountUcmId, metroAccountResponse.accountUcmId) && + Objects.equals(this.accountStatus, metroAccountResponse.accountStatus) && + Objects.equals(this.referenceId, metroAccountResponse.referenceId); + } + + @Override + public int hashCode() { + return Objects.hash(accountName, accountNumber, accountUcmId, accountStatus, referenceId); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MetroAccountResponse {\n"); + + sb.append(" accountName: ").append(toIndentedString(accountName)).append("\n"); + sb.append(" accountNumber: ").append(toIndentedString(accountNumber)).append("\n"); + sb.append(" accountUcmId: ").append(toIndentedString(accountUcmId)).append("\n"); + sb.append(" accountStatus: ").append(toIndentedString(accountStatus)).append("\n"); + sb.append(" referenceId: ").append(toIndentedString(referenceId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/MetroResponse.java b/src/main/java/com/equinix/networkedge/model/MetroResponse.java index b1ab240..3af2df3 100644 --- a/src/main/java/com/equinix/networkedge/model/MetroResponse.java +++ b/src/main/java/com/equinix/networkedge/model/MetroResponse.java @@ -1,41 +1,134 @@ -/* - * The Apache License - * - * Copyright 2017 Equinix Inc. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. - */ -package com.equinix.networkedge.model; - -import lombok.Data; - -import java.util.ArrayList; -import java.util.List; - - -public @Data class MetroResponse { - private List metros = new ArrayList(); - - @Override - public String toString() { - return "MetroResponse{" + - "metros=" + metros + - '}'; - } -} +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; + +/** + * MetroResponse + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class MetroResponse { + @SerializedName("metroCode") + private String metroCode = null; + + @SerializedName("metroDescription") + private String metroDescription = null; + + @SerializedName("region") + private String region = null; + + public MetroResponse metroCode(String metroCode) { + this.metroCode = metroCode; + return this; + } + + /** + * Metro code + * @return metroCode + **/ + @ApiModelProperty(example = "SV", value = "Metro code") + public String getMetroCode() { + return metroCode; + } + + public void setMetroCode(String metroCode) { + this.metroCode = metroCode; + } + + public MetroResponse metroDescription(String metroDescription) { + this.metroDescription = metroDescription; + return this; + } + + /** + * Metro description + * @return metroDescription + **/ + @ApiModelProperty(example = "Silicon Valley", value = "Metro description") + public String getMetroDescription() { + return metroDescription; + } + + public void setMetroDescription(String metroDescription) { + this.metroDescription = metroDescription; + } + + public MetroResponse region(String region) { + this.region = region; + return this; + } + + /** + * Region within which the metro is located + * @return region + **/ + @ApiModelProperty(example = "AMER", value = "Region within which the metro is located") + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MetroResponse metroResponse = (MetroResponse) o; + return Objects.equals(this.metroCode, metroResponse.metroCode) && + Objects.equals(this.metroDescription, metroResponse.metroDescription) && + Objects.equals(this.region, metroResponse.region); + } + + @Override + public int hashCode() { + return Objects.hash(metroCode, metroDescription, region); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MetroResponse {\n"); + + sb.append(" metroCode: ").append(toIndentedString(metroCode)).append("\n"); + sb.append(" metroDescription: ").append(toIndentedString(metroDescription)).append("\n"); + sb.append(" region: ").append(toIndentedString(region)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/MetroStatus.java b/src/main/java/com/equinix/networkedge/model/MetroStatus.java new file mode 100644 index 0000000..1b3b64e --- /dev/null +++ b/src/main/java/com/equinix/networkedge/model/MetroStatus.java @@ -0,0 +1,191 @@ +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; + +import java.util.HashMap; +import java.util.Map; + +/** + * MetroStatus + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class MetroStatus { + @SerializedName("created") + private Boolean created = null; + + @SerializedName("deviceToIpMap") + private Map deviceToIpMap = null; + + @SerializedName("errorCode") + private String errorCode = null; + + @SerializedName("errorMessage") + private String errorMessage = null; + + @SerializedName("status") + private String status = null; + + public MetroStatus created(Boolean created) { + this.created = created; + return this; + } + + /** + * Get created + * @return created + **/ + @ApiModelProperty(value = "") + public Boolean isCreated() { + return created; + } + + public void setCreated(Boolean created) { + this.created = created; + } + + public MetroStatus deviceToIpMap(Map deviceToIpMap) { + this.deviceToIpMap = deviceToIpMap; + return this; + } + + public MetroStatus putDeviceToIpMapItem(String key, String deviceToIpMapItem) { + if (this.deviceToIpMap == null) { + this.deviceToIpMap = new HashMap(); + } + this.deviceToIpMap.put(key, deviceToIpMapItem); + return this; + } + + /** + * Get deviceToIpMap + * @return deviceToIpMap + **/ + @ApiModelProperty(value = "") + public Map getDeviceToIpMap() { + return deviceToIpMap; + } + + public void setDeviceToIpMap(Map deviceToIpMap) { + this.deviceToIpMap = deviceToIpMap; + } + + public MetroStatus errorCode(String errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(value = "") + public String getErrorCode() { + return errorCode; + } + + public void setErrorCode(String errorCode) { + this.errorCode = errorCode; + } + + public MetroStatus errorMessage(String errorMessage) { + this.errorMessage = errorMessage; + return this; + } + + /** + * Get errorMessage + * @return errorMessage + **/ + @ApiModelProperty(value = "") + public String getErrorMessage() { + return errorMessage; + } + + public void setErrorMessage(String errorMessage) { + this.errorMessage = errorMessage; + } + + public MetroStatus status(String status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + **/ + @ApiModelProperty(value = "") + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MetroStatus metroStatus = (MetroStatus) o; + return Objects.equals(this.created, metroStatus.created) && + Objects.equals(this.deviceToIpMap, metroStatus.deviceToIpMap) && + Objects.equals(this.errorCode, metroStatus.errorCode) && + Objects.equals(this.errorMessage, metroStatus.errorMessage) && + Objects.equals(this.status, metroStatus.status); + } + + @Override + public int hashCode() { + return Objects.hash(created, deviceToIpMap, errorCode, errorMessage, status); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MetroStatus {\n"); + + sb.append(" created: ").append(toIndentedString(created)).append("\n"); + sb.append(" deviceToIpMap: ").append(toIndentedString(deviceToIpMap)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" errorMessage: ").append(toIndentedString(errorMessage)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/OAuthErrorResponse.java b/src/main/java/com/equinix/networkedge/model/OAuthErrorResponse.java new file mode 100644 index 0000000..7e53d8a --- /dev/null +++ b/src/main/java/com/equinix/networkedge/model/OAuthErrorResponse.java @@ -0,0 +1,180 @@ +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; + +/** + * OAuthErrorResponse + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class OAuthErrorResponse { + @SerializedName("errorDomain") + private String errorDomain = null; + + @SerializedName("errorTitle") + private String errorTitle = null; + + @SerializedName("errorCode") + private String errorCode = null; + + @SerializedName("developerMessage") + private String developerMessage = null; + + @SerializedName("errorMessage") + private String errorMessage = null; + + public OAuthErrorResponse errorDomain(String errorDomain) { + this.errorDomain = errorDomain; + return this; + } + + /** + * Get errorDomain + * @return errorDomain + **/ + @ApiModelProperty(example = "apps-fqa", value = "") + public String getErrorDomain() { + return errorDomain; + } + + public void setErrorDomain(String errorDomain) { + this.errorDomain = errorDomain; + } + + public OAuthErrorResponse errorTitle(String errorTitle) { + this.errorTitle = errorTitle; + return this; + } + + /** + * Get errorTitle + * @return errorTitle + **/ + @ApiModelProperty(example = "Invalid Username/Password", value = "") + public String getErrorTitle() { + return errorTitle; + } + + public void setErrorTitle(String errorTitle) { + this.errorTitle = errorTitle; + } + + public OAuthErrorResponse errorCode(String errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + **/ + @ApiModelProperty(example = "S1003", value = "") + public String getErrorCode() { + return errorCode; + } + + public void setErrorCode(String errorCode) { + this.errorCode = errorCode; + } + + public OAuthErrorResponse developerMessage(String developerMessage) { + this.developerMessage = developerMessage; + return this; + } + + /** + * Get developerMessage + * @return developerMessage + **/ + @ApiModelProperty(example = "Invalid Username/Password", value = "") + public String getDeveloperMessage() { + return developerMessage; + } + + public void setDeveloperMessage(String developerMessage) { + this.developerMessage = developerMessage; + } + + public OAuthErrorResponse errorMessage(String errorMessage) { + this.errorMessage = errorMessage; + return this; + } + + /** + * Get errorMessage + * @return errorMessage + **/ + @ApiModelProperty(example = "Username or password wasn't recognized, please try again.", value = "") + public String getErrorMessage() { + return errorMessage; + } + + public void setErrorMessage(String errorMessage) { + this.errorMessage = errorMessage; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OAuthErrorResponse oauthErrorResponse = (OAuthErrorResponse) o; + return Objects.equals(this.errorDomain, oauthErrorResponse.errorDomain) && + Objects.equals(this.errorTitle, oauthErrorResponse.errorTitle) && + Objects.equals(this.errorCode, oauthErrorResponse.errorCode) && + Objects.equals(this.developerMessage, oauthErrorResponse.developerMessage) && + Objects.equals(this.errorMessage, oauthErrorResponse.errorMessage); + } + + @Override + public int hashCode() { + return Objects.hash(errorDomain, errorTitle, errorCode, developerMessage, errorMessage); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OAuthErrorResponse {\n"); + + sb.append(" errorDomain: ").append(toIndentedString(errorDomain)).append("\n"); + sb.append(" errorTitle: ").append(toIndentedString(errorTitle)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" developerMessage: ").append(toIndentedString(developerMessage)).append("\n"); + sb.append(" errorMessage: ").append(toIndentedString(errorMessage)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/OAuthRequest.java b/src/main/java/com/equinix/networkedge/model/OAuthRequest.java new file mode 100644 index 0000000..beee26b --- /dev/null +++ b/src/main/java/com/equinix/networkedge/model/OAuthRequest.java @@ -0,0 +1,180 @@ +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; + +/** + * OAuthRequest + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class OAuthRequest { + @SerializedName("grant_type") + private String grantType = null; + + @SerializedName("user_name") + private String userName = null; + + @SerializedName("user_password") + private String userPassword = null; + + @SerializedName("client_id") + private String clientId = null; + + @SerializedName("client_secret") + private String clientSecret = null; + + public OAuthRequest grantType(String grantType) { + this.grantType = grantType; + return this; + } + + /** + * Get grantType + * @return grantType + **/ + @ApiModelProperty(example = "client_credentials", value = "") + public String getGrantType() { + return grantType; + } + + public void setGrantType(String grantType) { + this.grantType = grantType; + } + + public OAuthRequest userName(String userName) { + this.userName = userName; + return this; + } + + /** + * Get userName + * @return userName + **/ + @ApiModelProperty(example = "sandboxuser@example-company.com", value = "") + public String getUserName() { + return userName; + } + + public void setUserName(String userName) { + this.userName = userName; + } + + public OAuthRequest userPassword(String userPassword) { + this.userPassword = userPassword; + return this; + } + + /** + * Get userPassword + * @return userPassword + **/ + @ApiModelProperty(example = "password", value = "") + public String getUserPassword() { + return userPassword; + } + + public void setUserPassword(String userPassword) { + this.userPassword = userPassword; + } + + public OAuthRequest clientId(String clientId) { + this.clientId = clientId; + return this; + } + + /** + * Get clientId + * @return clientId + **/ + @ApiModelProperty(example = "xxxxxxNxxTkxxxxxxxxxtm0xxxxxxxxx", value = "") + public String getClientId() { + return clientId; + } + + public void setClientId(String clientId) { + this.clientId = clientId; + } + + public OAuthRequest clientSecret(String clientSecret) { + this.clientSecret = clientSecret; + return this; + } + + /** + * Get clientSecret + * @return clientSecret + **/ + @ApiModelProperty(example = "xxxxxxxx7jxxxxxxy", value = "") + public String getClientSecret() { + return clientSecret; + } + + public void setClientSecret(String clientSecret) { + this.clientSecret = clientSecret; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OAuthRequest oauthRequest = (OAuthRequest) o; + return Objects.equals(this.grantType, oauthRequest.grantType) && + Objects.equals(this.userName, oauthRequest.userName) && + Objects.equals(this.userPassword, oauthRequest.userPassword) && + Objects.equals(this.clientId, oauthRequest.clientId) && + Objects.equals(this.clientSecret, oauthRequest.clientSecret); + } + + @Override + public int hashCode() { + return Objects.hash(grantType, userName, userPassword, clientId, clientSecret); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OAuthRequest {\n"); + + sb.append(" grantType: ").append(toIndentedString(grantType)).append("\n"); + sb.append(" userName: ").append(toIndentedString(userName)).append("\n"); + sb.append(" userPassword: ").append(toIndentedString(userPassword)).append("\n"); + sb.append(" clientId: ").append(toIndentedString(clientId)).append("\n"); + sb.append(" clientSecret: ").append(toIndentedString(clientSecret)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/OAuthResponse.java b/src/main/java/com/equinix/networkedge/model/OAuthResponse.java new file mode 100644 index 0000000..a5d34b4 --- /dev/null +++ b/src/main/java/com/equinix/networkedge/model/OAuthResponse.java @@ -0,0 +1,203 @@ +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; + +/** + * OAuthResponse + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class OAuthResponse { + @SerializedName("access_token") + private String accessToken = null; + + @SerializedName("token_timeout") + private Integer tokenTimeout = null; + + @SerializedName("user_name") + private String userName = null; + + @SerializedName("token_type") + private String tokenType = null; + + @SerializedName("refresh_token") + private String refreshToken = null; + + @SerializedName("refresh_token_timeout") + private String refreshTokenTimeout = null; + + public OAuthResponse accessToken(String accessToken) { + this.accessToken = accessToken; + return this; + } + + /** + * Get accessToken + * @return accessToken + **/ + @ApiModelProperty(example = "xxxxBxxitwxxxxx8xxRxxxxxR2xx", value = "") + public String getAccessToken() { + return accessToken; + } + + public void setAccessToken(String accessToken) { + this.accessToken = accessToken; + } + + public OAuthResponse tokenTimeout(Integer tokenTimeout) { + this.tokenTimeout = tokenTimeout; + return this; + } + + /** + * Get tokenTimeout + * @return tokenTimeout + **/ + @ApiModelProperty(example = "3599", value = "") + public Integer getTokenTimeout() { + return tokenTimeout; + } + + public void setTokenTimeout(Integer tokenTimeout) { + this.tokenTimeout = tokenTimeout; + } + + public OAuthResponse userName(String userName) { + this.userName = userName; + return this; + } + + /** + * Get userName + * @return userName + **/ + @ApiModelProperty(example = "sandboxuser@example-company.com", value = "") + public String getUserName() { + return userName; + } + + public void setUserName(String userName) { + this.userName = userName; + } + + public OAuthResponse tokenType(String tokenType) { + this.tokenType = tokenType; + return this; + } + + /** + * Get tokenType + * @return tokenType + **/ + @ApiModelProperty(example = "Bearer", value = "") + public String getTokenType() { + return tokenType; + } + + public void setTokenType(String tokenType) { + this.tokenType = tokenType; + } + + public OAuthResponse refreshToken(String refreshToken) { + this.refreshToken = refreshToken; + return this; + } + + /** + * Get refreshToken + * @return refreshToken + **/ + @ApiModelProperty(example = "xxxxQbGUnxxxxHsyxxxxxxxBBxxxxYxxxxxxxf4xxx", value = "") + public String getRefreshToken() { + return refreshToken; + } + + public void setRefreshToken(String refreshToken) { + this.refreshToken = refreshToken; + } + + public OAuthResponse refreshTokenTimeout(String refreshTokenTimeout) { + this.refreshTokenTimeout = refreshTokenTimeout; + return this; + } + + /** + * Get refreshTokenTimeout + * @return refreshTokenTimeout + **/ + @ApiModelProperty(example = "5182560", value = "") + public String getRefreshTokenTimeout() { + return refreshTokenTimeout; + } + + public void setRefreshTokenTimeout(String refreshTokenTimeout) { + this.refreshTokenTimeout = refreshTokenTimeout; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OAuthResponse oauthResponse = (OAuthResponse) o; + return Objects.equals(this.accessToken, oauthResponse.accessToken) && + Objects.equals(this.tokenTimeout, oauthResponse.tokenTimeout) && + Objects.equals(this.userName, oauthResponse.userName) && + Objects.equals(this.tokenType, oauthResponse.tokenType) && + Objects.equals(this.refreshToken, oauthResponse.refreshToken) && + Objects.equals(this.refreshTokenTimeout, oauthResponse.refreshTokenTimeout); + } + + @Override + public int hashCode() { + return Objects.hash(accessToken, tokenTimeout, userName, tokenType, refreshToken, refreshTokenTimeout); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OAuthResponse {\n"); + + sb.append(" accessToken: ").append(toIndentedString(accessToken)).append("\n"); + sb.append(" tokenTimeout: ").append(toIndentedString(tokenTimeout)).append("\n"); + sb.append(" userName: ").append(toIndentedString(userName)).append("\n"); + sb.append(" tokenType: ").append(toIndentedString(tokenType)).append("\n"); + sb.append(" refreshToken: ").append(toIndentedString(refreshToken)).append("\n"); + sb.append(" refreshTokenTimeout: ").append(toIndentedString(refreshTokenTimeout)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/Oauth2TokenRequest.java b/src/main/java/com/equinix/networkedge/model/Oauth2TokenRequest.java deleted file mode 100644 index 2b209e2..0000000 --- a/src/main/java/com/equinix/networkedge/model/Oauth2TokenRequest.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * The Apache License - * - * Copyright 2017 Equinix Inc. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. - */ -package com.equinix.networkedge.model; - -import lombok.Data; - - -public @Data class Oauth2TokenRequest { - - private String grant_type = null; - private String user_name = null; - private String user_password = null; - private String client_id = null; - private String client_secret = null; - private String password_encoding = null; -} diff --git a/src/main/java/com/equinix/networkedge/model/Oauth2TokenResponse.java b/src/main/java/com/equinix/networkedge/model/Oauth2TokenResponse.java deleted file mode 100644 index 25a5484..0000000 --- a/src/main/java/com/equinix/networkedge/model/Oauth2TokenResponse.java +++ /dev/null @@ -1,61 +0,0 @@ -/* - * The Apache License - * - * Copyright 2017 Equinix Inc. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. - */ -package com.equinix.networkedge.model; - -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Data; - - -public @Data class Oauth2TokenResponse { - - @JsonProperty("access_token") - private String access_token = null; - - @JsonProperty("token_timeout") - private String token_timeout = null; - - @JsonProperty("user_name") - private String user_name = null; - - @JsonProperty("token_type") - private String token_type = null; - - @JsonProperty("refresh_token") - private String refresh_token = null; - - @JsonProperty("refresh_token_timeout") - private String refresh_token_timeout = null; - - @Override - public String toString() { - return "Oauth2TokenResponse{ \n" + - "access_token='" + access_token + '\'' + - ", \n token_timeout='" + token_timeout + '\'' + - ", \n user_name='" + user_name + '\'' + - ", \n token_type='" + token_type + '\'' + - ", \n refresh_token='" + refresh_token + '\'' + - ", \n refresh_token_timeout='" + refresh_token_timeout + '\'' + - '}'; - } -} diff --git a/src/main/java/com/equinix/networkedge/model/OptionalService.java b/src/main/java/com/equinix/networkedge/model/OptionalService.java new file mode 100644 index 0000000..1de19c9 --- /dev/null +++ b/src/main/java/com/equinix/networkedge/model/OptionalService.java @@ -0,0 +1,111 @@ +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; + +/** + * OptionalService + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class OptionalService { + @SerializedName("name") + private String name = null; + + @SerializedName("serviceCode") + private String serviceCode = null; + + public OptionalService name(String name) { + this.name = name; + return this; + } + + /** + * Get name + * @return name + **/ + @ApiModelProperty(example = "VPN", value = "") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public OptionalService serviceCode(String serviceCode) { + this.serviceCode = serviceCode; + return this; + } + + /** + * Get serviceCode + * @return serviceCode + **/ + @ApiModelProperty(example = "VPN", value = "") + public String getServiceCode() { + return serviceCode; + } + + public void setServiceCode(String serviceCode) { + this.serviceCode = serviceCode; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OptionalService optionalService = (OptionalService) o; + return Objects.equals(this.name, optionalService.name) && + Objects.equals(this.serviceCode, optionalService.serviceCode); + } + + @Override + public int hashCode() { + return Objects.hash(name, serviceCode); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OptionalService {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" serviceCode: ").append(toIndentedString(serviceCode)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/PageResponse.java b/src/main/java/com/equinix/networkedge/model/PageResponse.java new file mode 100644 index 0000000..fa6c8ef --- /dev/null +++ b/src/main/java/com/equinix/networkedge/model/PageResponse.java @@ -0,0 +1,168 @@ +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; + +import java.util.ArrayList; +import java.util.List; + +/** + * PageResponse + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class PageResponse { + @SerializedName("content") + private List content = null; + + @SerializedName("pageNumber") + private Integer pageNumber = null; + + @SerializedName("pageSize") + private Integer pageSize = null; + + @SerializedName("totalCount") + private Long totalCount = null; + + public PageResponse content(List content) { + this.content = content; + return this; + } + + public PageResponse addContentItem(Object contentItem) { + if (this.content == null) { + this.content = new ArrayList(); + } + this.content.add(contentItem); + return this; + } + + /** + * Get content + * @return content + **/ + @ApiModelProperty(value = "") + public List getContent() { + return content; + } + + public void setContent(List content) { + this.content = content; + } + + public PageResponse pageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + return this; + } + + /** + * Get pageNumber + * @return pageNumber + **/ + @ApiModelProperty(value = "") + public Integer getPageNumber() { + return pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public PageResponse pageSize(Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Get pageSize + * @return pageSize + **/ + @ApiModelProperty(value = "") + public Integer getPageSize() { + return pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public PageResponse totalCount(Long totalCount) { + this.totalCount = totalCount; + return this; + } + + /** + * Get totalCount + * @return totalCount + **/ + @ApiModelProperty(value = "") + public Long getTotalCount() { + return totalCount; + } + + public void setTotalCount(Long totalCount) { + this.totalCount = totalCount; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PageResponse pageResponse = (PageResponse) o; + return Objects.equals(this.content, pageResponse.content) && + Objects.equals(this.pageNumber, pageResponse.pageNumber) && + Objects.equals(this.pageSize, pageResponse.pageSize) && + Objects.equals(this.totalCount, pageResponse.totalCount); + } + + @Override + public int hashCode() { + return Objects.hash(content, pageNumber, pageSize, totalCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PageResponse {\n"); + + sb.append(" content: ").append(toIndentedString(content)).append("\n"); + sb.append(" pageNumber: ").append(toIndentedString(pageNumber)).append("\n"); + sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n"); + sb.append(" totalCount: ").append(toIndentedString(totalCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/PageResponseDto.java b/src/main/java/com/equinix/networkedge/model/PageResponseDto.java new file mode 100644 index 0000000..a52c019 --- /dev/null +++ b/src/main/java/com/equinix/networkedge/model/PageResponseDto.java @@ -0,0 +1,199 @@ +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; + +import java.util.ArrayList; +import java.util.List; + +/** + * PageResponseDto + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class PageResponseDto { + @SerializedName("content") + private List content = null; + + @SerializedName("list") + private List list = null; + + @SerializedName("pageNumber") + private Integer pageNumber = null; + + @SerializedName("pageSize") + private Integer pageSize = null; + + @SerializedName("totalCount") + private Long totalCount = null; + + public PageResponseDto content(List content) { + this.content = content; + return this; + } + + public PageResponseDto addContentItem(Object contentItem) { + if (this.content == null) { + this.content = new ArrayList(); + } + this.content.add(contentItem); + return this; + } + + /** + * Get content + * @return content + **/ + @ApiModelProperty(value = "") + public List getContent() { + return content; + } + + public void setContent(List content) { + this.content = content; + } + + public PageResponseDto list(List list) { + this.list = list; + return this; + } + + public PageResponseDto addListItem(Object listItem) { + if (this.list == null) { + this.list = new ArrayList(); + } + this.list.add(listItem); + return this; + } + + /** + * Get list + * @return list + **/ + @ApiModelProperty(value = "") + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public PageResponseDto pageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + return this; + } + + /** + * Get pageNumber + * @return pageNumber + **/ + @ApiModelProperty(value = "") + public Integer getPageNumber() { + return pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public PageResponseDto pageSize(Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Get pageSize + * @return pageSize + **/ + @ApiModelProperty(value = "") + public Integer getPageSize() { + return pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public PageResponseDto totalCount(Long totalCount) { + this.totalCount = totalCount; + return this; + } + + /** + * Get totalCount + * @return totalCount + **/ + @ApiModelProperty(value = "") + public Long getTotalCount() { + return totalCount; + } + + public void setTotalCount(Long totalCount) { + this.totalCount = totalCount; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PageResponseDto pageResponseDto = (PageResponseDto) o; + return Objects.equals(this.content, pageResponseDto.content) && + Objects.equals(this.list, pageResponseDto.list) && + Objects.equals(this.pageNumber, pageResponseDto.pageNumber) && + Objects.equals(this.pageSize, pageResponseDto.pageSize) && + Objects.equals(this.totalCount, pageResponseDto.totalCount); + } + + @Override + public int hashCode() { + return Objects.hash(content, list, pageNumber, pageSize, totalCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PageResponseDto {\n"); + + sb.append(" content: ").append(toIndentedString(content)).append("\n"); + sb.append(" list: ").append(toIndentedString(list)).append("\n"); + sb.append(" pageNumber: ").append(toIndentedString(pageNumber)).append("\n"); + sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n"); + sb.append(" totalCount: ").append(toIndentedString(totalCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/PageResponseDtoMetroAccountResponse.java b/src/main/java/com/equinix/networkedge/model/PageResponseDtoMetroAccountResponse.java new file mode 100644 index 0000000..6f99018 --- /dev/null +++ b/src/main/java/com/equinix/networkedge/model/PageResponseDtoMetroAccountResponse.java @@ -0,0 +1,192 @@ +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; +import com.equinix.networkedge.model.MetroAccountResponse; + +import java.util.ArrayList; +import java.util.List; + +/** + * PageResponseDtoMetroAccountResponse + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class PageResponseDtoMetroAccountResponse { + @SerializedName("accountCreateUrl") + private String accountCreateUrl = null; + + @SerializedName("content") + private List content = null; + + @SerializedName("totalCount") + private Long totalCount = null; + + @SerializedName("errorMessage") + private String errorMessage = null; + + @SerializedName("errorCode") + private String errorCode = null; + + public PageResponseDtoMetroAccountResponse accountCreateUrl(String accountCreateUrl) { + this.accountCreateUrl = accountCreateUrl; + return this; + } + + /** + * accountCreateUrl + * @return accountCreateUrl + **/ + @ApiModelProperty(value = "accountCreateUrl") + public String getAccountCreateUrl() { + return accountCreateUrl; + } + + public void setAccountCreateUrl(String accountCreateUrl) { + this.accountCreateUrl = accountCreateUrl; + } + + public PageResponseDtoMetroAccountResponse content(List content) { + this.content = content; + return this; + } + + public PageResponseDtoMetroAccountResponse addContentItem(MetroAccountResponse contentItem) { + if (this.content == null) { + this.content = new ArrayList(); + } + this.content.add(contentItem); + return this; + } + + /** + * Get content + * @return content + **/ + @ApiModelProperty(value = "") + public List getContent() { + return content; + } + + public void setContent(List content) { + this.content = content; + } + + public PageResponseDtoMetroAccountResponse totalCount(Long totalCount) { + this.totalCount = totalCount; + return this; + } + + /** + * Total count + * @return totalCount + **/ + @ApiModelProperty(value = "Total count") + public Long getTotalCount() { + return totalCount; + } + + public void setTotalCount(Long totalCount) { + this.totalCount = totalCount; + } + + public PageResponseDtoMetroAccountResponse errorMessage(String errorMessage) { + this.errorMessage = errorMessage; + return this; + } + + /** + * error Message + * @return errorMessage + **/ + @ApiModelProperty(value = "error Message") + public String getErrorMessage() { + return errorMessage; + } + + public void setErrorMessage(String errorMessage) { + this.errorMessage = errorMessage; + } + + public PageResponseDtoMetroAccountResponse errorCode(String errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * error Code + * @return errorCode + **/ + @ApiModelProperty(value = "error Code") + public String getErrorCode() { + return errorCode; + } + + public void setErrorCode(String errorCode) { + this.errorCode = errorCode; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PageResponseDtoMetroAccountResponse pageResponseDtoMetroAccountResponse = (PageResponseDtoMetroAccountResponse) o; + return Objects.equals(this.accountCreateUrl, pageResponseDtoMetroAccountResponse.accountCreateUrl) && + Objects.equals(this.content, pageResponseDtoMetroAccountResponse.content) && + Objects.equals(this.totalCount, pageResponseDtoMetroAccountResponse.totalCount) && + Objects.equals(this.errorMessage, pageResponseDtoMetroAccountResponse.errorMessage) && + Objects.equals(this.errorCode, pageResponseDtoMetroAccountResponse.errorCode); + } + + @Override + public int hashCode() { + return Objects.hash(accountCreateUrl, content, totalCount, errorMessage, errorCode); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PageResponseDtoMetroAccountResponse {\n"); + + sb.append(" accountCreateUrl: ").append(toIndentedString(accountCreateUrl)).append("\n"); + sb.append(" content: ").append(toIndentedString(content)).append("\n"); + sb.append(" totalCount: ").append(toIndentedString(totalCount)).append("\n"); + sb.append(" errorMessage: ").append(toIndentedString(errorMessage)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/PageResponseDtoMetroResponse.java b/src/main/java/com/equinix/networkedge/model/PageResponseDtoMetroResponse.java new file mode 100644 index 0000000..bcfeedf --- /dev/null +++ b/src/main/java/com/equinix/networkedge/model/PageResponseDtoMetroResponse.java @@ -0,0 +1,146 @@ +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; +import com.equinix.networkedge.model.MetroResponse; + +import java.util.ArrayList; +import java.util.List; + +/** + * PageResponseDtoMetroResponse + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class PageResponseDtoMetroResponse { + @SerializedName("content") + private List content = null; + + @SerializedName("pageNumber") + private Integer pageNumber = null; + + @SerializedName("pageSize") + private Integer pageSize = null; + + public PageResponseDtoMetroResponse content(List content) { + this.content = content; + return this; + } + + public PageResponseDtoMetroResponse addContentItem(MetroResponse contentItem) { + if (this.content == null) { + this.content = new ArrayList(); + } + this.content.add(contentItem); + return this; + } + + /** + * Get content + * @return content + **/ + @ApiModelProperty(value = "") + public List getContent() { + return content; + } + + public void setContent(List content) { + this.content = content; + } + + public PageResponseDtoMetroResponse pageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + return this; + } + + /** + * Page number + * @return pageNumber + **/ + @ApiModelProperty(value = "Page number") + public Integer getPageNumber() { + return pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public PageResponseDtoMetroResponse pageSize(Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Number of results per page + * @return pageSize + **/ + @ApiModelProperty(value = "Number of results per page") + public Integer getPageSize() { + return pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PageResponseDtoMetroResponse pageResponseDtoMetroResponse = (PageResponseDtoMetroResponse) o; + return Objects.equals(this.content, pageResponseDtoMetroResponse.content) && + Objects.equals(this.pageNumber, pageResponseDtoMetroResponse.pageNumber) && + Objects.equals(this.pageSize, pageResponseDtoMetroResponse.pageSize); + } + + @Override + public int hashCode() { + return Objects.hash(content, pageNumber, pageSize); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PageResponseDtoMetroResponse {\n"); + + sb.append(" content: ").append(toIndentedString(content)).append("\n"); + sb.append(" pageNumber: ").append(toIndentedString(pageNumber)).append("\n"); + sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/PageResponseDtoVirtualDeviceType.java b/src/main/java/com/equinix/networkedge/model/PageResponseDtoVirtualDeviceType.java new file mode 100644 index 0000000..4e1eaa8 --- /dev/null +++ b/src/main/java/com/equinix/networkedge/model/PageResponseDtoVirtualDeviceType.java @@ -0,0 +1,169 @@ +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; +import com.equinix.networkedge.model.VirtualDeviceType; + +import java.util.ArrayList; +import java.util.List; + +/** + * PageResponseDtoVirtualDeviceType + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class PageResponseDtoVirtualDeviceType { + @SerializedName("content") + private List content = null; + + @SerializedName("pageNumber") + private Integer pageNumber = null; + + @SerializedName("pageSize") + private Integer pageSize = null; + + @SerializedName("totalCount") + private Long totalCount = null; + + public PageResponseDtoVirtualDeviceType content(List content) { + this.content = content; + return this; + } + + public PageResponseDtoVirtualDeviceType addContentItem(VirtualDeviceType contentItem) { + if (this.content == null) { + this.content = new ArrayList(); + } + this.content.add(contentItem); + return this; + } + + /** + * Array of available virtual device types + * @return content + **/ + @ApiModelProperty(value = "Array of available virtual device types") + public List getContent() { + return content; + } + + public void setContent(List content) { + this.content = content; + } + + public PageResponseDtoVirtualDeviceType pageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + return this; + } + + /** + * Page number + * @return pageNumber + **/ + @ApiModelProperty(value = "Page number") + public Integer getPageNumber() { + return pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public PageResponseDtoVirtualDeviceType pageSize(Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Number of results on a page + * @return pageSize + **/ + @ApiModelProperty(value = "Number of results on a page") + public Integer getPageSize() { + return pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public PageResponseDtoVirtualDeviceType totalCount(Long totalCount) { + this.totalCount = totalCount; + return this; + } + + /** + * Total count + * @return totalCount + **/ + @ApiModelProperty(value = "Total count") + public Long getTotalCount() { + return totalCount; + } + + public void setTotalCount(Long totalCount) { + this.totalCount = totalCount; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PageResponseDtoVirtualDeviceType pageResponseDtoVirtualDeviceType = (PageResponseDtoVirtualDeviceType) o; + return Objects.equals(this.content, pageResponseDtoVirtualDeviceType.content) && + Objects.equals(this.pageNumber, pageResponseDtoVirtualDeviceType.pageNumber) && + Objects.equals(this.pageSize, pageResponseDtoVirtualDeviceType.pageSize) && + Objects.equals(this.totalCount, pageResponseDtoVirtualDeviceType.totalCount); + } + + @Override + public int hashCode() { + return Objects.hash(content, pageNumber, pageSize, totalCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PageResponseDtoVirtualDeviceType {\n"); + + sb.append(" content: ").append(toIndentedString(content)).append("\n"); + sb.append(" pageNumber: ").append(toIndentedString(pageNumber)).append("\n"); + sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n"); + sb.append(" totalCount: ").append(toIndentedString(totalCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/PatchRequest.java b/src/main/java/com/equinix/networkedge/model/PatchRequest.java new file mode 100644 index 0000000..ef39c50 --- /dev/null +++ b/src/main/java/com/equinix/networkedge/model/PatchRequest.java @@ -0,0 +1,111 @@ +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; + +/** + * PatchRequest + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class PatchRequest { + @SerializedName("accessKey") + private String accessKey = null; + + @SerializedName("secretKey") + private String secretKey = null; + + public PatchRequest accessKey(String accessKey) { + this.accessKey = accessKey; + return this; + } + + /** + * Get accessKey + * @return accessKey + **/ + @ApiModelProperty(example = "AKIAIXKQARIFBC3QJKYQ", value = "") + public String getAccessKey() { + return accessKey; + } + + public void setAccessKey(String accessKey) { + this.accessKey = accessKey; + } + + public PatchRequest secretKey(String secretKey) { + this.secretKey = secretKey; + return this; + } + + /** + * Get secretKey + * @return secretKey + **/ + @ApiModelProperty(example = "ARIFW1lWbqNSOqSkCAOXAhep22UGyLJvkDBAIG", value = "") + public String getSecretKey() { + return secretKey; + } + + public void setSecretKey(String secretKey) { + this.secretKey = secretKey; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PatchRequest patchRequest = (PatchRequest) o; + return Objects.equals(this.accessKey, patchRequest.accessKey) && + Objects.equals(this.secretKey, patchRequest.secretKey); + } + + @Override + public int hashCode() { + return Objects.hash(accessKey, secretKey); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PatchRequest {\n"); + + sb.append(" accessKey: ").append(toIndentedString(accessKey)).append("\n"); + sb.append(" secretKey: ").append(toIndentedString(secretKey)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/PostConnectionRequest.java b/src/main/java/com/equinix/networkedge/model/PostConnectionRequest.java new file mode 100644 index 0000000..8ea1489 --- /dev/null +++ b/src/main/java/com/equinix/networkedge/model/PostConnectionRequest.java @@ -0,0 +1,682 @@ +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; + +import java.util.ArrayList; +import java.util.List; + +/** + * PostConnectionRequest + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class PostConnectionRequest { + @SerializedName("primaryName") + private String primaryName = null; + + @SerializedName("virtualDeviceUUID") + private String virtualDeviceUUID = null; + + @SerializedName("profileUUID") + private String profileUUID = null; + + @SerializedName("authorizationKey") + private String authorizationKey = null; + + @SerializedName("speed") + private Integer speed = null; + + @SerializedName("speedUnit") + private String speedUnit = null; + + @SerializedName("notifications") + private List notifications = null; + + @SerializedName("purchaseOrderNumber") + private String purchaseOrderNumber = null; + + @SerializedName("sellerRegion") + private String sellerRegion = null; + + @SerializedName("sellerMetroCode") + private String sellerMetroCode = null; + + @SerializedName("secondaryName") + private String secondaryName = null; + + @SerializedName("namedTag") + private String namedTag = null; + + @SerializedName("secondaryVirtualDeviceUUID") + private String secondaryVirtualDeviceUUID = null; + + @SerializedName("secondaryProfileUUID") + private String secondaryProfileUUID = null; + + @SerializedName("secondaryAuthorizationKey") + private String secondaryAuthorizationKey = null; + + @SerializedName("secondarySellerRegion") + private String secondarySellerRegion = null; + + @SerializedName("secondarySellerMetroCode") + private String secondarySellerMetroCode = null; + + @SerializedName("secondarySpeed") + private Integer secondarySpeed = null; + + @SerializedName("secondarySpeedUnit") + private String secondarySpeedUnit = null; + + @SerializedName("secondaryNotifications") + private List secondaryNotifications = null; + + @SerializedName("primaryZSideVlanCTag") + private Integer primaryZSideVlanCTag = null; + + @SerializedName("secondaryZSideVlanCTag") + private Integer secondaryZSideVlanCTag = null; + + @SerializedName("primaryZSidePortUUID") + private String primaryZSidePortUUID = null; + + @SerializedName("primaryZSideVlanSTag") + private Integer primaryZSideVlanSTag = null; + + @SerializedName("secondaryZSidePortUUID") + private String secondaryZSidePortUUID = null; + + @SerializedName("secondaryZSideVlanSTag") + private Integer secondaryZSideVlanSTag = null; + + public PostConnectionRequest primaryName(String primaryName) { + this.primaryName = primaryName; + return this; + } + + /** + * Get primaryName + * @return primaryName + **/ + @ApiModelProperty(example = "v3-api-test-pri", value = "") + public String getPrimaryName() { + return primaryName; + } + + public void setPrimaryName(String primaryName) { + this.primaryName = primaryName; + } + + public PostConnectionRequest virtualDeviceUUID(String virtualDeviceUUID) { + this.virtualDeviceUUID = virtualDeviceUUID; + return this; + } + + /** + * Get virtualDeviceUUID + * @return virtualDeviceUUID + **/ + @ApiModelProperty(example = "xxxxx191-xx70-xxxx-xx04-xxxxxxxa37xx", value = "") + public String getVirtualDeviceUUID() { + return virtualDeviceUUID; + } + + public void setVirtualDeviceUUID(String virtualDeviceUUID) { + this.virtualDeviceUUID = virtualDeviceUUID; + } + + public PostConnectionRequest profileUUID(String profileUUID) { + this.profileUUID = profileUUID; + return this; + } + + /** + * Get profileUUID + * @return profileUUID + **/ + @ApiModelProperty(example = "xxxxx191-xx70-xxxx-xx04-xxxxxxxa37xx", value = "") + public String getProfileUUID() { + return profileUUID; + } + + public void setProfileUUID(String profileUUID) { + this.profileUUID = profileUUID; + } + + public PostConnectionRequest authorizationKey(String authorizationKey) { + this.authorizationKey = authorizationKey; + return this; + } + + /** + * Get authorizationKey + * @return authorizationKey + **/ + @ApiModelProperty(example = "444111000222", value = "") + public String getAuthorizationKey() { + return authorizationKey; + } + + public void setAuthorizationKey(String authorizationKey) { + this.authorizationKey = authorizationKey; + } + + public PostConnectionRequest speed(Integer speed) { + this.speed = speed; + return this; + } + + /** + * Get speed + * @return speed + **/ + @ApiModelProperty(example = "50", value = "") + public Integer getSpeed() { + return speed; + } + + public void setSpeed(Integer speed) { + this.speed = speed; + } + + public PostConnectionRequest speedUnit(String speedUnit) { + this.speedUnit = speedUnit; + return this; + } + + /** + * Get speedUnit + * @return speedUnit + **/ + @ApiModelProperty(example = "MB", value = "") + public String getSpeedUnit() { + return speedUnit; + } + + public void setSpeedUnit(String speedUnit) { + this.speedUnit = speedUnit; + } + + public PostConnectionRequest notifications(List notifications) { + this.notifications = notifications; + return this; + } + + public PostConnectionRequest addNotificationsItem(String notificationsItem) { + if (this.notifications == null) { + this.notifications = new ArrayList(); + } + this.notifications.add(notificationsItem); + return this; + } + + /** + * Get notifications + * @return notifications + **/ + @ApiModelProperty(value = "") + public List getNotifications() { + return notifications; + } + + public void setNotifications(List notifications) { + this.notifications = notifications; + } + + public PostConnectionRequest purchaseOrderNumber(String purchaseOrderNumber) { + this.purchaseOrderNumber = purchaseOrderNumber; + return this; + } + + /** + * Get purchaseOrderNumber + * @return purchaseOrderNumber + **/ + @ApiModelProperty(example = "312456323", value = "") + public String getPurchaseOrderNumber() { + return purchaseOrderNumber; + } + + public void setPurchaseOrderNumber(String purchaseOrderNumber) { + this.purchaseOrderNumber = purchaseOrderNumber; + } + + public PostConnectionRequest sellerRegion(String sellerRegion) { + this.sellerRegion = sellerRegion; + return this; + } + + /** + * Get sellerRegion + * @return sellerRegion + **/ + @ApiModelProperty(example = "us-west-1", value = "") + public String getSellerRegion() { + return sellerRegion; + } + + public void setSellerRegion(String sellerRegion) { + this.sellerRegion = sellerRegion; + } + + public PostConnectionRequest sellerMetroCode(String sellerMetroCode) { + this.sellerMetroCode = sellerMetroCode; + return this; + } + + /** + * Get sellerMetroCode + * @return sellerMetroCode + **/ + @ApiModelProperty(example = "SV", value = "") + public String getSellerMetroCode() { + return sellerMetroCode; + } + + public void setSellerMetroCode(String sellerMetroCode) { + this.sellerMetroCode = sellerMetroCode; + } + + public PostConnectionRequest secondaryName(String secondaryName) { + this.secondaryName = secondaryName; + return this; + } + + /** + * Get secondaryName + * @return secondaryName + **/ + @ApiModelProperty(example = "v3-api-test-sec1", value = "") + public String getSecondaryName() { + return secondaryName; + } + + public void setSecondaryName(String secondaryName) { + this.secondaryName = secondaryName; + } + + public PostConnectionRequest namedTag(String namedTag) { + this.namedTag = namedTag; + return this; + } + + /** + * Get namedTag + * @return namedTag + **/ + @ApiModelProperty(example = "Private", value = "") + public String getNamedTag() { + return namedTag; + } + + public void setNamedTag(String namedTag) { + this.namedTag = namedTag; + } + + public PostConnectionRequest secondaryVirtualDeviceUUID(String secondaryVirtualDeviceUUID) { + this.secondaryVirtualDeviceUUID = secondaryVirtualDeviceUUID; + return this; + } + + /** + * Get secondaryVirtualDeviceUUID + * @return secondaryVirtualDeviceUUID + **/ + @ApiModelProperty(example = "xxxxx191-xx70-xxxx-xx04-xxxxxxxa37xx", value = "") + public String getSecondaryVirtualDeviceUUID() { + return secondaryVirtualDeviceUUID; + } + + public void setSecondaryVirtualDeviceUUID(String secondaryVirtualDeviceUUID) { + this.secondaryVirtualDeviceUUID = secondaryVirtualDeviceUUID; + } + + public PostConnectionRequest secondaryProfileUUID(String secondaryProfileUUID) { + this.secondaryProfileUUID = secondaryProfileUUID; + return this; + } + + /** + * Get secondaryProfileUUID + * @return secondaryProfileUUID + **/ + @ApiModelProperty(example = "xxxxx191-xx70-xxxx-xx04-xxxxxxxa37xx", value = "") + public String getSecondaryProfileUUID() { + return secondaryProfileUUID; + } + + public void setSecondaryProfileUUID(String secondaryProfileUUID) { + this.secondaryProfileUUID = secondaryProfileUUID; + } + + public PostConnectionRequest secondaryAuthorizationKey(String secondaryAuthorizationKey) { + this.secondaryAuthorizationKey = secondaryAuthorizationKey; + return this; + } + + /** + * Get secondaryAuthorizationKey + * @return secondaryAuthorizationKey + **/ + @ApiModelProperty(example = "444111000222", value = "") + public String getSecondaryAuthorizationKey() { + return secondaryAuthorizationKey; + } + + public void setSecondaryAuthorizationKey(String secondaryAuthorizationKey) { + this.secondaryAuthorizationKey = secondaryAuthorizationKey; + } + + public PostConnectionRequest secondarySellerRegion(String secondarySellerRegion) { + this.secondarySellerRegion = secondarySellerRegion; + return this; + } + + /** + * Get secondarySellerRegion + * @return secondarySellerRegion + **/ + @ApiModelProperty(example = "us-west-1", value = "") + public String getSecondarySellerRegion() { + return secondarySellerRegion; + } + + public void setSecondarySellerRegion(String secondarySellerRegion) { + this.secondarySellerRegion = secondarySellerRegion; + } + + public PostConnectionRequest secondarySellerMetroCode(String secondarySellerMetroCode) { + this.secondarySellerMetroCode = secondarySellerMetroCode; + return this; + } + + /** + * Get secondarySellerMetroCode + * @return secondarySellerMetroCode + **/ + @ApiModelProperty(example = "SV", value = "") + public String getSecondarySellerMetroCode() { + return secondarySellerMetroCode; + } + + public void setSecondarySellerMetroCode(String secondarySellerMetroCode) { + this.secondarySellerMetroCode = secondarySellerMetroCode; + } + + public PostConnectionRequest secondarySpeed(Integer secondarySpeed) { + this.secondarySpeed = secondarySpeed; + return this; + } + + /** + * Get secondarySpeed + * @return secondarySpeed + **/ + @ApiModelProperty(example = "50", value = "") + public Integer getSecondarySpeed() { + return secondarySpeed; + } + + public void setSecondarySpeed(Integer secondarySpeed) { + this.secondarySpeed = secondarySpeed; + } + + public PostConnectionRequest secondarySpeedUnit(String secondarySpeedUnit) { + this.secondarySpeedUnit = secondarySpeedUnit; + return this; + } + + /** + * Get secondarySpeedUnit + * @return secondarySpeedUnit + **/ + @ApiModelProperty(example = "MB", value = "") + public String getSecondarySpeedUnit() { + return secondarySpeedUnit; + } + + public void setSecondarySpeedUnit(String secondarySpeedUnit) { + this.secondarySpeedUnit = secondarySpeedUnit; + } + + public PostConnectionRequest secondaryNotifications(List secondaryNotifications) { + this.secondaryNotifications = secondaryNotifications; + return this; + } + + public PostConnectionRequest addSecondaryNotificationsItem(String secondaryNotificationsItem) { + if (this.secondaryNotifications == null) { + this.secondaryNotifications = new ArrayList(); + } + this.secondaryNotifications.add(secondaryNotificationsItem); + return this; + } + + /** + * Get secondaryNotifications + * @return secondaryNotifications + **/ + @ApiModelProperty(value = "") + public List getSecondaryNotifications() { + return secondaryNotifications; + } + + public void setSecondaryNotifications(List secondaryNotifications) { + this.secondaryNotifications = secondaryNotifications; + } + + public PostConnectionRequest primaryZSideVlanCTag(Integer primaryZSideVlanCTag) { + this.primaryZSideVlanCTag = primaryZSideVlanCTag; + return this; + } + + /** + * Get primaryZSideVlanCTag + * @return primaryZSideVlanCTag + **/ + @ApiModelProperty(example = "101", value = "") + public Integer getPrimaryZSideVlanCTag() { + return primaryZSideVlanCTag; + } + + public void setPrimaryZSideVlanCTag(Integer primaryZSideVlanCTag) { + this.primaryZSideVlanCTag = primaryZSideVlanCTag; + } + + public PostConnectionRequest secondaryZSideVlanCTag(Integer secondaryZSideVlanCTag) { + this.secondaryZSideVlanCTag = secondaryZSideVlanCTag; + return this; + } + + /** + * Get secondaryZSideVlanCTag + * @return secondaryZSideVlanCTag + **/ + @ApiModelProperty(example = "102", value = "") + public Integer getSecondaryZSideVlanCTag() { + return secondaryZSideVlanCTag; + } + + public void setSecondaryZSideVlanCTag(Integer secondaryZSideVlanCTag) { + this.secondaryZSideVlanCTag = secondaryZSideVlanCTag; + } + + public PostConnectionRequest primaryZSidePortUUID(String primaryZSidePortUUID) { + this.primaryZSidePortUUID = primaryZSidePortUUID; + return this; + } + + /** + * Get primaryZSidePortUUID + * @return primaryZSidePortUUID + **/ + @ApiModelProperty(example = "xxxxx191-xx70-xxxx-xx04-xxxxxxxa37xx", value = "") + public String getPrimaryZSidePortUUID() { + return primaryZSidePortUUID; + } + + public void setPrimaryZSidePortUUID(String primaryZSidePortUUID) { + this.primaryZSidePortUUID = primaryZSidePortUUID; + } + + public PostConnectionRequest primaryZSideVlanSTag(Integer primaryZSideVlanSTag) { + this.primaryZSideVlanSTag = primaryZSideVlanSTag; + return this; + } + + /** + * Get primaryZSideVlanSTag + * @return primaryZSideVlanSTag + **/ + @ApiModelProperty(example = "301", value = "") + public Integer getPrimaryZSideVlanSTag() { + return primaryZSideVlanSTag; + } + + public void setPrimaryZSideVlanSTag(Integer primaryZSideVlanSTag) { + this.primaryZSideVlanSTag = primaryZSideVlanSTag; + } + + public PostConnectionRequest secondaryZSidePortUUID(String secondaryZSidePortUUID) { + this.secondaryZSidePortUUID = secondaryZSidePortUUID; + return this; + } + + /** + * Get secondaryZSidePortUUID + * @return secondaryZSidePortUUID + **/ + @ApiModelProperty(example = "xxxxx192-xx70-xxxx-xx04-xxxxxxxa37xx", value = "") + public String getSecondaryZSidePortUUID() { + return secondaryZSidePortUUID; + } + + public void setSecondaryZSidePortUUID(String secondaryZSidePortUUID) { + this.secondaryZSidePortUUID = secondaryZSidePortUUID; + } + + public PostConnectionRequest secondaryZSideVlanSTag(Integer secondaryZSideVlanSTag) { + this.secondaryZSideVlanSTag = secondaryZSideVlanSTag; + return this; + } + + /** + * Get secondaryZSideVlanSTag + * @return secondaryZSideVlanSTag + **/ + @ApiModelProperty(example = "302", value = "") + public Integer getSecondaryZSideVlanSTag() { + return secondaryZSideVlanSTag; + } + + public void setSecondaryZSideVlanSTag(Integer secondaryZSideVlanSTag) { + this.secondaryZSideVlanSTag = secondaryZSideVlanSTag; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PostConnectionRequest postConnectionRequest = (PostConnectionRequest) o; + return Objects.equals(this.primaryName, postConnectionRequest.primaryName) && + Objects.equals(this.virtualDeviceUUID, postConnectionRequest.virtualDeviceUUID) && + Objects.equals(this.profileUUID, postConnectionRequest.profileUUID) && + Objects.equals(this.authorizationKey, postConnectionRequest.authorizationKey) && + Objects.equals(this.speed, postConnectionRequest.speed) && + Objects.equals(this.speedUnit, postConnectionRequest.speedUnit) && + Objects.equals(this.notifications, postConnectionRequest.notifications) && + Objects.equals(this.purchaseOrderNumber, postConnectionRequest.purchaseOrderNumber) && + Objects.equals(this.sellerRegion, postConnectionRequest.sellerRegion) && + Objects.equals(this.sellerMetroCode, postConnectionRequest.sellerMetroCode) && + Objects.equals(this.secondaryName, postConnectionRequest.secondaryName) && + Objects.equals(this.namedTag, postConnectionRequest.namedTag) && + Objects.equals(this.secondaryVirtualDeviceUUID, postConnectionRequest.secondaryVirtualDeviceUUID) && + Objects.equals(this.secondaryProfileUUID, postConnectionRequest.secondaryProfileUUID) && + Objects.equals(this.secondaryAuthorizationKey, postConnectionRequest.secondaryAuthorizationKey) && + Objects.equals(this.secondarySellerRegion, postConnectionRequest.secondarySellerRegion) && + Objects.equals(this.secondarySellerMetroCode, postConnectionRequest.secondarySellerMetroCode) && + Objects.equals(this.secondarySpeed, postConnectionRequest.secondarySpeed) && + Objects.equals(this.secondarySpeedUnit, postConnectionRequest.secondarySpeedUnit) && + Objects.equals(this.secondaryNotifications, postConnectionRequest.secondaryNotifications) && + Objects.equals(this.primaryZSideVlanCTag, postConnectionRequest.primaryZSideVlanCTag) && + Objects.equals(this.secondaryZSideVlanCTag, postConnectionRequest.secondaryZSideVlanCTag) && + Objects.equals(this.primaryZSidePortUUID, postConnectionRequest.primaryZSidePortUUID) && + Objects.equals(this.primaryZSideVlanSTag, postConnectionRequest.primaryZSideVlanSTag) && + Objects.equals(this.secondaryZSidePortUUID, postConnectionRequest.secondaryZSidePortUUID) && + Objects.equals(this.secondaryZSideVlanSTag, postConnectionRequest.secondaryZSideVlanSTag); + } + + @Override + public int hashCode() { + return Objects.hash(primaryName, virtualDeviceUUID, profileUUID, authorizationKey, speed, speedUnit, notifications, purchaseOrderNumber, sellerRegion, sellerMetroCode, secondaryName, namedTag, secondaryVirtualDeviceUUID, secondaryProfileUUID, secondaryAuthorizationKey, secondarySellerRegion, secondarySellerMetroCode, secondarySpeed, secondarySpeedUnit, secondaryNotifications, primaryZSideVlanCTag, secondaryZSideVlanCTag, primaryZSidePortUUID, primaryZSideVlanSTag, secondaryZSidePortUUID, secondaryZSideVlanSTag); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PostConnectionRequest {\n"); + + sb.append(" primaryName: ").append(toIndentedString(primaryName)).append("\n"); + sb.append(" virtualDeviceUUID: ").append(toIndentedString(virtualDeviceUUID)).append("\n"); + sb.append(" profileUUID: ").append(toIndentedString(profileUUID)).append("\n"); + sb.append(" authorizationKey: ").append(toIndentedString(authorizationKey)).append("\n"); + sb.append(" speed: ").append(toIndentedString(speed)).append("\n"); + sb.append(" speedUnit: ").append(toIndentedString(speedUnit)).append("\n"); + sb.append(" notifications: ").append(toIndentedString(notifications)).append("\n"); + sb.append(" purchaseOrderNumber: ").append(toIndentedString(purchaseOrderNumber)).append("\n"); + sb.append(" sellerRegion: ").append(toIndentedString(sellerRegion)).append("\n"); + sb.append(" sellerMetroCode: ").append(toIndentedString(sellerMetroCode)).append("\n"); + sb.append(" secondaryName: ").append(toIndentedString(secondaryName)).append("\n"); + sb.append(" namedTag: ").append(toIndentedString(namedTag)).append("\n"); + sb.append(" secondaryVirtualDeviceUUID: ").append(toIndentedString(secondaryVirtualDeviceUUID)).append("\n"); + sb.append(" secondaryProfileUUID: ").append(toIndentedString(secondaryProfileUUID)).append("\n"); + sb.append(" secondaryAuthorizationKey: ").append(toIndentedString(secondaryAuthorizationKey)).append("\n"); + sb.append(" secondarySellerRegion: ").append(toIndentedString(secondarySellerRegion)).append("\n"); + sb.append(" secondarySellerMetroCode: ").append(toIndentedString(secondarySellerMetroCode)).append("\n"); + sb.append(" secondarySpeed: ").append(toIndentedString(secondarySpeed)).append("\n"); + sb.append(" secondarySpeedUnit: ").append(toIndentedString(secondarySpeedUnit)).append("\n"); + sb.append(" secondaryNotifications: ").append(toIndentedString(secondaryNotifications)).append("\n"); + sb.append(" primaryZSideVlanCTag: ").append(toIndentedString(primaryZSideVlanCTag)).append("\n"); + sb.append(" secondaryZSideVlanCTag: ").append(toIndentedString(secondaryZSideVlanCTag)).append("\n"); + sb.append(" primaryZSidePortUUID: ").append(toIndentedString(primaryZSidePortUUID)).append("\n"); + sb.append(" primaryZSideVlanSTag: ").append(toIndentedString(primaryZSideVlanSTag)).append("\n"); + sb.append(" secondaryZSidePortUUID: ").append(toIndentedString(secondaryZSidePortUUID)).append("\n"); + sb.append(" secondaryZSideVlanSTag: ").append(toIndentedString(secondaryZSideVlanSTag)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/PostConnectionResponse.java b/src/main/java/com/equinix/networkedge/model/PostConnectionResponse.java new file mode 100644 index 0000000..7a54328 --- /dev/null +++ b/src/main/java/com/equinix/networkedge/model/PostConnectionResponse.java @@ -0,0 +1,157 @@ +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; + +/** + * PostConnectionResponse + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class PostConnectionResponse { + @SerializedName("message") + private String message = null; + + @SerializedName("primaryConnectionId") + private String primaryConnectionId = null; + + @SerializedName("secondaryConnectionId") + private String secondaryConnectionId = null; + + @SerializedName("status") + private String status = null; + + public PostConnectionResponse message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(example = "Connection created successfully", value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public PostConnectionResponse primaryConnectionId(String primaryConnectionId) { + this.primaryConnectionId = primaryConnectionId; + return this; + } + + /** + * Get primaryConnectionId + * @return primaryConnectionId + **/ + @ApiModelProperty(example = "xxxxx191-xx70-xxxx-xx04-xxxxxxxa37xx", value = "") + public String getPrimaryConnectionId() { + return primaryConnectionId; + } + + public void setPrimaryConnectionId(String primaryConnectionId) { + this.primaryConnectionId = primaryConnectionId; + } + + public PostConnectionResponse secondaryConnectionId(String secondaryConnectionId) { + this.secondaryConnectionId = secondaryConnectionId; + return this; + } + + /** + * Get secondaryConnectionId + * @return secondaryConnectionId + **/ + @ApiModelProperty(example = "xxxxx191-xx70-xxxx-xx04-xxxxxxxa37xx", value = "") + public String getSecondaryConnectionId() { + return secondaryConnectionId; + } + + public void setSecondaryConnectionId(String secondaryConnectionId) { + this.secondaryConnectionId = secondaryConnectionId; + } + + public PostConnectionResponse status(String status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + **/ + @ApiModelProperty(example = "SUCCESS", value = "") + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PostConnectionResponse postConnectionResponse = (PostConnectionResponse) o; + return Objects.equals(this.message, postConnectionResponse.message) && + Objects.equals(this.primaryConnectionId, postConnectionResponse.primaryConnectionId) && + Objects.equals(this.secondaryConnectionId, postConnectionResponse.secondaryConnectionId) && + Objects.equals(this.status, postConnectionResponse.status); + } + + @Override + public int hashCode() { + return Objects.hash(message, primaryConnectionId, secondaryConnectionId, status); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PostConnectionResponse {\n"); + + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" primaryConnectionId: ").append(toIndentedString(primaryConnectionId)).append("\n"); + sb.append(" secondaryConnectionId: ").append(toIndentedString(secondaryConnectionId)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/PriceResponse.java b/src/main/java/com/equinix/networkedge/model/PriceResponse.java new file mode 100644 index 0000000..3f3e46e --- /dev/null +++ b/src/main/java/com/equinix/networkedge/model/PriceResponse.java @@ -0,0 +1,123 @@ +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; +import com.equinix.networkedge.model.Charges; + +import java.util.ArrayList; +import java.util.List; + +/** + * PriceResponse + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class PriceResponse { + @SerializedName("charges") + private List charges = null; + + @SerializedName("currency") + private String currency = null; + + public PriceResponse charges(List charges) { + this.charges = charges; + return this; + } + + public PriceResponse addChargesItem(Charges chargesItem) { + if (this.charges == null) { + this.charges = new ArrayList(); + } + this.charges.add(chargesItem); + return this; + } + + /** + * Monthly recurring charges + * @return charges + **/ + @ApiModelProperty(value = "Monthly recurring charges") + public List getCharges() { + return charges; + } + + public void setCharges(List charges) { + this.charges = charges; + } + + public PriceResponse currency(String currency) { + this.currency = currency; + return this; + } + + /** + * Get currency + * @return currency + **/ + @ApiModelProperty(value = "") + public String getCurrency() { + return currency; + } + + public void setCurrency(String currency) { + this.currency = currency; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PriceResponse priceResponse = (PriceResponse) o; + return Objects.equals(this.charges, priceResponse.charges) && + Objects.equals(this.currency, priceResponse.currency); + } + + @Override + public int hashCode() { + return Objects.hash(charges, currency); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PriceResponse {\n"); + + sb.append(" charges: ").append(toIndentedString(charges)).append("\n"); + sb.append(" currency: ").append(toIndentedString(currency)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/SecondaryDeviceDeleteRequest.java b/src/main/java/com/equinix/networkedge/model/SecondaryDeviceDeleteRequest.java new file mode 100644 index 0000000..84ca7ff --- /dev/null +++ b/src/main/java/com/equinix/networkedge/model/SecondaryDeviceDeleteRequest.java @@ -0,0 +1,88 @@ +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; + +/** + * SecondaryDeviceDeleteRequest + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class SecondaryDeviceDeleteRequest { + @SerializedName("deactivationKey") + private String deactivationKey = null; + + public SecondaryDeviceDeleteRequest deactivationKey(String deactivationKey) { + this.deactivationKey = deactivationKey; + return this; + } + + /** + * Deactivation key for secondary device + * @return deactivationKey + **/ + @ApiModelProperty(example = "8dfbd5ba3610234d9e550032603cc34762af140533e2c1de0111d3451d16eefd", value = "Deactivation key for secondary device") + public String getDeactivationKey() { + return deactivationKey; + } + + public void setDeactivationKey(String deactivationKey) { + this.deactivationKey = deactivationKey; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SecondaryDeviceDeleteRequest secondaryDeviceDeleteRequest = (SecondaryDeviceDeleteRequest) o; + return Objects.equals(this.deactivationKey, secondaryDeviceDeleteRequest.deactivationKey); + } + + @Override + public int hashCode() { + return Objects.hash(deactivationKey); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SecondaryDeviceDeleteRequest {\n"); + + sb.append(" deactivationKey: ").append(toIndentedString(deactivationKey)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/ServiceMetro.java b/src/main/java/com/equinix/networkedge/model/ServiceMetro.java deleted file mode 100644 index 896fe3a..0000000 --- a/src/main/java/com/equinix/networkedge/model/ServiceMetro.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * The Apache License - * - * Copyright 2017 Equinix Inc. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. - */ -package com.equinix.networkedge.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import lombok.Data; - -import java.io.Serializable; -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; -import java.util.Set; - -@JsonInclude(JsonInclude.Include.NON_EMPTY) -public @Data class ServiceMetro implements Serializable { - - private static final long serialVersionUID = 1L; - private String code; - private String name; - private Set ibxs = new HashSet(); - private Boolean inTrail; - private String type; - private String displayName; - private Map sellerRegions = new HashMap(); - -} diff --git a/src/main/java/com/equinix/networkedge/model/ServiceProfileResponse.java b/src/main/java/com/equinix/networkedge/model/ServiceProfileResponse.java deleted file mode 100644 index 0429c17..0000000 --- a/src/main/java/com/equinix/networkedge/model/ServiceProfileResponse.java +++ /dev/null @@ -1,101 +0,0 @@ -/* - * The Apache License - * - * Copyright 2017 Equinix Inc. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. - */ -package com.equinix.networkedge.model; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Data; - -import java.util.List; - -/** - * @author aanchala 7/13/2018 - **/ -public @Data -class ServiceProfileResponse { - - private static final long serialVersionUID = 1L; - - private String uuid; - - @JsonIgnore - private String globalCustId; - - private String name; - - private String authKeyLabel; - - private String connectionNameLabel; - - private Boolean requiredRedundancy; - - @JsonProperty("private") - private Boolean privateProfile; - - private List privateUserEmails; - - private Boolean allowCustomSpeed; - - private List speedBands; - - private String description; - - private List additionalBuyerInfo; - - private List metros; - - private String createdDate; - - private String createdBy; - - private String lastUpdatedDate; - - private String lastUpdatedBy; - - private Boolean vlanSameAsPrimary; - - private TagTypeENUM tagType; - - private String ctagLabel; - - private List namedTags; - - private Boolean apiAvailable; - - private EnabledFeatures enabledFeatures; - - private Boolean selfProfile; - - private Boolean speedFromAPI; - - private String profileEncapsulation; - private String authorizationKey; - - private List ports; - - private String globalOrganization; - - private String organizationName; - -} diff --git a/src/main/java/com/equinix/networkedge/model/SoftwarePackage.java b/src/main/java/com/equinix/networkedge/model/SoftwarePackage.java new file mode 100644 index 0000000..c20697e --- /dev/null +++ b/src/main/java/com/equinix/networkedge/model/SoftwarePackage.java @@ -0,0 +1,111 @@ +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; + +/** + * SoftwarePackage + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class SoftwarePackage { + @SerializedName("name") + private String name = null; + + @SerializedName("packageCode") + private String packageCode = null; + + public SoftwarePackage name(String name) { + this.name = name; + return this; + } + + /** + * Software package name + * @return name + **/ + @ApiModelProperty(example = "Security", value = "Software package name") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public SoftwarePackage packageCode(String packageCode) { + this.packageCode = packageCode; + return this; + } + + /** + * Software package code + * @return packageCode + **/ + @ApiModelProperty(example = "SEC", value = "Software package code") + public String getPackageCode() { + return packageCode; + } + + public void setPackageCode(String packageCode) { + this.packageCode = packageCode; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SoftwarePackage softwarePackage = (SoftwarePackage) o; + return Objects.equals(this.name, softwarePackage.name) && + Objects.equals(this.packageCode, softwarePackage.packageCode); + } + + @Override + public int hashCode() { + return Objects.hash(name, packageCode); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SoftwarePackage {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" packageCode: ").append(toIndentedString(packageCode)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/SpeedBand.java b/src/main/java/com/equinix/networkedge/model/SpeedBand.java index 6e8bf26..5ae9502 100644 --- a/src/main/java/com/equinix/networkedge/model/SpeedBand.java +++ b/src/main/java/com/equinix/networkedge/model/SpeedBand.java @@ -1,42 +1,111 @@ -/* - * The Apache License - * - * Copyright 2017 Equinix Inc. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. - */ -package com.equinix.networkedge.model; - -import lombok.Data; - -import javax.validation.constraints.Min; -import javax.validation.constraints.NotNull; - -/** - * @author aanchala 7/13/2018 - **/ -public @Data class SpeedBand { - - @NotNull(message = "Speed can not be null") - @Min(value = 1, message = "Speed can not be less then 1") - private Integer speed; - - @NotNull(message = "Unit for the speed can not be null") - private String unit; -} +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; + +/** + * SpeedBand + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class SpeedBand { + @SerializedName("speed") + private Double speed = null; + + @SerializedName("unit") + private String unit = null; + + public SpeedBand speed(Double speed) { + this.speed = speed; + return this; + } + + /** + * Get speed + * @return speed + **/ + @ApiModelProperty(example = "50.0", value = "") + public Double getSpeed() { + return speed; + } + + public void setSpeed(Double speed) { + this.speed = speed; + } + + public SpeedBand unit(String unit) { + this.unit = unit; + return this; + } + + /** + * Get unit + * @return unit + **/ + @ApiModelProperty(example = "MB", value = "") + public String getUnit() { + return unit; + } + + public void setUnit(String unit) { + this.unit = unit; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SpeedBand speedBand = (SpeedBand) o; + return Objects.equals(this.speed, speedBand.speed) && + Objects.equals(this.unit, speedBand.unit); + } + + @Override + public int hashCode() { + return Objects.hash(speed, unit); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SpeedBand {\n"); + + sb.append(" speed: ").append(toIndentedString(speed)).append("\n"); + sb.append(" unit: ").append(toIndentedString(unit)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/SshAccessUpdateRequest.java b/src/main/java/com/equinix/networkedge/model/SshAccessUpdateRequest.java new file mode 100644 index 0000000..d3e4282 --- /dev/null +++ b/src/main/java/com/equinix/networkedge/model/SshAccessUpdateRequest.java @@ -0,0 +1,99 @@ +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; + +import java.util.ArrayList; +import java.util.List; + +/** + * SshAccessUpdateRequest + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class SshAccessUpdateRequest { + @SerializedName("sshAcl") + private List sshAcl = null; + + public SshAccessUpdateRequest sshAcl(List sshAcl) { + this.sshAcl = sshAcl; + return this; + } + + public SshAccessUpdateRequest addSshAclItem(Object sshAclItem) { + if (this.sshAcl == null) { + this.sshAcl = new ArrayList(); + } + this.sshAcl.add(sshAclItem); + return this; + } + + /** + * Get sshAcl + * @return sshAcl + **/ + @ApiModelProperty(value = "") + public List getSshAcl() { + return sshAcl; + } + + public void setSshAcl(List sshAcl) { + this.sshAcl = sshAcl; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SshAccessUpdateRequest sshAccessUpdateRequest = (SshAccessUpdateRequest) o; + return Objects.equals(this.sshAcl, sshAccessUpdateRequest.sshAcl); + } + + @Override + public int hashCode() { + return Objects.hash(sshAcl); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SshAccessUpdateRequest {\n"); + + sb.append(" sshAcl: ").append(toIndentedString(sshAcl)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/SshAccessUpdateRequestDto.java b/src/main/java/com/equinix/networkedge/model/SshAccessUpdateRequestDto.java new file mode 100644 index 0000000..560189f --- /dev/null +++ b/src/main/java/com/equinix/networkedge/model/SshAccessUpdateRequestDto.java @@ -0,0 +1,99 @@ +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; + +import java.util.ArrayList; +import java.util.List; + +/** + * SshAccessUpdateRequestDto + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class SshAccessUpdateRequestDto { + @SerializedName("sshAcl") + private List sshAcl = null; + + public SshAccessUpdateRequestDto sshAcl(List sshAcl) { + this.sshAcl = sshAcl; + return this; + } + + public SshAccessUpdateRequestDto addSshAclItem(Object sshAclItem) { + if (this.sshAcl == null) { + this.sshAcl = new ArrayList(); + } + this.sshAcl.add(sshAclItem); + return this; + } + + /** + * Get sshAcl + * @return sshAcl + **/ + @ApiModelProperty(value = "") + public List getSshAcl() { + return sshAcl; + } + + public void setSshAcl(List sshAcl) { + this.sshAcl = sshAcl; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SshAccessUpdateRequestDto sshAccessUpdateRequestDto = (SshAccessUpdateRequestDto) o; + return Objects.equals(this.sshAcl, sshAccessUpdateRequestDto.sshAcl); + } + + @Override + public int hashCode() { + return Objects.hash(sshAcl); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SshAccessUpdateRequestDto {\n"); + + sb.append(" sshAcl: ").append(toIndentedString(sshAcl)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/SshUserCreateRequest.java b/src/main/java/com/equinix/networkedge/model/SshUserCreateRequest.java new file mode 100644 index 0000000..5addf3e --- /dev/null +++ b/src/main/java/com/equinix/networkedge/model/SshUserCreateRequest.java @@ -0,0 +1,134 @@ +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; + +/** + * SshUserCreateRequest + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class SshUserCreateRequest { + @SerializedName("username") + private String username = null; + + @SerializedName("password") + private String password = null; + + @SerializedName("deviceUuid") + private String deviceUuid = null; + + public SshUserCreateRequest username(String username) { + this.username = username; + return this; + } + + /** + * At least 3 and upto a maximum of 32 alphanumeric characters. The only special characters allowed are - _ + * @return username + **/ + @ApiModelProperty(example = "user1", required = true, value = "At least 3 and upto a maximum of 32 alphanumeric characters. The only special characters allowed are - _") + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username; + } + + public SshUserCreateRequest password(String password) { + this.password = password; + return this; + } + + /** + * At least 6 and upto a maximum of 12 alphanumeric characters. The only special characters allowed are - _ $ @ + * @return password + **/ + @ApiModelProperty(example = "pass12", required = true, value = "At least 6 and upto a maximum of 12 alphanumeric characters. The only special characters allowed are - _ $ @") + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + public SshUserCreateRequest deviceUuid(String deviceUuid) { + this.deviceUuid = deviceUuid; + return this; + } + + /** + * Get deviceUuid + * @return deviceUuid + **/ + @ApiModelProperty(example = "3da0a663-20d9-4b8f-8c5d-d5cf706840c8", required = true, value = "") + public String getDeviceUuid() { + return deviceUuid; + } + + public void setDeviceUuid(String deviceUuid) { + this.deviceUuid = deviceUuid; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SshUserCreateRequest sshUserCreateRequest = (SshUserCreateRequest) o; + return Objects.equals(this.username, sshUserCreateRequest.username) && + Objects.equals(this.password, sshUserCreateRequest.password) && + Objects.equals(this.deviceUuid, sshUserCreateRequest.deviceUuid); + } + + @Override + public int hashCode() { + return Objects.hash(username, password, deviceUuid); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SshUserCreateRequest {\n"); + + sb.append(" username: ").append(toIndentedString(username)).append("\n"); + sb.append(" password: ").append(toIndentedString(password)).append("\n"); + sb.append(" deviceUuid: ").append(toIndentedString(deviceUuid)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/SshUserCreateResponse.java b/src/main/java/com/equinix/networkedge/model/SshUserCreateResponse.java new file mode 100644 index 0000000..1165302 --- /dev/null +++ b/src/main/java/com/equinix/networkedge/model/SshUserCreateResponse.java @@ -0,0 +1,88 @@ +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; + +/** + * SshUserCreateResponse + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class SshUserCreateResponse { + @SerializedName("uuid") + private String uuid = null; + + public SshUserCreateResponse uuid(String uuid) { + this.uuid = uuid; + return this; + } + + /** + * Get uuid + * @return uuid + **/ + @ApiModelProperty(example = "12828472-e6e9-4f2b-98f7-b79cf0fab4ff", value = "") + public String getUuid() { + return uuid; + } + + public void setUuid(String uuid) { + this.uuid = uuid; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SshUserCreateResponse sshUserCreateResponse = (SshUserCreateResponse) o; + return Objects.equals(this.uuid, sshUserCreateResponse.uuid); + } + + @Override + public int hashCode() { + return Objects.hash(uuid); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SshUserCreateResponse {\n"); + + sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/SshUserExists.java b/src/main/java/com/equinix/networkedge/model/SshUserExists.java new file mode 100644 index 0000000..9cc0c77 --- /dev/null +++ b/src/main/java/com/equinix/networkedge/model/SshUserExists.java @@ -0,0 +1,111 @@ +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; + +/** + * SshUserExists + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class SshUserExists { + @SerializedName("metroCode") + private String metroCode = null; + + @SerializedName("sshUsername") + private String sshUsername = null; + + public SshUserExists metroCode(String metroCode) { + this.metroCode = metroCode; + return this; + } + + /** + * Get metroCode + * @return metroCode + **/ + @ApiModelProperty(example = "SV", value = "") + public String getMetroCode() { + return metroCode; + } + + public void setMetroCode(String metroCode) { + this.metroCode = metroCode; + } + + public SshUserExists sshUsername(String sshUsername) { + this.sshUsername = sshUsername; + return this; + } + + /** + * Get sshUsername + * @return sshUsername + **/ + @ApiModelProperty(example = "cust0001_DC", value = "") + public String getSshUsername() { + return sshUsername; + } + + public void setSshUsername(String sshUsername) { + this.sshUsername = sshUsername; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SshUserExists sshUserExists = (SshUserExists) o; + return Objects.equals(this.metroCode, sshUserExists.metroCode) && + Objects.equals(this.sshUsername, sshUserExists.sshUsername); + } + + @Override + public int hashCode() { + return Objects.hash(metroCode, sshUsername); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SshUserExists {\n"); + + sb.append(" metroCode: ").append(toIndentedString(metroCode)).append("\n"); + sb.append(" sshUsername: ").append(toIndentedString(sshUsername)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/SshUserInfoDissociateResponse.java b/src/main/java/com/equinix/networkedge/model/SshUserInfoDissociateResponse.java new file mode 100644 index 0000000..377d01a --- /dev/null +++ b/src/main/java/com/equinix/networkedge/model/SshUserInfoDissociateResponse.java @@ -0,0 +1,88 @@ +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; + +/** + * SshUserInfoDissociateResponse + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class SshUserInfoDissociateResponse { + @SerializedName("sshUserDeleted") + private Boolean sshUserDeleted = null; + + public SshUserInfoDissociateResponse sshUserDeleted(Boolean sshUserDeleted) { + this.sshUserDeleted = sshUserDeleted; + return this; + } + + /** + * true = the ssh user has been deleted since there are no more devices associated to this userfalse = the ssh user has not been deleted since some associations to devices exist. + * @return sshUserDeleted + **/ + @ApiModelProperty(example = "false", value = "true = the ssh user has been deleted since there are no more devices associated to this userfalse = the ssh user has not been deleted since some associations to devices exist.") + public Boolean isSshUserDeleted() { + return sshUserDeleted; + } + + public void setSshUserDeleted(Boolean sshUserDeleted) { + this.sshUserDeleted = sshUserDeleted; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SshUserInfoDissociateResponse sshUserInfoDissociateResponse = (SshUserInfoDissociateResponse) o; + return Objects.equals(this.sshUserDeleted, sshUserInfoDissociateResponse.sshUserDeleted); + } + + @Override + public int hashCode() { + return Objects.hash(sshUserDeleted); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SshUserInfoDissociateResponse {\n"); + + sb.append(" sshUserDeleted: ").append(toIndentedString(sshUserDeleted)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/SshUserInfoVerbose.java b/src/main/java/com/equinix/networkedge/model/SshUserInfoVerbose.java new file mode 100644 index 0000000..7be61f8 --- /dev/null +++ b/src/main/java/com/equinix/networkedge/model/SshUserInfoVerbose.java @@ -0,0 +1,210 @@ +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; +import com.equinix.networkedge.model.MetroStatus; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * SshUserInfoVerbose + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class SshUserInfoVerbose { + @SerializedName("deviceUuids") + private List deviceUuids = null; + + @SerializedName("metroStatusMap") + private Map metroStatusMap = null; + + @SerializedName("metros") + private List metros = null; + + @SerializedName("username") + private String username = null; + + @SerializedName("uuid") + private String uuid = null; + + public SshUserInfoVerbose deviceUuids(List deviceUuids) { + this.deviceUuids = deviceUuids; + return this; + } + + public SshUserInfoVerbose addDeviceUuidsItem(String deviceUuidsItem) { + if (this.deviceUuids == null) { + this.deviceUuids = new ArrayList(); + } + this.deviceUuids.add(deviceUuidsItem); + return this; + } + + /** + * Set of uuids of the devices associated with this user + * @return deviceUuids + **/ + @ApiModelProperty(value = "Set of uuids of the devices associated with this user") + public List getDeviceUuids() { + return deviceUuids; + } + + public void setDeviceUuids(List deviceUuids) { + this.deviceUuids = deviceUuids; + } + + public SshUserInfoVerbose metroStatusMap(Map metroStatusMap) { + this.metroStatusMap = metroStatusMap; + return this; + } + + public SshUserInfoVerbose putMetroStatusMapItem(String key, MetroStatus metroStatusMapItem) { + if (this.metroStatusMap == null) { + this.metroStatusMap = new HashMap(); + } + this.metroStatusMap.put(key, metroStatusMapItem); + return this; + } + + /** + * Status and error messages corresponding to the metros this user exists on + * @return metroStatusMap + **/ + @ApiModelProperty(value = "Status and error messages corresponding to the metros this user exists on") + public Map getMetroStatusMap() { + return metroStatusMap; + } + + public void setMetroStatusMap(Map metroStatusMap) { + this.metroStatusMap = metroStatusMap; + } + + public SshUserInfoVerbose metros(List metros) { + this.metros = metros; + return this; + } + + public SshUserInfoVerbose addMetrosItem(String metrosItem) { + if (this.metros == null) { + this.metros = new ArrayList(); + } + this.metros.add(metrosItem); + return this; + } + + /** + * Set of metros this user exists on + * @return metros + **/ + @ApiModelProperty(value = "Set of metros this user exists on") + public List getMetros() { + return metros; + } + + public void setMetros(List metros) { + this.metros = metros; + } + + public SshUserInfoVerbose username(String username) { + this.username = username; + return this; + } + + /** + * Get username + * @return username + **/ + @ApiModelProperty(value = "") + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username; + } + + public SshUserInfoVerbose uuid(String uuid) { + this.uuid = uuid; + return this; + } + + /** + * Get uuid + * @return uuid + **/ + @ApiModelProperty(value = "") + public String getUuid() { + return uuid; + } + + public void setUuid(String uuid) { + this.uuid = uuid; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SshUserInfoVerbose sshUserInfoVerbose = (SshUserInfoVerbose) o; + return Objects.equals(this.deviceUuids, sshUserInfoVerbose.deviceUuids) && + Objects.equals(this.metroStatusMap, sshUserInfoVerbose.metroStatusMap) && + Objects.equals(this.metros, sshUserInfoVerbose.metros) && + Objects.equals(this.username, sshUserInfoVerbose.username) && + Objects.equals(this.uuid, sshUserInfoVerbose.uuid); + } + + @Override + public int hashCode() { + return Objects.hash(deviceUuids, metroStatusMap, metros, username, uuid); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SshUserInfoVerbose {\n"); + + sb.append(" deviceUuids: ").append(toIndentedString(deviceUuids)).append("\n"); + sb.append(" metroStatusMap: ").append(toIndentedString(metroStatusMap)).append("\n"); + sb.append(" metros: ").append(toIndentedString(metros)).append("\n"); + sb.append(" username: ").append(toIndentedString(username)).append("\n"); + sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/SshUserOperationRequest.java b/src/main/java/com/equinix/networkedge/model/SshUserOperationRequest.java new file mode 100644 index 0000000..a8a5b9f --- /dev/null +++ b/src/main/java/com/equinix/networkedge/model/SshUserOperationRequest.java @@ -0,0 +1,211 @@ +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * SshUserOperationRequest + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class SshUserOperationRequest { + @SerializedName("sshUserUuid") + private String sshUserUuid = null; + + /** + * SSH operation to be performed + */ + @JsonAdapter(ActionEnum.Adapter.class) + public enum ActionEnum { + CREATE("CREATE"), + + DELETE("DELETE"), + + REUSE("REUSE"); + + private String value; + + ActionEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static ActionEnum fromValue(String text) { + for (ActionEnum b : ActionEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final ActionEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public ActionEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return ActionEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("action") + private ActionEnum action = null; + + @SerializedName("sshUsername") + private String sshUsername = null; + + @SerializedName("sshPassword") + private String sshPassword = null; + + public SshUserOperationRequest sshUserUuid(String sshUserUuid) { + this.sshUserUuid = sshUserUuid; + return this; + } + + /** + * Required for DELETE operation. + * @return sshUserUuid + **/ + @ApiModelProperty(example = "999a3aa2-c49a-dddd-98a6-007424e73777", value = "Required for DELETE operation.") + public String getSshUserUuid() { + return sshUserUuid; + } + + public void setSshUserUuid(String sshUserUuid) { + this.sshUserUuid = sshUserUuid; + } + + public SshUserOperationRequest action(ActionEnum action) { + this.action = action; + return this; + } + + /** + * SSH operation to be performed + * @return action + **/ + @ApiModelProperty(example = "CREATE", required = true, value = "SSH operation to be performed") + public ActionEnum getAction() { + return action; + } + + public void setAction(ActionEnum action) { + this.action = action; + } + + public SshUserOperationRequest sshUsername(String sshUsername) { + this.sshUsername = sshUsername; + return this; + } + + /** + * SSH User name + * @return sshUsername + **/ + @ApiModelProperty(example = "cust0001_DC", value = "SSH User name") + public String getSshUsername() { + return sshUsername; + } + + public void setSshUsername(String sshUsername) { + this.sshUsername = sshUsername; + } + + public SshUserOperationRequest sshPassword(String sshPassword) { + this.sshPassword = sshPassword; + return this; + } + + /** + * SSH Password + * @return sshPassword + **/ + @ApiModelProperty(example = "projPass", value = "SSH Password") + public String getSshPassword() { + return sshPassword; + } + + public void setSshPassword(String sshPassword) { + this.sshPassword = sshPassword; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SshUserOperationRequest sshUserOperationRequest = (SshUserOperationRequest) o; + return Objects.equals(this.sshUserUuid, sshUserOperationRequest.sshUserUuid) && + Objects.equals(this.action, sshUserOperationRequest.action) && + Objects.equals(this.sshUsername, sshUserOperationRequest.sshUsername) && + Objects.equals(this.sshPassword, sshUserOperationRequest.sshPassword); + } + + @Override + public int hashCode() { + return Objects.hash(sshUserUuid, action, sshUsername, sshPassword); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SshUserOperationRequest {\n"); + + sb.append(" sshUserUuid: ").append(toIndentedString(sshUserUuid)).append("\n"); + sb.append(" action: ").append(toIndentedString(action)).append("\n"); + sb.append(" sshUsername: ").append(toIndentedString(sshUsername)).append("\n"); + sb.append(" sshPassword: ").append(toIndentedString(sshPassword)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/SshUserUpdateRequest.java b/src/main/java/com/equinix/networkedge/model/SshUserUpdateRequest.java new file mode 100644 index 0000000..3d2ac54 --- /dev/null +++ b/src/main/java/com/equinix/networkedge/model/SshUserUpdateRequest.java @@ -0,0 +1,88 @@ +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; + +/** + * SshUserUpdateRequest + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class SshUserUpdateRequest { + @SerializedName("password") + private String password = null; + + public SshUserUpdateRequest password(String password) { + this.password = password; + return this; + } + + /** + * At least 6 and upto a maximum of 12 alphanumeric characters. The only special characters allowed are - _ $ @ + * @return password + **/ + @ApiModelProperty(example = "pass12", required = true, value = "At least 6 and upto a maximum of 12 alphanumeric characters. The only special characters allowed are - _ $ @") + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SshUserUpdateRequest sshUserUpdateRequest = (SshUserUpdateRequest) o; + return Objects.equals(this.password, sshUserUpdateRequest.password); + } + + @Override + public int hashCode() { + return Objects.hash(password); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SshUserUpdateRequest {\n"); + + sb.append(" password: ").append(toIndentedString(password)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/SshUsers.java b/src/main/java/com/equinix/networkedge/model/SshUsers.java new file mode 100644 index 0000000..0b15d0f --- /dev/null +++ b/src/main/java/com/equinix/networkedge/model/SshUsers.java @@ -0,0 +1,161 @@ +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; + +/** + * SshUsers + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class SshUsers { + @SerializedName("sshUsername") + private String sshUsername = null; + + @SerializedName("sshPassword") + private String sshPassword = null; + + @SerializedName("sshUserUuid") + private String sshUserUuid = null; + + @SerializedName("action") + private String action = null; + + public SshUsers sshUsername(String sshUsername) { + this.sshUsername = sshUsername; + return this; + } + + /** + * sshUsername. This should be minimum 3 and maximum 32 characters and include alphanumeric characters, dash, and underscore. + * + * @return sshUsername + **/ + @ApiModelProperty(example = "cust0001_DC", value = "sshUsername. This should be minimum 3 and maximum 32 characters and include alphanumeric characters, dash, and underscore.") + public String getSshUsername() { + return sshUsername; + } + + public void setSshUsername(String sshUsername) { + this.sshUsername = sshUsername; + } + + public SshUsers sshPassword(String sshPassword) { + this.sshPassword = sshPassword; + return this; + } + + /** + * sshPassword + * + * @return sshPassword + **/ + @ApiModelProperty(example = "projPass", value = "sshPassword") + public String getSshPassword() { + return sshPassword; + } + + public void setSshPassword(String sshPassword) { + this.sshPassword = sshPassword; + } + + public SshUsers sshUserUuid(String sshUserUuid) { + this.sshUserUuid = sshUserUuid; + return this; + } + + /** + * sshUserUuid + * + * @return sshUserUuid + **/ + @ApiModelProperty(example = "999a3aa2-c49a-dddd-98a6-007424e73777", value = "sshUserUuid") + public String getSshUserUuid() { + return sshUserUuid; + } + + public void setSshUserUuid(String sshUserUuid) { + this.sshUserUuid = sshUserUuid; + } + + public SshUsers action(String action) { + this.action = action; + return this; + } + + /** + * action + * + * @return action + **/ + @ApiModelProperty(example = "CREATE", value = "action") + public String getAction() { + return action; + } + + public void setAction(String action) { + this.action = action; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SshUsers sshUsers = (SshUsers) o; + return Objects.equals(this.sshUsername, sshUsers.sshUsername) && + Objects.equals(this.sshPassword, sshUsers.sshPassword) && + Objects.equals(this.sshUserUuid, sshUsers.sshUserUuid) && + Objects.equals(this.action, sshUsers.action); + } + + @Override + public int hashCode() { + return Objects.hash(sshUsername, sshPassword, sshUserUuid, action); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SshUsers {\n"); + + sb.append(" sshUsername: ").append(toIndentedString(sshUsername)).append("\n"); + sb.append(" sshPassword: ").append(toIndentedString(sshPassword)).append("\n"); + sb.append(" sshUserUuid: ").append(toIndentedString(sshUserUuid)).append("\n"); + sb.append(" action: ").append(toIndentedString(action)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/SshUsersBulkOperationsRequest.java b/src/main/java/com/equinix/networkedge/model/SshUsersBulkOperationsRequest.java new file mode 100644 index 0000000..b933350 --- /dev/null +++ b/src/main/java/com/equinix/networkedge/model/SshUsersBulkOperationsRequest.java @@ -0,0 +1,96 @@ +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; + +import java.util.ArrayList; +import java.util.List; + +/** + * SshUsersBulkOperationsRequest + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class SshUsersBulkOperationsRequest { + @SerializedName("sshUsers") + private List sshUsers = new ArrayList(); + + public SshUsersBulkOperationsRequest sshUsers(List sshUsers) { + this.sshUsers = sshUsers; + return this; + } + + public SshUsersBulkOperationsRequest addSshUsersItem(Object sshUsersItem) { + this.sshUsers.add(sshUsersItem); + return this; + } + + /** + * Get sshUsers + * @return sshUsers + **/ + @ApiModelProperty(required = true, value = "") + public List getSshUsers() { + return sshUsers; + } + + public void setSshUsers(List sshUsers) { + this.sshUsers = sshUsers; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SshUsersBulkOperationsRequest sshUsersBulkOperationsRequest = (SshUsersBulkOperationsRequest) o; + return Objects.equals(this.sshUsers, sshUsersBulkOperationsRequest.sshUsers); + } + + @Override + public int hashCode() { + return Objects.hash(sshUsers); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SshUsersBulkOperationsRequest {\n"); + + sb.append(" sshUsers: ").append(toIndentedString(sshUsers)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/TagTypeENUM.java b/src/main/java/com/equinix/networkedge/model/TagTypeENUM.java deleted file mode 100644 index b58ad7e..0000000 --- a/src/main/java/com/equinix/networkedge/model/TagTypeENUM.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * The Apache License - * - * Copyright 2017 Equinix Inc. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. - */ -package com.equinix.networkedge.model; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; - -/** - * Created by aanchala - */ -@JsonIgnoreProperties(ignoreUnknown = true) -public enum TagTypeENUM { - - CTAGED("CTAGED"), - BOTH("BOTH"), - NAMED("NAMED"); - String value; - - /** - * Consturctor - * @param value - */ - TagTypeENUM(String value) { - this.value=value; - } - - /** - * API to get the VALUE - * @return - */ - public String getValue() { - return value; - } -} diff --git a/src/main/java/com/equinix/networkedge/model/Throughput.java b/src/main/java/com/equinix/networkedge/model/Throughput.java new file mode 100644 index 0000000..a03ff5b --- /dev/null +++ b/src/main/java/com/equinix/networkedge/model/Throughput.java @@ -0,0 +1,111 @@ +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; + +/** + * Throughput + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class Throughput { + @SerializedName("throughput") + private Integer throughput = null; + + @SerializedName("throughputUnit") + private String throughputUnit = null; + + public Throughput throughput(Integer throughput) { + this.throughput = throughput; + return this; + } + + /** + * Get throughput + * @return throughput + **/ + @ApiModelProperty(example = "500", value = "") + public Integer getThroughput() { + return throughput; + } + + public void setThroughput(Integer throughput) { + this.throughput = throughput; + } + + public Throughput throughputUnit(String throughputUnit) { + this.throughputUnit = throughputUnit; + return this; + } + + /** + * Get throughputUnit + * @return throughputUnit + **/ + @ApiModelProperty(example = "Mbps", value = "") + public String getThroughputUnit() { + return throughputUnit; + } + + public void setThroughputUnit(String throughputUnit) { + this.throughputUnit = throughputUnit; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Throughput throughput = (Throughput) o; + return Objects.equals(this.throughput, throughput.throughput) && + Objects.equals(this.throughputUnit, throughput.throughputUnit); + } + + @Override + public int hashCode() { + return Objects.hash(throughput, throughputUnit); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Throughput {\n"); + + sb.append(" throughput: ").append(toIndentedString(throughput)).append("\n"); + sb.append(" throughputUnit: ").append(toIndentedString(throughputUnit)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/ValidateRequest.java b/src/main/java/com/equinix/networkedge/model/ValidateRequest.java deleted file mode 100644 index 9f32f96..0000000 --- a/src/main/java/com/equinix/networkedge/model/ValidateRequest.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * The Apache License - * - * Copyright 2017 Equinix Inc. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. - */ -package com.equinix.networkedge.model; - -import lombok.Data; - -/** - * @author aanchala 7/13/2018 - **/ -public @Data class ValidateRequest { - - private String authorizationkey; - private String metroCode; - private String profileId; - private String region; - -} diff --git a/src/main/java/com/equinix/networkedge/model/ValidateResponse.java b/src/main/java/com/equinix/networkedge/model/ValidateResponse.java deleted file mode 100644 index 5c1919f..0000000 --- a/src/main/java/com/equinix/networkedge/model/ValidateResponse.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * The Apache License - * - * Copyright 2017 Equinix Inc. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. - */ -package com.equinix.networkedge.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import lombok.Data; - -/** - * @author aanchala 7/13/2018 - **/ -public @Data class ValidateResponse { - - private String message; - @JsonInclude(JsonInclude.Include.NON_NULL) - private String moreInfo; - @JsonInclude(JsonInclude.Include.NON_NULL) - private Component primary; - @JsonInclude(JsonInclude.Include.NON_NULL) - private Component secondary; - @JsonInclude(JsonInclude.Include.NON_NULL) - private String status; - - public static @Data class Component{ - private String connectionId; - private String connectionName; - private String vlan; - private String port; - private String bandwidth; - private String crossConnectId; - } -} diff --git a/src/main/java/com/equinix/networkedge/model/VirtualDevicHARequest.java b/src/main/java/com/equinix/networkedge/model/VirtualDevicHARequest.java new file mode 100644 index 0000000..f9da3ed --- /dev/null +++ b/src/main/java/com/equinix/networkedge/model/VirtualDevicHARequest.java @@ -0,0 +1,463 @@ +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModelProperty; + +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * VirtualDevicHARequest + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class VirtualDevicHARequest { + @SerializedName("accountNumber") + private String accountNumber = null; + + @SerializedName("accountReferenceId") + private String accountReferenceId = null; + + @SerializedName("additionalBandwidth") + private Integer additionalBandwidth = null; + + @SerializedName("licenseFileId") + private String licenseFileId = null; + + @SerializedName("licenseToken") + private String licenseToken = null; + + @SerializedName("metroCode") + private String metroCode = null; + + /** + * Gets or Sets notifications + */ + @JsonAdapter(NotificationsEnum.Adapter.class) + public enum NotificationsEnum { + TEST1_EXAMPLE_COM("test1@example.com"), + + TEST2_EXAMPLE_COM("test2@example.com"); + + private String value; + + NotificationsEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static NotificationsEnum fromValue(String text) { + for (NotificationsEnum b : NotificationsEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final NotificationsEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public NotificationsEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return NotificationsEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("notifications") + private List notifications = new ArrayList(); + + /** + * Gets or Sets sshAcl + */ + @JsonAdapter(SshAclEnum.Adapter.class) + public enum SshAclEnum { + _192_168_1_1_29("192.168.1.1/29"), + + _10_10_25_1_24("10.10.25.1/24"); + + private String value; + + SshAclEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static SshAclEnum fromValue(String text) { + for (SshAclEnum b : SshAclEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final SshAclEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public SshAclEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return SshAclEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("sshAcl") + private List sshAcl = null; + + @SerializedName("sshUsers") + private List sshUsers = null; + + @SerializedName("virtualDeviceName") + private String virtualDeviceName = null; + + @SerializedName("siteId") + private String siteId = null; + + @SerializedName("systemIpAddress") + private String systemIpAddress = null; + + public VirtualDevicHARequest accountNumber(String accountNumber) { + this.accountNumber = accountNumber; + return this; + } + + /** + * Get accountNumber + * @return accountNumber + **/ + @ApiModelProperty(example = "10478398", value = "") + public String getAccountNumber() { + return accountNumber; + } + + public void setAccountNumber(String accountNumber) { + this.accountNumber = accountNumber; + } + + public VirtualDevicHARequest accountReferenceId(String accountReferenceId) { + this.accountReferenceId = accountReferenceId; + return this; + } + + /** + * Get accountReferenceId + * @return accountReferenceId + **/ + @ApiModelProperty(example = "209805", value = "") + public String getAccountReferenceId() { + return accountReferenceId; + } + + public void setAccountReferenceId(String accountReferenceId) { + this.accountReferenceId = accountReferenceId; + } + + public VirtualDevicHARequest additionalBandwidth(Integer additionalBandwidth) { + this.additionalBandwidth = additionalBandwidth; + return this; + } + + /** + * Secondary additional bandwidth to be configured (in Mbps for HA). Default bandwidth provided is 15 Mbps. + * @return additionalBandwidth + **/ + @ApiModelProperty(example = "100", value = "Secondary additional bandwidth to be configured (in Mbps for HA). Default bandwidth provided is 15 Mbps.") + public Integer getAdditionalBandwidth() { + return additionalBandwidth; + } + + public void setAdditionalBandwidth(Integer additionalBandwidth) { + this.additionalBandwidth = additionalBandwidth; + } + + public VirtualDevicHARequest licenseFileId(String licenseFileId) { + this.licenseFileId = licenseFileId; + return this; + } + + /** + * Get licenseFileId + * @return licenseFileId + **/ + @ApiModelProperty(example = "d6e21e0c-86dd-11e8-adc0-fa7ae01bbebc", value = "") + public String getLicenseFileId() { + return licenseFileId; + } + + public void setLicenseFileId(String licenseFileId) { + this.licenseFileId = licenseFileId; + } + + public VirtualDevicHARequest licenseToken(String licenseToken) { + this.licenseToken = licenseToken; + return this; + } + + /** + * Get licenseToken + * @return licenseToken + **/ + @ApiModelProperty(example = "V74191621", value = "") + public String getLicenseToken() { + return licenseToken; + } + + public void setLicenseToken(String licenseToken) { + this.licenseToken = licenseToken; + } + + public VirtualDevicHARequest metroCode(String metroCode) { + this.metroCode = metroCode; + return this; + } + + /** + * Get metroCode + * @return metroCode + **/ + @ApiModelProperty(example = "SV", required = true, value = "") + public String getMetroCode() { + return metroCode; + } + + public void setMetroCode(String metroCode) { + this.metroCode = metroCode; + } + + public VirtualDevicHARequest notifications(List notifications) { + this.notifications = notifications; + return this; + } + + public VirtualDevicHARequest addNotificationsItem(NotificationsEnum notificationsItem) { + this.notifications.add(notificationsItem); + return this; + } + + /** + * Get notifications + * @return notifications + **/ + @ApiModelProperty(required = true, value = "") + public List getNotifications() { + return notifications; + } + + public void setNotifications(List notifications) { + this.notifications = notifications; + } + + public VirtualDevicHARequest sshAcl(List sshAcl) { + this.sshAcl = sshAcl; + return this; + } + + public VirtualDevicHARequest addSshAclItem(SshAclEnum sshAclItem) { + if (this.sshAcl == null) { + this.sshAcl = new ArrayList(); + } + this.sshAcl.add(sshAclItem); + return this; + } + + /** + * Get sshAcl + * @return sshAcl + **/ + @ApiModelProperty(value = "") + public List getSshAcl() { + return sshAcl; + } + + public void setSshAcl(List sshAcl) { + this.sshAcl = sshAcl; + } + + public VirtualDevicHARequest sshUsers(List sshUsers) { + this.sshUsers = sshUsers; + return this; + } + + public VirtualDevicHARequest addSshUsersItem(SshUserOperationRequest sshUsersItem) { + if (this.sshUsers == null) { + this.sshUsers = new ArrayList(); + } + this.sshUsers.add(sshUsersItem); + return this; + } + + /** + * Get sshUsers + * @return sshUsers + **/ + @ApiModelProperty(value = "") + public List getSshUsers() { + return sshUsers; + } + + public void setSshUsers(List sshUsers) { + this.sshUsers = sshUsers; + } + + public VirtualDevicHARequest virtualDeviceName(String virtualDeviceName) { + this.virtualDeviceName = virtualDeviceName; + return this; + } + + /** + * Virtual Device Name + * @return virtualDeviceName + **/ + @ApiModelProperty(example = "Router1-csr1000v", required = true, value = "Virtual Device Name") + public String getVirtualDeviceName() { + return virtualDeviceName; + } + + public void setVirtualDeviceName(String virtualDeviceName) { + this.virtualDeviceName = virtualDeviceName; + } + + public VirtualDevicHARequest siteId(String siteId) { + this.siteId = siteId; + return this; + } + + /** + * Get siteId + * @return siteId + **/ + @ApiModelProperty(example = "12345", value = "") + public String getSiteId() { + return siteId; + } + + public void setSiteId(String siteId) { + this.siteId = siteId; + } + + public VirtualDevicHARequest systemIpAddress(String systemIpAddress) { + this.systemIpAddress = systemIpAddress; + return this; + } + + /** + * Get systemIpAddress + * @return systemIpAddress + **/ + @ApiModelProperty(example = "192.168.2.5", value = "") + public String getSystemIpAddress() { + return systemIpAddress; + } + + public void setSystemIpAddress(String systemIpAddress) { + this.systemIpAddress = systemIpAddress; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VirtualDevicHARequest virtualDevicHARequest = (VirtualDevicHARequest) o; + return Objects.equals(this.accountNumber, virtualDevicHARequest.accountNumber) && + Objects.equals(this.accountReferenceId, virtualDevicHARequest.accountReferenceId) && + Objects.equals(this.additionalBandwidth, virtualDevicHARequest.additionalBandwidth) && + Objects.equals(this.licenseFileId, virtualDevicHARequest.licenseFileId) && + Objects.equals(this.licenseToken, virtualDevicHARequest.licenseToken) && + Objects.equals(this.metroCode, virtualDevicHARequest.metroCode) && + Objects.equals(this.notifications, virtualDevicHARequest.notifications) && + Objects.equals(this.sshAcl, virtualDevicHARequest.sshAcl) && + Objects.equals(this.sshUsers, virtualDevicHARequest.sshUsers) && + Objects.equals(this.virtualDeviceName, virtualDevicHARequest.virtualDeviceName) && + Objects.equals(this.siteId, virtualDevicHARequest.siteId) && + Objects.equals(this.systemIpAddress, virtualDevicHARequest.systemIpAddress); + } + + @Override + public int hashCode() { + return Objects.hash(accountNumber, accountReferenceId, additionalBandwidth, licenseFileId, licenseToken, metroCode, notifications, sshAcl, sshUsers, virtualDeviceName, siteId, systemIpAddress); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VirtualDevicHARequest {\n"); + + sb.append(" accountNumber: ").append(toIndentedString(accountNumber)).append("\n"); + sb.append(" accountReferenceId: ").append(toIndentedString(accountReferenceId)).append("\n"); + sb.append(" additionalBandwidth: ").append(toIndentedString(additionalBandwidth)).append("\n"); + sb.append(" licenseFileId: ").append(toIndentedString(licenseFileId)).append("\n"); + sb.append(" licenseToken: ").append(toIndentedString(licenseToken)).append("\n"); + sb.append(" metroCode: ").append(toIndentedString(metroCode)).append("\n"); + sb.append(" notifications: ").append(toIndentedString(notifications)).append("\n"); + sb.append(" sshAcl: ").append(toIndentedString(sshAcl)).append("\n"); + sb.append(" sshUsers: ").append(toIndentedString(sshUsers)).append("\n"); + sb.append(" virtualDeviceName: ").append(toIndentedString(virtualDeviceName)).append("\n"); + sb.append(" siteId: ").append(toIndentedString(siteId)).append("\n"); + sb.append(" systemIpAddress: ").append(toIndentedString(systemIpAddress)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/VirtualDeviceCreateResponse.java b/src/main/java/com/equinix/networkedge/model/VirtualDeviceCreateResponse.java new file mode 100644 index 0000000..1e7f895 --- /dev/null +++ b/src/main/java/com/equinix/networkedge/model/VirtualDeviceCreateResponse.java @@ -0,0 +1,88 @@ +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; + +/** + * VirtualDeviceCreateResponse + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class VirtualDeviceCreateResponse { + @SerializedName("uuid") + private String uuid = null; + + public VirtualDeviceCreateResponse uuid(String uuid) { + this.uuid = uuid; + return this; + } + + /** + * Get uuid + * @return uuid + **/ + @ApiModelProperty(example = "877a3aa2-c49a-4af1-98a6-007424e737ae", value = "") + public String getUuid() { + return uuid; + } + + public void setUuid(String uuid) { + this.uuid = uuid; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VirtualDeviceCreateResponse virtualDeviceCreateResponse = (VirtualDeviceCreateResponse) o; + return Objects.equals(this.uuid, virtualDeviceCreateResponse.uuid); + } + + @Override + public int hashCode() { + return Objects.hash(uuid); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VirtualDeviceCreateResponse {\n"); + + sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/VirtualDeviceDeleteRequest.java b/src/main/java/com/equinix/networkedge/model/VirtualDeviceDeleteRequest.java new file mode 100644 index 0000000..823674a --- /dev/null +++ b/src/main/java/com/equinix/networkedge/model/VirtualDeviceDeleteRequest.java @@ -0,0 +1,112 @@ +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; +import com.equinix.networkedge.model.SecondaryDeviceDeleteRequest; + +/** + * VirtualDeviceDeleteRequest + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class VirtualDeviceDeleteRequest { + @SerializedName("deactivationKey") + private String deactivationKey = null; + + @SerializedName("secondary") + private SecondaryDeviceDeleteRequest secondary = null; + + public VirtualDeviceDeleteRequest deactivationKey(String deactivationKey) { + this.deactivationKey = deactivationKey; + return this; + } + + /** + * Deactivation key for primary device + * @return deactivationKey + **/ + @ApiModelProperty(example = "8dfbd5ba3610234d9e550032603cc34762af140533e2c1de0111d3451d16eefd", value = "Deactivation key for primary device") + public String getDeactivationKey() { + return deactivationKey; + } + + public void setDeactivationKey(String deactivationKey) { + this.deactivationKey = deactivationKey; + } + + public VirtualDeviceDeleteRequest secondary(SecondaryDeviceDeleteRequest secondary) { + this.secondary = secondary; + return this; + } + + /** + * Get secondary + * @return secondary + **/ + @ApiModelProperty(value = "") + public SecondaryDeviceDeleteRequest getSecondary() { + return secondary; + } + + public void setSecondary(SecondaryDeviceDeleteRequest secondary) { + this.secondary = secondary; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VirtualDeviceDeleteRequest virtualDeviceDeleteRequest = (VirtualDeviceDeleteRequest) o; + return Objects.equals(this.deactivationKey, virtualDeviceDeleteRequest.deactivationKey) && + Objects.equals(this.secondary, virtualDeviceDeleteRequest.secondary); + } + + @Override + public int hashCode() { + return Objects.hash(deactivationKey, secondary); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VirtualDeviceDeleteRequest {\n"); + + sb.append(" deactivationKey: ").append(toIndentedString(deactivationKey)).append("\n"); + sb.append(" secondary: ").append(toIndentedString(secondary)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/VirtualDeviceDetailsResponse.java b/src/main/java/com/equinix/networkedge/model/VirtualDeviceDetailsResponse.java new file mode 100644 index 0000000..fddcd21 --- /dev/null +++ b/src/main/java/com/equinix/networkedge/model/VirtualDeviceDetailsResponse.java @@ -0,0 +1,1142 @@ +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; + +import java.util.ArrayList; +import java.util.List; + +/** + * VirtualDeviceDetailsResponse + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class VirtualDeviceDetailsResponse { + @SerializedName("accountName") + private String accountName = null; + + @SerializedName("accountNumber") + private String accountNumber = null; + + @SerializedName("createdBy") + private String createdBy = null; + + @SerializedName("createdDate") + private String createdDate = null; + + @SerializedName("deviceSerialNo") + private String deviceSerialNo = null; + + @SerializedName("deviceTypeCategory") + private String deviceTypeCategory = null; + + @SerializedName("deviceTypeCode") + private String deviceTypeCode = null; + + @SerializedName("deviceTypeName") + private String deviceTypeName = null; + + @SerializedName("expiry") + private String expiry = null; + + @SerializedName("region") + private String region = null; + + @SerializedName("deviceTypeVendor") + private String deviceTypeVendor = null; + + @SerializedName("hostName") + private String hostName = null; + + @SerializedName("id") + private String id = null; + + @SerializedName("lastUpdatedBy") + private String lastUpdatedBy = null; + + @SerializedName("lastUpdatedDate") + private String lastUpdatedDate = null; + + @SerializedName("licenseFileId") + private String licenseFileId = null; + + @SerializedName("licenseName") + private String licenseName = null; + + @SerializedName("licenseStatus") + private String licenseStatus = null; + + @SerializedName("licenseType") + private String licenseType = null; + + @SerializedName("metroCode") + private String metroCode = null; + + @SerializedName("metroName") + private String metroName = null; + + @SerializedName("name") + private String name = null; + + @SerializedName("notifications") + private List notifications = null; + + @SerializedName("packageCode") + private String packageCode = null; + + @SerializedName("packageName") + private String packageName = null; + + @SerializedName("purchaseOrderNumber") + private String purchaseOrderNumber = null; + + @SerializedName("redundancyType") + private String redundancyType = null; + + @SerializedName("redundantUUID") + private String redundantUUID = null; + + @SerializedName("sshIpAddress") + private String sshIpAddress = null; + + @SerializedName("sshIpFqdn") + private String sshIpFqdn = null; + + @SerializedName("sshUsername") + private String sshUsername = null; + + @SerializedName("status") + private String status = null; + + @SerializedName("tenantName") + private String tenantName = null; + + @SerializedName("throughput") + private Integer throughput = null; + + @SerializedName("throughputUnit") + private String throughputUnit = null; + + @SerializedName("sshAcl") + private List sshAcl = null; + + @SerializedName("managementIp") + private String managementIp = null; + + @SerializedName("managementGatewayIp") + private String managementGatewayIp = null; + + @SerializedName("publicIp") + private String publicIp = null; + + @SerializedName("publicGatewayIp") + private String publicGatewayIp = null; + + @SerializedName("primaryDnsName") + private String primaryDnsName = null; + + @SerializedName("secondaryDnsName") + private String secondaryDnsName = null; + + @SerializedName("termLength") + private String termLength = null; + + @SerializedName("additionalBandwidth") + private String additionalBandwidth = null; + + @SerializedName("siteId") + private String siteId = null; + + @SerializedName("systemIpAddress") + private String systemIpAddress = null; + + public VirtualDeviceDetailsResponse accountName(String accountName) { + this.accountName = accountName; + return this; + } + + /** + * Get accountName + * @return accountName + **/ + @ApiModelProperty(example = "ABC INC", value = "") + public String getAccountName() { + return accountName; + } + + public void setAccountName(String accountName) { + this.accountName = accountName; + } + + public VirtualDeviceDetailsResponse accountNumber(String accountNumber) { + this.accountNumber = accountNumber; + return this; + } + + /** + * Get accountNumber + * @return accountNumber + **/ + @ApiModelProperty(example = "133911", value = "") + public String getAccountNumber() { + return accountNumber; + } + + public void setAccountNumber(String accountNumber) { + this.accountNumber = accountNumber; + } + + public VirtualDeviceDetailsResponse createdBy(String createdBy) { + this.createdBy = createdBy; + return this; + } + + /** + * Get createdBy + * @return createdBy + **/ + @ApiModelProperty(example = "cust0001", value = "") + public String getCreatedBy() { + return createdBy; + } + + public void setCreatedBy(String createdBy) { + this.createdBy = createdBy; + } + + public VirtualDeviceDetailsResponse createdDate(String createdDate) { + this.createdDate = createdDate; + return this; + } + + /** + * Get createdDate + * @return createdDate + **/ + @ApiModelProperty(example = "2018-01-30T10:30:31.387Z", value = "") + public String getCreatedDate() { + return createdDate; + } + + public void setCreatedDate(String createdDate) { + this.createdDate = createdDate; + } + + public VirtualDeviceDetailsResponse deviceSerialNo(String deviceSerialNo) { + this.deviceSerialNo = deviceSerialNo; + return this; + } + + /** + * Get deviceSerialNo + * @return deviceSerialNo + **/ + @ApiModelProperty(example = "53791666484", value = "") + public String getDeviceSerialNo() { + return deviceSerialNo; + } + + public void setDeviceSerialNo(String deviceSerialNo) { + this.deviceSerialNo = deviceSerialNo; + } + + public VirtualDeviceDetailsResponse deviceTypeCategory(String deviceTypeCategory) { + this.deviceTypeCategory = deviceTypeCategory; + return this; + } + + /** + * Get deviceTypeCategory + * @return deviceTypeCategory + **/ + @ApiModelProperty(example = "ROUTER", value = "") + public String getDeviceTypeCategory() { + return deviceTypeCategory; + } + + public void setDeviceTypeCategory(String deviceTypeCategory) { + this.deviceTypeCategory = deviceTypeCategory; + } + + public VirtualDeviceDetailsResponse deviceTypeCode(String deviceTypeCode) { + this.deviceTypeCode = deviceTypeCode; + return this; + } + + /** + * Get deviceTypeCode + * @return deviceTypeCode + **/ + @ApiModelProperty(example = "CSR1000V", value = "") + public String getDeviceTypeCode() { + return deviceTypeCode; + } + + public void setDeviceTypeCode(String deviceTypeCode) { + this.deviceTypeCode = deviceTypeCode; + } + + public VirtualDeviceDetailsResponse deviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + return this; + } + + /** + * Get deviceTypeName + * @return deviceTypeName + **/ + @ApiModelProperty(example = "CSR 1000v", value = "") + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public VirtualDeviceDetailsResponse expiry(String expiry) { + this.expiry = expiry; + return this; + } + + /** + * Get expiry + * @return expiry + **/ + @ApiModelProperty(example = "2019-02-07T00:00:00.000+0000", value = "") + public String getExpiry() { + return expiry; + } + + public void setExpiry(String expiry) { + this.expiry = expiry; + } + + public VirtualDeviceDetailsResponse region(String region) { + this.region = region; + return this; + } + + /** + * Get region + * @return region + **/ + @ApiModelProperty(example = "AMER", value = "") + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public VirtualDeviceDetailsResponse deviceTypeVendor(String deviceTypeVendor) { + this.deviceTypeVendor = deviceTypeVendor; + return this; + } + + /** + * Get deviceTypeVendor + * @return deviceTypeVendor + **/ + @ApiModelProperty(example = "Cisco", value = "") + public String getDeviceTypeVendor() { + return deviceTypeVendor; + } + + public void setDeviceTypeVendor(String deviceTypeVendor) { + this.deviceTypeVendor = deviceTypeVendor; + } + + public VirtualDeviceDetailsResponse hostName(String hostName) { + this.hostName = hostName; + return this; + } + + /** + * Get hostName + * @return hostName + **/ + @ApiModelProperty(example = "VR-SV-CSR1000V-cust0001-1", value = "") + public String getHostName() { + return hostName; + } + + public void setHostName(String hostName) { + this.hostName = hostName; + } + + public VirtualDeviceDetailsResponse id(String id) { + this.id = id; + return this; + } + + /** + * Get id + * @return id + **/ + @ApiModelProperty(example = "877a3aa2-c49a-4af1-98a6-007424e737ae", value = "") + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public VirtualDeviceDetailsResponse lastUpdatedBy(String lastUpdatedBy) { + this.lastUpdatedBy = lastUpdatedBy; + return this; + } + + /** + * Get lastUpdatedBy + * @return lastUpdatedBy + **/ + @ApiModelProperty(example = "cust0002", value = "") + public String getLastUpdatedBy() { + return lastUpdatedBy; + } + + public void setLastUpdatedBy(String lastUpdatedBy) { + this.lastUpdatedBy = lastUpdatedBy; + } + + public VirtualDeviceDetailsResponse lastUpdatedDate(String lastUpdatedDate) { + this.lastUpdatedDate = lastUpdatedDate; + return this; + } + + /** + * Get lastUpdatedDate + * @return lastUpdatedDate + **/ + @ApiModelProperty(example = "2018-01-30T10:30:31.387Z", value = "") + public String getLastUpdatedDate() { + return lastUpdatedDate; + } + + public void setLastUpdatedDate(String lastUpdatedDate) { + this.lastUpdatedDate = lastUpdatedDate; + } + + public VirtualDeviceDetailsResponse licenseFileId(String licenseFileId) { + this.licenseFileId = licenseFileId; + return this; + } + + /** + * Get licenseFileId + * @return licenseFileId + **/ + @ApiModelProperty(example = "877a3aa2-c49a-4af1-98a6-007424e737ae", value = "") + public String getLicenseFileId() { + return licenseFileId; + } + + public void setLicenseFileId(String licenseFileId) { + this.licenseFileId = licenseFileId; + } + + public VirtualDeviceDetailsResponse licenseName(String licenseName) { + this.licenseName = licenseName; + return this; + } + + /** + * Get licenseName + * @return licenseName + **/ + @ApiModelProperty(example = "Bring your own license", value = "") + public String getLicenseName() { + return licenseName; + } + + public void setLicenseName(String licenseName) { + this.licenseName = licenseName; + } + + public VirtualDeviceDetailsResponse licenseStatus(String licenseStatus) { + this.licenseStatus = licenseStatus; + return this; + } + + /** + * Get licenseStatus + * @return licenseStatus + **/ + @ApiModelProperty(example = "REGISTERED", value = "") + public String getLicenseStatus() { + return licenseStatus; + } + + public void setLicenseStatus(String licenseStatus) { + this.licenseStatus = licenseStatus; + } + + public VirtualDeviceDetailsResponse licenseType(String licenseType) { + this.licenseType = licenseType; + return this; + } + + /** + * Get licenseType + * @return licenseType + **/ + @ApiModelProperty(example = "BYOL", value = "") + public String getLicenseType() { + return licenseType; + } + + public void setLicenseType(String licenseType) { + this.licenseType = licenseType; + } + + public VirtualDeviceDetailsResponse metroCode(String metroCode) { + this.metroCode = metroCode; + return this; + } + + /** + * Get metroCode + * @return metroCode + **/ + @ApiModelProperty(example = "SV", value = "") + public String getMetroCode() { + return metroCode; + } + + public void setMetroCode(String metroCode) { + this.metroCode = metroCode; + } + + public VirtualDeviceDetailsResponse metroName(String metroName) { + this.metroName = metroName; + return this; + } + + /** + * Get metroName + * @return metroName + **/ + @ApiModelProperty(example = "Silicon Valley", value = "") + public String getMetroName() { + return metroName; + } + + public void setMetroName(String metroName) { + this.metroName = metroName; + } + + public VirtualDeviceDetailsResponse name(String name) { + this.name = name; + return this; + } + + /** + * Get name + * @return name + **/ + @ApiModelProperty(example = "AWS-Azure-Router-csr1000v", value = "") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public VirtualDeviceDetailsResponse notifications(List notifications) { + this.notifications = notifications; + return this; + } + + public VirtualDeviceDetailsResponse addNotificationsItem(String notificationsItem) { + if (this.notifications == null) { + this.notifications = new ArrayList(); + } + this.notifications.add(notificationsItem); + return this; + } + + /** + * Get notifications + * @return notifications + **/ + @ApiModelProperty(value = "") + public List getNotifications() { + return notifications; + } + + public void setNotifications(List notifications) { + this.notifications = notifications; + } + + public VirtualDeviceDetailsResponse packageCode(String packageCode) { + this.packageCode = packageCode; + return this; + } + + /** + * Get packageCode + * @return packageCode + **/ + @ApiModelProperty(example = "IPBASE", value = "") + public String getPackageCode() { + return packageCode; + } + + public void setPackageCode(String packageCode) { + this.packageCode = packageCode; + } + + public VirtualDeviceDetailsResponse packageName(String packageName) { + this.packageName = packageName; + return this; + } + + /** + * Get packageName + * @return packageName + **/ + @ApiModelProperty(example = "IPBASE", value = "") + public String getPackageName() { + return packageName; + } + + public void setPackageName(String packageName) { + this.packageName = packageName; + } + + public VirtualDeviceDetailsResponse purchaseOrderNumber(String purchaseOrderNumber) { + this.purchaseOrderNumber = purchaseOrderNumber; + return this; + } + + /** + * Get purchaseOrderNumber + * @return purchaseOrderNumber + **/ + @ApiModelProperty(example = "PO1223", value = "") + public String getPurchaseOrderNumber() { + return purchaseOrderNumber; + } + + public void setPurchaseOrderNumber(String purchaseOrderNumber) { + this.purchaseOrderNumber = purchaseOrderNumber; + } + + public VirtualDeviceDetailsResponse redundancyType(String redundancyType) { + this.redundancyType = redundancyType; + return this; + } + + /** + * Get redundancyType + * @return redundancyType + **/ + @ApiModelProperty(example = "PRIMARY", value = "") + public String getRedundancyType() { + return redundancyType; + } + + public void setRedundancyType(String redundancyType) { + this.redundancyType = redundancyType; + } + + public VirtualDeviceDetailsResponse redundantUUID(String redundantUUID) { + this.redundantUUID = redundantUUID; + return this; + } + + /** + * Get redundantUUID + * @return redundantUUID + **/ + @ApiModelProperty(example = "xxxxx191-xx70-xxxx-xx04-xxxxxxxa67xx", value = "") + public String getRedundantUUID() { + return redundantUUID; + } + + public void setRedundantUUID(String redundantUUID) { + this.redundantUUID = redundantUUID; + } + + public VirtualDeviceDetailsResponse sshIpAddress(String sshIpAddress) { + this.sshIpAddress = sshIpAddress; + return this; + } + + /** + * Get sshIpAddress + * @return sshIpAddress + **/ + @ApiModelProperty(example = "10.195.11.23", value = "") + public String getSshIpAddress() { + return sshIpAddress; + } + + public void setSshIpAddress(String sshIpAddress) { + this.sshIpAddress = sshIpAddress; + } + + public VirtualDeviceDetailsResponse sshIpFqdn(String sshIpFqdn) { + this.sshIpFqdn = sshIpFqdn; + return this; + } + + /** + * Get sshIpFqdn + * @return sshIpFqdn + **/ + @ApiModelProperty(example = "test-device-168-201-97-149.eis.lab.equinix.com", value = "") + public String getSshIpFqdn() { + return sshIpFqdn; + } + + public void setSshIpFqdn(String sshIpFqdn) { + this.sshIpFqdn = sshIpFqdn; + } + + public VirtualDeviceDetailsResponse sshUsername(String sshUsername) { + this.sshUsername = sshUsername; + return this; + } + + /** + * Get sshUsername + * @return sshUsername + **/ + @ApiModelProperty(example = "test0user", value = "") + public String getSshUsername() { + return sshUsername; + } + + public void setSshUsername(String sshUsername) { + this.sshUsername = sshUsername; + } + + public VirtualDeviceDetailsResponse status(String status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + **/ + @ApiModelProperty(example = "PROVISIONED", value = "") + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public VirtualDeviceDetailsResponse tenantName(String tenantName) { + this.tenantName = tenantName; + return this; + } + + /** + * Get tenantName + * @return tenantName + **/ + @ApiModelProperty(example = "sv-9031", value = "") + public String getTenantName() { + return tenantName; + } + + public void setTenantName(String tenantName) { + this.tenantName = tenantName; + } + + public VirtualDeviceDetailsResponse throughput(Integer throughput) { + this.throughput = throughput; + return this; + } + + /** + * Get throughput + * @return throughput + **/ + @ApiModelProperty(example = "500", value = "") + public Integer getThroughput() { + return throughput; + } + + public void setThroughput(Integer throughput) { + this.throughput = throughput; + } + + public VirtualDeviceDetailsResponse throughputUnit(String throughputUnit) { + this.throughputUnit = throughputUnit; + return this; + } + + /** + * Get throughputUnit + * @return throughputUnit + **/ + @ApiModelProperty(example = "Mbps", value = "") + public String getThroughputUnit() { + return throughputUnit; + } + + public void setThroughputUnit(String throughputUnit) { + this.throughputUnit = throughputUnit; + } + + public VirtualDeviceDetailsResponse sshAcl(List sshAcl) { + this.sshAcl = sshAcl; + return this; + } + + public VirtualDeviceDetailsResponse addSshAclItem(Object sshAclItem) { + if (this.sshAcl == null) { + this.sshAcl = new ArrayList(); + } + this.sshAcl.add(sshAclItem); + return this; + } + + /** + * Get sshAcl + * @return sshAcl + **/ + @ApiModelProperty(example = "[\"192.168.1.1/32\",\"192.168.94.0/24\"]", value = "") + public List getSshAcl() { + return sshAcl; + } + + public void setSshAcl(List sshAcl) { + this.sshAcl = sshAcl; + } + + public VirtualDeviceDetailsResponse managementIp(String managementIp) { + this.managementIp = managementIp; + return this; + } + + /** + * Get managementIp + * @return managementIp + **/ + @ApiModelProperty(example = "10.195.237.228/26", value = "") + public String getManagementIp() { + return managementIp; + } + + public void setManagementIp(String managementIp) { + this.managementIp = managementIp; + } + + public VirtualDeviceDetailsResponse managementGatewayIp(String managementGatewayIp) { + this.managementGatewayIp = managementGatewayIp; + return this; + } + + /** + * Get managementGatewayIp + * @return managementGatewayIp + **/ + @ApiModelProperty(example = "10.195.237.254", value = "") + public String getManagementGatewayIp() { + return managementGatewayIp; + } + + public void setManagementGatewayIp(String managementGatewayIp) { + this.managementGatewayIp = managementGatewayIp; + } + + public VirtualDeviceDetailsResponse publicIp(String publicIp) { + this.publicIp = publicIp; + return this; + } + + /** + * Get publicIp + * @return publicIp + **/ + @ApiModelProperty(example = "149.97.198.95/31", value = "") + public String getPublicIp() { + return publicIp; + } + + public void setPublicIp(String publicIp) { + this.publicIp = publicIp; + } + + public VirtualDeviceDetailsResponse publicGatewayIp(String publicGatewayIp) { + this.publicGatewayIp = publicGatewayIp; + return this; + } + + /** + * Get publicGatewayIp + * @return publicGatewayIp + **/ + @ApiModelProperty(example = "149.97.198.94", value = "") + public String getPublicGatewayIp() { + return publicGatewayIp; + } + + public void setPublicGatewayIp(String publicGatewayIp) { + this.publicGatewayIp = publicGatewayIp; + } + + public VirtualDeviceDetailsResponse primaryDnsName(String primaryDnsName) { + this.primaryDnsName = primaryDnsName; + return this; + } + + /** + * Get primaryDnsName + * @return primaryDnsName + **/ + @ApiModelProperty(example = "4.0.0.53", value = "") + public String getPrimaryDnsName() { + return primaryDnsName; + } + + public void setPrimaryDnsName(String primaryDnsName) { + this.primaryDnsName = primaryDnsName; + } + + public VirtualDeviceDetailsResponse secondaryDnsName(String secondaryDnsName) { + this.secondaryDnsName = secondaryDnsName; + return this; + } + + /** + * Get secondaryDnsName + * @return secondaryDnsName + **/ + @ApiModelProperty(example = "129.250.35.250", value = "") + public String getSecondaryDnsName() { + return secondaryDnsName; + } + + public void setSecondaryDnsName(String secondaryDnsName) { + this.secondaryDnsName = secondaryDnsName; + } + + public VirtualDeviceDetailsResponse termLength(String termLength) { + this.termLength = termLength; + return this; + } + + /** + * Get termLength + * @return termLength + **/ + @ApiModelProperty(example = "12", value = "") + public String getTermLength() { + return termLength; + } + + public void setTermLength(String termLength) { + this.termLength = termLength; + } + + public VirtualDeviceDetailsResponse additionalBandwidth(String additionalBandwidth) { + this.additionalBandwidth = additionalBandwidth; + return this; + } + + /** + * Get additionalBandwidth + * @return additionalBandwidth + **/ + @ApiModelProperty(example = "200", value = "") + public String getAdditionalBandwidth() { + return additionalBandwidth; + } + + public void setAdditionalBandwidth(String additionalBandwidth) { + this.additionalBandwidth = additionalBandwidth; + } + + public VirtualDeviceDetailsResponse siteId(String siteId) { + this.siteId = siteId; + return this; + } + + /** + * Get siteId + * @return siteId + **/ + @ApiModelProperty(example = "12345", value = "") + public String getSiteId() { + return siteId; + } + + public void setSiteId(String siteId) { + this.siteId = siteId; + } + + public VirtualDeviceDetailsResponse systemIpAddress(String systemIpAddress) { + this.systemIpAddress = systemIpAddress; + return this; + } + + /** + * Get systemIpAddress + * @return systemIpAddress + **/ + @ApiModelProperty(example = "192.168.2.5", value = "") + public String getSystemIpAddress() { + return systemIpAddress; + } + + public void setSystemIpAddress(String systemIpAddress) { + this.systemIpAddress = systemIpAddress; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VirtualDeviceDetailsResponse virtualDeviceDetailsResponse = (VirtualDeviceDetailsResponse) o; + return Objects.equals(this.accountName, virtualDeviceDetailsResponse.accountName) && + Objects.equals(this.accountNumber, virtualDeviceDetailsResponse.accountNumber) && + Objects.equals(this.createdBy, virtualDeviceDetailsResponse.createdBy) && + Objects.equals(this.createdDate, virtualDeviceDetailsResponse.createdDate) && + Objects.equals(this.deviceSerialNo, virtualDeviceDetailsResponse.deviceSerialNo) && + Objects.equals(this.deviceTypeCategory, virtualDeviceDetailsResponse.deviceTypeCategory) && + Objects.equals(this.deviceTypeCode, virtualDeviceDetailsResponse.deviceTypeCode) && + Objects.equals(this.deviceTypeName, virtualDeviceDetailsResponse.deviceTypeName) && + Objects.equals(this.expiry, virtualDeviceDetailsResponse.expiry) && + Objects.equals(this.region, virtualDeviceDetailsResponse.region) && + Objects.equals(this.deviceTypeVendor, virtualDeviceDetailsResponse.deviceTypeVendor) && + Objects.equals(this.hostName, virtualDeviceDetailsResponse.hostName) && + Objects.equals(this.id, virtualDeviceDetailsResponse.id) && + Objects.equals(this.lastUpdatedBy, virtualDeviceDetailsResponse.lastUpdatedBy) && + Objects.equals(this.lastUpdatedDate, virtualDeviceDetailsResponse.lastUpdatedDate) && + Objects.equals(this.licenseFileId, virtualDeviceDetailsResponse.licenseFileId) && + Objects.equals(this.licenseName, virtualDeviceDetailsResponse.licenseName) && + Objects.equals(this.licenseStatus, virtualDeviceDetailsResponse.licenseStatus) && + Objects.equals(this.licenseType, virtualDeviceDetailsResponse.licenseType) && + Objects.equals(this.metroCode, virtualDeviceDetailsResponse.metroCode) && + Objects.equals(this.metroName, virtualDeviceDetailsResponse.metroName) && + Objects.equals(this.name, virtualDeviceDetailsResponse.name) && + Objects.equals(this.notifications, virtualDeviceDetailsResponse.notifications) && + Objects.equals(this.packageCode, virtualDeviceDetailsResponse.packageCode) && + Objects.equals(this.packageName, virtualDeviceDetailsResponse.packageName) && + Objects.equals(this.purchaseOrderNumber, virtualDeviceDetailsResponse.purchaseOrderNumber) && + Objects.equals(this.redundancyType, virtualDeviceDetailsResponse.redundancyType) && + Objects.equals(this.redundantUUID, virtualDeviceDetailsResponse.redundantUUID) && + Objects.equals(this.sshIpAddress, virtualDeviceDetailsResponse.sshIpAddress) && + Objects.equals(this.sshIpFqdn, virtualDeviceDetailsResponse.sshIpFqdn) && + Objects.equals(this.sshUsername, virtualDeviceDetailsResponse.sshUsername) && + Objects.equals(this.status, virtualDeviceDetailsResponse.status) && + Objects.equals(this.tenantName, virtualDeviceDetailsResponse.tenantName) && + Objects.equals(this.throughput, virtualDeviceDetailsResponse.throughput) && + Objects.equals(this.throughputUnit, virtualDeviceDetailsResponse.throughputUnit) && + Objects.equals(this.sshAcl, virtualDeviceDetailsResponse.sshAcl) && + Objects.equals(this.managementIp, virtualDeviceDetailsResponse.managementIp) && + Objects.equals(this.managementGatewayIp, virtualDeviceDetailsResponse.managementGatewayIp) && + Objects.equals(this.publicIp, virtualDeviceDetailsResponse.publicIp) && + Objects.equals(this.publicGatewayIp, virtualDeviceDetailsResponse.publicGatewayIp) && + Objects.equals(this.primaryDnsName, virtualDeviceDetailsResponse.primaryDnsName) && + Objects.equals(this.secondaryDnsName, virtualDeviceDetailsResponse.secondaryDnsName) && + Objects.equals(this.termLength, virtualDeviceDetailsResponse.termLength) && + Objects.equals(this.additionalBandwidth, virtualDeviceDetailsResponse.additionalBandwidth) && + Objects.equals(this.siteId, virtualDeviceDetailsResponse.siteId) && + Objects.equals(this.systemIpAddress, virtualDeviceDetailsResponse.systemIpAddress); + } + + @Override + public int hashCode() { + return Objects.hash(accountName, accountNumber, createdBy, createdDate, deviceSerialNo, deviceTypeCategory, deviceTypeCode, deviceTypeName, expiry, region, deviceTypeVendor, hostName, id, lastUpdatedBy, lastUpdatedDate, licenseFileId, licenseName, licenseStatus, licenseType, metroCode, metroName, name, notifications, packageCode, packageName, purchaseOrderNumber, redundancyType, redundantUUID, sshIpAddress, sshIpFqdn, sshUsername, status, tenantName, throughput, throughputUnit, sshAcl, managementIp, managementGatewayIp, publicIp, publicGatewayIp, primaryDnsName, secondaryDnsName, termLength, additionalBandwidth, siteId, systemIpAddress); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VirtualDeviceDetailsResponse {\n"); + + sb.append(" accountName: ").append(toIndentedString(accountName)).append("\n"); + sb.append(" accountNumber: ").append(toIndentedString(accountNumber)).append("\n"); + sb.append(" createdBy: ").append(toIndentedString(createdBy)).append("\n"); + sb.append(" createdDate: ").append(toIndentedString(createdDate)).append("\n"); + sb.append(" deviceSerialNo: ").append(toIndentedString(deviceSerialNo)).append("\n"); + sb.append(" deviceTypeCategory: ").append(toIndentedString(deviceTypeCategory)).append("\n"); + sb.append(" deviceTypeCode: ").append(toIndentedString(deviceTypeCode)).append("\n"); + sb.append(" deviceTypeName: ").append(toIndentedString(deviceTypeName)).append("\n"); + sb.append(" expiry: ").append(toIndentedString(expiry)).append("\n"); + sb.append(" region: ").append(toIndentedString(region)).append("\n"); + sb.append(" deviceTypeVendor: ").append(toIndentedString(deviceTypeVendor)).append("\n"); + sb.append(" hostName: ").append(toIndentedString(hostName)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" lastUpdatedBy: ").append(toIndentedString(lastUpdatedBy)).append("\n"); + sb.append(" lastUpdatedDate: ").append(toIndentedString(lastUpdatedDate)).append("\n"); + sb.append(" licenseFileId: ").append(toIndentedString(licenseFileId)).append("\n"); + sb.append(" licenseName: ").append(toIndentedString(licenseName)).append("\n"); + sb.append(" licenseStatus: ").append(toIndentedString(licenseStatus)).append("\n"); + sb.append(" licenseType: ").append(toIndentedString(licenseType)).append("\n"); + sb.append(" metroCode: ").append(toIndentedString(metroCode)).append("\n"); + sb.append(" metroName: ").append(toIndentedString(metroName)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" notifications: ").append(toIndentedString(notifications)).append("\n"); + sb.append(" packageCode: ").append(toIndentedString(packageCode)).append("\n"); + sb.append(" packageName: ").append(toIndentedString(packageName)).append("\n"); + sb.append(" purchaseOrderNumber: ").append(toIndentedString(purchaseOrderNumber)).append("\n"); + sb.append(" redundancyType: ").append(toIndentedString(redundancyType)).append("\n"); + sb.append(" redundantUUID: ").append(toIndentedString(redundantUUID)).append("\n"); + sb.append(" sshIpAddress: ").append(toIndentedString(sshIpAddress)).append("\n"); + sb.append(" sshIpFqdn: ").append(toIndentedString(sshIpFqdn)).append("\n"); + sb.append(" sshUsername: ").append(toIndentedString(sshUsername)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" tenantName: ").append(toIndentedString(tenantName)).append("\n"); + sb.append(" throughput: ").append(toIndentedString(throughput)).append("\n"); + sb.append(" throughputUnit: ").append(toIndentedString(throughputUnit)).append("\n"); + sb.append(" sshAcl: ").append(toIndentedString(sshAcl)).append("\n"); + sb.append(" managementIp: ").append(toIndentedString(managementIp)).append("\n"); + sb.append(" managementGatewayIp: ").append(toIndentedString(managementGatewayIp)).append("\n"); + sb.append(" publicIp: ").append(toIndentedString(publicIp)).append("\n"); + sb.append(" publicGatewayIp: ").append(toIndentedString(publicGatewayIp)).append("\n"); + sb.append(" primaryDnsName: ").append(toIndentedString(primaryDnsName)).append("\n"); + sb.append(" secondaryDnsName: ").append(toIndentedString(secondaryDnsName)).append("\n"); + sb.append(" termLength: ").append(toIndentedString(termLength)).append("\n"); + sb.append(" additionalBandwidth: ").append(toIndentedString(additionalBandwidth)).append("\n"); + sb.append(" siteId: ").append(toIndentedString(siteId)).append("\n"); + sb.append(" systemIpAddress: ").append(toIndentedString(systemIpAddress)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/VirtualDevicePageResponse.java b/src/main/java/com/equinix/networkedge/model/VirtualDevicePageResponse.java new file mode 100644 index 0000000..19e5a80 --- /dev/null +++ b/src/main/java/com/equinix/networkedge/model/VirtualDevicePageResponse.java @@ -0,0 +1,169 @@ +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; +import com.equinix.networkedge.model.VirtualDeviceResponse; + +import java.util.ArrayList; +import java.util.List; + +/** + * VirtualDevicePageResponse + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class VirtualDevicePageResponse { + @SerializedName("pageNumber") + private Integer pageNumber = null; + + @SerializedName("pageSize") + private Integer pageSize = null; + + @SerializedName("totalCount") + private Long totalCount = null; + + @SerializedName("vrouterList") + private List vrouterList = null; + + public VirtualDevicePageResponse pageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + return this; + } + + /** + * Get pageNumber + * @return pageNumber + **/ + @ApiModelProperty(value = "") + public Integer getPageNumber() { + return pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public VirtualDevicePageResponse pageSize(Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Get pageSize + * @return pageSize + **/ + @ApiModelProperty(value = "") + public Integer getPageSize() { + return pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public VirtualDevicePageResponse totalCount(Long totalCount) { + this.totalCount = totalCount; + return this; + } + + /** + * Get totalCount + * @return totalCount + **/ + @ApiModelProperty(value = "") + public Long getTotalCount() { + return totalCount; + } + + public void setTotalCount(Long totalCount) { + this.totalCount = totalCount; + } + + public VirtualDevicePageResponse vrouterList(List vrouterList) { + this.vrouterList = vrouterList; + return this; + } + + public VirtualDevicePageResponse addVrouterListItem(VirtualDeviceResponse vrouterListItem) { + if (this.vrouterList == null) { + this.vrouterList = new ArrayList(); + } + this.vrouterList.add(vrouterListItem); + return this; + } + + /** + * Get vrouterList + * @return vrouterList + **/ + @ApiModelProperty(value = "") + public List getVrouterList() { + return vrouterList; + } + + public void setVrouterList(List vrouterList) { + this.vrouterList = vrouterList; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VirtualDevicePageResponse virtualDevicePageResponse = (VirtualDevicePageResponse) o; + return Objects.equals(this.pageNumber, virtualDevicePageResponse.pageNumber) && + Objects.equals(this.pageSize, virtualDevicePageResponse.pageSize) && + Objects.equals(this.totalCount, virtualDevicePageResponse.totalCount) && + Objects.equals(this.vrouterList, virtualDevicePageResponse.vrouterList); + } + + @Override + public int hashCode() { + return Objects.hash(pageNumber, pageSize, totalCount, vrouterList); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VirtualDevicePageResponse {\n"); + + sb.append(" pageNumber: ").append(toIndentedString(pageNumber)).append("\n"); + sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n"); + sb.append(" totalCount: ").append(toIndentedString(totalCount)).append("\n"); + sb.append(" vrouterList: ").append(toIndentedString(vrouterList)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/VirtualDeviceRequest.java b/src/main/java/com/equinix/networkedge/model/VirtualDeviceRequest.java new file mode 100644 index 0000000..540469d --- /dev/null +++ b/src/main/java/com/equinix/networkedge/model/VirtualDeviceRequest.java @@ -0,0 +1,536 @@ +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; +import com.equinix.networkedge.model.SshUsers; +import com.equinix.networkedge.model.VirtualDevicHARequest; + +import java.util.ArrayList; +import java.util.List; + +/** + * VirtualDeviceRequest + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class VirtualDeviceRequest { + @SerializedName("accountNumber") + private String accountNumber = null; + + @SerializedName("accountReferenceId") + private String accountReferenceId = null; + + @SerializedName("deviceTypeCode") + private String deviceTypeCode = null; + + @SerializedName("hostNamePrefix") + private String hostNamePrefix = null; + + @SerializedName("licenseFileId") + private String licenseFileId = null; + + @SerializedName("licenseMode") + private String licenseMode = null; + + @SerializedName("licenseToken") + private String licenseToken = null; + + @SerializedName("metroCode") + private String metroCode = null; + + @SerializedName("packageCode") + private String packageCode = null; + + @SerializedName("termLength") + private Integer termLength = null; + + @SerializedName("sshUsers") + private List sshUsers = null; + + @SerializedName("throughput") + private Integer throughput = null; + + @SerializedName("throughputUnit") + private String throughputUnit = null; + + @SerializedName("virtualDeviceName") + private String virtualDeviceName = null; + + @SerializedName("notifications") + private List notifications = new ArrayList(); + + @SerializedName("sshAcl") + private List sshAcl = null; + + @SerializedName("additionalBandwidth") + private Integer additionalBandwidth = null; + + @SerializedName("siteId") + private String siteId = null; + + @SerializedName("systemIpAddress") + private String systemIpAddress = null; + + @SerializedName("secondary") + private VirtualDevicHARequest secondary = null; + + public VirtualDeviceRequest accountNumber(String accountNumber) { + this.accountNumber = accountNumber; + return this; + } + + /** + * Account number. Either an account number or accountReferenceId is required. + * @return accountNumber + **/ + @ApiModelProperty(example = "10478397", value = "Account number. Either an account number or accountReferenceId is required.") + public String getAccountNumber() { + return accountNumber; + } + + public void setAccountNumber(String accountNumber) { + this.accountNumber = accountNumber; + } + + public VirtualDeviceRequest accountReferenceId(String accountReferenceId) { + this.accountReferenceId = accountReferenceId; + return this; + } + + /** + * AccountReferenceId. This is a temporary ID that can be used to create a device when the account status is still pending, not active. Either an account number or accountReferenceId is required. + * @return accountReferenceId + **/ + @ApiModelProperty(example = "209809", value = "AccountReferenceId. This is a temporary ID that can be used to create a device when the account status is still pending, not active. Either an account number or accountReferenceId is required.") + public String getAccountReferenceId() { + return accountReferenceId; + } + + public void setAccountReferenceId(String accountReferenceId) { + this.accountReferenceId = accountReferenceId; + } + + public VirtualDeviceRequest deviceTypeCode(String deviceTypeCode) { + this.deviceTypeCode = deviceTypeCode; + return this; + } + + /** + * Virtual device type (device type code) + * @return deviceTypeCode + **/ + @ApiModelProperty(example = "CSR1000V", required = true, value = "Virtual device type (device type code)") + public String getDeviceTypeCode() { + return deviceTypeCode; + } + + public void setDeviceTypeCode(String deviceTypeCode) { + this.deviceTypeCode = deviceTypeCode; + } + + public VirtualDeviceRequest hostNamePrefix(String hostNamePrefix) { + this.hostNamePrefix = hostNamePrefix; + return this; + } + + /** + * Host name prefix for identification. Only a-z, A-Z, 0-9 and hyphen(-) are allowed. It should start with a letter and end with a letter or a digit. Also, it should be minimum 2 and maximum 10 characters long. + * @return hostNamePrefix + **/ + @ApiModelProperty(example = "mySR", required = true, value = "Host name prefix for identification. Only a-z, A-Z, 0-9 and hyphen(-) are allowed. It should start with a letter and end with a letter or a digit. Also, it should be minimum 2 and maximum 10 characters long.") + public String getHostNamePrefix() { + return hostNamePrefix; + } + + public void setHostNamePrefix(String hostNamePrefix) { + this.hostNamePrefix = hostNamePrefix; + } + + public VirtualDeviceRequest licenseFileId(String licenseFileId) { + this.licenseFileId = licenseFileId; + return this; + } + + /** + * For Juniper devices you need to provide a licenseFileId if you want to BYOL (Bring Your Own License). You get a licenseFileId when you upload a license file by calling license upload API (Upload a license file before creating a virtual device). For Cisco devices, you do not need to provide a licenseFileId at the time of device creation. Once the device is provisioned, you can get the deviceSerialNo by calling Get virtual device by UUID API. With the deviceSerialNo you can generate a license file on Cisco site. Afterward, you can upload the license file by calling license upload API (Upload a license file after creating a virtual device). + * @return licenseFileId + **/ + @ApiModelProperty(example = "d6e21e0c-86dd-11e8-adc0-fa7ae01bbebc", value = "For Juniper devices you need to provide a licenseFileId if you want to BYOL (Bring Your Own License). You get a licenseFileId when you upload a license file by calling license upload API (Upload a license file before creating a virtual device). For Cisco devices, you do not need to provide a licenseFileId at the time of device creation. Once the device is provisioned, you can get the deviceSerialNo by calling Get virtual device by UUID API. With the deviceSerialNo you can generate a license file on Cisco site. Afterward, you can upload the license file by calling license upload API (Upload a license file after creating a virtual device).") + public String getLicenseFileId() { + return licenseFileId; + } + + public void setLicenseFileId(String licenseFileId) { + this.licenseFileId = licenseFileId; + } + + public VirtualDeviceRequest licenseMode(String licenseMode) { + this.licenseMode = licenseMode; + return this; + } + + /** + * License type. One of SUB (Subscription) or BYOL (Bring Your Own License) + * @return licenseMode + **/ + @ApiModelProperty(example = "SUB", required = true, value = "License type. One of SUB (Subscription) or BYOL (Bring Your Own License)") + public String getLicenseMode() { + return licenseMode; + } + + public void setLicenseMode(String licenseMode) { + this.licenseMode = licenseMode; + } + + public VirtualDeviceRequest licenseToken(String licenseToken) { + this.licenseToken = licenseToken; + return this; + } + + @ApiModelProperty(example = "1", required = true, value = "Term length. 1 Month, 12 months, 24 or 36 months") + public Integer getTermLength() { return termLength; } + public void setTermLength(Integer termLength) { this.termLength = termLength; } + public VirtualDeviceRequest termLength(Integer termLength) { this.termLength = termLength; return this;} + + /** + * In case you want to BYOL (Bring Your Own License) for a Palo Alto device, you must provide a license token. This field must have 8 alphanumeric characters. + * @return licenseToken + **/ + @ApiModelProperty(example = "V74191621", value = "In case you want to BYOL (Bring Your Own License) for a Palo Alto device, you must provide a license token. This field must have 8 alphanumeric characters.") + public String getLicenseToken() { + return licenseToken; + } + + public void setLicenseToken(String licenseToken) { + this.licenseToken = licenseToken; + } + + public VirtualDeviceRequest metroCode(String metroCode) { + this.metroCode = metroCode; + return this; + } + + /** + * Metro code + * @return metroCode + **/ + @ApiModelProperty(example = "SV", required = true, value = "Metro code") + public String getMetroCode() { + return metroCode; + } + + public void setMetroCode(String metroCode) { + this.metroCode = metroCode; + } + + public VirtualDeviceRequest packageCode(String packageCode) { + this.packageCode = packageCode; + return this; + } + + /** + * Software package code + * @return packageCode + **/ + @ApiModelProperty(example = "IPBASE", value = "Software package code") + public String getPackageCode() { + return packageCode; + } + + public void setPackageCode(String packageCode) { + this.packageCode = packageCode; + } + + public VirtualDeviceRequest sshUsers(List sshUsers) { + this.sshUsers = sshUsers; + return this; + } + + public VirtualDeviceRequest addSshUsersItem(SshUsers sshUsersItem) { + if (this.sshUsers == null) { + this.sshUsers = new ArrayList(); + } + this.sshUsers.add(sshUsersItem); + return this; + } + + /** + * Array of sshUsernames and passwords + * @return sshUsers + **/ + @ApiModelProperty(value = "Array of sshUsernames and passwords") + public List getSshUsers() { + return sshUsers; + } + + public void setSshUsers(List sshUsers) { + this.sshUsers = sshUsers; + } + + public VirtualDeviceRequest throughput(Integer throughput) { + this.throughput = throughput; + return this; + } + + /** + * Device throughput. This is required for Cisco and Juniper devices. + * @return throughput + **/ + @ApiModelProperty(example = "1", value = "Device throughput. This is required for Cisco and Juniper devices.") + public Integer getThroughput() { + return throughput; + } + + public void setThroughput(Integer throughput) { + this.throughput = throughput; + } + + public VirtualDeviceRequest throughputUnit(String throughputUnit) { + this.throughputUnit = throughputUnit; + return this; + } + + /** + * Throughput unit. This is required for Cisco and Juniper devices. + * @return throughputUnit + **/ + @ApiModelProperty(example = "Gbps", value = "Throughput unit. This is required for Cisco and Juniper devices.") + public String getThroughputUnit() { + return throughputUnit; + } + + public void setThroughputUnit(String throughputUnit) { + this.throughputUnit = throughputUnit; + } + + public VirtualDeviceRequest virtualDeviceName(String virtualDeviceName) { + this.virtualDeviceName = virtualDeviceName; + return this; + } + + /** + * Virtual device name for identification. This should be minimum 3 and maximum 50 characters long. + * @return virtualDeviceName + **/ + @ApiModelProperty(example = "Router1-csr1000v", required = true, value = "Virtual device name for identification. This should be minimum 3 and maximum 50 characters long.") + public String getVirtualDeviceName() { + return virtualDeviceName; + } + + public void setVirtualDeviceName(String virtualDeviceName) { + this.virtualDeviceName = virtualDeviceName; + } + + public VirtualDeviceRequest notifications(List notifications) { + this.notifications = notifications; + return this; + } + + public VirtualDeviceRequest addNotificationsItem(String notificationsItem) { + this.notifications.add(notificationsItem); + return this; + } + + /** + * Email addresses for notification. We need a minimum of 1 and no more than 5 email addresses. + * @return notifications + **/ + @ApiModelProperty(example = "[\"test1@equinix.com\",\"test2@equinix.com\"]", required = true, value = "Email addresses for notification. We need a minimum of 1 and no more than 5 email addresses.") + public List getNotifications() { + return notifications; + } + + public void setNotifications(List notifications) { + this.notifications = notifications; + } + + public VirtualDeviceRequest sshAcl(List sshAcl) { + this.sshAcl = sshAcl; + return this; + } + + public VirtualDeviceRequest addSshAclItem(String sshAclItem) { + if (this.sshAcl == null) { + this.sshAcl = new ArrayList(); + } + this.sshAcl.add(sshAclItem); + return this; + } + + /** + * IP addresses, no more than 50, in CIDR format + * @return sshAcl + **/ + @ApiModelProperty(example = "[\"192.168.1.1/32\",\"192.168.10.0/24\"]", value = "IP addresses, no more than 50, in CIDR format") + public List getSshAcl() { + return sshAcl; + } + + public void setSshAcl(List sshAcl) { + this.sshAcl = sshAcl; + } + + public VirtualDeviceRequest additionalBandwidth(Integer additionalBandwidth) { + this.additionalBandwidth = additionalBandwidth; + return this; + } + + /** + * Secondary additional bandwidth to be configured (in Mbps for HA). Default bandwidth provided is 15 Mbps. + * @return additionalBandwidth + **/ + @ApiModelProperty(example = "100", value = "Secondary additional bandwidth to be configured (in Mbps for HA). Default bandwidth provided is 15 Mbps.") + public Integer getAdditionalBandwidth() { + return additionalBandwidth; + } + + public void setAdditionalBandwidth(Integer additionalBandwidth) { + this.additionalBandwidth = additionalBandwidth; + } + + public VirtualDeviceRequest siteId(String siteId) { + this.siteId = siteId; + return this; + } + + /** + * Get siteId + * @return siteId + **/ + @ApiModelProperty(example = "12345", value = "") + public String getSiteId() { + return siteId; + } + + public void setSiteId(String siteId) { + this.siteId = siteId; + } + + public VirtualDeviceRequest systemIpAddress(String systemIpAddress) { + this.systemIpAddress = systemIpAddress; + return this; + } + + /** + * Get systemIpAddress + * @return systemIpAddress + **/ + @ApiModelProperty(example = "192.168.2.5", value = "") + public String getSystemIpAddress() { + return systemIpAddress; + } + + public void setSystemIpAddress(String systemIpAddress) { + this.systemIpAddress = systemIpAddress; + } + + public VirtualDeviceRequest secondary(VirtualDevicHARequest secondary) { + this.secondary = secondary; + return this; + } + + /** + * Get secondary + * @return secondary + **/ + @ApiModelProperty(value = "") + public VirtualDevicHARequest getSecondary() { + return secondary; + } + + public void setSecondary(VirtualDevicHARequest secondary) { + this.secondary = secondary; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VirtualDeviceRequest virtualDeviceRequest = (VirtualDeviceRequest) o; + return Objects.equals(this.accountNumber, virtualDeviceRequest.accountNumber) && + Objects.equals(this.accountReferenceId, virtualDeviceRequest.accountReferenceId) && + Objects.equals(this.deviceTypeCode, virtualDeviceRequest.deviceTypeCode) && + Objects.equals(this.hostNamePrefix, virtualDeviceRequest.hostNamePrefix) && + Objects.equals(this.licenseFileId, virtualDeviceRequest.licenseFileId) && + Objects.equals(this.licenseMode, virtualDeviceRequest.licenseMode) && + Objects.equals(this.licenseToken, virtualDeviceRequest.licenseToken) && + Objects.equals(this.metroCode, virtualDeviceRequest.metroCode) && + Objects.equals(this.packageCode, virtualDeviceRequest.packageCode) && + Objects.equals(this.sshUsers, virtualDeviceRequest.sshUsers) && + Objects.equals(this.throughput, virtualDeviceRequest.throughput) && + Objects.equals(this.throughputUnit, virtualDeviceRequest.throughputUnit) && + Objects.equals(this.virtualDeviceName, virtualDeviceRequest.virtualDeviceName) && + Objects.equals(this.notifications, virtualDeviceRequest.notifications) && + Objects.equals(this.sshAcl, virtualDeviceRequest.sshAcl) && + Objects.equals(this.additionalBandwidth, virtualDeviceRequest.additionalBandwidth) && + Objects.equals(this.siteId, virtualDeviceRequest.siteId) && + Objects.equals(this.systemIpAddress, virtualDeviceRequest.systemIpAddress) && + Objects.equals(this.secondary, virtualDeviceRequest.secondary); + } + + @Override + public int hashCode() { + return Objects.hash(accountNumber, accountReferenceId, deviceTypeCode, hostNamePrefix, licenseFileId, licenseMode, licenseToken, metroCode, packageCode, sshUsers, throughput, throughputUnit, virtualDeviceName, notifications, sshAcl, additionalBandwidth, siteId, systemIpAddress, secondary); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VirtualDeviceRequest {\n"); + + sb.append(" accountNumber: ").append(toIndentedString(accountNumber)).append("\n"); + sb.append(" accountReferenceId: ").append(toIndentedString(accountReferenceId)).append("\n"); + sb.append(" deviceTypeCode: ").append(toIndentedString(deviceTypeCode)).append("\n"); + sb.append(" hostNamePrefix: ").append(toIndentedString(hostNamePrefix)).append("\n"); + sb.append(" licenseFileId: ").append(toIndentedString(licenseFileId)).append("\n"); + sb.append(" licenseMode: ").append(toIndentedString(licenseMode)).append("\n"); + sb.append(" licenseToken: ").append(toIndentedString(licenseToken)).append("\n"); + sb.append(" metroCode: ").append(toIndentedString(metroCode)).append("\n"); + sb.append(" packageCode: ").append(toIndentedString(packageCode)).append("\n"); + sb.append(" sshUsers: ").append(toIndentedString(sshUsers)).append("\n"); + sb.append(" throughput: ").append(toIndentedString(throughput)).append("\n"); + sb.append(" throughputUnit: ").append(toIndentedString(throughputUnit)).append("\n"); + sb.append(" virtualDeviceName: ").append(toIndentedString(virtualDeviceName)).append("\n"); + sb.append(" notifications: ").append(toIndentedString(notifications)).append("\n"); + sb.append(" sshAcl: ").append(toIndentedString(sshAcl)).append("\n"); + sb.append(" additionalBandwidth: ").append(toIndentedString(additionalBandwidth)).append("\n"); + sb.append(" siteId: ").append(toIndentedString(siteId)).append("\n"); + sb.append(" systemIpAddress: ").append(toIndentedString(systemIpAddress)).append("\n"); + sb.append(" secondary: ").append(toIndentedString(secondary)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/VirtualDeviceResponse.java b/src/main/java/com/equinix/networkedge/model/VirtualDeviceResponse.java new file mode 100644 index 0000000..6143bb8 --- /dev/null +++ b/src/main/java/com/equinix/networkedge/model/VirtualDeviceResponse.java @@ -0,0 +1,1142 @@ +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; + +import java.util.ArrayList; +import java.util.List; + +/** + * VirtualDeviceResponse + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class VirtualDeviceResponse { + @SerializedName("accountName") + private String accountName = null; + + @SerializedName("accountNumber") + private String accountNumber = null; + + @SerializedName("createdBy") + private String createdBy = null; + + @SerializedName("createdDate") + private String createdDate = null; + + @SerializedName("deviceSerialNo") + private String deviceSerialNo = null; + + @SerializedName("deviceTypeCategory") + private String deviceTypeCategory = null; + + @SerializedName("deviceTypeCode") + private String deviceTypeCode = null; + + @SerializedName("deviceTypeName") + private String deviceTypeName = null; + + @SerializedName("expiry") + private String expiry = null; + + @SerializedName("region") + private String region = null; + + @SerializedName("deviceTypeVendor") + private String deviceTypeVendor = null; + + @SerializedName("hostName") + private String hostName = null; + + @SerializedName("id") + private String id = null; + + @SerializedName("lastUpdatedBy") + private String lastUpdatedBy = null; + + @SerializedName("lastUpdatedDate") + private String lastUpdatedDate = null; + + @SerializedName("licenseFileId") + private String licenseFileId = null; + + @SerializedName("licenseName") + private String licenseName = null; + + @SerializedName("licenseStatus") + private String licenseStatus = null; + + @SerializedName("licenseType") + private String licenseType = null; + + @SerializedName("metroCode") + private String metroCode = null; + + @SerializedName("metroName") + private String metroName = null; + + @SerializedName("name") + private String name = null; + + @SerializedName("notifications") + private List notifications = null; + + @SerializedName("packageCode") + private String packageCode = null; + + @SerializedName("packageName") + private String packageName = null; + + @SerializedName("purchaseOrderNumber") + private String purchaseOrderNumber = null; + + @SerializedName("redundancyType") + private String redundancyType = null; + + @SerializedName("redundantUUID") + private String redundantUUID = null; + + @SerializedName("sshIpAddress") + private String sshIpAddress = null; + + @SerializedName("sshIpFqdn") + private String sshIpFqdn = null; + + @SerializedName("sshUsername") + private String sshUsername = null; + + @SerializedName("status") + private String status = null; + + @SerializedName("tenantName") + private String tenantName = null; + + @SerializedName("throughput") + private Integer throughput = null; + + @SerializedName("throughputUnit") + private String throughputUnit = null; + + @SerializedName("sshAcl") + private List sshAcl = null; + + @SerializedName("managementIp") + private String managementIp = null; + + @SerializedName("managementGatewayIp") + private String managementGatewayIp = null; + + @SerializedName("publicIp") + private String publicIp = null; + + @SerializedName("publicGatewayIp") + private String publicGatewayIp = null; + + @SerializedName("primaryDnsName") + private String primaryDnsName = null; + + @SerializedName("secondaryDnsName") + private String secondaryDnsName = null; + + @SerializedName("termLength") + private String termLength = null; + + @SerializedName("additionalBandwidth") + private String additionalBandwidth = null; + + @SerializedName("siteId") + private String siteId = null; + + @SerializedName("systemIpAddress") + private String systemIpAddress = null; + + public VirtualDeviceResponse accountName(String accountName) { + this.accountName = accountName; + return this; + } + + /** + * Get accountName + * @return accountName + **/ + @ApiModelProperty(example = "ABC INC", value = "") + public String getAccountName() { + return accountName; + } + + public void setAccountName(String accountName) { + this.accountName = accountName; + } + + public VirtualDeviceResponse accountNumber(String accountNumber) { + this.accountNumber = accountNumber; + return this; + } + + /** + * Get accountNumber + * @return accountNumber + **/ + @ApiModelProperty(example = "133911", value = "") + public String getAccountNumber() { + return accountNumber; + } + + public void setAccountNumber(String accountNumber) { + this.accountNumber = accountNumber; + } + + public VirtualDeviceResponse createdBy(String createdBy) { + this.createdBy = createdBy; + return this; + } + + /** + * Get createdBy + * @return createdBy + **/ + @ApiModelProperty(example = "cust0001", value = "") + public String getCreatedBy() { + return createdBy; + } + + public void setCreatedBy(String createdBy) { + this.createdBy = createdBy; + } + + public VirtualDeviceResponse createdDate(String createdDate) { + this.createdDate = createdDate; + return this; + } + + /** + * Get createdDate + * @return createdDate + **/ + @ApiModelProperty(example = "2018-01-30T10:30:31.387Z", value = "") + public String getCreatedDate() { + return createdDate; + } + + public void setCreatedDate(String createdDate) { + this.createdDate = createdDate; + } + + public VirtualDeviceResponse deviceSerialNo(String deviceSerialNo) { + this.deviceSerialNo = deviceSerialNo; + return this; + } + + /** + * Get deviceSerialNo + * @return deviceSerialNo + **/ + @ApiModelProperty(example = "53791666484", value = "") + public String getDeviceSerialNo() { + return deviceSerialNo; + } + + public void setDeviceSerialNo(String deviceSerialNo) { + this.deviceSerialNo = deviceSerialNo; + } + + public VirtualDeviceResponse deviceTypeCategory(String deviceTypeCategory) { + this.deviceTypeCategory = deviceTypeCategory; + return this; + } + + /** + * Get deviceTypeCategory + * @return deviceTypeCategory + **/ + @ApiModelProperty(example = "ROUTER", value = "") + public String getDeviceTypeCategory() { + return deviceTypeCategory; + } + + public void setDeviceTypeCategory(String deviceTypeCategory) { + this.deviceTypeCategory = deviceTypeCategory; + } + + public VirtualDeviceResponse deviceTypeCode(String deviceTypeCode) { + this.deviceTypeCode = deviceTypeCode; + return this; + } + + /** + * Get deviceTypeCode + * @return deviceTypeCode + **/ + @ApiModelProperty(example = "CSR1000V", value = "") + public String getDeviceTypeCode() { + return deviceTypeCode; + } + + public void setDeviceTypeCode(String deviceTypeCode) { + this.deviceTypeCode = deviceTypeCode; + } + + public VirtualDeviceResponse deviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + return this; + } + + /** + * Get deviceTypeName + * @return deviceTypeName + **/ + @ApiModelProperty(example = "CSR 1000v", value = "") + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public VirtualDeviceResponse expiry(String expiry) { + this.expiry = expiry; + return this; + } + + /** + * Get expiry + * @return expiry + **/ + @ApiModelProperty(example = "2019-02-07T00:00:00.000+0000", value = "") + public String getExpiry() { + return expiry; + } + + public void setExpiry(String expiry) { + this.expiry = expiry; + } + + public VirtualDeviceResponse region(String region) { + this.region = region; + return this; + } + + /** + * Get region + * @return region + **/ + @ApiModelProperty(example = "AMER", value = "") + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public VirtualDeviceResponse deviceTypeVendor(String deviceTypeVendor) { + this.deviceTypeVendor = deviceTypeVendor; + return this; + } + + /** + * Get deviceTypeVendor + * @return deviceTypeVendor + **/ + @ApiModelProperty(example = "Cisco", value = "") + public String getDeviceTypeVendor() { + return deviceTypeVendor; + } + + public void setDeviceTypeVendor(String deviceTypeVendor) { + this.deviceTypeVendor = deviceTypeVendor; + } + + public VirtualDeviceResponse hostName(String hostName) { + this.hostName = hostName; + return this; + } + + /** + * Get hostName + * @return hostName + **/ + @ApiModelProperty(example = "VR-SV-CSR1000V-cust0001-1", value = "") + public String getHostName() { + return hostName; + } + + public void setHostName(String hostName) { + this.hostName = hostName; + } + + public VirtualDeviceResponse id(String id) { + this.id = id; + return this; + } + + /** + * Get id + * @return id + **/ + @ApiModelProperty(example = "877a3aa2-c49a-4af1-98a6-007424e737ae", value = "") + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public VirtualDeviceResponse lastUpdatedBy(String lastUpdatedBy) { + this.lastUpdatedBy = lastUpdatedBy; + return this; + } + + /** + * Get lastUpdatedBy + * @return lastUpdatedBy + **/ + @ApiModelProperty(example = "cust0002", value = "") + public String getLastUpdatedBy() { + return lastUpdatedBy; + } + + public void setLastUpdatedBy(String lastUpdatedBy) { + this.lastUpdatedBy = lastUpdatedBy; + } + + public VirtualDeviceResponse lastUpdatedDate(String lastUpdatedDate) { + this.lastUpdatedDate = lastUpdatedDate; + return this; + } + + /** + * Get lastUpdatedDate + * @return lastUpdatedDate + **/ + @ApiModelProperty(example = "2018-01-30T10:30:31.387Z", value = "") + public String getLastUpdatedDate() { + return lastUpdatedDate; + } + + public void setLastUpdatedDate(String lastUpdatedDate) { + this.lastUpdatedDate = lastUpdatedDate; + } + + public VirtualDeviceResponse licenseFileId(String licenseFileId) { + this.licenseFileId = licenseFileId; + return this; + } + + /** + * Get licenseFileId + * @return licenseFileId + **/ + @ApiModelProperty(example = "877a3aa2-c49a-4af1-98a6-007424e737ae", value = "") + public String getLicenseFileId() { + return licenseFileId; + } + + public void setLicenseFileId(String licenseFileId) { + this.licenseFileId = licenseFileId; + } + + public VirtualDeviceResponse licenseName(String licenseName) { + this.licenseName = licenseName; + return this; + } + + /** + * Get licenseName + * @return licenseName + **/ + @ApiModelProperty(example = "Bring your own license", value = "") + public String getLicenseName() { + return licenseName; + } + + public void setLicenseName(String licenseName) { + this.licenseName = licenseName; + } + + public VirtualDeviceResponse licenseStatus(String licenseStatus) { + this.licenseStatus = licenseStatus; + return this; + } + + /** + * Get licenseStatus + * @return licenseStatus + **/ + @ApiModelProperty(example = "REGISTERED", value = "") + public String getLicenseStatus() { + return licenseStatus; + } + + public void setLicenseStatus(String licenseStatus) { + this.licenseStatus = licenseStatus; + } + + public VirtualDeviceResponse licenseType(String licenseType) { + this.licenseType = licenseType; + return this; + } + + /** + * Get licenseType + * @return licenseType + **/ + @ApiModelProperty(example = "BYOL", value = "") + public String getLicenseType() { + return licenseType; + } + + public void setLicenseType(String licenseType) { + this.licenseType = licenseType; + } + + public VirtualDeviceResponse metroCode(String metroCode) { + this.metroCode = metroCode; + return this; + } + + /** + * Get metroCode + * @return metroCode + **/ + @ApiModelProperty(example = "SV", value = "") + public String getMetroCode() { + return metroCode; + } + + public void setMetroCode(String metroCode) { + this.metroCode = metroCode; + } + + public VirtualDeviceResponse metroName(String metroName) { + this.metroName = metroName; + return this; + } + + /** + * Get metroName + * @return metroName + **/ + @ApiModelProperty(example = "Silicon Valley", value = "") + public String getMetroName() { + return metroName; + } + + public void setMetroName(String metroName) { + this.metroName = metroName; + } + + public VirtualDeviceResponse name(String name) { + this.name = name; + return this; + } + + /** + * Get name + * @return name + **/ + @ApiModelProperty(example = "AWS-Azure-Router-csr1000v", value = "") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public VirtualDeviceResponse notifications(List notifications) { + this.notifications = notifications; + return this; + } + + public VirtualDeviceResponse addNotificationsItem(String notificationsItem) { + if (this.notifications == null) { + this.notifications = new ArrayList(); + } + this.notifications.add(notificationsItem); + return this; + } + + /** + * Get notifications + * @return notifications + **/ + @ApiModelProperty(example = "[\"test@equinix.com\",\"test1@eqinix.com\"]", value = "") + public List getNotifications() { + return notifications; + } + + public void setNotifications(List notifications) { + this.notifications = notifications; + } + + public VirtualDeviceResponse packageCode(String packageCode) { + this.packageCode = packageCode; + return this; + } + + /** + * Get packageCode + * @return packageCode + **/ + @ApiModelProperty(example = "IPBASE", value = "") + public String getPackageCode() { + return packageCode; + } + + public void setPackageCode(String packageCode) { + this.packageCode = packageCode; + } + + public VirtualDeviceResponse packageName(String packageName) { + this.packageName = packageName; + return this; + } + + /** + * Get packageName + * @return packageName + **/ + @ApiModelProperty(example = "IPBASE", value = "") + public String getPackageName() { + return packageName; + } + + public void setPackageName(String packageName) { + this.packageName = packageName; + } + + public VirtualDeviceResponse purchaseOrderNumber(String purchaseOrderNumber) { + this.purchaseOrderNumber = purchaseOrderNumber; + return this; + } + + /** + * Get purchaseOrderNumber + * @return purchaseOrderNumber + **/ + @ApiModelProperty(example = "PO1223", value = "") + public String getPurchaseOrderNumber() { + return purchaseOrderNumber; + } + + public void setPurchaseOrderNumber(String purchaseOrderNumber) { + this.purchaseOrderNumber = purchaseOrderNumber; + } + + public VirtualDeviceResponse redundancyType(String redundancyType) { + this.redundancyType = redundancyType; + return this; + } + + /** + * Get redundancyType + * @return redundancyType + **/ + @ApiModelProperty(example = "PRIMARY", value = "") + public String getRedundancyType() { + return redundancyType; + } + + public void setRedundancyType(String redundancyType) { + this.redundancyType = redundancyType; + } + + public VirtualDeviceResponse redundantUUID(String redundantUUID) { + this.redundantUUID = redundantUUID; + return this; + } + + /** + * Get redundantUUID + * @return redundantUUID + **/ + @ApiModelProperty(example = "xxxxx191-xx70-xxxx-xx04-xxxxxxxa67xx", value = "") + public String getRedundantUUID() { + return redundantUUID; + } + + public void setRedundantUUID(String redundantUUID) { + this.redundantUUID = redundantUUID; + } + + public VirtualDeviceResponse sshIpAddress(String sshIpAddress) { + this.sshIpAddress = sshIpAddress; + return this; + } + + /** + * Get sshIpAddress + * @return sshIpAddress + **/ + @ApiModelProperty(example = "10.195.11.23", value = "") + public String getSshIpAddress() { + return sshIpAddress; + } + + public void setSshIpAddress(String sshIpAddress) { + this.sshIpAddress = sshIpAddress; + } + + public VirtualDeviceResponse sshIpFqdn(String sshIpFqdn) { + this.sshIpFqdn = sshIpFqdn; + return this; + } + + /** + * Get sshIpFqdn + * @return sshIpFqdn + **/ + @ApiModelProperty(example = "test-device-168-201-97-149.eis.lab.equinix.com", value = "") + public String getSshIpFqdn() { + return sshIpFqdn; + } + + public void setSshIpFqdn(String sshIpFqdn) { + this.sshIpFqdn = sshIpFqdn; + } + + public VirtualDeviceResponse sshUsername(String sshUsername) { + this.sshUsername = sshUsername; + return this; + } + + /** + * Get sshUsername + * @return sshUsername + **/ + @ApiModelProperty(example = "test0user", value = "") + public String getSshUsername() { + return sshUsername; + } + + public void setSshUsername(String sshUsername) { + this.sshUsername = sshUsername; + } + + public VirtualDeviceResponse status(String status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + **/ + @ApiModelProperty(example = "PROVISIONED", value = "") + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public VirtualDeviceResponse tenantName(String tenantName) { + this.tenantName = tenantName; + return this; + } + + /** + * Get tenantName + * @return tenantName + **/ + @ApiModelProperty(example = "sv-9031", value = "") + public String getTenantName() { + return tenantName; + } + + public void setTenantName(String tenantName) { + this.tenantName = tenantName; + } + + public VirtualDeviceResponse throughput(Integer throughput) { + this.throughput = throughput; + return this; + } + + /** + * Get throughput + * @return throughput + **/ + @ApiModelProperty(example = "500", value = "") + public Integer getThroughput() { + return throughput; + } + + public void setThroughput(Integer throughput) { + this.throughput = throughput; + } + + public VirtualDeviceResponse throughputUnit(String throughputUnit) { + this.throughputUnit = throughputUnit; + return this; + } + + /** + * Get throughputUnit + * @return throughputUnit + **/ + @ApiModelProperty(example = "Mbps", value = "") + public String getThroughputUnit() { + return throughputUnit; + } + + public void setThroughputUnit(String throughputUnit) { + this.throughputUnit = throughputUnit; + } + + public VirtualDeviceResponse sshAcl(List sshAcl) { + this.sshAcl = sshAcl; + return this; + } + + public VirtualDeviceResponse addSshAclItem(Object sshAclItem) { + if (this.sshAcl == null) { + this.sshAcl = new ArrayList(); + } + this.sshAcl.add(sshAclItem); + return this; + } + + /** + * Get sshAcl + * @return sshAcl + **/ + @ApiModelProperty(example = "[\"192.168.1.1/32\",\"192.168.94.0/24\"]", value = "") + public List getSshAcl() { + return sshAcl; + } + + public void setSshAcl(List sshAcl) { + this.sshAcl = sshAcl; + } + + public VirtualDeviceResponse managementIp(String managementIp) { + this.managementIp = managementIp; + return this; + } + + /** + * Get managementIp + * @return managementIp + **/ + @ApiModelProperty(example = "10.195.237.228/26", value = "") + public String getManagementIp() { + return managementIp; + } + + public void setManagementIp(String managementIp) { + this.managementIp = managementIp; + } + + public VirtualDeviceResponse managementGatewayIp(String managementGatewayIp) { + this.managementGatewayIp = managementGatewayIp; + return this; + } + + /** + * Get managementGatewayIp + * @return managementGatewayIp + **/ + @ApiModelProperty(example = "10.195.237.254", value = "") + public String getManagementGatewayIp() { + return managementGatewayIp; + } + + public void setManagementGatewayIp(String managementGatewayIp) { + this.managementGatewayIp = managementGatewayIp; + } + + public VirtualDeviceResponse publicIp(String publicIp) { + this.publicIp = publicIp; + return this; + } + + /** + * Get publicIp + * @return publicIp + **/ + @ApiModelProperty(example = "149.97.198.95/31", value = "") + public String getPublicIp() { + return publicIp; + } + + public void setPublicIp(String publicIp) { + this.publicIp = publicIp; + } + + public VirtualDeviceResponse publicGatewayIp(String publicGatewayIp) { + this.publicGatewayIp = publicGatewayIp; + return this; + } + + /** + * Get publicGatewayIp + * @return publicGatewayIp + **/ + @ApiModelProperty(example = "149.97.198.94", value = "") + public String getPublicGatewayIp() { + return publicGatewayIp; + } + + public void setPublicGatewayIp(String publicGatewayIp) { + this.publicGatewayIp = publicGatewayIp; + } + + public VirtualDeviceResponse primaryDnsName(String primaryDnsName) { + this.primaryDnsName = primaryDnsName; + return this; + } + + /** + * Get primaryDnsName + * @return primaryDnsName + **/ + @ApiModelProperty(example = "4.0.0.53", value = "") + public String getPrimaryDnsName() { + return primaryDnsName; + } + + public void setPrimaryDnsName(String primaryDnsName) { + this.primaryDnsName = primaryDnsName; + } + + public VirtualDeviceResponse secondaryDnsName(String secondaryDnsName) { + this.secondaryDnsName = secondaryDnsName; + return this; + } + + /** + * Get secondaryDnsName + * @return secondaryDnsName + **/ + @ApiModelProperty(example = "129.250.35.250", value = "") + public String getSecondaryDnsName() { + return secondaryDnsName; + } + + public void setSecondaryDnsName(String secondaryDnsName) { + this.secondaryDnsName = secondaryDnsName; + } + + public VirtualDeviceResponse termLength(String termLength) { + this.termLength = termLength; + return this; + } + + /** + * Get termLength + * @return termLength + **/ + @ApiModelProperty(example = "12", value = "") + public String getTermLength() { + return termLength; + } + + public void setTermLength(String termLength) { + this.termLength = termLength; + } + + public VirtualDeviceResponse additionalBandwidth(String additionalBandwidth) { + this.additionalBandwidth = additionalBandwidth; + return this; + } + + /** + * Get additionalBandwidth + * @return additionalBandwidth + **/ + @ApiModelProperty(example = "200", value = "") + public String getAdditionalBandwidth() { + return additionalBandwidth; + } + + public void setAdditionalBandwidth(String additionalBandwidth) { + this.additionalBandwidth = additionalBandwidth; + } + + public VirtualDeviceResponse siteId(String siteId) { + this.siteId = siteId; + return this; + } + + /** + * Get siteId + * @return siteId + **/ + @ApiModelProperty(example = "12345", value = "") + public String getSiteId() { + return siteId; + } + + public void setSiteId(String siteId) { + this.siteId = siteId; + } + + public VirtualDeviceResponse systemIpAddress(String systemIpAddress) { + this.systemIpAddress = systemIpAddress; + return this; + } + + /** + * Get systemIpAddress + * @return systemIpAddress + **/ + @ApiModelProperty(example = "192.168.2.5", value = "") + public String getSystemIpAddress() { + return systemIpAddress; + } + + public void setSystemIpAddress(String systemIpAddress) { + this.systemIpAddress = systemIpAddress; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VirtualDeviceResponse virtualDeviceResponse = (VirtualDeviceResponse) o; + return Objects.equals(this.accountName, virtualDeviceResponse.accountName) && + Objects.equals(this.accountNumber, virtualDeviceResponse.accountNumber) && + Objects.equals(this.createdBy, virtualDeviceResponse.createdBy) && + Objects.equals(this.createdDate, virtualDeviceResponse.createdDate) && + Objects.equals(this.deviceSerialNo, virtualDeviceResponse.deviceSerialNo) && + Objects.equals(this.deviceTypeCategory, virtualDeviceResponse.deviceTypeCategory) && + Objects.equals(this.deviceTypeCode, virtualDeviceResponse.deviceTypeCode) && + Objects.equals(this.deviceTypeName, virtualDeviceResponse.deviceTypeName) && + Objects.equals(this.expiry, virtualDeviceResponse.expiry) && + Objects.equals(this.region, virtualDeviceResponse.region) && + Objects.equals(this.deviceTypeVendor, virtualDeviceResponse.deviceTypeVendor) && + Objects.equals(this.hostName, virtualDeviceResponse.hostName) && + Objects.equals(this.id, virtualDeviceResponse.id) && + Objects.equals(this.lastUpdatedBy, virtualDeviceResponse.lastUpdatedBy) && + Objects.equals(this.lastUpdatedDate, virtualDeviceResponse.lastUpdatedDate) && + Objects.equals(this.licenseFileId, virtualDeviceResponse.licenseFileId) && + Objects.equals(this.licenseName, virtualDeviceResponse.licenseName) && + Objects.equals(this.licenseStatus, virtualDeviceResponse.licenseStatus) && + Objects.equals(this.licenseType, virtualDeviceResponse.licenseType) && + Objects.equals(this.metroCode, virtualDeviceResponse.metroCode) && + Objects.equals(this.metroName, virtualDeviceResponse.metroName) && + Objects.equals(this.name, virtualDeviceResponse.name) && + Objects.equals(this.notifications, virtualDeviceResponse.notifications) && + Objects.equals(this.packageCode, virtualDeviceResponse.packageCode) && + Objects.equals(this.packageName, virtualDeviceResponse.packageName) && + Objects.equals(this.purchaseOrderNumber, virtualDeviceResponse.purchaseOrderNumber) && + Objects.equals(this.redundancyType, virtualDeviceResponse.redundancyType) && + Objects.equals(this.redundantUUID, virtualDeviceResponse.redundantUUID) && + Objects.equals(this.sshIpAddress, virtualDeviceResponse.sshIpAddress) && + Objects.equals(this.sshIpFqdn, virtualDeviceResponse.sshIpFqdn) && + Objects.equals(this.sshUsername, virtualDeviceResponse.sshUsername) && + Objects.equals(this.status, virtualDeviceResponse.status) && + Objects.equals(this.tenantName, virtualDeviceResponse.tenantName) && + Objects.equals(this.throughput, virtualDeviceResponse.throughput) && + Objects.equals(this.throughputUnit, virtualDeviceResponse.throughputUnit) && + Objects.equals(this.sshAcl, virtualDeviceResponse.sshAcl) && + Objects.equals(this.managementIp, virtualDeviceResponse.managementIp) && + Objects.equals(this.managementGatewayIp, virtualDeviceResponse.managementGatewayIp) && + Objects.equals(this.publicIp, virtualDeviceResponse.publicIp) && + Objects.equals(this.publicGatewayIp, virtualDeviceResponse.publicGatewayIp) && + Objects.equals(this.primaryDnsName, virtualDeviceResponse.primaryDnsName) && + Objects.equals(this.secondaryDnsName, virtualDeviceResponse.secondaryDnsName) && + Objects.equals(this.termLength, virtualDeviceResponse.termLength) && + Objects.equals(this.additionalBandwidth, virtualDeviceResponse.additionalBandwidth) && + Objects.equals(this.siteId, virtualDeviceResponse.siteId) && + Objects.equals(this.systemIpAddress, virtualDeviceResponse.systemIpAddress); + } + + @Override + public int hashCode() { + return Objects.hash(accountName, accountNumber, createdBy, createdDate, deviceSerialNo, deviceTypeCategory, deviceTypeCode, deviceTypeName, expiry, region, deviceTypeVendor, hostName, id, lastUpdatedBy, lastUpdatedDate, licenseFileId, licenseName, licenseStatus, licenseType, metroCode, metroName, name, notifications, packageCode, packageName, purchaseOrderNumber, redundancyType, redundantUUID, sshIpAddress, sshIpFqdn, sshUsername, status, tenantName, throughput, throughputUnit, sshAcl, managementIp, managementGatewayIp, publicIp, publicGatewayIp, primaryDnsName, secondaryDnsName, termLength, additionalBandwidth, siteId, systemIpAddress); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VirtualDeviceResponse {\n"); + + sb.append(" accountName: ").append(toIndentedString(accountName)).append("\n"); + sb.append(" accountNumber: ").append(toIndentedString(accountNumber)).append("\n"); + sb.append(" createdBy: ").append(toIndentedString(createdBy)).append("\n"); + sb.append(" createdDate: ").append(toIndentedString(createdDate)).append("\n"); + sb.append(" deviceSerialNo: ").append(toIndentedString(deviceSerialNo)).append("\n"); + sb.append(" deviceTypeCategory: ").append(toIndentedString(deviceTypeCategory)).append("\n"); + sb.append(" deviceTypeCode: ").append(toIndentedString(deviceTypeCode)).append("\n"); + sb.append(" deviceTypeName: ").append(toIndentedString(deviceTypeName)).append("\n"); + sb.append(" expiry: ").append(toIndentedString(expiry)).append("\n"); + sb.append(" region: ").append(toIndentedString(region)).append("\n"); + sb.append(" deviceTypeVendor: ").append(toIndentedString(deviceTypeVendor)).append("\n"); + sb.append(" hostName: ").append(toIndentedString(hostName)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" lastUpdatedBy: ").append(toIndentedString(lastUpdatedBy)).append("\n"); + sb.append(" lastUpdatedDate: ").append(toIndentedString(lastUpdatedDate)).append("\n"); + sb.append(" licenseFileId: ").append(toIndentedString(licenseFileId)).append("\n"); + sb.append(" licenseName: ").append(toIndentedString(licenseName)).append("\n"); + sb.append(" licenseStatus: ").append(toIndentedString(licenseStatus)).append("\n"); + sb.append(" licenseType: ").append(toIndentedString(licenseType)).append("\n"); + sb.append(" metroCode: ").append(toIndentedString(metroCode)).append("\n"); + sb.append(" metroName: ").append(toIndentedString(metroName)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" notifications: ").append(toIndentedString(notifications)).append("\n"); + sb.append(" packageCode: ").append(toIndentedString(packageCode)).append("\n"); + sb.append(" packageName: ").append(toIndentedString(packageName)).append("\n"); + sb.append(" purchaseOrderNumber: ").append(toIndentedString(purchaseOrderNumber)).append("\n"); + sb.append(" redundancyType: ").append(toIndentedString(redundancyType)).append("\n"); + sb.append(" redundantUUID: ").append(toIndentedString(redundantUUID)).append("\n"); + sb.append(" sshIpAddress: ").append(toIndentedString(sshIpAddress)).append("\n"); + sb.append(" sshIpFqdn: ").append(toIndentedString(sshIpFqdn)).append("\n"); + sb.append(" sshUsername: ").append(toIndentedString(sshUsername)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" tenantName: ").append(toIndentedString(tenantName)).append("\n"); + sb.append(" throughput: ").append(toIndentedString(throughput)).append("\n"); + sb.append(" throughputUnit: ").append(toIndentedString(throughputUnit)).append("\n"); + sb.append(" sshAcl: ").append(toIndentedString(sshAcl)).append("\n"); + sb.append(" managementIp: ").append(toIndentedString(managementIp)).append("\n"); + sb.append(" managementGatewayIp: ").append(toIndentedString(managementGatewayIp)).append("\n"); + sb.append(" publicIp: ").append(toIndentedString(publicIp)).append("\n"); + sb.append(" publicGatewayIp: ").append(toIndentedString(publicGatewayIp)).append("\n"); + sb.append(" primaryDnsName: ").append(toIndentedString(primaryDnsName)).append("\n"); + sb.append(" secondaryDnsName: ").append(toIndentedString(secondaryDnsName)).append("\n"); + sb.append(" termLength: ").append(toIndentedString(termLength)).append("\n"); + sb.append(" additionalBandwidth: ").append(toIndentedString(additionalBandwidth)).append("\n"); + sb.append(" siteId: ").append(toIndentedString(siteId)).append("\n"); + sb.append(" systemIpAddress: ").append(toIndentedString(systemIpAddress)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/VirtualDeviceType.java b/src/main/java/com/equinix/networkedge/model/VirtualDeviceType.java new file mode 100644 index 0000000..ed213fe --- /dev/null +++ b/src/main/java/com/equinix/networkedge/model/VirtualDeviceType.java @@ -0,0 +1,311 @@ +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; +import com.equinix.networkedge.model.LicenseOptions; +import com.equinix.networkedge.model.Metro; +import com.equinix.networkedge.model.SoftwarePackage; +import com.equinix.networkedge.model.Throughput; + +import java.util.ArrayList; +import java.util.List; + +/** + * VirtualDeviceType + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class VirtualDeviceType { + @SerializedName("availableMetros") + private List availableMetros = null; + + @SerializedName("category") + private String category = null; + + @SerializedName("description") + private String description = null; + + @SerializedName("deviceTypeCode") + private String deviceTypeCode = null; + + @SerializedName("licenseOptions") + private List licenseOptions = null; + + @SerializedName("name") + private String name = null; + + @SerializedName("softwarePackages") + private List softwarePackages = null; + + @SerializedName("throughputOptions") + private List throughputOptions = null; + + @SerializedName("vendor") + private String vendor = null; + + public VirtualDeviceType availableMetros(List availableMetros) { + this.availableMetros = availableMetros; + return this; + } + + public VirtualDeviceType addAvailableMetrosItem(Metro availableMetrosItem) { + if (this.availableMetros == null) { + this.availableMetros = new ArrayList(); + } + this.availableMetros.add(availableMetrosItem); + return this; + } + + /** + * Array of metros where the device is available + * @return availableMetros + **/ + @ApiModelProperty(value = "Array of metros where the device is available") + public List getAvailableMetros() { + return availableMetros; + } + + public void setAvailableMetros(List availableMetros) { + this.availableMetros = availableMetros; + } + + public VirtualDeviceType category(String category) { + this.category = category; + return this; + } + + /** + * Type of virtual device, whether router or firewall + * @return category + **/ + @ApiModelProperty(example = "ROUTER", value = "Type of virtual device, whether router or firewall") + public String getCategory() { + return category; + } + + public void setCategory(String category) { + this.category = category; + } + + public VirtualDeviceType description(String description) { + this.description = description; + return this; + } + + /** + * Device description + * @return description + **/ + @ApiModelProperty(example = "Extend your enterprise network to public and private clouds with the CSR 1000V series.", value = "Device description") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public VirtualDeviceType deviceTypeCode(String deviceTypeCode) { + this.deviceTypeCode = deviceTypeCode; + return this; + } + + /** + * Device type code + * @return deviceTypeCode + **/ + @ApiModelProperty(example = "CSR1000V", value = "Device type code") + public String getDeviceTypeCode() { + return deviceTypeCode; + } + + public void setDeviceTypeCode(String deviceTypeCode) { + this.deviceTypeCode = deviceTypeCode; + } + + public VirtualDeviceType licenseOptions(List licenseOptions) { + this.licenseOptions = licenseOptions; + return this; + } + + public VirtualDeviceType addLicenseOptionsItem(LicenseOptions licenseOptionsItem) { + if (this.licenseOptions == null) { + this.licenseOptions = new ArrayList(); + } + this.licenseOptions.add(licenseOptionsItem); + return this; + } + + /** + * Array of available license options, subscription or BYOL (Bring Your Own License) + * @return licenseOptions + **/ + @ApiModelProperty(value = "Array of available license options, subscription or BYOL (Bring Your Own License)") + public List getLicenseOptions() { + return licenseOptions; + } + + public void setLicenseOptions(List licenseOptions) { + this.licenseOptions = licenseOptions; + } + + public VirtualDeviceType name(String name) { + this.name = name; + return this; + } + + /** + * Name of the device + * @return name + **/ + @ApiModelProperty(example = "CSR 1000V", value = "Name of the device") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public VirtualDeviceType softwarePackages(List softwarePackages) { + this.softwarePackages = softwarePackages; + return this; + } + + public VirtualDeviceType addSoftwarePackagesItem(SoftwarePackage softwarePackagesItem) { + if (this.softwarePackages == null) { + this.softwarePackages = new ArrayList(); + } + this.softwarePackages.add(softwarePackagesItem); + return this; + } + + /** + * Array of available software packages + * @return softwarePackages + **/ + @ApiModelProperty(value = "Array of available software packages") + public List getSoftwarePackages() { + return softwarePackages; + } + + public void setSoftwarePackages(List softwarePackages) { + this.softwarePackages = softwarePackages; + } + + public VirtualDeviceType throughputOptions(List throughputOptions) { + this.throughputOptions = throughputOptions; + return this; + } + + public VirtualDeviceType addThroughputOptionsItem(Throughput throughputOptionsItem) { + if (this.throughputOptions == null) { + this.throughputOptions = new ArrayList(); + } + this.throughputOptions.add(throughputOptionsItem); + return this; + } + + /** + * Array of available throughput options + * @return throughputOptions + **/ + @ApiModelProperty(value = "Array of available throughput options") + public List getThroughputOptions() { + return throughputOptions; + } + + public void setThroughputOptions(List throughputOptions) { + this.throughputOptions = throughputOptions; + } + + public VirtualDeviceType vendor(String vendor) { + this.vendor = vendor; + return this; + } + + /** + * Vendor of the device + * @return vendor + **/ + @ApiModelProperty(example = "Cisco", value = "Vendor of the device") + public String getVendor() { + return vendor; + } + + public void setVendor(String vendor) { + this.vendor = vendor; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VirtualDeviceType virtualDeviceType = (VirtualDeviceType) o; + return Objects.equals(this.availableMetros, virtualDeviceType.availableMetros) && + Objects.equals(this.category, virtualDeviceType.category) && + Objects.equals(this.description, virtualDeviceType.description) && + Objects.equals(this.deviceTypeCode, virtualDeviceType.deviceTypeCode) && + Objects.equals(this.licenseOptions, virtualDeviceType.licenseOptions) && + Objects.equals(this.name, virtualDeviceType.name) && + Objects.equals(this.softwarePackages, virtualDeviceType.softwarePackages) && + Objects.equals(this.throughputOptions, virtualDeviceType.throughputOptions) && + Objects.equals(this.vendor, virtualDeviceType.vendor); + } + + @Override + public int hashCode() { + return Objects.hash(availableMetros, category, description, deviceTypeCode, licenseOptions, name, softwarePackages, throughputOptions, vendor); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VirtualDeviceType {\n"); + + sb.append(" availableMetros: ").append(toIndentedString(availableMetros)).append("\n"); + sb.append(" category: ").append(toIndentedString(category)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" deviceTypeCode: ").append(toIndentedString(deviceTypeCode)).append("\n"); + sb.append(" licenseOptions: ").append(toIndentedString(licenseOptions)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" softwarePackages: ").append(toIndentedString(softwarePackages)).append("\n"); + sb.append(" throughputOptions: ").append(toIndentedString(throughputOptions)).append("\n"); + sb.append(" vendor: ").append(toIndentedString(vendor)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/VirtualDeviceUpdateRequest.java b/src/main/java/com/equinix/networkedge/model/VirtualDeviceUpdateRequest.java new file mode 100644 index 0000000..9c63f31 --- /dev/null +++ b/src/main/java/com/equinix/networkedge/model/VirtualDeviceUpdateRequest.java @@ -0,0 +1,88 @@ +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; + +/** + * VirtualDeviceUpdateRequest + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class VirtualDeviceUpdateRequest { + @SerializedName("virtualDeviceName") + private String virtualDeviceName = null; + + public VirtualDeviceUpdateRequest virtualDeviceName(String virtualDeviceName) { + this.virtualDeviceName = virtualDeviceName; + return this; + } + + /** + * Virtual Device Name + * @return virtualDeviceName + **/ + @ApiModelProperty(example = "Router1-csr1000v", value = "Virtual Device Name") + public String getVirtualDeviceName() { + return virtualDeviceName; + } + + public void setVirtualDeviceName(String virtualDeviceName) { + this.virtualDeviceName = virtualDeviceName; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VirtualDeviceUpdateRequest virtualDeviceUpdateRequest = (VirtualDeviceUpdateRequest) o; + return Objects.equals(this.virtualDeviceName, virtualDeviceUpdateRequest.virtualDeviceName); + } + + @Override + public int hashCode() { + return Objects.hash(virtualDeviceName); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VirtualDeviceUpdateRequest {\n"); + + sb.append(" virtualDeviceName: ").append(toIndentedString(virtualDeviceName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/Vpn.java b/src/main/java/com/equinix/networkedge/model/Vpn.java new file mode 100644 index 0000000..92536f0 --- /dev/null +++ b/src/main/java/com/equinix/networkedge/model/Vpn.java @@ -0,0 +1,319 @@ +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; +import com.equinix.networkedge.model.VpnRequest; + +/** + * Vpn + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class Vpn { + @SerializedName("siteName") + private String siteName = null; + + @SerializedName("virtualDeviceUUID") + private String virtualDeviceUUID = null; + + @SerializedName("configName") + private String configName = null; + + @SerializedName("peerIp") + private String peerIp = null; + + @SerializedName("peerSharedKey") + private String peerSharedKey = null; + + @SerializedName("remoteAsn") + private Long remoteAsn = null; + + @SerializedName("remoteIpAddress") + private String remoteIpAddress = null; + + @SerializedName("password") + private String password = null; + + @SerializedName("localAsn") + private Long localAsn = null; + + @SerializedName("tunnelIp") + private String tunnelIp = null; + + @SerializedName("secondary") + private VpnRequest secondary = null; + + public Vpn siteName(String siteName) { + this.siteName = siteName; + return this; + } + + /** + * Get siteName + * @return siteName + **/ + @ApiModelProperty(example = "Chicago", required = true, value = "") + public String getSiteName() { + return siteName; + } + + public void setSiteName(String siteName) { + this.siteName = siteName; + } + + public Vpn virtualDeviceUUID(String virtualDeviceUUID) { + this.virtualDeviceUUID = virtualDeviceUUID; + return this; + } + + /** + * Primary Virtual Device UUID + * @return virtualDeviceUUID + **/ + @ApiModelProperty(example = "f79eead8-b837-41d3-9095-9b15c2c4996d", required = true, value = "Primary Virtual Device UUID") + public String getVirtualDeviceUUID() { + return virtualDeviceUUID; + } + + public void setVirtualDeviceUUID(String virtualDeviceUUID) { + this.virtualDeviceUUID = virtualDeviceUUID; + } + + public Vpn configName(String configName) { + this.configName = configName; + return this; + } + + /** + * Get configName + * @return configName + **/ + @ApiModelProperty(example = "Traffic from AWS cloud", value = "") + public String getConfigName() { + return configName; + } + + public void setConfigName(String configName) { + this.configName = configName; + } + + public Vpn peerIp(String peerIp) { + this.peerIp = peerIp; + return this; + } + + /** + * Get peerIp + * @return peerIp + **/ + @ApiModelProperty(example = "110.11.12.222", required = true, value = "") + public String getPeerIp() { + return peerIp; + } + + public void setPeerIp(String peerIp) { + this.peerIp = peerIp; + } + + public Vpn peerSharedKey(String peerSharedKey) { + this.peerSharedKey = peerSharedKey; + return this; + } + + /** + * Get peerSharedKey + * @return peerSharedKey + **/ + @ApiModelProperty(example = "5bb2424e888bd", required = true, value = "") + public String getPeerSharedKey() { + return peerSharedKey; + } + + public void setPeerSharedKey(String peerSharedKey) { + this.peerSharedKey = peerSharedKey; + } + + public Vpn remoteAsn(Long remoteAsn) { + this.remoteAsn = remoteAsn; + return this; + } + + /** + * Remote Customer ASN - Customer side + * @return remoteAsn + **/ + @ApiModelProperty(example = "65413", required = true, value = "Remote Customer ASN - Customer side") + public Long getRemoteAsn() { + return remoteAsn; + } + + public void setRemoteAsn(Long remoteAsn) { + this.remoteAsn = remoteAsn; + } + + public Vpn remoteIpAddress(String remoteIpAddress) { + this.remoteIpAddress = remoteIpAddress; + return this; + } + + /** + * Remote Customer IP Address - Customer side + * @return remoteIpAddress + **/ + @ApiModelProperty(example = "100.210.1.31", required = true, value = "Remote Customer IP Address - Customer side") + public String getRemoteIpAddress() { + return remoteIpAddress; + } + + public void setRemoteIpAddress(String remoteIpAddress) { + this.remoteIpAddress = remoteIpAddress; + } + + public Vpn password(String password) { + this.password = password; + return this; + } + + /** + * BGP Password + * @return password + **/ + @ApiModelProperty(example = "pass123", required = true, value = "BGP Password") + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + public Vpn localAsn(Long localAsn) { + this.localAsn = localAsn; + return this; + } + + /** + * Local ASN - Equinix side + * @return localAsn + **/ + @ApiModelProperty(example = "65414", value = "Local ASN - Equinix side") + public Long getLocalAsn() { + return localAsn; + } + + public void setLocalAsn(Long localAsn) { + this.localAsn = localAsn; + } + + public Vpn tunnelIp(String tunnelIp) { + this.tunnelIp = tunnelIp; + return this; + } + + /** + * Local Tunnel IP Address in CIDR format + * @return tunnelIp + **/ + @ApiModelProperty(example = "192.168.7.2/30", required = true, value = "Local Tunnel IP Address in CIDR format") + public String getTunnelIp() { + return tunnelIp; + } + + public void setTunnelIp(String tunnelIp) { + this.tunnelIp = tunnelIp; + } + + public Vpn secondary(VpnRequest secondary) { + this.secondary = secondary; + return this; + } + + /** + * Secondary VPN details. Required if VPN is for a HA enabled device. + * @return secondary + **/ + @ApiModelProperty(value = "Secondary VPN details. Required if VPN is for a HA enabled device.") + public VpnRequest getSecondary() { + return secondary; + } + + public void setSecondary(VpnRequest secondary) { + this.secondary = secondary; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Vpn vpn = (Vpn) o; + return Objects.equals(this.siteName, vpn.siteName) && + Objects.equals(this.virtualDeviceUUID, vpn.virtualDeviceUUID) && + Objects.equals(this.configName, vpn.configName) && + Objects.equals(this.peerIp, vpn.peerIp) && + Objects.equals(this.peerSharedKey, vpn.peerSharedKey) && + Objects.equals(this.remoteAsn, vpn.remoteAsn) && + Objects.equals(this.remoteIpAddress, vpn.remoteIpAddress) && + Objects.equals(this.password, vpn.password) && + Objects.equals(this.localAsn, vpn.localAsn) && + Objects.equals(this.tunnelIp, vpn.tunnelIp) && + Objects.equals(this.secondary, vpn.secondary); + } + + @Override + public int hashCode() { + return Objects.hash(siteName, virtualDeviceUUID, configName, peerIp, peerSharedKey, remoteAsn, remoteIpAddress, password, localAsn, tunnelIp, secondary); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Vpn {\n"); + + sb.append(" siteName: ").append(toIndentedString(siteName)).append("\n"); + sb.append(" virtualDeviceUUID: ").append(toIndentedString(virtualDeviceUUID)).append("\n"); + sb.append(" configName: ").append(toIndentedString(configName)).append("\n"); + sb.append(" peerIp: ").append(toIndentedString(peerIp)).append("\n"); + sb.append(" peerSharedKey: ").append(toIndentedString(peerSharedKey)).append("\n"); + sb.append(" remoteAsn: ").append(toIndentedString(remoteAsn)).append("\n"); + sb.append(" remoteIpAddress: ").append(toIndentedString(remoteIpAddress)).append("\n"); + sb.append(" password: ").append(toIndentedString(password)).append("\n"); + sb.append(" localAsn: ").append(toIndentedString(localAsn)).append("\n"); + sb.append(" tunnelIp: ").append(toIndentedString(tunnelIp)).append("\n"); + sb.append(" secondary: ").append(toIndentedString(secondary)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/VpnRequest.java b/src/main/java/com/equinix/networkedge/model/VpnRequest.java new file mode 100644 index 0000000..34cb14f --- /dev/null +++ b/src/main/java/com/equinix/networkedge/model/VpnRequest.java @@ -0,0 +1,249 @@ +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; + +/** + * VpnRequest + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class VpnRequest { + @SerializedName("configName") + private String configName = null; + + @SerializedName("peerIp") + private String peerIp = null; + + @SerializedName("peerSharedKey") + private String peerSharedKey = null; + + @SerializedName("remoteAsn") + private Long remoteAsn = null; + + @SerializedName("remoteIpAddress") + private String remoteIpAddress = null; + + @SerializedName("password") + private String password = null; + + @SerializedName("localAsn") + private Long localAsn = null; + + @SerializedName("tunnelIp") + private String tunnelIp = null; + + public VpnRequest configName(String configName) { + this.configName = configName; + return this; + } + + /** + * Get configName + * @return configName + **/ + @ApiModelProperty(example = "Traffic from AWS cloud", value = "") + public String getConfigName() { + return configName; + } + + public void setConfigName(String configName) { + this.configName = configName; + } + + public VpnRequest peerIp(String peerIp) { + this.peerIp = peerIp; + return this; + } + + /** + * Get peerIp + * @return peerIp + **/ + @ApiModelProperty(example = "110.11.12.222", required = true, value = "") + public String getPeerIp() { + return peerIp; + } + + public void setPeerIp(String peerIp) { + this.peerIp = peerIp; + } + + public VpnRequest peerSharedKey(String peerSharedKey) { + this.peerSharedKey = peerSharedKey; + return this; + } + + /** + * Get peerSharedKey + * @return peerSharedKey + **/ + @ApiModelProperty(example = "5bb2424e888bd", required = true, value = "") + public String getPeerSharedKey() { + return peerSharedKey; + } + + public void setPeerSharedKey(String peerSharedKey) { + this.peerSharedKey = peerSharedKey; + } + + public VpnRequest remoteAsn(Long remoteAsn) { + this.remoteAsn = remoteAsn; + return this; + } + + /** + * Remote Customer ASN - Customer side + * @return remoteAsn + **/ + @ApiModelProperty(example = "65413", required = true, value = "Remote Customer ASN - Customer side") + public Long getRemoteAsn() { + return remoteAsn; + } + + public void setRemoteAsn(Long remoteAsn) { + this.remoteAsn = remoteAsn; + } + + public VpnRequest remoteIpAddress(String remoteIpAddress) { + this.remoteIpAddress = remoteIpAddress; + return this; + } + + /** + * Remote Customer IP Address - Customer side + * @return remoteIpAddress + **/ + @ApiModelProperty(example = "100.210.1.31", required = true, value = "Remote Customer IP Address - Customer side") + public String getRemoteIpAddress() { + return remoteIpAddress; + } + + public void setRemoteIpAddress(String remoteIpAddress) { + this.remoteIpAddress = remoteIpAddress; + } + + public VpnRequest password(String password) { + this.password = password; + return this; + } + + /** + * BGP Password + * @return password + **/ + @ApiModelProperty(example = "pass123", required = true, value = "BGP Password") + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + public VpnRequest localAsn(Long localAsn) { + this.localAsn = localAsn; + return this; + } + + /** + * Local ASN - Equinix side + * @return localAsn + **/ + @ApiModelProperty(example = "65414", value = "Local ASN - Equinix side") + public Long getLocalAsn() { + return localAsn; + } + + public void setLocalAsn(Long localAsn) { + this.localAsn = localAsn; + } + + public VpnRequest tunnelIp(String tunnelIp) { + this.tunnelIp = tunnelIp; + return this; + } + + /** + * Local Tunnel IP Address in CIDR format + * @return tunnelIp + **/ + @ApiModelProperty(example = "192.168.7.2/30", required = true, value = "Local Tunnel IP Address in CIDR format") + public String getTunnelIp() { + return tunnelIp; + } + + public void setTunnelIp(String tunnelIp) { + this.tunnelIp = tunnelIp; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VpnRequest vpnRequest = (VpnRequest) o; + return Objects.equals(this.configName, vpnRequest.configName) && + Objects.equals(this.peerIp, vpnRequest.peerIp) && + Objects.equals(this.peerSharedKey, vpnRequest.peerSharedKey) && + Objects.equals(this.remoteAsn, vpnRequest.remoteAsn) && + Objects.equals(this.remoteIpAddress, vpnRequest.remoteIpAddress) && + Objects.equals(this.password, vpnRequest.password) && + Objects.equals(this.localAsn, vpnRequest.localAsn) && + Objects.equals(this.tunnelIp, vpnRequest.tunnelIp); + } + + @Override + public int hashCode() { + return Objects.hash(configName, peerIp, peerSharedKey, remoteAsn, remoteIpAddress, password, localAsn, tunnelIp); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VpnRequest {\n"); + + sb.append(" configName: ").append(toIndentedString(configName)).append("\n"); + sb.append(" peerIp: ").append(toIndentedString(peerIp)).append("\n"); + sb.append(" peerSharedKey: ").append(toIndentedString(peerSharedKey)).append("\n"); + sb.append(" remoteAsn: ").append(toIndentedString(remoteAsn)).append("\n"); + sb.append(" remoteIpAddress: ").append(toIndentedString(remoteIpAddress)).append("\n"); + sb.append(" password: ").append(toIndentedString(password)).append("\n"); + sb.append(" localAsn: ").append(toIndentedString(localAsn)).append("\n"); + sb.append(" tunnelIp: ").append(toIndentedString(tunnelIp)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/model/VpnResponse.java b/src/main/java/com/equinix/networkedge/model/VpnResponse.java new file mode 100644 index 0000000..20b58c6 --- /dev/null +++ b/src/main/java/com/equinix/networkedge/model/VpnResponse.java @@ -0,0 +1,1008 @@ +/* + * Network Edge APIs + * API Documentation for NE's Beta APIs. More information about Network Edge marketplace & NE platform can be found [here](https://ecxfabric-documentation.equinix.com/hc/en-us/articles/360021809172-Enterprise-Network-Edge-Beta-Program-Introduction). + * + * OpenAPI spec version: General Availability + * Contact: Network-Edge-Support@equinix.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.equinix.networkedge.model; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; + +/** + * VpnResponse + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-20T13:45:54.773-07:00") +public class VpnResponse { + @SerializedName("siteName") + private String siteName = null; + + @SerializedName("uuid") + private String uuid = null; + + @SerializedName("virtualDeviceUUID") + private String virtualDeviceUUID = null; + + @SerializedName("configName") + private String configName = null; + + @SerializedName("status") + private String status = null; + + @SerializedName("peerIp") + private String peerIp = null; + + @SerializedName("peerSharedKey") + private String peerSharedKey = null; + + @SerializedName("remoteAsn") + private Long remoteAsn = null; + + @SerializedName("remoteIpAddress") + private String remoteIpAddress = null; + + @SerializedName("password") + private String password = null; + + @SerializedName("localAsn") + private Long localAsn = null; + + @SerializedName("tunnelIp") + private String tunnelIp = null; + + @SerializedName("bgpState") + private String bgpState = null; + + @SerializedName("inboundBytes") + private String inboundBytes = null; + + @SerializedName("inboundPackets") + private String inboundPackets = null; + + @SerializedName("outboundBytes") + private String outboundBytes = null; + + @SerializedName("outboundPackets") + private String outboundPackets = null; + + @SerializedName("tunnelStatus") + private String tunnelStatus = null; + + @SerializedName("custOrgId") + private Long custOrgId = null; + + @SerializedName("createdDate") + private String createdDate = null; + + @SerializedName("createdByFirstName") + private String createdByFirstName = null; + + @SerializedName("createdByLastName") + private String createdByLastName = null; + + @SerializedName("createdByEmail") + private String createdByEmail = null; + + @SerializedName("createdByUserKey") + private Long createdByUserKey = null; + + @SerializedName("createdByAccountUcmId") + private Long createdByAccountUcmId = null; + + @SerializedName("createdByUserName") + private String createdByUserName = null; + + @SerializedName("createdByCustOrgId") + private Long createdByCustOrgId = null; + + @SerializedName("createdByCustOrgName") + private String createdByCustOrgName = null; + + @SerializedName("createdByUserStatus") + private String createdByUserStatus = null; + + @SerializedName("createdByCompanyName") + private String createdByCompanyName = null; + + @SerializedName("lastUpdatedDate") + private String lastUpdatedDate = null; + + @SerializedName("updatedByFirstName") + private String updatedByFirstName = null; + + @SerializedName("updatedByLastName") + private String updatedByLastName = null; + + @SerializedName("updatedByEmail") + private String updatedByEmail = null; + + @SerializedName("updatedByUserKey") + private Long updatedByUserKey = null; + + @SerializedName("updatedByAccountUcmId") + private Long updatedByAccountUcmId = null; + + @SerializedName("updatedByUserName") + private String updatedByUserName = null; + + @SerializedName("updatedByCustOrgId") + private Long updatedByCustOrgId = null; + + @SerializedName("updatedByCustOrgName") + private String updatedByCustOrgName = null; + + @SerializedName("updatedByUserStatus") + private String updatedByUserStatus = null; + + @SerializedName("updatedByCompanyName") + private String updatedByCompanyName = null; + + public VpnResponse siteName(String siteName) { + this.siteName = siteName; + return this; + } + + /** + * Get siteName + * @return siteName + **/ + @ApiModelProperty(example = "Chicago", required = true, value = "") + public String getSiteName() { + return siteName; + } + + public void setSiteName(String siteName) { + this.siteName = siteName; + } + + public VpnResponse uuid(String uuid) { + this.uuid = uuid; + return this; + } + + /** + * Get uuid + * @return uuid + **/ + @ApiModelProperty(example = "877a3aa2-c49a-4af1-98a6-007424e737ae", value = "") + public String getUuid() { + return uuid; + } + + public void setUuid(String uuid) { + this.uuid = uuid; + } + + public VpnResponse virtualDeviceUUID(String virtualDeviceUUID) { + this.virtualDeviceUUID = virtualDeviceUUID; + return this; + } + + /** + * Get virtualDeviceUUID + * @return virtualDeviceUUID + **/ + @ApiModelProperty(example = "f79eead8-b837-41d3-9095-9b15c2c4996d", required = true, value = "") + public String getVirtualDeviceUUID() { + return virtualDeviceUUID; + } + + public void setVirtualDeviceUUID(String virtualDeviceUUID) { + this.virtualDeviceUUID = virtualDeviceUUID; + } + + public VpnResponse configName(String configName) { + this.configName = configName; + return this; + } + + /** + * Get configName + * @return configName + **/ + @ApiModelProperty(example = "Traffic from AWS cloud", value = "") + public String getConfigName() { + return configName; + } + + public void setConfigName(String configName) { + this.configName = configName; + } + + public VpnResponse status(String status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + **/ + @ApiModelProperty(example = "PROVISIONED", value = "") + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public VpnResponse peerIp(String peerIp) { + this.peerIp = peerIp; + return this; + } + + /** + * Get peerIp + * @return peerIp + **/ + @ApiModelProperty(example = "110.11.12.222", required = true, value = "") + public String getPeerIp() { + return peerIp; + } + + public void setPeerIp(String peerIp) { + this.peerIp = peerIp; + } + + public VpnResponse peerSharedKey(String peerSharedKey) { + this.peerSharedKey = peerSharedKey; + return this; + } + + /** + * Get peerSharedKey + * @return peerSharedKey + **/ + @ApiModelProperty(example = "5bb2424e888bd", required = true, value = "") + public String getPeerSharedKey() { + return peerSharedKey; + } + + public void setPeerSharedKey(String peerSharedKey) { + this.peerSharedKey = peerSharedKey; + } + + public VpnResponse remoteAsn(Long remoteAsn) { + this.remoteAsn = remoteAsn; + return this; + } + + /** + * Remote Customer ASN - Customer side + * @return remoteAsn + **/ + @ApiModelProperty(example = "65413", required = true, value = "Remote Customer ASN - Customer side") + public Long getRemoteAsn() { + return remoteAsn; + } + + public void setRemoteAsn(Long remoteAsn) { + this.remoteAsn = remoteAsn; + } + + public VpnResponse remoteIpAddress(String remoteIpAddress) { + this.remoteIpAddress = remoteIpAddress; + return this; + } + + /** + * Remote Customer IP Address - Customer side + * @return remoteIpAddress + **/ + @ApiModelProperty(example = "100.210.1.31", required = true, value = "Remote Customer IP Address - Customer side") + public String getRemoteIpAddress() { + return remoteIpAddress; + } + + public void setRemoteIpAddress(String remoteIpAddress) { + this.remoteIpAddress = remoteIpAddress; + } + + public VpnResponse password(String password) { + this.password = password; + return this; + } + + /** + * BGP Password + * @return password + **/ + @ApiModelProperty(example = "pass123", required = true, value = "BGP Password") + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + public VpnResponse localAsn(Long localAsn) { + this.localAsn = localAsn; + return this; + } + + /** + * Local ASN - Equinix side + * @return localAsn + **/ + @ApiModelProperty(example = "65414", value = "Local ASN - Equinix side") + public Long getLocalAsn() { + return localAsn; + } + + public void setLocalAsn(Long localAsn) { + this.localAsn = localAsn; + } + + public VpnResponse tunnelIp(String tunnelIp) { + this.tunnelIp = tunnelIp; + return this; + } + + /** + * Local Tunnel IP Address in CIDR format + * @return tunnelIp + **/ + @ApiModelProperty(example = "192.168.7.2/30", required = true, value = "Local Tunnel IP Address in CIDR format") + public String getTunnelIp() { + return tunnelIp; + } + + public void setTunnelIp(String tunnelIp) { + this.tunnelIp = tunnelIp; + } + + public VpnResponse bgpState(String bgpState) { + this.bgpState = bgpState; + return this; + } + + /** + * Get bgpState + * @return bgpState + **/ + @ApiModelProperty(example = "ESTABLISHED", value = "") + public String getBgpState() { + return bgpState; + } + + public void setBgpState(String bgpState) { + this.bgpState = bgpState; + } + + public VpnResponse inboundBytes(String inboundBytes) { + this.inboundBytes = inboundBytes; + return this; + } + + /** + * Get inboundBytes + * @return inboundBytes + **/ + @ApiModelProperty(example = "8780", value = "") + public String getInboundBytes() { + return inboundBytes; + } + + public void setInboundBytes(String inboundBytes) { + this.inboundBytes = inboundBytes; + } + + public VpnResponse inboundPackets(String inboundPackets) { + this.inboundPackets = inboundPackets; + return this; + } + + /** + * Get inboundPackets + * @return inboundPackets + **/ + @ApiModelProperty(example = "8780", value = "") + public String getInboundPackets() { + return inboundPackets; + } + + public void setInboundPackets(String inboundPackets) { + this.inboundPackets = inboundPackets; + } + + public VpnResponse outboundBytes(String outboundBytes) { + this.outboundBytes = outboundBytes; + return this; + } + + /** + * Get outboundBytes + * @return outboundBytes + **/ + @ApiModelProperty(example = "8765", value = "") + public String getOutboundBytes() { + return outboundBytes; + } + + public void setOutboundBytes(String outboundBytes) { + this.outboundBytes = outboundBytes; + } + + public VpnResponse outboundPackets(String outboundPackets) { + this.outboundPackets = outboundPackets; + return this; + } + + /** + * Get outboundPackets + * @return outboundPackets + **/ + @ApiModelProperty(example = "8765", value = "") + public String getOutboundPackets() { + return outboundPackets; + } + + public void setOutboundPackets(String outboundPackets) { + this.outboundPackets = outboundPackets; + } + + public VpnResponse tunnelStatus(String tunnelStatus) { + this.tunnelStatus = tunnelStatus; + return this; + } + + /** + * Get tunnelStatus + * @return tunnelStatus + **/ + @ApiModelProperty(example = "UP", value = "") + public String getTunnelStatus() { + return tunnelStatus; + } + + public void setTunnelStatus(String tunnelStatus) { + this.tunnelStatus = tunnelStatus; + } + + public VpnResponse custOrgId(Long custOrgId) { + this.custOrgId = custOrgId; + return this; + } + + /** + * Get custOrgId + * @return custOrgId + **/ + @ApiModelProperty(example = "65555", value = "") + public Long getCustOrgId() { + return custOrgId; + } + + public void setCustOrgId(Long custOrgId) { + this.custOrgId = custOrgId; + } + + public VpnResponse createdDate(String createdDate) { + this.createdDate = createdDate; + return this; + } + + /** + * Get createdDate + * @return createdDate + **/ + @ApiModelProperty(example = "2018-05-18 06:34:26", value = "") + public String getCreatedDate() { + return createdDate; + } + + public void setCreatedDate(String createdDate) { + this.createdDate = createdDate; + } + + public VpnResponse createdByFirstName(String createdByFirstName) { + this.createdByFirstName = createdByFirstName; + return this; + } + + /** + * Get createdByFirstName + * @return createdByFirstName + **/ + @ApiModelProperty(example = "John", value = "") + public String getCreatedByFirstName() { + return createdByFirstName; + } + + public void setCreatedByFirstName(String createdByFirstName) { + this.createdByFirstName = createdByFirstName; + } + + public VpnResponse createdByLastName(String createdByLastName) { + this.createdByLastName = createdByLastName; + return this; + } + + /** + * Get createdByLastName + * @return createdByLastName + **/ + @ApiModelProperty(example = "Smith", value = "") + public String getCreatedByLastName() { + return createdByLastName; + } + + public void setCreatedByLastName(String createdByLastName) { + this.createdByLastName = createdByLastName; + } + + public VpnResponse createdByEmail(String createdByEmail) { + this.createdByEmail = createdByEmail; + return this; + } + + /** + * Get createdByEmail + * @return createdByEmail + **/ + @ApiModelProperty(example = "alpha@beta.com", value = "") + public String getCreatedByEmail() { + return createdByEmail; + } + + public void setCreatedByEmail(String createdByEmail) { + this.createdByEmail = createdByEmail; + } + + public VpnResponse createdByUserKey(Long createdByUserKey) { + this.createdByUserKey = createdByUserKey; + return this; + } + + /** + * Get createdByUserKey + * @return createdByUserKey + **/ + @ApiModelProperty(example = "123", value = "") + public Long getCreatedByUserKey() { + return createdByUserKey; + } + + public void setCreatedByUserKey(Long createdByUserKey) { + this.createdByUserKey = createdByUserKey; + } + + public VpnResponse createdByAccountUcmId(Long createdByAccountUcmId) { + this.createdByAccountUcmId = createdByAccountUcmId; + return this; + } + + /** + * Get createdByAccountUcmId + * @return createdByAccountUcmId + **/ + @ApiModelProperty(example = "456", value = "") + public Long getCreatedByAccountUcmId() { + return createdByAccountUcmId; + } + + public void setCreatedByAccountUcmId(Long createdByAccountUcmId) { + this.createdByAccountUcmId = createdByAccountUcmId; + } + + public VpnResponse createdByUserName(String createdByUserName) { + this.createdByUserName = createdByUserName; + return this; + } + + /** + * Get createdByUserName + * @return createdByUserName + **/ + @ApiModelProperty(example = "jsmith", value = "") + public String getCreatedByUserName() { + return createdByUserName; + } + + public void setCreatedByUserName(String createdByUserName) { + this.createdByUserName = createdByUserName; + } + + public VpnResponse createdByCustOrgId(Long createdByCustOrgId) { + this.createdByCustOrgId = createdByCustOrgId; + return this; + } + + /** + * Get createdByCustOrgId + * @return createdByCustOrgId + **/ + @ApiModelProperty(example = "7863", value = "") + public Long getCreatedByCustOrgId() { + return createdByCustOrgId; + } + + public void setCreatedByCustOrgId(Long createdByCustOrgId) { + this.createdByCustOrgId = createdByCustOrgId; + } + + public VpnResponse createdByCustOrgName(String createdByCustOrgName) { + this.createdByCustOrgName = createdByCustOrgName; + return this; + } + + /** + * Get createdByCustOrgName + * @return createdByCustOrgName + **/ + @ApiModelProperty(example = "My Awesome Org", value = "") + public String getCreatedByCustOrgName() { + return createdByCustOrgName; + } + + public void setCreatedByCustOrgName(String createdByCustOrgName) { + this.createdByCustOrgName = createdByCustOrgName; + } + + public VpnResponse createdByUserStatus(String createdByUserStatus) { + this.createdByUserStatus = createdByUserStatus; + return this; + } + + /** + * Get createdByUserStatus + * @return createdByUserStatus + **/ + @ApiModelProperty(example = "ACTIVATED", value = "") + public String getCreatedByUserStatus() { + return createdByUserStatus; + } + + public void setCreatedByUserStatus(String createdByUserStatus) { + this.createdByUserStatus = createdByUserStatus; + } + + public VpnResponse createdByCompanyName(String createdByCompanyName) { + this.createdByCompanyName = createdByCompanyName; + return this; + } + + /** + * Get createdByCompanyName + * @return createdByCompanyName + **/ + @ApiModelProperty(example = "My Awesome Company", value = "") + public String getCreatedByCompanyName() { + return createdByCompanyName; + } + + public void setCreatedByCompanyName(String createdByCompanyName) { + this.createdByCompanyName = createdByCompanyName; + } + + public VpnResponse lastUpdatedDate(String lastUpdatedDate) { + this.lastUpdatedDate = lastUpdatedDate; + return this; + } + + /** + * Get lastUpdatedDate + * @return lastUpdatedDate + **/ + @ApiModelProperty(example = "2018-07-21 05:20:20", value = "") + public String getLastUpdatedDate() { + return lastUpdatedDate; + } + + public void setLastUpdatedDate(String lastUpdatedDate) { + this.lastUpdatedDate = lastUpdatedDate; + } + + public VpnResponse updatedByFirstName(String updatedByFirstName) { + this.updatedByFirstName = updatedByFirstName; + return this; + } + + /** + * Get updatedByFirstName + * @return updatedByFirstName + **/ + @ApiModelProperty(example = "John", value = "") + public String getUpdatedByFirstName() { + return updatedByFirstName; + } + + public void setUpdatedByFirstName(String updatedByFirstName) { + this.updatedByFirstName = updatedByFirstName; + } + + public VpnResponse updatedByLastName(String updatedByLastName) { + this.updatedByLastName = updatedByLastName; + return this; + } + + /** + * Get updatedByLastName + * @return updatedByLastName + **/ + @ApiModelProperty(example = "Smith", value = "") + public String getUpdatedByLastName() { + return updatedByLastName; + } + + public void setUpdatedByLastName(String updatedByLastName) { + this.updatedByLastName = updatedByLastName; + } + + public VpnResponse updatedByEmail(String updatedByEmail) { + this.updatedByEmail = updatedByEmail; + return this; + } + + /** + * Get updatedByEmail + * @return updatedByEmail + **/ + @ApiModelProperty(example = "alpha@beta.com", value = "") + public String getUpdatedByEmail() { + return updatedByEmail; + } + + public void setUpdatedByEmail(String updatedByEmail) { + this.updatedByEmail = updatedByEmail; + } + + public VpnResponse updatedByUserKey(Long updatedByUserKey) { + this.updatedByUserKey = updatedByUserKey; + return this; + } + + /** + * Get updatedByUserKey + * @return updatedByUserKey + **/ + @ApiModelProperty(example = "123", value = "") + public Long getUpdatedByUserKey() { + return updatedByUserKey; + } + + public void setUpdatedByUserKey(Long updatedByUserKey) { + this.updatedByUserKey = updatedByUserKey; + } + + public VpnResponse updatedByAccountUcmId(Long updatedByAccountUcmId) { + this.updatedByAccountUcmId = updatedByAccountUcmId; + return this; + } + + /** + * Get updatedByAccountUcmId + * @return updatedByAccountUcmId + **/ + @ApiModelProperty(example = "456", value = "") + public Long getUpdatedByAccountUcmId() { + return updatedByAccountUcmId; + } + + public void setUpdatedByAccountUcmId(Long updatedByAccountUcmId) { + this.updatedByAccountUcmId = updatedByAccountUcmId; + } + + public VpnResponse updatedByUserName(String updatedByUserName) { + this.updatedByUserName = updatedByUserName; + return this; + } + + /** + * Get updatedByUserName + * @return updatedByUserName + **/ + @ApiModelProperty(example = "jsmith", value = "") + public String getUpdatedByUserName() { + return updatedByUserName; + } + + public void setUpdatedByUserName(String updatedByUserName) { + this.updatedByUserName = updatedByUserName; + } + + public VpnResponse updatedByCustOrgId(Long updatedByCustOrgId) { + this.updatedByCustOrgId = updatedByCustOrgId; + return this; + } + + /** + * Get updatedByCustOrgId + * @return updatedByCustOrgId + **/ + @ApiModelProperty(example = "7863", value = "") + public Long getUpdatedByCustOrgId() { + return updatedByCustOrgId; + } + + public void setUpdatedByCustOrgId(Long updatedByCustOrgId) { + this.updatedByCustOrgId = updatedByCustOrgId; + } + + public VpnResponse updatedByCustOrgName(String updatedByCustOrgName) { + this.updatedByCustOrgName = updatedByCustOrgName; + return this; + } + + /** + * Get updatedByCustOrgName + * @return updatedByCustOrgName + **/ + @ApiModelProperty(example = "My Awesome Org", value = "") + public String getUpdatedByCustOrgName() { + return updatedByCustOrgName; + } + + public void setUpdatedByCustOrgName(String updatedByCustOrgName) { + this.updatedByCustOrgName = updatedByCustOrgName; + } + + public VpnResponse updatedByUserStatus(String updatedByUserStatus) { + this.updatedByUserStatus = updatedByUserStatus; + return this; + } + + /** + * Get updatedByUserStatus + * @return updatedByUserStatus + **/ + @ApiModelProperty(example = "ACTIVATED", value = "") + public String getUpdatedByUserStatus() { + return updatedByUserStatus; + } + + public void setUpdatedByUserStatus(String updatedByUserStatus) { + this.updatedByUserStatus = updatedByUserStatus; + } + + public VpnResponse updatedByCompanyName(String updatedByCompanyName) { + this.updatedByCompanyName = updatedByCompanyName; + return this; + } + + /** + * Get updatedByCompanyName + * @return updatedByCompanyName + **/ + @ApiModelProperty(example = "My Awesome Company", value = "") + public String getUpdatedByCompanyName() { + return updatedByCompanyName; + } + + public void setUpdatedByCompanyName(String updatedByCompanyName) { + this.updatedByCompanyName = updatedByCompanyName; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VpnResponse vpnResponse = (VpnResponse) o; + return Objects.equals(this.siteName, vpnResponse.siteName) && + Objects.equals(this.uuid, vpnResponse.uuid) && + Objects.equals(this.virtualDeviceUUID, vpnResponse.virtualDeviceUUID) && + Objects.equals(this.configName, vpnResponse.configName) && + Objects.equals(this.status, vpnResponse.status) && + Objects.equals(this.peerIp, vpnResponse.peerIp) && + Objects.equals(this.peerSharedKey, vpnResponse.peerSharedKey) && + Objects.equals(this.remoteAsn, vpnResponse.remoteAsn) && + Objects.equals(this.remoteIpAddress, vpnResponse.remoteIpAddress) && + Objects.equals(this.password, vpnResponse.password) && + Objects.equals(this.localAsn, vpnResponse.localAsn) && + Objects.equals(this.tunnelIp, vpnResponse.tunnelIp) && + Objects.equals(this.bgpState, vpnResponse.bgpState) && + Objects.equals(this.inboundBytes, vpnResponse.inboundBytes) && + Objects.equals(this.inboundPackets, vpnResponse.inboundPackets) && + Objects.equals(this.outboundBytes, vpnResponse.outboundBytes) && + Objects.equals(this.outboundPackets, vpnResponse.outboundPackets) && + Objects.equals(this.tunnelStatus, vpnResponse.tunnelStatus) && + Objects.equals(this.custOrgId, vpnResponse.custOrgId) && + Objects.equals(this.createdDate, vpnResponse.createdDate) && + Objects.equals(this.createdByFirstName, vpnResponse.createdByFirstName) && + Objects.equals(this.createdByLastName, vpnResponse.createdByLastName) && + Objects.equals(this.createdByEmail, vpnResponse.createdByEmail) && + Objects.equals(this.createdByUserKey, vpnResponse.createdByUserKey) && + Objects.equals(this.createdByAccountUcmId, vpnResponse.createdByAccountUcmId) && + Objects.equals(this.createdByUserName, vpnResponse.createdByUserName) && + Objects.equals(this.createdByCustOrgId, vpnResponse.createdByCustOrgId) && + Objects.equals(this.createdByCustOrgName, vpnResponse.createdByCustOrgName) && + Objects.equals(this.createdByUserStatus, vpnResponse.createdByUserStatus) && + Objects.equals(this.createdByCompanyName, vpnResponse.createdByCompanyName) && + Objects.equals(this.lastUpdatedDate, vpnResponse.lastUpdatedDate) && + Objects.equals(this.updatedByFirstName, vpnResponse.updatedByFirstName) && + Objects.equals(this.updatedByLastName, vpnResponse.updatedByLastName) && + Objects.equals(this.updatedByEmail, vpnResponse.updatedByEmail) && + Objects.equals(this.updatedByUserKey, vpnResponse.updatedByUserKey) && + Objects.equals(this.updatedByAccountUcmId, vpnResponse.updatedByAccountUcmId) && + Objects.equals(this.updatedByUserName, vpnResponse.updatedByUserName) && + Objects.equals(this.updatedByCustOrgId, vpnResponse.updatedByCustOrgId) && + Objects.equals(this.updatedByCustOrgName, vpnResponse.updatedByCustOrgName) && + Objects.equals(this.updatedByUserStatus, vpnResponse.updatedByUserStatus) && + Objects.equals(this.updatedByCompanyName, vpnResponse.updatedByCompanyName); + } + + @Override + public int hashCode() { + return Objects.hash(siteName, uuid, virtualDeviceUUID, configName, status, peerIp, peerSharedKey, remoteAsn, remoteIpAddress, password, localAsn, tunnelIp, bgpState, inboundBytes, inboundPackets, outboundBytes, outboundPackets, tunnelStatus, custOrgId, createdDate, createdByFirstName, createdByLastName, createdByEmail, createdByUserKey, createdByAccountUcmId, createdByUserName, createdByCustOrgId, createdByCustOrgName, createdByUserStatus, createdByCompanyName, lastUpdatedDate, updatedByFirstName, updatedByLastName, updatedByEmail, updatedByUserKey, updatedByAccountUcmId, updatedByUserName, updatedByCustOrgId, updatedByCustOrgName, updatedByUserStatus, updatedByCompanyName); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VpnResponse {\n"); + + sb.append(" siteName: ").append(toIndentedString(siteName)).append("\n"); + sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n"); + sb.append(" virtualDeviceUUID: ").append(toIndentedString(virtualDeviceUUID)).append("\n"); + sb.append(" configName: ").append(toIndentedString(configName)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" peerIp: ").append(toIndentedString(peerIp)).append("\n"); + sb.append(" peerSharedKey: ").append(toIndentedString(peerSharedKey)).append("\n"); + sb.append(" remoteAsn: ").append(toIndentedString(remoteAsn)).append("\n"); + sb.append(" remoteIpAddress: ").append(toIndentedString(remoteIpAddress)).append("\n"); + sb.append(" password: ").append(toIndentedString(password)).append("\n"); + sb.append(" localAsn: ").append(toIndentedString(localAsn)).append("\n"); + sb.append(" tunnelIp: ").append(toIndentedString(tunnelIp)).append("\n"); + sb.append(" bgpState: ").append(toIndentedString(bgpState)).append("\n"); + sb.append(" inboundBytes: ").append(toIndentedString(inboundBytes)).append("\n"); + sb.append(" inboundPackets: ").append(toIndentedString(inboundPackets)).append("\n"); + sb.append(" outboundBytes: ").append(toIndentedString(outboundBytes)).append("\n"); + sb.append(" outboundPackets: ").append(toIndentedString(outboundPackets)).append("\n"); + sb.append(" tunnelStatus: ").append(toIndentedString(tunnelStatus)).append("\n"); + sb.append(" custOrgId: ").append(toIndentedString(custOrgId)).append("\n"); + sb.append(" createdDate: ").append(toIndentedString(createdDate)).append("\n"); + sb.append(" createdByFirstName: ").append(toIndentedString(createdByFirstName)).append("\n"); + sb.append(" createdByLastName: ").append(toIndentedString(createdByLastName)).append("\n"); + sb.append(" createdByEmail: ").append(toIndentedString(createdByEmail)).append("\n"); + sb.append(" createdByUserKey: ").append(toIndentedString(createdByUserKey)).append("\n"); + sb.append(" createdByAccountUcmId: ").append(toIndentedString(createdByAccountUcmId)).append("\n"); + sb.append(" createdByUserName: ").append(toIndentedString(createdByUserName)).append("\n"); + sb.append(" createdByCustOrgId: ").append(toIndentedString(createdByCustOrgId)).append("\n"); + sb.append(" createdByCustOrgName: ").append(toIndentedString(createdByCustOrgName)).append("\n"); + sb.append(" createdByUserStatus: ").append(toIndentedString(createdByUserStatus)).append("\n"); + sb.append(" createdByCompanyName: ").append(toIndentedString(createdByCompanyName)).append("\n"); + sb.append(" lastUpdatedDate: ").append(toIndentedString(lastUpdatedDate)).append("\n"); + sb.append(" updatedByFirstName: ").append(toIndentedString(updatedByFirstName)).append("\n"); + sb.append(" updatedByLastName: ").append(toIndentedString(updatedByLastName)).append("\n"); + sb.append(" updatedByEmail: ").append(toIndentedString(updatedByEmail)).append("\n"); + sb.append(" updatedByUserKey: ").append(toIndentedString(updatedByUserKey)).append("\n"); + sb.append(" updatedByAccountUcmId: ").append(toIndentedString(updatedByAccountUcmId)).append("\n"); + sb.append(" updatedByUserName: ").append(toIndentedString(updatedByUserName)).append("\n"); + sb.append(" updatedByCustOrgId: ").append(toIndentedString(updatedByCustOrgId)).append("\n"); + sb.append(" updatedByCustOrgName: ").append(toIndentedString(updatedByCustOrgName)).append("\n"); + sb.append(" updatedByUserStatus: ").append(toIndentedString(updatedByUserStatus)).append("\n"); + sb.append(" updatedByCompanyName: ").append(toIndentedString(updatedByCompanyName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/equinix/networkedge/utils/ConfigUtil.java b/src/main/java/com/equinix/networkedge/utils/ConfigUtil.java new file mode 100644 index 0000000..8ae5831 --- /dev/null +++ b/src/main/java/com/equinix/networkedge/utils/ConfigUtil.java @@ -0,0 +1,93 @@ +package com.equinix.networkedge.utils; + +import com.equinix.networkedge.model.OAuthRequest; +import com.equinix.networkedge.model.OAuthResponse; +import com.google.gson.Gson; +import com.mashape.unirest.http.HttpResponse; +import com.mashape.unirest.http.Unirest; +import com.mashape.unirest.http.exceptions.UnirestException; + +import java.util.Base64; +import java.util.Properties; +import java.io.*; + +public class ConfigUtil { + + public static String get(String key) { + Properties prop = new Properties(); + try { + //load a properties file from class path. + prop.load(ConfigUtil.class.getClassLoader().getResourceAsStream("api-configuration.properties")); + } catch (IOException e) { + e.printStackTrace(); //For Now ;) + } + + return prop.getProperty(key); + } + + public static HttpResponse postRequest(String url, String body) { + HttpResponse response = null; + try { + response = Unirest.post(url) + .header("Content-Type", get("ne.client.http.body.contenttype")) + .body(body).asString(); + } catch (UnirestException e) { + e.printStackTrace(); + } + + return response; + } + + public static HttpResponse getRequest(String url, String body) { + HttpResponse response = null; + try { + response = Unirest.post(url) + .header("Content-Type", get("ne.client.http.body.contenttype")) + .body(body).asString(); + } catch (UnirestException e) { + e.printStackTrace(); + } + + return response; + } + + public static OAuthRequest createOAuthRequest() { + // Generate OAuth2 Access Token. + OAuthRequest oathReq = new OAuthRequest(); + try { + oathReq.clientId(get("ne.client.access.client.id")); + oathReq.clientSecret(get("ne.client.access.client.secret")); + oathReq.grantType(get("ne.client.access.client.granttype")); + oathReq.userName(get("ne.client.access.client.username")); + String password = new String(Base64.getDecoder().decode(get("ne.client.access.client.base64.password")), "UTF-8"); + oathReq.userPassword(password); + } catch (UnsupportedEncodingException e) { + e.printStackTrace(); + } + + return oathReq; + } + + public static String getAuthToken() { + + String hostname = get("ne.url.hostname"); + String urlOAuth2 = hostname + get("ne.url.auth"); + String urlDevice = hostname + get("ne.url.device"); + OAuthRequest oathReq = createOAuthRequest(); + Gson gson = new Gson(); + OAuthResponse authResponse = null; + + HttpResponse response = null; + try { + response = Unirest.post(urlOAuth2) + .header("Content-Type", get("ne.client.http.body.contenttype")) + .body(gson.toJson(oathReq)).asString(); + authResponse = gson.fromJson(response.getBody(), OAuthResponse.class); + + } catch (UnirestException e) { + e.printStackTrace(); + } + + return authResponse.getAccessToken(); + } +} diff --git a/src/main/resources/api-configuration.properties b/src/main/resources/api-configuration.properties new file mode 100644 index 0000000..d4f936c --- /dev/null +++ b/src/main/resources/api-configuration.properties @@ -0,0 +1,15 @@ +####### HTTP Client Configuration ####### +ne.url.hostname=https://uatapi.equinix.com +ne.client.http.body.contenttype=application/json + +####### Access Configuration ####### +ne.client.access.client.id=D2DEv21UMhXM1EUaQXCvtz2MDGyVwMGY +ne.client.access.client.secret=mNG18ojxmOfjUawQ +ne.client.access.client.granttype=password +ne.client.access.client.username=nfv-uat2 +ne.client.access.client.base64.password=V2VsY29tZUAx + +####### NE REST Endpoints ####### +ne.url.auth=/oauth2/v1/token +ne.url.device=/ne/v1/device +ne.url.ecx.l2.connection=/ne/v1/l2/connections \ No newline at end of file