-
Notifications
You must be signed in to change notification settings - Fork 0
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
d6535c9
commit dc1e82e
Showing
17 changed files
with
552 additions
and
27 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
query bfxIntegrationGet($id: UUID!){ | ||
bitfinex { | ||
integration(id: $id) { | ||
integrationId | ||
name | ||
description | ||
omnibusAccountSetId | ||
} | ||
} | ||
} | ||
|
||
mutation bfxIntegrationCreate($input: BfxIntegrationCreateInput!) { | ||
bitfinex { | ||
integrationCreate( | ||
input: $input | ||
) { | ||
integration { | ||
integrationId | ||
name | ||
description | ||
omnibusAccountSetId | ||
} | ||
} | ||
} | ||
} |
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,61 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "cala_bitfinex_integration Resource - terraform-provider-cala" | ||
subcategory: "" | ||
description: |- | ||
Cala Bitfinex Integration. | ||
--- | ||
|
||
# cala_bitfinex_integration (Resource) | ||
|
||
Cala Bitfinex Integration. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
variable "bitfinex_key" { | ||
sensitive = true | ||
default = "dummy" | ||
} | ||
variable "bitfinex_secret" { | ||
sensitive = true | ||
default = "dummy" | ||
} | ||
resource "random_uuid" "journal_id" {} | ||
resource "cala_journal" "journal" { | ||
id = random_uuid.journal_id.result | ||
name = "Default" | ||
} | ||
resource "random_uuid" "integration_id" {} | ||
resource "cala_bitfinex_integration" "bfx" { | ||
id = random_uuid.integration_id.result | ||
name = "Main account" | ||
journal_id = cala_journal.journal.id | ||
key = var.bitfinex_key | ||
secret = var.bitfinex_secret | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `id` (String) ID of the integration. | ||
- `journal_id` (String) journal_id | ||
- `key` (String, Sensitive) The bitfinex API key | ||
- `name` (String) Name of the integration. | ||
- `secret` (String, Sensitive) The bitfinex API secret | ||
|
||
### Optional | ||
|
||
- `description` (String) Description of the integration. | ||
|
||
### Read-Only | ||
|
||
- `omnibus_account_set_id` (String) The AccountSet id for the omnibus AccountSet |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
terraform { | ||
required_providers { | ||
cala = { | ||
source = "registry.terraform.io/galoymoney/cala" | ||
source = "registry.terraform.io/galoymoney/cala" | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -1,14 +1,14 @@ | ||
resource "random_uuid" "journal_id" { } | ||
resource "random_uuid" "journal_id" {} | ||
|
||
resource "cala_journal" "journal" { | ||
id = random_uuid.journal_id.result | ||
name = "Default" | ||
} | ||
|
||
resource "random_uuid" "account_set_id" { } | ||
resource "random_uuid" "account_set_id" {} | ||
|
||
resource "cala_account_set" "set" { | ||
id = random_uuid.account_set_id.result | ||
name = "Assets" | ||
id = random_uuid.account_set_id.result | ||
name = "Assets" | ||
journal_id = cala_journal.journal.id | ||
} |
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
11 changes: 11 additions & 0 deletions
11
examples/resources/cala_bitfinex_integration/required_providers.tf
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,11 @@ | ||
terraform { | ||
required_providers { | ||
cala = { | ||
source = "registry.terraform.io/galoymoney/cala" | ||
} | ||
} | ||
} | ||
|
||
provider "cala" { | ||
endpoint = "http://localhost:2252/graphql" | ||
} |
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,26 @@ | ||
variable "bitfinex_key" { | ||
sensitive = true | ||
default = "dummy" | ||
} | ||
|
||
variable "bitfinex_secret" { | ||
sensitive = true | ||
default = "dummy" | ||
} | ||
|
||
resource "random_uuid" "journal_id" {} | ||
|
||
resource "cala_journal" "journal" { | ||
id = random_uuid.journal_id.result | ||
name = "Default" | ||
} | ||
|
||
resource "random_uuid" "integration_id" {} | ||
|
||
resource "cala_bitfinex_integration" "bfx" { | ||
id = random_uuid.integration_id.result | ||
name = "Main account" | ||
journal_id = cala_journal.journal.id | ||
key = var.bitfinex_key | ||
secret = var.bitfinex_secret | ||
} |
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
Oops, something went wrong.