Skip to content

Commit 1226f23

Browse files
add PUT/DELETE methods for topology tags; add assign_topology_tag
1 parent e2a8ce9 commit 1226f23

File tree

107 files changed

+4412
-1248
lines changed

Some content is hidden

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

107 files changed

+4412
-1248
lines changed

.travis.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#
2+
# Generated by: https://github.com/swagger-api/swagger-codegen.git
3+
#
4+
language: java
5+
jdk:
6+
- oraclejdk8
7+
- oraclejdk7
8+
before_install:
9+
# ensure gradlew has proper permission
10+
- chmod a+x ./gradlew
11+
script:
12+
# test using maven
13+
- mvn test
14+
# uncomment below to test using gradle
15+
# - gradle test
16+
# uncomment below to test using sbt
17+
# - sbt test

docs/AuthenticationApi.md

Lines changed: 14 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ All URIs are relative to *https://penapi.pacnetconnect.com*
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------
7-
[**createAnAuthenticationToken**](AuthenticationApi.md#createAnAuthenticationToken) | **POST** /1.0.0/auth/generatetoken | Create an authentication token
8-
[**validateAuthenticationToken**](AuthenticationApi.md#validateAuthenticationToken) | **GET** /1.0.0/auth/validatetoken | Validate authentication token
7+
[**100AuthGeneratetokenPost**](AuthenticationApi.md#100AuthGeneratetokenPost) | **POST** /1.0.0/auth/generatetoken | Create an authentication token
8+
[**100AuthValidatetokenGet**](AuthenticationApi.md#100AuthValidatetokenGet) | **GET** /1.0.0/auth/validatetoken | Validate authentication token
99

1010

11-
<a name="createAnAuthenticationToken"></a>
12-
# **createAnAuthenticationToken**
13-
> Model100AuthGeneratetokenResponse createAnAuthenticationToken(grantType, username, password)
11+
<a name="100AuthGeneratetokenPost"></a>
12+
# **100AuthGeneratetokenPost**
13+
> Model100AuthGeneratetokenResponse 100AuthGeneratetokenPost(grantType, username, password)
1414
1515
Create an authentication token
1616

@@ -19,27 +19,19 @@ Create an authentication token
1919
### Example
2020
```java
2121
// Import classes:
22-
//import invalidPackageName.ApiClient;
2322
//import invalidPackageName.ApiException;
24-
//import invalidPackageName.Configuration;
25-
//import invalidPackageName.auth.*;
2623
//import TelstraTPN.AuthenticationApi;
2724

28-
ApiClient defaultClient = Configuration.getDefaultApiClient();
29-
30-
// Configure OAuth2 access token for authorization: auth
31-
OAuth auth = (OAuth) defaultClient.getAuthentication("auth");
32-
auth.setAccessToken("YOUR ACCESS TOKEN");
3325

3426
AuthenticationApi apiInstance = new AuthenticationApi();
3527
String grantType = "grantType_example"; // String |
3628
String username = "username_example"; // String |
3729
String password = "password_example"; // String |
3830
try {
39-
Model100AuthGeneratetokenResponse result = apiInstance.createAnAuthenticationToken(grantType, username, password);
31+
Model100AuthGeneratetokenResponse result = apiInstance.100AuthGeneratetokenPost(grantType, username, password);
4032
System.out.println(result);
4133
} catch (ApiException e) {
42-
System.err.println("Exception when calling AuthenticationApi#createAnAuthenticationToken");
34+
System.err.println("Exception when calling AuthenticationApi#100AuthGeneratetokenPost");
4335
e.printStackTrace();
4436
}
4537
```
@@ -58,16 +50,16 @@ Name | Type | Description | Notes
5850

5951
### Authorization
6052

61-
[auth](../README.md#auth)
53+
No authorization required
6254

6355
### HTTP request headers
6456

6557
- **Content-Type**: application/x-www-form-urlencoded
6658
- **Accept**: application/json
6759

68-
<a name="validateAuthenticationToken"></a>
69-
# **validateAuthenticationToken**
70-
> Model100AuthValidatetokenResponse validateAuthenticationToken()
60+
<a name="100AuthValidatetokenGet"></a>
61+
# **100AuthValidatetokenGet**
62+
> Model100AuthValidatetokenResponse 100AuthValidatetokenGet()
7163
7264
Validate authentication token
7365

@@ -76,24 +68,16 @@ Validate the authentication token and get information about the user (roles, per
7668
### Example
7769
```java
7870
// Import classes:
79-
//import invalidPackageName.ApiClient;
8071
//import invalidPackageName.ApiException;
81-
//import invalidPackageName.Configuration;
82-
//import invalidPackageName.auth.*;
8372
//import TelstraTPN.AuthenticationApi;
8473

85-
ApiClient defaultClient = Configuration.getDefaultApiClient();
86-
87-
// Configure OAuth2 access token for authorization: auth
88-
OAuth auth = (OAuth) defaultClient.getAuthentication("auth");
89-
auth.setAccessToken("YOUR ACCESS TOKEN");
9074

9175
AuthenticationApi apiInstance = new AuthenticationApi();
9276
try {
93-
Model100AuthValidatetokenResponse result = apiInstance.validateAuthenticationToken();
77+
Model100AuthValidatetokenResponse result = apiInstance.100AuthValidatetokenGet();
9478
System.out.println(result);
9579
} catch (ApiException e) {
96-
System.err.println("Exception when calling AuthenticationApi#validateAuthenticationToken");
80+
System.err.println("Exception when calling AuthenticationApi#100AuthValidatetokenGet");
9781
e.printStackTrace();
9882
}
9983
```
@@ -107,7 +91,7 @@ This endpoint does not need any parameter.
10791

10892
### Authorization
10993

110-
[auth](../README.md#auth)
94+
No authorization required
11195

11296
### HTTP request headers
11397

docs/Contract.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ Name | Type | Description | Notes
1414
**currencyCode** | **String** | | [optional]
1515
**currencyID** | **String** | | [optional]
1616
**renewalOption** | **Integer** | Renewal Option: 0&#x3D;Auto Disconnect, 1&#x3D;Auto Renew, 2&#x3D;Pay per hour | [optional]
17-
**contractStartTime** | **Integer** | | [optional]
18-
**contractEndTime** | **Integer** | | [optional]
17+
**contractStartTime** | **Long** | | [optional]
18+
**contractEndTime** | **Long** | | [optional]
1919

2020

2121

docs/ContractsApi.md

Lines changed: 36 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -4,42 +4,34 @@ All URIs are relative to *https://penapi.pacnetconnect.com*
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------
7-
[**createNewContractOnSpecifiedLink**](ContractsApi.md#createNewContractOnSpecifiedLink) | **POST** /1.0.0/inventory/links/{linkid}/contract | Create new Contract on specified link
8-
[**getActiveContractByContractID**](ContractsApi.md#getActiveContractByContractID) | **GET** /1.0.0/inventory/links/{linkid}/contract/{contractid} | Get active Contract by ContractID
9-
[**updateActiveContractByContractID**](ContractsApi.md#updateActiveContractByContractID) | **PUT** /1.0.0/inventory/links/{linkid}/contract/{contractid} | Update active Contract by ContractID
7+
[**100InventoryLinksContractByLinkidAndContractidGet**](ContractsApi.md#100InventoryLinksContractByLinkidAndContractidGet) | **GET** /1.0.0/inventory/links/{linkid}/contract/{contractid} | Get active Contract by ContractID
8+
[**100InventoryLinksContractByLinkidAndContractidPut**](ContractsApi.md#100InventoryLinksContractByLinkidAndContractidPut) | **PUT** /1.0.0/inventory/links/{linkid}/contract/{contractid} | Update active Contract by ContractID
9+
[**100InventoryLinksContractByLinkidPost**](ContractsApi.md#100InventoryLinksContractByLinkidPost) | **POST** /1.0.0/inventory/links/{linkid}/contract | Create new Contract on specified link
1010

1111

12-
<a name="createNewContractOnSpecifiedLink"></a>
13-
# **createNewContractOnSpecifiedLink**
14-
> Model100InventoryLinksContractResponse36 createNewContractOnSpecifiedLink(linkid, body)
12+
<a name="100InventoryLinksContractByLinkidAndContractidGet"></a>
13+
# **100InventoryLinksContractByLinkidAndContractidGet**
14+
> Model100InventoryLinksContractResponse 100InventoryLinksContractByLinkidAndContractidGet(linkid, contractid)
1515
16-
Create new Contract on specified link
16+
Get active Contract by ContractID
1717

18-
Create new Contract on specified link
18+
Get active Contract by ContractID
1919

2020
### Example
2121
```java
2222
// Import classes:
23-
//import invalidPackageName.ApiClient;
2423
//import invalidPackageName.ApiException;
25-
//import invalidPackageName.Configuration;
26-
//import invalidPackageName.auth.*;
2724
//import TelstraTPN.ContractsApi;
2825

29-
ApiClient defaultClient = Configuration.getDefaultApiClient();
30-
31-
// Configure OAuth2 access token for authorization: auth
32-
OAuth auth = (OAuth) defaultClient.getAuthentication("auth");
33-
auth.setAccessToken("YOUR ACCESS TOKEN");
3426

3527
ContractsApi apiInstance = new ContractsApi();
3628
String linkid = "linkid_example"; // String | Unique identifier representing a specific link
37-
Model100InventoryLinksContractRequest35 body = new Model100InventoryLinksContractRequest35(); // Model100InventoryLinksContractRequest35 |
29+
String contractid = "contractid_example"; // String | Unique identifier representing a specific contract
3830
try {
39-
Model100InventoryLinksContractResponse36 result = apiInstance.createNewContractOnSpecifiedLink(linkid, body);
31+
Model100InventoryLinksContractResponse result = apiInstance.100InventoryLinksContractByLinkidAndContractidGet(linkid, contractid);
4032
System.out.println(result);
4133
} catch (ApiException e) {
42-
System.err.println("Exception when calling ContractsApi#createNewContractOnSpecifiedLink");
34+
System.err.println("Exception when calling ContractsApi#100InventoryLinksContractByLinkidAndContractidGet");
4335
e.printStackTrace();
4436
}
4537
```
@@ -49,52 +41,45 @@ try {
4941
Name | Type | Description | Notes
5042
------------- | ------------- | ------------- | -------------
5143
**linkid** | **String**| Unique identifier representing a specific link |
52-
**body** | [**Model100InventoryLinksContractRequest35**](Model100InventoryLinksContractRequest35.md)| | [optional]
44+
**contractid** | **String**| Unique identifier representing a specific contract |
5345

5446
### Return type
5547

56-
[**Model100InventoryLinksContractResponse36**](Model100InventoryLinksContractResponse36.md)
48+
[**Model100InventoryLinksContractResponse**](Model100InventoryLinksContractResponse.md)
5749

5850
### Authorization
5951

60-
[auth](../README.md#auth)
52+
No authorization required
6153

6254
### HTTP request headers
6355

6456
- **Content-Type**: application/json
6557
- **Accept**: application/json
6658

67-
<a name="getActiveContractByContractID"></a>
68-
# **getActiveContractByContractID**
69-
> Model100InventoryLinksContractResponse getActiveContractByContractID(linkid, contractid)
59+
<a name="100InventoryLinksContractByLinkidAndContractidPut"></a>
60+
# **100InventoryLinksContractByLinkidAndContractidPut**
61+
> Model100InventoryLinksContractResponse33 100InventoryLinksContractByLinkidAndContractidPut(linkid, contractid, body)
7062
71-
Get active Contract by ContractID
63+
Update active Contract by ContractID
7264

73-
Get active Contract by ContractID
65+
Update active Contract by ContractID
7466

7567
### Example
7668
```java
7769
// Import classes:
78-
//import invalidPackageName.ApiClient;
7970
//import invalidPackageName.ApiException;
80-
//import invalidPackageName.Configuration;
81-
//import invalidPackageName.auth.*;
8271
//import TelstraTPN.ContractsApi;
8372

84-
ApiClient defaultClient = Configuration.getDefaultApiClient();
85-
86-
// Configure OAuth2 access token for authorization: auth
87-
OAuth auth = (OAuth) defaultClient.getAuthentication("auth");
88-
auth.setAccessToken("YOUR ACCESS TOKEN");
8973

9074
ContractsApi apiInstance = new ContractsApi();
9175
String linkid = "linkid_example"; // String | Unique identifier representing a specific link
9276
String contractid = "contractid_example"; // String | Unique identifier representing a specific contract
77+
Model100InventoryLinksContractRequest body = new Model100InventoryLinksContractRequest(); // Model100InventoryLinksContractRequest |
9378
try {
94-
Model100InventoryLinksContractResponse result = apiInstance.getActiveContractByContractID(linkid, contractid);
79+
Model100InventoryLinksContractResponse33 result = apiInstance.100InventoryLinksContractByLinkidAndContractidPut(linkid, contractid, body);
9580
System.out.println(result);
9681
} catch (ApiException e) {
97-
System.err.println("Exception when calling ContractsApi#getActiveContractByContractID");
82+
System.err.println("Exception when calling ContractsApi#100InventoryLinksContractByLinkidAndContractidPut");
9883
e.printStackTrace();
9984
}
10085
```
@@ -105,52 +90,44 @@ Name | Type | Description | Notes
10590
------------- | ------------- | ------------- | -------------
10691
**linkid** | **String**| Unique identifier representing a specific link |
10792
**contractid** | **String**| Unique identifier representing a specific contract |
93+
**body** | [**Model100InventoryLinksContractRequest**](Model100InventoryLinksContractRequest.md)| | [optional]
10894

10995
### Return type
11096

111-
[**Model100InventoryLinksContractResponse**](Model100InventoryLinksContractResponse.md)
97+
[**Model100InventoryLinksContractResponse33**](Model100InventoryLinksContractResponse33.md)
11298

11399
### Authorization
114100

115-
[auth](../README.md#auth)
101+
No authorization required
116102

117103
### HTTP request headers
118104

119105
- **Content-Type**: application/json
120106
- **Accept**: application/json
121107

122-
<a name="updateActiveContractByContractID"></a>
123-
# **updateActiveContractByContractID**
124-
> Model100InventoryLinksContractResponse31 updateActiveContractByContractID(linkid, contractid, body)
108+
<a name="100InventoryLinksContractByLinkidPost"></a>
109+
# **100InventoryLinksContractByLinkidPost**
110+
> Model100InventoryLinksContractResponse38 100InventoryLinksContractByLinkidPost(linkid, body)
125111
126-
Update active Contract by ContractID
112+
Create new Contract on specified link
127113

128-
Update active Contract by ContractID
114+
Create new Contract on specified link
129115

130116
### Example
131117
```java
132118
// Import classes:
133-
//import invalidPackageName.ApiClient;
134119
//import invalidPackageName.ApiException;
135-
//import invalidPackageName.Configuration;
136-
//import invalidPackageName.auth.*;
137120
//import TelstraTPN.ContractsApi;
138121

139-
ApiClient defaultClient = Configuration.getDefaultApiClient();
140-
141-
// Configure OAuth2 access token for authorization: auth
142-
OAuth auth = (OAuth) defaultClient.getAuthentication("auth");
143-
auth.setAccessToken("YOUR ACCESS TOKEN");
144122

145123
ContractsApi apiInstance = new ContractsApi();
146124
String linkid = "linkid_example"; // String | Unique identifier representing a specific link
147-
String contractid = "contractid_example"; // String | Unique identifier representing a specific contract
148-
Model100InventoryLinksContractRequest body = new Model100InventoryLinksContractRequest(); // Model100InventoryLinksContractRequest |
125+
Model100InventoryLinksContractRequest37 body = new Model100InventoryLinksContractRequest37(); // Model100InventoryLinksContractRequest37 |
149126
try {
150-
Model100InventoryLinksContractResponse31 result = apiInstance.updateActiveContractByContractID(linkid, contractid, body);
127+
Model100InventoryLinksContractResponse38 result = apiInstance.100InventoryLinksContractByLinkidPost(linkid, body);
151128
System.out.println(result);
152129
} catch (ApiException e) {
153-
System.err.println("Exception when calling ContractsApi#updateActiveContractByContractID");
130+
System.err.println("Exception when calling ContractsApi#100InventoryLinksContractByLinkidPost");
154131
e.printStackTrace();
155132
}
156133
```
@@ -160,16 +137,15 @@ try {
160137
Name | Type | Description | Notes
161138
------------- | ------------- | ------------- | -------------
162139
**linkid** | **String**| Unique identifier representing a specific link |
163-
**contractid** | **String**| Unique identifier representing a specific contract |
164-
**body** | [**Model100InventoryLinksContractRequest**](Model100InventoryLinksContractRequest.md)| | [optional]
140+
**body** | [**Model100InventoryLinksContractRequest37**](Model100InventoryLinksContractRequest37.md)| | [optional]
165141

166142
### Return type
167143

168-
[**Model100InventoryLinksContractResponse31**](Model100InventoryLinksContractResponse31.md)
144+
[**Model100InventoryLinksContractResponse38**](Model100InventoryLinksContractResponse38.md)
169145

170146
### Authorization
171147

172-
[auth](../README.md#auth)
148+
No authorization required
173149

174150
### HTTP request headers
175151

0 commit comments

Comments
 (0)