Skip to content

Commit 28daab3

Browse files
add PUT/DELETE methods for topology tags; add assign_topology_tag
1 parent 55fc33c commit 28daab3

File tree

93 files changed

+1220
-510
lines changed

Some content is hidden

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

93 files changed

+1220
-510
lines changed

README.md

+44-39
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33
Telstra Programmable Network is a self-provisioning platform that allows its users to create on-demand connectivity services between multiple end-points and add various network functions to those services. Programmable Network enables to connectivity to a global ecosystem of networking services as well as public and private cloud services. Once you are connected to the platform on one or more POPs (points of presence), you can start creating those services based on the use case that you want to accomplish. The Programmable Network API is available to all customers who have registered to use the Programmable Network. To register, please contact your account representative.
44

55
## Overview
6+
This API client was generated by the [swagger-codegen](https://github.com/swagger-api/swagger-codegen) project. By using the [swagger-spec](https://github.com/swagger-api/swagger-spec) from a remote server, you can easily generate an API client.
67

7-
- API version: 2.1.2
8+
- API version: 2.1.3
89
- Package version: 1.0.0
10+
- Build package: io.swagger.codegen.languages.GoClientCodegen
911

1012
## Installation
1113
Put the package under your project folder and add the following in import:
@@ -19,30 +21,33 @@ All URIs are relative to *https://penapi.pacnetconnect.com*
1921

2022
Class | Method | HTTP request | Description
2123
------------ | ------------- | ------------- | -------------
22-
*AuthenticationApi* | [**CreateAnAuthenticationToken**](docs/AuthenticationApi.md#createanauthenticationtoken) | **Post** /1.0.0/auth/generatetoken | Create an authentication token
23-
*AuthenticationApi* | [**ValidateAuthenticationToken**](docs/AuthenticationApi.md#validateauthenticationtoken) | **Get** /1.0.0/auth/validatetoken | Validate authentication token
24-
*ContractsApi* | [**CreateNewContractOnSpecifiedLink**](docs/ContractsApi.md#createnewcontractonspecifiedlink) | **Post** /1.0.0/inventory/links/{linkid}/contract | Create new Contract on specified link
25-
*ContractsApi* | [**GetActiveContractByContractID**](docs/ContractsApi.md#getactivecontractbycontractid) | **Get** /1.0.0/inventory/links/{linkid}/contract/{contractid} | Get active Contract by ContractID
26-
*ContractsApi* | [**UpdateActiveContractByContractID**](docs/ContractsApi.md#updateactivecontractbycontractid) | **Put** /1.0.0/inventory/links/{linkid}/contract/{contractid} | Update active Contract by ContractID
27-
*CustomersApi* | [**GetAccountInformationDetails**](docs/CustomersApi.md#getaccountinformationdetails) | **Get** /1.0.0/account/{customeruuid} | Get account information details
28-
*CustomersApi* | [**ListUsers**](docs/CustomersApi.md#listusers) | **Get** /1.0.0/account/{customeruuid}/user | List users
29-
*DatacentresApi* | [**GetListOfAllTheDataCenters**](docs/DatacentresApi.md#getlistofallthedatacenters) | **Get** /1.0.0/inventory/datacenters | Get list of all the data centers
30-
*EndpointsApi* | [**CreatePhysicalPortEndpoint**](docs/EndpointsApi.md#createphysicalportendpoint) | **Post** /1.0.0/inventory/regularendpoint | Create Physical (Port) Endpoint
31-
*EndpointsApi* | [**CreateVNFEndpoint**](docs/EndpointsApi.md#createvnfendpoint) | **Post** /1.0.0/inventory/vnfendpoint | Create VNF Endpoint
32-
*EndpointsApi* | [**GetInformationAboutTheSpecifiedEndpoint**](docs/EndpointsApi.md#getinformationaboutthespecifiedendpoint) | **Get** /1.0.0/inventory/endpoint/{endpointuuid} | Get information about the specified endpoint
33-
*EndpointsApi* | [**GetListOfEndpointsForACustomer**](docs/EndpointsApi.md#getlistofendpointsforacustomer) | **Get** /1.0.0/inventory/endpoints/customeruuid/{customeruuid} | Get list of endpoints for a customer
34-
*LinksApi* | [**CreateLinkAndInitialContract**](docs/LinksApi.md#createlinkandinitialcontract) | **Post** /1.0.0/inventory/link | Create Link and initial Contract
35-
*LinksApi* | [**GetActiveLinks**](docs/LinksApi.md#getactivelinks) | **Get** /1.0.0/inventory/links/customer/{customeruuid} | Get active Links
36-
*LinksApi* | [**GetDetailsOfSpecifiedLink**](docs/LinksApi.md#getdetailsofspecifiedlink) | **Get** /1.0.0/inventory/links/{linkid} | Get details of specified link
37-
*LinksApi* | [**GetLinkHistory**](docs/LinksApi.md#getlinkhistory) | **Get** /1.0.0/inventory/links/history/{linkid} | Get Link history
38-
*TopologiesApi* | [**CreateANamedTopologyTag**](docs/TopologiesApi.md#createanamedtopologytag) | **Post** /ttms/1.0.0/topology_tag | Create a named topology tag
39-
*TopologiesApi* | [**GetInformationAboutTheSpecifiedTopologyTag**](docs/TopologiesApi.md#getinformationaboutthespecifiedtopologytag) | **Get** /ttms/1.0.0/topology_tag/{topotaguuid}/ | Get information about the specified topology tag
40-
*TopologiesApi* | [**ListAllTopologyTags**](docs/TopologiesApi.md#listalltopologytags) | **Get** /ttms/1.0.0/topology_tag | List all topology tags
41-
*TopologiesApi* | [**ListObjectsForTopology**](docs/TopologiesApi.md#listobjectsfortopology) | **Get** /ttms/1.0.0/topology_tag/{topotaguuid}/objects/ | List objects for Topology
42-
*VnfsApi* | [**ListImagesInTheMarketplace**](docs/VnfsApi.md#listimagesinthemarketplace) | **Get** /1.0.0/marketplace/image | List images in the Marketplace
43-
*VportsApi* | [**CreateVNFVPort**](docs/VportsApi.md#createvnfvport) | **Post** /1.0.0/inventory/vnf/vport | Create VNF VPort
44-
*VportsApi* | [**CreateVPortForPhysicalEndpoint**](docs/VportsApi.md#createvportforphysicalendpoint) | **Post** /1.0.0/inventory/regularvport | Create VPort for physical endpoint
45-
*VportsApi* | [**GetInformationAboutTheSpecifiedVPort**](docs/VportsApi.md#getinformationaboutthespecifiedvport) | **Get** /1.0.0/inventory/vport/{vportuuid} | Get information about the specified VPort
24+
*AuthenticationApi* | [**100AuthGeneratetokenPost**](docs/AuthenticationApi.md#100authgeneratetokenpost) | **Post** /1.0.0/auth/generatetoken | Create an authentication token
25+
*AuthenticationApi* | [**100AuthValidatetokenGet**](docs/AuthenticationApi.md#100authvalidatetokenget) | **Get** /1.0.0/auth/validatetoken | Validate authentication token
26+
*ContractsApi* | [**100InventoryLinksContractByLinkidAndContractidGet**](docs/ContractsApi.md#100inventorylinkscontractbylinkidandcontractidget) | **Get** /1.0.0/inventory/links/{linkid}/contract/{contractid} | Get active Contract by ContractID
27+
*ContractsApi* | [**100InventoryLinksContractByLinkidAndContractidPut**](docs/ContractsApi.md#100inventorylinkscontractbylinkidandcontractidput) | **Put** /1.0.0/inventory/links/{linkid}/contract/{contractid} | Update active Contract by ContractID
28+
*ContractsApi* | [**100InventoryLinksContractByLinkidPost**](docs/ContractsApi.md#100inventorylinkscontractbylinkidpost) | **Post** /1.0.0/inventory/links/{linkid}/contract | Create new Contract on specified link
29+
*CustomersApi* | [**100AccountByCustomeruuidGet**](docs/CustomersApi.md#100accountbycustomeruuidget) | **Get** /1.0.0/account/{customeruuid} | Get account information details
30+
*CustomersApi* | [**100AccountUserByCustomeruuidGet**](docs/CustomersApi.md#100accountuserbycustomeruuidget) | **Get** /1.0.0/account/{customeruuid}/user | List users
31+
*DatacentresApi* | [**100InventoryDatacentersGet**](docs/DatacentresApi.md#100inventorydatacentersget) | **Get** /1.0.0/inventory/datacenters | Get list of all the data centers
32+
*EndpointsApi* | [**100InventoryEndpointByEndpointuuidGet**](docs/EndpointsApi.md#100inventoryendpointbyendpointuuidget) | **Get** /1.0.0/inventory/endpoint/{endpointuuid} | Get information about the specified endpoint
33+
*EndpointsApi* | [**100InventoryEndpointsCustomeruuidByCustomeruuidGet**](docs/EndpointsApi.md#100inventoryendpointscustomeruuidbycustomeruuidget) | **Get** /1.0.0/inventory/endpoints/customeruuid/{customeruuid} | Get list of endpoints for a customer
34+
*EndpointsApi* | [**100InventoryRegularendpointPost**](docs/EndpointsApi.md#100inventoryregularendpointpost) | **Post** /1.0.0/inventory/regularendpoint | Create Physical (Port) Endpoint
35+
*EndpointsApi* | [**100InventoryVnfendpointPost**](docs/EndpointsApi.md#100inventoryvnfendpointpost) | **Post** /1.0.0/inventory/vnfendpoint | Create VNF Endpoint
36+
*EndpointsApi* | [**Eis100EndpointsAssignTopologyTagByEndpointuuidPost**](docs/EndpointsApi.md#eis100endpointsassigntopologytagbyendpointuuidpost) | **Post** /eis/1.0.0/endpoints/{endpointuuid}/assign_topology_tag | Assign a Topology Tag to an Endpoint
37+
*LinksApi* | [**100InventoryLinkPost**](docs/LinksApi.md#100inventorylinkpost) | **Post** /1.0.0/inventory/link | Create Link and initial Contract
38+
*LinksApi* | [**100InventoryLinksByLinkidGet**](docs/LinksApi.md#100inventorylinksbylinkidget) | **Get** /1.0.0/inventory/links/{linkid} | Get details of specified link
39+
*LinksApi* | [**100InventoryLinksCustomerByCustomeruuidGet**](docs/LinksApi.md#100inventorylinkscustomerbycustomeruuidget) | **Get** /1.0.0/inventory/links/customer/{customeruuid} | Get active Links
40+
*LinksApi* | [**100InventoryLinksHistoryByLinkidGet**](docs/LinksApi.md#100inventorylinkshistorybylinkidget) | **Get** /1.0.0/inventory/links/history/{linkid} | Get Link history
41+
*TopologiesApi* | [**Ttms100TopologyTagByTopotaguuidDelete**](docs/TopologiesApi.md#ttms100topologytagbytopotaguuiddelete) | **Delete** /ttms/1.0.0/topology_tag/{topotaguuid}/ | Delete a topology tag
42+
*TopologiesApi* | [**Ttms100TopologyTagByTopotaguuidGet**](docs/TopologiesApi.md#ttms100topologytagbytopotaguuidget) | **Get** /ttms/1.0.0/topology_tag/{topotaguuid}/ | Get information about the specified topology tag
43+
*TopologiesApi* | [**Ttms100TopologyTagByTopotaguuidPut**](docs/TopologiesApi.md#ttms100topologytagbytopotaguuidput) | **Put** /ttms/1.0.0/topology_tag/{topotaguuid}/ | Update a topology tag's name and/or description
44+
*TopologiesApi* | [**Ttms100TopologyTagGet**](docs/TopologiesApi.md#ttms100topologytagget) | **Get** /ttms/1.0.0/topology_tag | List all topology tags
45+
*TopologiesApi* | [**Ttms100TopologyTagObjectsByTopotaguuidGet**](docs/TopologiesApi.md#ttms100topologytagobjectsbytopotaguuidget) | **Get** /ttms/1.0.0/topology_tag/{topotaguuid}/objects/ | List objects for Topology
46+
*TopologiesApi* | [**Ttms100TopologyTagPost**](docs/TopologiesApi.md#ttms100topologytagpost) | **Post** /ttms/1.0.0/topology_tag | Create a named topology tag
47+
*VnfsApi* | [**100MarketplaceImageGet**](docs/VnfsApi.md#100marketplaceimageget) | **Get** /1.0.0/marketplace/image | List images in the Marketplace
48+
*VportsApi* | [**100InventoryRegularvportPost**](docs/VportsApi.md#100inventoryregularvportpost) | **Post** /1.0.0/inventory/regularvport | Create VPort for physical endpoint
49+
*VportsApi* | [**100InventoryVnfVportPost**](docs/VportsApi.md#100inventoryvnfvportpost) | **Post** /1.0.0/inventory/vnf/vport | Create VNF VPort
50+
*VportsApi* | [**100InventoryVportByVportuuidGet**](docs/VportsApi.md#100inventoryvportbyvportuuidget) | **Get** /1.0.0/inventory/vport/{vportuuid} | Get information about the specified VPort
4651

4752

4853
## Documentation For Models
@@ -51,14 +56,15 @@ Class | Method | HTTP request | Description
5156
- [Classification](docs/Classification.md)
5257
- [Contract](docs/Contract.md)
5358
- [Datacenter](docs/Datacenter.md)
59+
- [Eis100EndpointsAssignTopologyTagRequest](docs/Eis100EndpointsAssignTopologyTagRequest.md)
5460
- [Endpoint](docs/Endpoint.md)
5561
- [EndpointPort](docs/EndpointPort.md)
5662
- [Endpointlist](docs/Endpointlist.md)
57-
- [Error70](docs/Error70.md)
63+
- [Error74](docs/Error74.md)
5864
- [Flavor](docs/Flavor.md)
5965
- [GlanceImage](docs/GlanceImage.md)
6066
- [Link](docs/Link.md)
61-
- [Link62](docs/Link62.md)
67+
- [Link66](docs/Link66.md)
6268
- [Meta](docs/Meta.md)
6369
- [Model100AccountResponse](docs/Model100AccountResponse.md)
6470
- [Model100AuthGeneratetokenResponse](docs/Model100AuthGeneratetokenResponse.md)
@@ -70,10 +76,10 @@ Class | Method | HTTP request | Description
7076
- [Model100InventoryLinkRequest](docs/Model100InventoryLinkRequest.md)
7177
- [Model100InventoryLinkResponse](docs/Model100InventoryLinkResponse.md)
7278
- [Model100InventoryLinksContractRequest](docs/Model100InventoryLinksContractRequest.md)
73-
- [Model100InventoryLinksContractRequest35](docs/Model100InventoryLinksContractRequest35.md)
79+
- [Model100InventoryLinksContractRequest37](docs/Model100InventoryLinksContractRequest37.md)
7480
- [Model100InventoryLinksContractResponse](docs/Model100InventoryLinksContractResponse.md)
75-
- [Model100InventoryLinksContractResponse31](docs/Model100InventoryLinksContractResponse31.md)
76-
- [Model100InventoryLinksContractResponse36](docs/Model100InventoryLinksContractResponse36.md)
81+
- [Model100InventoryLinksContractResponse33](docs/Model100InventoryLinksContractResponse33.md)
82+
- [Model100InventoryLinksContractResponse38](docs/Model100InventoryLinksContractResponse38.md)
7783
- [Model100InventoryLinksHistoryResponse](docs/Model100InventoryLinksHistoryResponse.md)
7884
- [Model100InventoryLinksResponse](docs/Model100InventoryLinksResponse.md)
7985
- [Model100InventoryRegularendpointRequest](docs/Model100InventoryRegularendpointRequest.md)
@@ -86,11 +92,11 @@ Class | Method | HTTP request | Description
8692
- [Model100InventoryVnfendpointResponse](docs/Model100InventoryVnfendpointResponse.md)
8793
- [Model100MarketplaceImageResponse](docs/Model100MarketplaceImageResponse.md)
8894
- [ModelError](docs/ModelError.md)
89-
- [Object50](docs/Object50.md)
95+
- [Object52](docs/Object52.md)
9096
- [Params](docs/Params.md)
91-
- [Params29](docs/Params29.md)
92-
- [Params32](docs/Params32.md)
93-
- [Params37](docs/Params37.md)
97+
- [Params31](docs/Params31.md)
98+
- [Params34](docs/Params34.md)
99+
- [Params39](docs/Params39.md)
94100
- [Product](docs/Product.md)
95101
- [Role](docs/Role.md)
96102
- [SuccessFragment](docs/SuccessFragment.md)
@@ -106,11 +112,10 @@ Class | Method | HTTP request | Description
106112

107113
## Documentation For Authorization
108114

115+
All endpoints do not require authorization.
116+
117+
118+
## Author
109119

110-
## auth
111120

112-
- **Type**: OAuth
113-
- **Flow**: password
114-
- **Authorization URL**:
115-
- **Scopes**: N/A
116121

api_client.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Telstra Programmable Network is a self-provisioning platform that allows its users to create on-demand connectivity services between multiple end-points and add various network functions to those services. Programmable Network enables to connectivity to a global ecosystem of networking services as well as public and private cloud services. Once you are connected to the platform on one or more POPs (points of presence), you can start creating those services based on the use case that you want to accomplish. The Programmable Network API is available to all customers who have registered to use the Programmable Network. To register, please contact your account representative.
55
*
6-
* OpenAPI spec version: 2.1.2
6+
* OpenAPI spec version: 2.1.3
77
*
88
* Generated by: https://github.com/swagger-api/swagger-codegen.git
99
*/

api_response.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Telstra Programmable Network is a self-provisioning platform that allows its users to create on-demand connectivity services between multiple end-points and add various network functions to those services. Programmable Network enables to connectivity to a global ecosystem of networking services as well as public and private cloud services. Once you are connected to the platform on one or more POPs (points of presence), you can start creating those services based on the use case that you want to accomplish. The Programmable Network API is available to all customers who have registered to use the Programmable Network. To register, please contact your account representative.
55
*
6-
* OpenAPI spec version: 2.1.2
6+
* OpenAPI spec version: 2.1.3
77
*
88
* Generated by: https://github.com/swagger-api/swagger-codegen.git
99
*/

authentication_api.go

+5-15
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Telstra Programmable Network is a self-provisioning platform that allows its users to create on-demand connectivity services between multiple end-points and add various network functions to those services. Programmable Network enables to connectivity to a global ecosystem of networking services as well as public and private cloud services. Once you are connected to the platform on one or more POPs (points of presence), you can start creating those services based on the use case that you want to accomplish. The Programmable Network API is available to all customers who have registered to use the Programmable Network. To register, please contact your account representative.
55
*
6-
* OpenAPI spec version: 2.1.2
6+
* OpenAPI spec version: 2.1.3
77
*
88
* Generated by: https://github.com/swagger-api/swagger-codegen.git
99
*/
@@ -45,7 +45,7 @@ func NewAuthenticationApiWithBasePath(basePath string) *AuthenticationApi {
4545
* @param password
4646
* @return *Model100AuthGeneratetokenResponse
4747
*/
48-
func (a AuthenticationApi) CreateAnAuthenticationToken(grantType string, username string, password string) (*Model100AuthGeneratetokenResponse, *APIResponse, error) {
48+
func (a AuthenticationApi) 100AuthGeneratetokenPost(grantType string, username string, password string) (*Model100AuthGeneratetokenResponse, *APIResponse, error) {
4949

5050
var localVarHttpMethod = strings.ToUpper("Post")
5151
// create path and map variables
@@ -57,11 +57,6 @@ func (a AuthenticationApi) CreateAnAuthenticationToken(grantType string, usernam
5757
var localVarPostBody interface{}
5858
var localVarFileName string
5959
var localVarFileBytes []byte
60-
// authentication '(auth)' required
61-
// oauth required
62-
if a.Configuration.AccessToken != ""{
63-
localVarHeaderParams["Authorization"] = "Bearer " + a.Configuration.AccessToken
64-
}
6560
// add default headers if any
6661
for key := range a.Configuration.DefaultHeader {
6762
localVarHeaderParams[key] = a.Configuration.DefaultHeader[key]
@@ -93,7 +88,7 @@ func (a AuthenticationApi) CreateAnAuthenticationToken(grantType string, usernam
9388

9489
var localVarURL, _ = url.Parse(localVarPath)
9590
localVarURL.RawQuery = localVarQueryParams.Encode()
96-
var localVarAPIResponse = &APIResponse{Operation: "CreateAnAuthenticationToken", Method: localVarHttpMethod, RequestURL: localVarURL.String()}
91+
var localVarAPIResponse = &APIResponse{Operation: "100AuthGeneratetokenPost", Method: localVarHttpMethod, RequestURL: localVarURL.String()}
9792
if localVarHttpResponse != nil {
9893
localVarAPIResponse.Response = localVarHttpResponse.RawResponse
9994
localVarAPIResponse.Payload = localVarHttpResponse.Body()
@@ -112,7 +107,7 @@ func (a AuthenticationApi) CreateAnAuthenticationToken(grantType string, usernam
112107
*
113108
* @return *Model100AuthValidatetokenResponse
114109
*/
115-
func (a AuthenticationApi) ValidateAuthenticationToken() (*Model100AuthValidatetokenResponse, *APIResponse, error) {
110+
func (a AuthenticationApi) 100AuthValidatetokenGet() (*Model100AuthValidatetokenResponse, *APIResponse, error) {
116111

117112
var localVarHttpMethod = strings.ToUpper("Get")
118113
// create path and map variables
@@ -124,11 +119,6 @@ func (a AuthenticationApi) ValidateAuthenticationToken() (*Model100AuthValidatet
124119
var localVarPostBody interface{}
125120
var localVarFileName string
126121
var localVarFileBytes []byte
127-
// authentication '(auth)' required
128-
// oauth required
129-
if a.Configuration.AccessToken != ""{
130-
localVarHeaderParams["Authorization"] = "Bearer " + a.Configuration.AccessToken
131-
}
132122
// add default headers if any
133123
for key := range a.Configuration.DefaultHeader {
134124
localVarHeaderParams[key] = a.Configuration.DefaultHeader[key]
@@ -157,7 +147,7 @@ func (a AuthenticationApi) ValidateAuthenticationToken() (*Model100AuthValidatet
157147

158148
var localVarURL, _ = url.Parse(localVarPath)
159149
localVarURL.RawQuery = localVarQueryParams.Encode()
160-
var localVarAPIResponse = &APIResponse{Operation: "ValidateAuthenticationToken", Method: localVarHttpMethod, RequestURL: localVarURL.String()}
150+
var localVarAPIResponse = &APIResponse{Operation: "100AuthValidatetokenGet", Method: localVarHttpMethod, RequestURL: localVarURL.String()}
161151
if localVarHttpResponse != nil {
162152
localVarAPIResponse.Response = localVarHttpResponse.RawResponse
163153
localVarAPIResponse.Payload = localVarHttpResponse.Body()

0 commit comments

Comments
 (0)