-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from vngcloud/iam-vserver
Iam vserver
- Loading branch information
Showing
115 changed files
with
10,904 additions
and
963 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package utils | ||
|
||
import ( | ||
"encoding/json" | ||
"strings" | ||
"time" | ||
) | ||
|
||
type JsonParsingDate time.Time | ||
|
||
func (j *JsonParsingDate) UnmarshalJSON(b []byte) error { | ||
s := strings.Trim(string(b), "\"") | ||
if s == "" || s == "null" { | ||
return nil | ||
} | ||
t, err := time.Parse("2006-01-02T15:04:05", s) | ||
if err != nil { | ||
return err | ||
} | ||
*j = JsonParsingDate(t) | ||
return nil | ||
|
||
} | ||
|
||
func (j JsonParsingDate) MarshalJSON() ([]byte, error) { | ||
return json.Marshal(time.Time(j)) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
# Go API client for swagger | ||
|
||
Api Documentation | ||
|
||
## Overview | ||
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. | ||
|
||
- API version: 1.0 | ||
- Package version: 1.0.0 | ||
- Build package: io.swagger.codegen.languages.GoClientCodegen | ||
|
||
## Installation | ||
Put the package under your project folder and add the following in import: | ||
```golang | ||
import "./swagger" | ||
``` | ||
|
||
## Documentation for API Endpoints | ||
|
||
All URIs are relative to *https://localhost:8089* | ||
|
||
Class | Method | HTTP request | Description | ||
------------ | ------------- | ------------- | ------------- | ||
*LoadBalancerListenerRestControllerV2Api* | [**CreateListenerUsingPOST**](docs/LoadBalancerListenerRestControllerV2Api.md#createlistenerusingpost) | **Post** /v2/{projectId}/loadBalancers/{loadBalancerId}/listeners | Create a listener | ||
*LoadBalancerListenerRestControllerV2Api* | [**CreatePolicyUsingPOST**](docs/LoadBalancerListenerRestControllerV2Api.md#createpolicyusingpost) | **Post** /v2/{projectId}/loadBalancers/{loadBalancerId}/listeners/{listenerId}/l7policies | Create a l7 policy | ||
*LoadBalancerListenerRestControllerV2Api* | [**DeleteListenerUsingDELETE**](docs/LoadBalancerListenerRestControllerV2Api.md#deletelistenerusingdelete) | **Delete** /v2/{projectId}/loadBalancers/{loadBalancerId}/listeners/{listenerId} | Delete a listener | ||
*LoadBalancerListenerRestControllerV2Api* | [**DeletePolicyUsingDELETE**](docs/LoadBalancerListenerRestControllerV2Api.md#deletepolicyusingdelete) | **Delete** /v2/{projectId}/loadBalancers/{loadBalancerId}/listeners/{listenerId}/l7policies/{l7PolicyId} | Delete a policy | ||
*LoadBalancerListenerRestControllerV2Api* | [**GetListL7PoliciesUsingGET**](docs/LoadBalancerListenerRestControllerV2Api.md#getlistl7policiesusingget) | **Get** /v2/{projectId}/loadBalancers/{loadBalancerId}/listeners/{listenerId}/l7policies | Get list policies of a listener | ||
*LoadBalancerListenerRestControllerV2Api* | [**GetListListenersByLoadBalancerUsingGET**](docs/LoadBalancerListenerRestControllerV2Api.md#getlistlistenersbyloadbalancerusingget) | **Get** /v2/{projectId}/loadBalancers/{loadBalancerId}/listeners | Get list of listeners of a Load Balancer | ||
*LoadBalancerListenerRestControllerV2Api* | [**GetListenersUsingGET**](docs/LoadBalancerListenerRestControllerV2Api.md#getlistenersusingget) | **Get** /v2/{projectId}/loadBalancers/{loadBalancerId}/listeners/{listenerId} | Get a specific listener | ||
*LoadBalancerListenerRestControllerV2Api* | [**ReorderPoliciesUsingPUT**](docs/LoadBalancerListenerRestControllerV2Api.md#reorderpoliciesusingput) | **Put** /v2/{projectId}/loadBalancers/{loadBalancerId}/listeners/{listenerId}/reorderL7Policies | Reorder the L7 policies | ||
*LoadBalancerListenerRestControllerV2Api* | [**UpdateL7PolicyUsingPUT**](docs/LoadBalancerListenerRestControllerV2Api.md#updatel7policyusingput) | **Put** /v2/{projectId}/loadBalancers/{loadBalancerId}/listeners/{listenerId}/l7policies/{policyId} | Update a policy | ||
*LoadBalancerListenerRestControllerV2Api* | [**UpdateListenerUsingPUT**](docs/LoadBalancerListenerRestControllerV2Api.md#updatelistenerusingput) | **Put** /v2/{projectId}/loadBalancers/{loadBalancerId}/listeners/{listenerId} | Update a listener | ||
*LoadBalancerPoolRestControllerV2Api* | [**CreatePoolUsingPOST**](docs/LoadBalancerPoolRestControllerV2Api.md#createpoolusingpost) | **Post** /v2/{projectId}/loadBalancers/{loadBalancerId}/pools | Create a new pool | ||
*LoadBalancerPoolRestControllerV2Api* | [**DeletePoolUsingDELETE**](docs/LoadBalancerPoolRestControllerV2Api.md#deletepoolusingdelete) | **Delete** /v2/{projectId}/loadBalancers/{loadBalancerId}/pools/{poolId} | Delete a pool | ||
*LoadBalancerPoolRestControllerV2Api* | [**GetHealthMonitorFromPoolUsingGET**](docs/LoadBalancerPoolRestControllerV2Api.md#gethealthmonitorfrompoolusingget) | **Get** /v2/{projectId}/loadBalancers/{loadBalancerId}/pools/{poolId}/healthMonitor | Get the health monitor associated with a specific pool | ||
*LoadBalancerPoolRestControllerV2Api* | [**GetListPoolsUsingGET**](docs/LoadBalancerPoolRestControllerV2Api.md#getlistpoolsusingget) | **Get** /v2/{projectId}/loadBalancers/{loadBalancerId}/pools | Get list of pools of a load balancer | ||
*LoadBalancerPoolRestControllerV2Api* | [**GetMembersFromPoolUsingGET**](docs/LoadBalancerPoolRestControllerV2Api.md#getmembersfrompoolusingget) | **Get** /v2/{projectId}/loadBalancers/{loadBalancerId}/pools/{poolId}/members | Get members from a pool | ||
*LoadBalancerPoolRestControllerV2Api* | [**GetPoolUsingGET**](docs/LoadBalancerPoolRestControllerV2Api.md#getpoolusingget) | **Get** /v2/{projectId}/loadBalancers/{loadBalancerId}/pools/{poolId} | Get a specific pool | ||
*LoadBalancerPoolRestControllerV2Api* | [**UpdateMembersUsingPUT**](docs/LoadBalancerPoolRestControllerV2Api.md#updatemembersusingput) | **Put** /v2/{projectId}/loadBalancers/{loadBalancerId}/pools/{poolId}/members | Update list members | ||
*LoadBalancerPoolRestControllerV2Api* | [**UpdatePoolUsingPUT**](docs/LoadBalancerPoolRestControllerV2Api.md#updatepoolusingput) | **Put** /v2/{projectId}/loadBalancers/{loadBalancerId}/pools/{poolId} | Update a pool | ||
*LoadBalancerRestControllerV2Api* | [**CreateLoadBalancerUsingPOST**](docs/LoadBalancerRestControllerV2Api.md#createloadbalancerusingpost) | **Post** /v2/{projectId}/loadBalancers | Create a new load balancer | ||
*LoadBalancerRestControllerV2Api* | [**DeleteLoadBalancerUsingDELETE**](docs/LoadBalancerRestControllerV2Api.md#deleteloadbalancerusingdelete) | **Delete** /v2/{projectId}/loadBalancers/{loadBalancerId} | Delete a load balancer | ||
*LoadBalancerRestControllerV2Api* | [**GetHeadersUsingGET**](docs/LoadBalancerRestControllerV2Api.md#getheadersusingget) | **Get** /v2/{projectId}/loadBalancers/headers | Get list headers | ||
*LoadBalancerRestControllerV2Api* | [**GetListLoadBalancerWithPagingUsingGET**](docs/LoadBalancerRestControllerV2Api.md#getlistloadbalancerwithpagingusingget) | **Get** /v2/{projectId}/loadBalancers | List LoadBalancers Paging | ||
*LoadBalancerRestControllerV2Api* | [**GetLoadBalancerUsingGET**](docs/LoadBalancerRestControllerV2Api.md#getloadbalancerusingget) | **Get** /v2/{projectId}/loadBalancers/{loadBalancerId} | Load Balancer By Load Balancer Id | ||
*LoadBalancerRestControllerV2Api* | [**GetPackagesUsingGET**](docs/LoadBalancerRestControllerV2Api.md#getpackagesusingget) | **Get** /v2/{projectId}/loadBalancers/packages | Get list packages | ||
|
||
|
||
## Documentation For Models | ||
|
||
- [CreateHealthMonitorRequest](docs/CreateHealthMonitorRequest.md) | ||
- [CreateL7PolicyRequestV2](docs/CreateL7PolicyRequestV2.md) | ||
- [CreateListenerRequestV2](docs/CreateListenerRequestV2.md) | ||
- [CreateLoadBalancerRequest](docs/CreateLoadBalancerRequest.md) | ||
- [CreateMemberRequest](docs/CreateMemberRequest.md) | ||
- [CreatePoolRequestV2](docs/CreatePoolRequestV2.md) | ||
- [DataResponseHealthMonitor](docs/DataResponseHealthMonitor.md) | ||
- [DataResponseL7Policy](docs/DataResponseL7Policy.md) | ||
- [DataResponseListL7Policy](docs/DataResponseListL7Policy.md) | ||
- [DataResponseListListener](docs/DataResponseListListener.md) | ||
- [DataResponseListMember](docs/DataResponseListMember.md) | ||
- [DataResponseListPool](docs/DataResponseListPool.md) | ||
- [DataResponseListener](docs/DataResponseListener.md) | ||
- [DataResponseListstring](docs/DataResponseListstring.md) | ||
- [DataResponseLoadBalancer](docs/DataResponseLoadBalancer.md) | ||
- [DataResponseLoadBalancerDto](docs/DataResponseLoadBalancerDto.md) | ||
- [DataResponsePool](docs/DataResponsePool.md) | ||
- [HealthMonitor](docs/HealthMonitor.md) | ||
- [L7Policy](docs/L7Policy.md) | ||
- [L7Rule](docs/L7Rule.md) | ||
- [Listener](docs/Listener.md) | ||
- [LoadBalancer](docs/LoadBalancer.md) | ||
- [LoadBalancerDto](docs/LoadBalancerDto.md) | ||
- [LoadBalancerPackage](docs/LoadBalancerPackage.md) | ||
- [Member](docs/Member.md) | ||
- [PagingLoadBalancerDto](docs/PagingLoadBalancerDto.md) | ||
- [PagingLoadBalancerPackage](docs/PagingLoadBalancerPackage.md) | ||
- [Pool](docs/Pool.md) | ||
- [ReorderPoliciesRequestV2](docs/ReorderPoliciesRequestV2.md) | ||
- [ReorderPolicyRequest](docs/ReorderPolicyRequest.md) | ||
- [UpdateHealthMonitorRequest](docs/UpdateHealthMonitorRequest.md) | ||
- [UpdateL7PolicyRequestV2](docs/UpdateL7PolicyRequestV2.md) | ||
- [UpdateListenerRequestV2](docs/UpdateListenerRequestV2.md) | ||
- [UpdateMembersRequestV2](docs/UpdateMembersRequestV2.md) | ||
- [UpdatePoolRequestV2](docs/UpdatePoolRequestV2.md) | ||
|
||
|
||
## Documentation For Authorization | ||
Endpoints do not require authorization. | ||
|
||
|
||
## Author | ||
|
||
|
||
|
Oops, something went wrong.