Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,14 @@ 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/v1.2.1...HEAD)
## [Unreleased](https://github.com/fivetran/go-fivetran/compare/v1.2.2...HEAD)

## [1.2.0](https://github.com/fivetran/go-fivetran/compare/v1.2.0...v1.2.1)
## [1.2.2](https://github.com/fivetran/go-fivetran/compare/v1.2.1...v1.2.2)

## Added
- field `Host` into `privatelink.PrivateLinkResponseBase`

## [1.2.1](https://github.com/fivetran/go-fivetran/compare/v1.2.0...v1.2.1)

## Updated
Change method in `ProxyRegenerateSecretsService`
Expand Down
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const defaultBaseURL = "https://api.fivetran.com/v1"
const restAPIv2 = "application/json;version=2"

// WARNING: Update Agent version on each release!
const defaultUserAgent = "Go-Fivetran/1.1.2"
const defaultUserAgent = "Go-Fivetran/1.2.2"

// New receives API Key and API Secret, and returns a new Client with the
// default HTTP client
Expand Down
1 change: 1 addition & 0 deletions private_link/common_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ type PrivateLinkResponseBase struct {
Name string `json:"name"`
Region string `json:"region"`
Service string `json:"service"`
Host string `json:"host"`
AccountId string `json:"account_id"`
CloudProvider string `json:"cloud_provider"`
State string `json:"state"`
Expand Down
3 changes: 3 additions & 0 deletions private_link/private_link_details_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ func preparePrivateLinkDetailsResponse() string {
"service": "service",
"account_id": "account_id",
"cloud_provider": "cloud_provider",
"host": "host",
"state": "state",
"state_summary": "state_summary",
"created_at": "2022-04-29T09:41:08.583Z",
Expand All @@ -91,6 +92,7 @@ func assertPrivateLinkDetailsResponse(t *testing.T, response privatelink.Private
testutils.AssertEqual(t, response.Data.Region, "region")
testutils.AssertEqual(t, response.Data.Service, "service")
testutils.AssertEqual(t, response.Data.CloudProvider, "cloud_provider")
testutils.AssertEqual(t, response.Data.Host, "host")
testutils.AssertEqual(t, response.Data.State, "state")
testutils.AssertEqual(t, response.Data.StateSummary, "state_summary")
testutils.AssertEqual(t, response.Data.CreatedAt, "2022-04-29T09:41:08.583Z")
Expand All @@ -105,6 +107,7 @@ func assertPrivateLinkCustomDetailsResponse(t *testing.T, response privatelink.P
testutils.AssertEqual(t, response.Data.Region, "region")
testutils.AssertEqual(t, response.Data.Service, "service")
testutils.AssertEqual(t, response.Data.CloudProvider, "cloud_provider")
testutils.AssertEqual(t, response.Data.Host, "host")
testutils.AssertEqual(t, response.Data.State, "state")
testutils.AssertEqual(t, response.Data.StateSummary, "state_summary")
testutils.AssertEqual(t, response.Data.CreatedAt, "2022-04-29T09:41:08.583Z")
Expand Down
2 changes: 2 additions & 0 deletions private_link/private_link_list_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ func preparePrivateLinkListResponse() string {
"service": "service",
"account_id": "account_id",
"cloud_provider": "cloud_provider",
"host": "host",
"state": "state",
"state_summary": "state_summary",
"created_at": "2022-04-29T09:41:08.583Z",
Expand All @@ -66,6 +67,7 @@ func assertPrivateLinkListResponse(t *testing.T, response privatelink.PrivateLin
testutils.AssertEqual(t, response.Data.Items[0].Region, "region")
testutils.AssertEqual(t, response.Data.Items[0].Service, "service")
testutils.AssertEqual(t, response.Data.Items[0].CloudProvider, "cloud_provider")
testutils.AssertEqual(t, response.Data.Items[0].Host, "host")
testutils.AssertEqual(t, response.Data.Items[0].State, "state")
testutils.AssertEqual(t, response.Data.Items[0].StateSummary, "state_summary")
testutils.AssertEqual(t, response.Data.Items[0].CreatedAt, "2022-04-29T09:41:08.583Z")
Expand Down