Skip to content

Commit

Permalink
Merge pull request #1 from aballiet/update-to-latest
Browse files Browse the repository at this point in the history
feat: update to latest SpeakEasy CLI
  • Loading branch information
aballiet authored Nov 16, 2023
2 parents 08e5242 + d07bcf9 commit 7236938
Show file tree
Hide file tree
Showing 464 changed files with 18,316 additions and 5,007 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# This allows generated code to be indexed correctly
*.go linguist-generated=false
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,14 @@ provider "airbyte" {
<!-- End SDK Installation -->

<!-- Start SDK Example Usage -->
## Testing the provider locally
### Testing the provider locally

Should you want to validate a change locally, the `--debug` flag allows you to execute the provider against a terraform instance locally.

This also allows for debuggers (e.g. delve) to be attached to the provider.

### Example

```sh
go run main.go --debug
# Copy the TF_REATTACH_PROVIDERS env var
Expand All @@ -42,6 +44,10 @@ TF_REATTACH_PROVIDERS=... terraform apply

<!-- End SDK Available Operations -->

<!-- Placeholder for Future Speakeasy SDK Sections -->



Terraform allows you to use local provider builds by setting a `dev_overrides` block in a configuration file called `.terraformrc`. This block overrides all other configured installation methods.

Terraform searches for the `.terraformrc` file in your home directory and applies any configuration settings you set.
Expand Down
6 changes: 0 additions & 6 deletions USAGE.md
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
<!-- Start SDK Example Usage -->
## Testing the provider locally

Should you want to validate a change locally, the `--debug` flag allows you to execute the provider against a terraform instance locally.

This also allows for debuggers (e.g. delve) to be attached to the provider.

```sh
go run main.go --debug
# Copy the TF_REATTACH_PROVIDERS env var
Expand Down
Empty file modified examples/README.md
100755 → 100644
Empty file.
Empty file modified examples/provider/provider.tf
100755 → 100644
Empty file.
88 changes: 83 additions & 5 deletions examples/resources/airbyte_connection/resource.tf
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,6 +1,84 @@
resource "airbyte_connection" "my_connection" {
destination_id = "89bd9d8d-69a6-474e-8f46-7cc8796ed151"
namespace_format = "${SOURCE_NAMESPACE}"
source_id = "a05dfc2d-df7c-4c78-8a1b-a928fc816742"
status = "deprecated"
}
destination_id = "2d0b4937-840e-4535-aba0-03060ced80fc"
geography = "auto"
name = "Sheldon Balistreri"
namespace_definition = "source"
namespace_format = SOURCE_NAMESPACE
non_breaking_changes_preference = "ignore"
notify_schema_changes = false
notify_schema_changes_by_email = true
operation_ids = [
"fbb5835b-a03c-430b-b29d-f734fbd43f94",
]
prefix = "...my_prefix..."
resource_requirements = {
cpu_limit = "...my_cpu_limit..."
cpu_request = "...my_cpu_request..."
memory_limit = "...my_memory_limit..."
memory_request = "...my_memory_request..."
}
schedule = {
time_unit = "minutes"
units = 9
}
schedule_data = {
basic_schedule = {
time_unit = "weeks"
units = 7
}
cron = {
cron_expression = "...my_cron_expression..."
cron_time_zone = "...my_cron_time_zone..."
}
}
schedule_type = "cron"
source_catalog_id = "5e6b8dd9-95b8-45b3-8db9-804e4cb5e145"
source_id = "1ef85fdd-6486-4396-b21f-097ee8d4067a"
status = "inactive"
sync_catalog = {
streams = [
{
config = {
alias_name = "...my_alias_name..."
cursor_field = [
"...",
]
destination_sync_mode = "append_dedup"
field_selection_enabled = true
primary_key = [
[
"...",
],
]
selected = false
selected_fields = [
{
field_path = [
"...",
]
},
]
suggested = false
sync_mode = "incremental"
}
stream = {
default_cursor_field = [
"...",
]
json_schema = {}
name = "Ms. June Bins"
namespace = "...my_namespace..."
source_defined_cursor = true
source_defined_primary_key = [
[
"...",
],
]
supported_sync_modes = [
"incremental",
]
}
},
]
}
}
12 changes: 6 additions & 6 deletions examples/resources/airbyte_source/resource.tf
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
resource "airbyte_source" "my_source" {
connection_configuration = "{ \"see\": \"documentation\" }"
name = "Cory Emmerich"
source_definition_id = "05929396-fea7-4596-ab10-faaa2352c595"
source_id = "5907aff1-a3a2-4fa9-8677-39251aa52c3f"
workspace_id = "5ad019da-1ffe-478f-897b-0074f15471b5"
}
connection_configuration = { "user" : "charles" }
name = "Austin Stracke"
secret_id = "airbyte_oauth_workspace_0509f049-d671-48cb-8105-0a23d47e6db6_secret_e0d38206-034e-4d75-9d21-da5a99b02826_v1"
source_definition_id = "2f95525d-bfb0-4168-a100-133587515722"
workspace_id = "b625efa1-bbfa-48d6-85f7-19d133279f15"
}
56 changes: 27 additions & 29 deletions examples/resources/airbyte_source_definition/resource.tf
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,31 +1,29 @@
resource "airbyte_source_definition" "my_sourcedefinition" {
docker_image_tag = "...my_dockerImageTag..."
source_definition = {
docker_image_tag = "...my_dockerImageTag..."
docker_repository = "...my_dockerRepository..."
documentation_url = "https://immediate-tow-truck.com"
icon = "...my_icon..."
name = "Alison Mann"
resource_requirements = {
default = {
cpu_limit = "...my_cpu_limit..."
cpu_request = "...my_cpu_request..."
memory_limit = "...my_memory_limit..."
memory_request = "...my_memory_request..."
}
job_specific = [
{
job_type = "check_connection"
resource_requirements = = {
cpu_limit = "...my_cpu_limit..."
cpu_request = "...my_cpu_request..."
memory_limit = "...my_memory_limit..."
memory_request = "...my_memory_request..."
}
},
]
}
source_definition = {
docker_image_tag = "...my_docker_image_tag..."
docker_repository = "...my_docker_repository..."
documentation_url = "https://tempting-lieutenant.net"
icon = "...my_icon..."
name = "Dale Weimann"
resource_requirements = {
default = {
cpu_limit = "...my_cpu_limit..."
cpu_request = "...my_cpu_request..."
memory_limit = "...my_memory_limit..."
memory_request = "...my_memory_request..."
}
job_specific = [
{
job_type = "check_connection"
resource_requirements = {
cpu_limit = "...my_cpu_limit..."
cpu_request = "...my_cpu_request..."
memory_limit = "...my_memory_limit..."
memory_request = "...my_memory_request..."
}
},
]
}
source_definition_id = "88e1e91e-450a-4d2a-bd44-269802d502a9"
workspace_id = "4bb4f63c-969e-49a3-afa7-7dfb14cd66ae"
}
}
workspace_id = "fac9256c-f878-4498-930f-77eda0554f68"
}
18 changes: 10 additions & 8 deletions examples/resources/airbyte_source_definition_manifest/resource.tf
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
resource "airbyte_source_definition_manifest" "my_sourcedefinitionmanifest" {
declarative_manifest = {
description = "...my_description..."
manifest = {}
spec = {}
version = 2
}
set_as_active_manifest = false
}
declarative_manifest = {
description = "...my_description..."
manifest = {}
spec = {}
version = 3
}
set_as_active_manifest = true
source_definition_id = "fc353545-7d24-4426-8ff9-77c6f814b5f1"
workspace_id = "dc406d3e-6067-4c0f-aa27-e0571d07b12f"
}
86 changes: 83 additions & 3 deletions examples/resources/airbyte_workspace/resource.tf
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1,84 @@
resource "airbyte_workspace" "my_workspace" {
name = "Sophia Wintheiser"
workspace_id = "ba88f3a6-6997-4074-ba44-69b6e2141959"
}
anonymous_data_collection = true
default_geography = "auto"
display_setup_wizard = false
email = "Shana.Osinski@hotmail.com"
name = "Philip Hegmann"
news = false
notifications = [
{
customerio_configuration = {}
notification_type = "slack"
send_on_failure = false
send_on_success = true
slack_configuration = {
webhook = "...my_webhook..."
}
},
]
notification_settings = {
send_on_connection_update = {
customerio_configuration = {}
notification_type = [
"customerio",
]
slack_configuration = {
webhook = "...my_webhook..."
}
}
send_on_connection_update_action_required = {
customerio_configuration = {}
notification_type = [
"slack",
]
slack_configuration = {
webhook = "...my_webhook..."
}
}
send_on_failure = {
customerio_configuration = {}
notification_type = [
"slack",
]
slack_configuration = {
webhook = "...my_webhook..."
}
}
send_on_success = {
customerio_configuration = {}
notification_type = [
"customerio",
]
slack_configuration = {
webhook = "...my_webhook..."
}
}
send_on_sync_disabled = {
customerio_configuration = {}
notification_type = [
"customerio",
]
slack_configuration = {
webhook = "...my_webhook..."
}
}
send_on_sync_disabled_warning = {
customerio_configuration = {}
notification_type = [
"slack",
]
slack_configuration = {
webhook = "...my_webhook..."
}
}
}
security_updates = false
webhook_configs = [
{
auth_token = "...my_auth_token..."
id = "2038bc3c-1219-42fc-9206-51b10e8de28e"
name = "Travis Hegmann"
validation_url = "...my_validation_url..."
},
]
}
Loading

0 comments on commit 7236938

Please sign in to comment.