Skip to content

Commit

Permalink
Rename LPA to HDA (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
fivetran-aleksandrboldyrev authored Oct 1, 2024
1 parent 9c043c4 commit 6ce11fd
Show file tree
Hide file tree
Showing 41 changed files with 545 additions and 537 deletions.
21 changes: 20 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,26 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased](https://github.com/fivetran/go-fivetran/compare/v0.9.4...HEAD)
## [Unreleased](https://github.com/fivetran/go-fivetran/compare/v1.0.0...HEAD)

## [1.0.0](https://github.com/fivetran/go-fivetran/compare/v0.9.4...v1.0.0)

Release version

Renamed the following service from Local Processing Agent to Hybrid Deployment Agent:
- LocalProcessingAgentCreateService to HybridDeploymentAgentCreateService
- LocalProcessingAgentListService to HybridDeploymentAgentListService
- LocalProcessingAgentDetailsService to HybridDeploymentAgentDetailsService
- LocalProcessingAgentDeleteService to HybridDeploymentAgentDeleteService
- LocalProcessingAgentReAuthService to HybridDeploymentAgentReAuthService

Rename fields:
- `DestinationCreateService.localProcessingAgentId` to `DestinationCreateService.hybridDeploymentAgentId`
- `DestinationModifyService.localProcessingAgentId` to `DestinationCreateService.hybridDeploymentAgentId`
- `DestinationDetailsService.localProcessingAgentId` to `DestinationCreateService.hybridDeploymentAgentId`
- `ConnectorCreateService.localProcessingAgentId` to `DestinationCreateService.hybridDeploymentAgentId`
- `ConnectorModifyService.localProcessingAgentId` to `DestinationCreateService.hybridDeploymentAgentId`
- `ConnectorDetailsService.localProcessingAgentId` to `DestinationCreateService.hybridDeploymentAgentId`

## [0.9.3](https://github.com/fivetran/go-fivetran/compare/v0.9.2...v0.9.4)

Expand Down
14 changes: 6 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ Checkout our [CHANGELOG](CHANGELOG.md) for information about the latest bug fixe

Make sure you read the Fivetran REST API [documentation](https://fivetran.com/docs/rest-api) before using the SDK.

**NOTE**: `go-fivetran` is still in [ALPHA](https://en.wikipedia.org/wiki/Software_release_life_cycle#Alpha) development stage. Future versions may introduce breaking changes.

## Installation

```
Expand Down Expand Up @@ -275,14 +273,14 @@ REST API Endpoint | REST API Version | SDK Service/Config
[Delete a Proxy Agent](/docs/rest-api/proxy-management#deleteaproxyagent) | v1 | [ProxyDeleteService](https://pkg.go.dev/github.com/fivetran/go-fivetran#ProxyDeleteService)
[Return all connections attached to the proxy agent](/docs/rest-api/proxy-management#returnsallconnectionsattachedtotheproxyagent) | v1 | [ProxyConnectionMembershipsListService](https://pkg.go.dev/github.com/fivetran/go-fivetran#ProxyConnectionMembershipsListService)

### [Local Processing Agent Management](https://fivetran.com/docs/rest-api/local-processing-agent-management#localprocessingagentmanagement)
### [Hybrid Deployment Agent Management](https://fivetran.com/docs/rest-api/hybrid-deployment-agent-management#hybriddeploymentagentmanagement)
REST API Endpoint | REST API Version | SDK Service/Config
--- | --- | ---
[Create a Local Processing Agent](https://fivetran.com/docs/rest-api/local-processing-agent-management#createalocalprocessingagent) | v1 | [LocalProcessingAgentCreateService](https://pkg.go.dev/github.com/fivetran/go-fivetran#LocalProcessingAgentCreateService)
[List Local Processing Agents](/docs/rest-api/local-processing-agent-management#listlocalprocessingagents) | v1 | [LocalProcessingAgentListService](https://pkg.go.dev/github.com/fivetran/go-fivetran#LocalProcessingAgentListService)
[Retrieve Local Processing Agent Details](/docs/rest-api/local-processing-agent-management#retrievelocalprocessingagentdetails) | v1 | [LocalProcessingAgentDetailsService](https://pkg.go.dev/github.com/fivetran/go-fivetran#LocalProcessingAgentDetailsService)
[Delete a Local Processing Agent](/docs/rest-api/local-processing-agent-management#deletealocalprocessingagent) | v1 | [LocalProcessingAgentDeleteService](https://pkg.go.dev/github.com/fivetran/go-fivetran#LocalProcessingAgentDeleteService)
[Regenerate authentication keys for a Local Processing Agent](/docs/rest-api/local-processing-agent-management#regeneratekeys) | v1 | [LocalProcessingAgentReAuthService](https://pkg.go.dev/github.com/fivetran/go-fivetran#LocalProcessingAgentReAuthService)
[Create a Hybrid Deployment Agent](https://fivetran.com/docs/rest-api/hybrid-deployment-agent-management#createahybriddeploymentagent) | v1 | [HybridDeploymentAgentCreateService](https://pkg.go.dev/github.com/fivetran/go-fivetran#HybridDeploymentAgentCreateService)
[List Hybrid Deployment Agents](/docs/rest-api/hybrid-deployment-agent-management#listhybriddeploymentagents) | v1 | [HybridDeploymentAgentListService](https://pkg.go.dev/github.com/fivetran/go-fivetran#HybridDeploymentAgentListService)
[Retrieve Hybrid Deployment Agent Details](/docs/rest-api/hybrid-deployment-agent-management#retrievehybriddeploymentagentdetails) | v1 | [HybridDeploymentAgentDetailsService](https://pkg.go.dev/github.com/fivetran/go-fivetran#HybridDeploymentAgentDetailsService)
[Delete a Hybrid Deployment Agent](/docs/rest-api/lhybrid-deployment-agent-management#deleteahybriddeploymentagent) | v1 | [HybridDeploymentAgentDeleteService](https://pkg.go.dev/github.com/fivetran/go-fivetran#HybridDeploymentAgentDeleteService)
[Regenerate authentication keys for a Hybrid Deployment Agent](/docs/rest-api/hybrid-deployment-agent-management#regeneratekeys) | v1 | [HybridDeploymentAgentReAuthService](https://pkg.go.dev/github.com/fivetran/go-fivetran#HybridDeploymentAgentReAuthService)

## Support

Expand Down
24 changes: 12 additions & 12 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"github.com/fivetran/go-fivetran/fingerprints"
"github.com/fivetran/go-fivetran/groups"
httputils "github.com/fivetran/go-fivetran/http_utils"
localprocessingagent "github.com/fivetran/go-fivetran/local_processing_agent"
hybriddeploymentagent "github.com/fivetran/go-fivetran/hybrid_deployment_agent"
privatelink "github.com/fivetran/go-fivetran/private_link"
"github.com/fivetran/go-fivetran/proxy"
"github.com/fivetran/go-fivetran/roles"
Expand Down Expand Up @@ -633,23 +633,23 @@ func (c *Client) NewProxyConnectionMembershipsList() *proxy.ProxyConnectionMembe
return &proxy.ProxyConnectionMembershipsListService{HttpService: c.NewHttpService()}
}

/* Local Processing Agent */
func (c *Client) NewLocalProcessingAgentCreate() *localprocessingagent.LocalProcessingAgentCreateService {
return &localprocessingagent.LocalProcessingAgentCreateService{HttpService: c.NewHttpService()}
/* Hybrid Deployment Agent */
func (c *Client) NewHybridDeploymentAgentCreate() *hybriddeploymentagent.HybridDeploymentAgentCreateService {
return &hybriddeploymentagent.HybridDeploymentAgentCreateService{HttpService: c.NewHttpService()}
}

func (c *Client) NewLocalProcessingAgentDelete() *localprocessingagent.LocalProcessingAgentDeleteService {
return &localprocessingagent.LocalProcessingAgentDeleteService{HttpService: c.NewHttpService()}
func (c *Client) NewHybridDeploymentAgentDelete() *hybriddeploymentagent.HybridDeploymentAgentDeleteService {
return &hybriddeploymentagent.HybridDeploymentAgentDeleteService{HttpService: c.NewHttpService()}
}

func (c *Client) NewLocalProcessingAgentDetails() *localprocessingagent.LocalProcessingAgentDetailsService {
return &localprocessingagent.LocalProcessingAgentDetailsService{HttpService: c.NewHttpService()}
func (c *Client) NewHybridDeploymentAgentDetails() *hybriddeploymentagent.HybridDeploymentAgentDetailsService {
return &hybriddeploymentagent.HybridDeploymentAgentDetailsService{HttpService: c.NewHttpService()}
}

func (c *Client) NewLocalProcessingAgentList() *localprocessingagent.LocalProcessingAgentListService {
return &localprocessingagent.LocalProcessingAgentListService{HttpService: c.NewHttpService()}
func (c *Client) NewHybridDeploymentAgentList() *hybriddeploymentagent.HybridDeploymentAgentListService {
return &hybriddeploymentagent.HybridDeploymentAgentListService{HttpService: c.NewHttpService()}
}

func (c *Client) NewLocalProcessingAgentReAuth() *localprocessingagent.LocalProcessingAgentReAuthService {
return &localprocessingagent.LocalProcessingAgentReAuthService{HttpService: c.NewHttpService()}
func (c *Client) NewHybridDeploymentAgentReAuth() *hybriddeploymentagent.HybridDeploymentAgentReAuthService {
return &hybriddeploymentagent.HybridDeploymentAgentReAuthService{HttpService: c.NewHttpService()}
}
Loading

0 comments on commit 6ce11fd

Please sign in to comment.