-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a2e8904
commit ec236a8
Showing
36 changed files
with
1,410 additions
and
15 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
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,38 @@ | ||
--- | ||
page_title: "Data Source: fivetran_local_processing_agent" | ||
--- | ||
|
||
# Data Source: fivetran_local_processing_agent | ||
|
||
This data source returns a local processing agent object. | ||
|
||
## Example Usage | ||
|
||
```hcl | ||
data "fivetran_local_processing_agent" "local_processing_agent" { | ||
id = "local_processing_agent_id" | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `id` (String) The unique identifier for the local processing agent within your account. | ||
|
||
### Read-Only | ||
|
||
- `display_name` (String) The unique name for the local processing agent. | ||
- `group_id` (String) The unique identifier for the Group within the Fivetran system. | ||
- `registered_at` (String) The timestamp of the time the local processing agent was created in your account. | ||
- `usage` (Attributes Set) (see [below for nested schema](#nestedatt--usage)) | ||
|
||
<a id="nestedatt--usage"></a> | ||
### Nested Schema for `usage` | ||
|
||
Read-Only: | ||
|
||
- `connection_id` (String) The unique identifier of the connection associated with the agent. | ||
- `schema` (String) The connection schema name. | ||
- `service` (String) The connection type. |
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,44 @@ | ||
--- | ||
page_title: "Data Source: fivetran_local_processing_agents" | ||
--- | ||
|
||
# Data Source: fivetran_local_processing_agents | ||
|
||
This data source returns a list of all local processing agents within your Fivetran account. | ||
|
||
## Example Usage | ||
|
||
```hcl | ||
data "fivetran_local_processing_agents" "local_processing_agents" { | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Read-Only | ||
|
||
- `items` (Attributes Set) (see [below for nested schema](#nestedatt--items)) | ||
|
||
<a id="nestedatt--items"></a> | ||
### Nested Schema for `items` | ||
|
||
Required: | ||
|
||
- `id` (String) The unique identifier for the local processing agent within your account. | ||
|
||
Read-Only: | ||
|
||
- `display_name` (String) The unique name for the local processing agent. | ||
- `group_id` (String) The unique identifier for the Group within the Fivetran system. | ||
- `registered_at` (String) The timestamp of the time the local processing agent was created in your account. | ||
- `usage` (Attributes Set) (see [below for nested schema](#nestedatt--items--usage)) | ||
|
||
<a id="nestedatt--items--usage"></a> | ||
### Nested Schema for `items.usage` | ||
|
||
Read-Only: | ||
|
||
- `connection_id` (String) The unique identifier of the connection associated with the agent. | ||
- `schema` (String) The connection schema name. | ||
- `service` (String) The connection type. |
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
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,51 @@ | ||
--- | ||
page_title: "Resource: fivetran_local_processing_agent" | ||
--- | ||
|
||
# Resource: fivetran_local_processing_agent | ||
|
||
This resource allows you to create, update, and delete local processing agents. | ||
|
||
## Example Usage | ||
|
||
```hcl | ||
resource "fivetran_local_processing_agent" "test_lpa" { | ||
provider = fivetran-provider | ||
display_name = "display_name" | ||
group_id = "group_id" | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `display_name` (String) The unique name for the local processing agent. | ||
- `group_id` (String) The unique identifier for the Group within the Fivetran system. | ||
|
||
### Optional | ||
|
||
- `authentication_counter` (Number) Determines whether re-authentication needs to be performed. | ||
|
||
### Read-Only | ||
|
||
- `auth_json` (String) Base64-encoded content of the auth.json file. | ||
- `config_json` (String) Base64-encoded content of the config.json file. | ||
- `docker_compose_yaml` (String) Base64-encoded content of the compose file for the chosen containerization type. | ||
- `id` (String) The unique identifier for the local processing agent within your account. | ||
- `registered_at` (String) The timestamp of the time the local processing agent was created in your account. | ||
- `usage` (Attributes Set) (see [below for nested schema](#nestedatt--usage)) | ||
|
||
<a id="nestedatt--usage"></a> | ||
### Nested Schema for `usage` | ||
|
||
Required: | ||
|
||
- `schema` (String) The connection schema name. | ||
- `service` (String) The connection type. | ||
|
||
Read-Only: | ||
|
||
- `connection_id` (String) The unique identifier of the connection associated with the agent. |
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 |
---|---|---|
|
@@ -86,7 +86,6 @@ type SchemaField struct { | |
Sensitive bool | ||
|
||
DefaultString string | ||
|
||
Readonly bool | ||
Description string | ||
} | ||
|
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
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
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,35 @@ | ||
package model | ||
|
||
import ( | ||
"github.com/fivetran/go-fivetran/local_processing_agent" | ||
) | ||
|
||
type localProcessingAgentModel interface { | ||
SetId(string) | ||
SetDisplayName(string) | ||
SetGroupId(string) | ||
SetRegisteredAt(string) | ||
SetConfigJson(string) | ||
SetAuthJson(string) | ||
SetDockerComposeYaml(string) | ||
SetUsage([]localprocessingagent.LocalProcessingAgentUsageDetails) | ||
} | ||
|
||
func readLocalProcessingAgentFromResponse(d localProcessingAgentModel, resp localprocessingagent.LocalProcessingAgentDetailsResponse) { | ||
d.SetId(resp.Data.Id) | ||
d.SetDisplayName(resp.Data.DisplayName) | ||
d.SetGroupId(resp.Data.GroupId) | ||
d.SetRegisteredAt(resp.Data.RegisteredAt) | ||
d.SetUsage(resp.Data.Usage) | ||
} | ||
|
||
func readLocalProcessingAgentFromCreateResponse(d localProcessingAgentModel, resp localprocessingagent.LocalProcessingAgentCreateResponse) { | ||
d.SetId(resp.Data.Id) | ||
d.SetDisplayName(resp.Data.DisplayName) | ||
d.SetGroupId(resp.Data.GroupId) | ||
d.SetRegisteredAt(resp.Data.RegisteredAt) | ||
d.SetConfigJson(resp.Data.Files.ConfigJson) | ||
d.SetAuthJson(resp.Data.Files.AuthJson) | ||
d.SetDockerComposeYaml(resp.Data.Files.DockerComposeYaml) | ||
d.SetUsage(nil) | ||
} |
Oops, something went wrong.