Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First pass at schemas, models, resources for environment objects #192

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft
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
2 changes: 1 addition & 1 deletion .terraformrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
provider_installation {
dev_overrides {
"registry.terraform.io/astronomer/astro" = "~/astronomer/terraform-provider-astro/bin"
"registry.terraform.io/astronomer/astro" = "/Users/iancmoritz/Work/terraform-provider-astro/bin/"
}
direct {}
}
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ dep:

.PHONY: build
build:
go build -o ${ENVTEST_ASSETS_DIR}
go build -o ${ENVTEST_ASSETS_DIR}/terraform-provider-astro
go generate ./...

.PHONY: api_client_gen
Expand All @@ -93,4 +93,4 @@ api_client_gen:
@echo "Generating IAM API client..."
oapi-codegen -include-tags=User,Invite,Team,ApiToken -generate=types,client -package=iam "$(CORE_IAM_OPENAPI_SPEC)" > ./internal/clients/iam/api.gen.go
@echo "Generating Platform API client..."
oapi-codegen -include-tags=Organization,Workspace,Cluster,Options,Deployment,Role -generate=types,client -package=platform "$(CORE_PLATFORM_OPENAPI_SPEC)" > ./internal/clients/platform/api.gen.go
oapi-codegen -include-tags=Organization,Workspace,Cluster,Options,Deployment,Role,Environment -generate=types,client -package=platform "$(CORE_PLATFORM_OPENAPI_SPEC)" > ./internal/clients/platform/api.gen.go
67 changes: 67 additions & 0 deletions docs/resources/environment_object.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "astro_environment_object Resource - astro"
subcategory: ""
description: |-
Environment Object resource
---

# astro_environment_object (Resource)

Environment Object resource



<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `object_key` (String) Key of the environment object
- `object_type` (String) Type of the environment object
- `scope` (String) Scope of the environment object

### Optional

- `airflow_connection` (Attributes) Connection details for the environment object (see [below for nested schema](#nestedatt--airflow_connection))
- `airflow_variable` (Attributes) Airflow variable details for the environment object (see [below for nested schema](#nestedatt--airflow_variable))
- `auto_link_deployments` (Boolean) Auto link deployments flag
- `metrics_export` (Attributes) Metrics export details for the environment object (see [below for nested schema](#nestedatt--metrics_export))
- `scope_entity_id` (String) Scope entity ID of the environment object

### Read-Only

- `id` (String) Environment Object ID

<a id="nestedatt--airflow_connection"></a>
### Nested Schema for `airflow_connection`

Required:

- `host` (String) Host of the connection
- `login` (String) Login for the connection
- `password` (String, Sensitive) Password for the connection
- `port` (Number) Port for the connection
- `type` (String) Type of the connection

Optional:

- `schema` (String) Schema for the connection


<a id="nestedatt--airflow_variable"></a>
### Nested Schema for `airflow_variable`

Required:

- `is_secret` (Boolean) Whether the variable is secret
- `value` (String, Sensitive) Value of the variable


<a id="nestedatt--metrics_export"></a>
### Nested Schema for `metrics_export`

Required:

- `endpoint` (String) Endpoint for metrics export
- `exporter_type` (String) Type of the exporter
56 changes: 35 additions & 21 deletions internal/clients/iam/api.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading