Skip to content

Commit f2f6067

Browse files
SDK update
1 parent 5ea7f53 commit f2f6067

File tree

107 files changed

+6210
-1305
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

+6210
-1305
lines changed

Diff for: README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# Java API client for Telstra Programmable Network
1+
[![Build Status](https://travis-ci.org/telstra/Programmable-Network-SDK-java.svg?branch=master)](https://travis-ci.org/telstra/Programmable-Network-SDK-java)
2+
3+
# Telstra Programmable Network
24

35
## Requirements
46

Diff for: docs/AccountResponse.md

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
2+
# AccountResponse
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**phone** | **String** | | [optional]
8+
**city** | **String** | | [optional]
9+
**fax** | **String** | | [optional]
10+
**country** | **String** | | [optional]
11+
**address** | **String** | | [optional]
12+
**state** | **String** | | [optional]
13+
**website** | **String** | | [optional]
14+
**companyuuid** | **String** | | [optional]
15+
**companyname** | **String** | | [optional]
16+
**postalcode** | **String** | | [optional]
17+
**customertype** | **String** | | [optional]
18+
**status** | **String** | | [optional]
19+
**customeraccountid** | **String** | | [optional]
20+
21+
22+

Diff for: docs/AuthGeneratetokenResponse.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
# AuthGeneratetokenResponse
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**tokenType** | **String** | | [optional]
8+
**expiresIn** | **Integer** | | [optional]
9+
**refreshToken** | **String** | | [optional]
10+
**accessToken** | **String** | | [optional]
11+
12+
13+

Diff for: docs/AuthValidatetokenResponse.md

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
2+
# AuthValidatetokenResponse
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**companyName** | **String** | | [optional]
8+
**userid** | **String** | | [optional]
9+
**internalid** | **Integer** | | [optional]
10+
**customerid** | **String** | | [optional]
11+
**customerAccount** | **String** | | [optional]
12+
**billings** | [**List<Billing>**](Billing.md) | | [optional]
13+
**roles** | [**List<Role>**](Role.md) | | [optional]
14+
15+
16+

Diff for: docs/AuthenticationApi.md

+14-14
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-
[**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
7+
[**authGeneratetokenPost**](AuthenticationApi.md#authGeneratetokenPost) | **POST** /1.0.0/auth/generatetoken | Create an authentication token
8+
[**authValidatetokenGet**](AuthenticationApi.md#authValidatetokenGet) | **GET** /1.0.0/auth/validatetoken | Validate authentication token
99

1010

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

@@ -28,10 +28,10 @@ String grantType = "grantType_example"; // String |
2828
String username = "username_example"; // String |
2929
String password = "password_example"; // String |
3030
try {
31-
Model100AuthGeneratetokenResponse result = apiInstance.100AuthGeneratetokenPost(grantType, username, password);
31+
AuthGeneratetokenResponse result = apiInstance.authGeneratetokenPost(grantType, username, password);
3232
System.out.println(result);
3333
} catch (ApiException e) {
34-
System.err.println("Exception when calling AuthenticationApi#100AuthGeneratetokenPost");
34+
System.err.println("Exception when calling AuthenticationApi#authGeneratetokenPost");
3535
e.printStackTrace();
3636
}
3737
```
@@ -46,7 +46,7 @@ Name | Type | Description | Notes
4646

4747
### Return type
4848

49-
[**Model100AuthGeneratetokenResponse**](Model100AuthGeneratetokenResponse.md)
49+
[**AuthGeneratetokenResponse**](AuthGeneratetokenResponse.md)
5050

5151
### Authorization
5252

@@ -57,9 +57,9 @@ No authorization required
5757
- **Content-Type**: application/x-www-form-urlencoded
5858
- **Accept**: application/json
5959

60-
<a name="100AuthValidatetokenGet"></a>
61-
# **100AuthValidatetokenGet**
62-
> Model100AuthValidatetokenResponse 100AuthValidatetokenGet()
60+
<a name="authValidatetokenGet"></a>
61+
# **authValidatetokenGet**
62+
> AuthValidatetokenResponse authValidatetokenGet()
6363
6464
Validate authentication token
6565

@@ -74,10 +74,10 @@ Validate the authentication token and get information about the user (roles, per
7474

7575
AuthenticationApi apiInstance = new AuthenticationApi();
7676
try {
77-
Model100AuthValidatetokenResponse result = apiInstance.100AuthValidatetokenGet();
77+
AuthValidatetokenResponse result = apiInstance.authValidatetokenGet();
7878
System.out.println(result);
7979
} catch (ApiException e) {
80-
System.err.println("Exception when calling AuthenticationApi#100AuthValidatetokenGet");
80+
System.err.println("Exception when calling AuthenticationApi#authValidatetokenGet");
8181
e.printStackTrace();
8282
}
8383
```
@@ -87,7 +87,7 @@ This endpoint does not need any parameter.
8787

8888
### Return type
8989

90-
[**Model100AuthValidatetokenResponse**](Model100AuthValidatetokenResponse.md)
90+
[**AuthValidatetokenResponse**](AuthValidatetokenResponse.md)
9191

9292
### Authorization
9393

Diff for: docs/ContractsApi.md

+52-28
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ All URIs are relative to *https://penapi.pacnetconnect.com*
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------
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
7+
[**inventoryLinksContractByLinkidAndContractidGet**](ContractsApi.md#inventoryLinksContractByLinkidAndContractidGet) | **GET** /1.0.0/inventory/links/{linkid}/contract/{contractid} | Get active Contract by ContractID
8+
[**inventoryLinksContractByLinkidAndContractidPut**](ContractsApi.md#inventoryLinksContractByLinkidAndContractidPut) | **PUT** /1.0.0/inventory/links/{linkid}/contract/{contractid} | Update active Contract by ContractID
9+
[**inventoryLinksContractByLinkidPost**](ContractsApi.md#inventoryLinksContractByLinkidPost) | **POST** /1.0.0/inventory/links/{linkid}/contract | Create new Contract on specified link
1010

1111

12-
<a name="100InventoryLinksContractByLinkidAndContractidGet"></a>
13-
# **100InventoryLinksContractByLinkidAndContractidGet**
14-
> Model100InventoryLinksContractResponse 100InventoryLinksContractByLinkidAndContractidGet(linkid, contractid)
12+
<a name="inventoryLinksContractByLinkidAndContractidGet"></a>
13+
# **inventoryLinksContractByLinkidAndContractidGet**
14+
> InventoryLinksContractResponse inventoryLinksContractByLinkidAndContractidGet(linkid, contractid)
1515
1616
Get active Contract by ContractID
1717

@@ -20,18 +20,26 @@ Get active Contract by ContractID
2020
### Example
2121
```java
2222
// Import classes:
23+
//import invalidPackageName.ApiClient;
2324
//import invalidPackageName.ApiException;
25+
//import invalidPackageName.Configuration;
26+
//import invalidPackageName.auth.*;
2427
//import TelstraTPN.ContractsApi;
2528

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");
2634

2735
ContractsApi apiInstance = new ContractsApi();
2836
String linkid = "linkid_example"; // String | Unique identifier representing a specific link
2937
String contractid = "contractid_example"; // String | Unique identifier representing a specific contract
3038
try {
31-
Model100InventoryLinksContractResponse result = apiInstance.100InventoryLinksContractByLinkidAndContractidGet(linkid, contractid);
39+
InventoryLinksContractResponse result = apiInstance.inventoryLinksContractByLinkidAndContractidGet(linkid, contractid);
3240
System.out.println(result);
3341
} catch (ApiException e) {
34-
System.err.println("Exception when calling ContractsApi#100InventoryLinksContractByLinkidAndContractidGet");
42+
System.err.println("Exception when calling ContractsApi#inventoryLinksContractByLinkidAndContractidGet");
3543
e.printStackTrace();
3644
}
3745
```
@@ -45,20 +53,20 @@ Name | Type | Description | Notes
4553

4654
### Return type
4755

48-
[**Model100InventoryLinksContractResponse**](Model100InventoryLinksContractResponse.md)
56+
[**InventoryLinksContractResponse**](InventoryLinksContractResponse.md)
4957

5058
### Authorization
5159

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

5462
### HTTP request headers
5563

5664
- **Content-Type**: application/json
5765
- **Accept**: application/json
5866

59-
<a name="100InventoryLinksContractByLinkidAndContractidPut"></a>
60-
# **100InventoryLinksContractByLinkidAndContractidPut**
61-
> Model100InventoryLinksContractResponse33 100InventoryLinksContractByLinkidAndContractidPut(linkid, contractid, body)
67+
<a name="inventoryLinksContractByLinkidAndContractidPut"></a>
68+
# **inventoryLinksContractByLinkidAndContractidPut**
69+
> InventoryLinksContractResponse33 inventoryLinksContractByLinkidAndContractidPut(linkid, contractid, body)
6270
6371
Update active Contract by ContractID
6472

@@ -67,19 +75,27 @@ Update active Contract by ContractID
6775
### Example
6876
```java
6977
// Import classes:
78+
//import invalidPackageName.ApiClient;
7079
//import invalidPackageName.ApiException;
80+
//import invalidPackageName.Configuration;
81+
//import invalidPackageName.auth.*;
7182
//import TelstraTPN.ContractsApi;
7283

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");
7389

7490
ContractsApi apiInstance = new ContractsApi();
7591
String linkid = "linkid_example"; // String | Unique identifier representing a specific link
7692
String contractid = "contractid_example"; // String | Unique identifier representing a specific contract
77-
Model100InventoryLinksContractRequest body = new Model100InventoryLinksContractRequest(); // Model100InventoryLinksContractRequest |
93+
InventoryLinksContractRequest body = new InventoryLinksContractRequest(); // InventoryLinksContractRequest |
7894
try {
79-
Model100InventoryLinksContractResponse33 result = apiInstance.100InventoryLinksContractByLinkidAndContractidPut(linkid, contractid, body);
95+
InventoryLinksContractResponse33 result = apiInstance.inventoryLinksContractByLinkidAndContractidPut(linkid, contractid, body);
8096
System.out.println(result);
8197
} catch (ApiException e) {
82-
System.err.println("Exception when calling ContractsApi#100InventoryLinksContractByLinkidAndContractidPut");
98+
System.err.println("Exception when calling ContractsApi#inventoryLinksContractByLinkidAndContractidPut");
8399
e.printStackTrace();
84100
}
85101
```
@@ -90,24 +106,24 @@ Name | Type | Description | Notes
90106
------------- | ------------- | ------------- | -------------
91107
**linkid** | **String**| Unique identifier representing a specific link |
92108
**contractid** | **String**| Unique identifier representing a specific contract |
93-
**body** | [**Model100InventoryLinksContractRequest**](Model100InventoryLinksContractRequest.md)| | [optional]
109+
**body** | [**InventoryLinksContractRequest**](InventoryLinksContractRequest.md)| | [optional]
94110

95111
### Return type
96112

97-
[**Model100InventoryLinksContractResponse33**](Model100InventoryLinksContractResponse33.md)
113+
[**InventoryLinksContractResponse33**](InventoryLinksContractResponse33.md)
98114

99115
### Authorization
100116

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

103119
### HTTP request headers
104120

105121
- **Content-Type**: application/json
106122
- **Accept**: application/json
107123

108-
<a name="100InventoryLinksContractByLinkidPost"></a>
109-
# **100InventoryLinksContractByLinkidPost**
110-
> Model100InventoryLinksContractResponse38 100InventoryLinksContractByLinkidPost(linkid, body)
124+
<a name="inventoryLinksContractByLinkidPost"></a>
125+
# **inventoryLinksContractByLinkidPost**
126+
> List&lt;InventoryLinksContractResponse38&gt; inventoryLinksContractByLinkidPost(linkid, body)
111127
112128
Create new Contract on specified link
113129

@@ -116,18 +132,26 @@ Create new Contract on specified link
116132
### Example
117133
```java
118134
// Import classes:
135+
//import invalidPackageName.ApiClient;
119136
//import invalidPackageName.ApiException;
137+
//import invalidPackageName.Configuration;
138+
//import invalidPackageName.auth.*;
120139
//import TelstraTPN.ContractsApi;
121140

141+
ApiClient defaultClient = Configuration.getDefaultApiClient();
142+
143+
// Configure OAuth2 access token for authorization: auth
144+
OAuth auth = (OAuth) defaultClient.getAuthentication("auth");
145+
auth.setAccessToken("YOUR ACCESS TOKEN");
122146

123147
ContractsApi apiInstance = new ContractsApi();
124148
String linkid = "linkid_example"; // String | Unique identifier representing a specific link
125-
Model100InventoryLinksContractRequest37 body = new Model100InventoryLinksContractRequest37(); // Model100InventoryLinksContractRequest37 |
149+
InventoryLinksContractRequest37 body = new InventoryLinksContractRequest37(); // InventoryLinksContractRequest37 |
126150
try {
127-
Model100InventoryLinksContractResponse38 result = apiInstance.100InventoryLinksContractByLinkidPost(linkid, body);
151+
List<InventoryLinksContractResponse38> result = apiInstance.inventoryLinksContractByLinkidPost(linkid, body);
128152
System.out.println(result);
129153
} catch (ApiException e) {
130-
System.err.println("Exception when calling ContractsApi#100InventoryLinksContractByLinkidPost");
154+
System.err.println("Exception when calling ContractsApi#inventoryLinksContractByLinkidPost");
131155
e.printStackTrace();
132156
}
133157
```
@@ -137,15 +161,15 @@ try {
137161
Name | Type | Description | Notes
138162
------------- | ------------- | ------------- | -------------
139163
**linkid** | **String**| Unique identifier representing a specific link |
140-
**body** | [**Model100InventoryLinksContractRequest37**](Model100InventoryLinksContractRequest37.md)| | [optional]
164+
**body** | [**InventoryLinksContractRequest37**](InventoryLinksContractRequest37.md)| | [optional]
141165

142166
### Return type
143167

144-
[**Model100InventoryLinksContractResponse38**](Model100InventoryLinksContractResponse38.md)
168+
[**List&lt;InventoryLinksContractResponse38&gt;**](InventoryLinksContractResponse38.md)
145169

146170
### Authorization
147171

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

150174
### HTTP request headers
151175

0 commit comments

Comments
 (0)