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

Test dirien work #59

Merged
merged 6 commits into from
Jul 20, 2023
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
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ jobs:
restore-keys: |
${{ runner.os }}-go-
- name: Run dialect tests
run: make acctest
run: make acctest PORT_CLIENT_ID=${{ secrets.PORT_CLIENT_ID }} PORT_CLIENT_SECRET=${{ secrets.PORT_CLIENT_SECRET }}
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ setup:
cd tools && go install github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs

acctest:
TF_ACC=1 go test ./...
TF_ACC=1 PORT_CLIENT_ID=$(PORT_CLIENT_ID) PORT_CLIENT_SECRET=$(PORT_CLIENT_SECRET) go test ./...

gen-docs:
tfplugindocs
tfplugindocs
6 changes: 3 additions & 3 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ description: |-

### Required

- `client_id` (String) Client ID for Port-labs
- `secret` (String, Sensitive) Client Secret for Port-labs
- `client_id` (String) Client ID for Port-labs (environment: `PORT_CLIENT_ID`)
- `secret` (String, Sensitive) Client Secret for Port-labs (environment: `PORT_CLIENT_SECRET`)

### Optional

- `base_url` (String)
- `base_url` (String) Base URL for Port-labs (environment: `PORT_BASE_URL`)
- `token` (String, Sensitive) Token for Port-labs
208 changes: 204 additions & 4 deletions docs/resources/port_action.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ Action resource
- `azure_method` (Attributes) The invocation method of the action (see [below for nested schema](#nestedatt--azure_method))
- `description` (String) Description
- `github_method` (Attributes) The invocation method of the action (see [below for nested schema](#nestedatt--github_method))
- `gitlab_method` (Attributes) The invocation method of the action (see [below for nested schema](#nestedatt--gitlab_method))
- `icon` (String) Icon
- `kafka_method` (Object) The invocation method of the action (see [below for nested schema](#nestedatt--kafka_method))
- `required_approval` (Boolean) Require approval before invoking the action
Expand Down Expand Up @@ -70,13 +71,29 @@ Required:

- `org` (String) Required when selecting type GITHUB. The GitHub org that the workflow belongs to
- `repo` (String) Required when selecting type GITHUB. The GitHub repo that the workflow belongs to
- `workflow` (String) The GitHub workflow that the action belongs to

Optional:

- `omit_payload` (Boolean) Omit the payload when invoking the action
- `omit_user_inputs` (Boolean) Omit the user inputs when invoking the action
- `report_workflow_status` (Boolean) Report the workflow status when invoking the action
- `workflow` (String) The GitHub workflow that the action belongs to


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

Required:

- `group_name` (String) Required when selecting type GITLAB. The GitLab group name that the workflow belongs to
- `project_name` (String) Required when selecting type GITLAB. The GitLab project name that the workflow belongs to

Optional:

- `agent` (Boolean) Use the agent to invoke the action
- `default_ref` (String) The default ref of the action
- `omit_payload` (Boolean) Omit the payload when invoking the action
- `omit_user_inputs` (Boolean) Omit the user inputs when invoking the action


<a id="nestedatt--kafka_method"></a>
Expand All @@ -103,11 +120,18 @@ Optional:
Optional:

- `boolean_items` (Attributes) The items of the array property (see [below for nested schema](#nestedatt--user_properties--array_props--boolean_items))
- `dataset` (Attributes) The dataset of the property (see [below for nested schema](#nestedatt--user_properties--array_props--dataset))
- `default_jq_query` (String) The default jq query of the array property
- `depends_on` (List of String) The properties that this property depends on
- `description` (String) The description of the property
- `icon` (String) The icon of the property
- `max_items` (Number) The max items of the array property
- `min_items` (Number) The min items of the array property
- `number_items` (Attributes) The items of the array property (see [below for nested schema](#nestedatt--user_properties--array_props--number_items))
- `object_items` (Attributes) The items of the array property (see [below for nested schema](#nestedatt--user_properties--array_props--object_items))
- `required` (Boolean) Whether the property is required
- `string_items` (Attributes) The items of the array property (see [below for nested schema](#nestedatt--user_properties--array_props--string_items))
- `title` (String) The title of the property

<a id="nestedatt--user_properties--array_props--boolean_items"></a>
### Nested Schema for `user_properties.array_props.boolean_items`
Expand All @@ -117,6 +141,37 @@ Optional:
- `default` (List of Boolean) The default of the items


<a id="nestedatt--user_properties--array_props--dataset"></a>
### Nested Schema for `user_properties.array_props.dataset`

Required:

- `combinator` (String) The combinator of the dataset
- `rules` (Attributes List) The rules of the dataset (see [below for nested schema](#nestedatt--user_properties--array_props--dataset--rules))

<a id="nestedatt--user_properties--array_props--dataset--rules"></a>
### Nested Schema for `user_properties.array_props.dataset.rules`

Required:

- `operator` (String) The operator of the rule
- `value` (Object) The value of the rule (see [below for nested schema](#nestedatt--user_properties--array_props--dataset--rules--value))

Optional:

- `blueprint` (String) The blueprint identifier of the rule
- `property` (String) The property identifier of the rule

<a id="nestedatt--user_properties--array_props--dataset--rules--value"></a>
### Nested Schema for `user_properties.array_props.dataset.rules.value`

Optional:

- `jq_query` (String)




<a id="nestedatt--user_properties--array_props--number_items"></a>
### Nested Schema for `user_properties.array_props.number_items`

Expand All @@ -138,6 +193,7 @@ Optional:

Optional:

- `blueprint` (String) The blueprint identifier the property relates to
- `default` (List of String) The default of the items
- `format` (String) The format of the items

Expand All @@ -148,43 +204,156 @@ Optional:

Optional:

- `dataset` (Attributes) The dataset of the property (see [below for nested schema](#nestedatt--user_properties--boolean_props--dataset))
- `default` (Boolean) The default of the boolean property
- `default_jq_query` (String) The default jq query of the boolean property
- `depends_on` (List of String) The properties that this property depends on
- `description` (String) The description of the property
- `icon` (String) The icon of the property
- `required` (Boolean) Whether the property is required
- `title` (String) The title of the property

<a id="nestedatt--user_properties--boolean_props--dataset"></a>
### Nested Schema for `user_properties.boolean_props.dataset`

Required:

- `combinator` (String) The combinator of the dataset
- `rules` (Attributes List) The rules of the dataset (see [below for nested schema](#nestedatt--user_properties--boolean_props--dataset--rules))

<a id="nestedatt--user_properties--boolean_props--dataset--rules"></a>
### Nested Schema for `user_properties.boolean_props.dataset.rules`

Required:

- `operator` (String) The operator of the rule
- `value` (Object) The value of the rule (see [below for nested schema](#nestedatt--user_properties--boolean_props--dataset--rules--value))

Optional:

- `blueprint` (String) The blueprint identifier of the rule
- `property` (String) The property identifier of the rule

<a id="nestedatt--user_properties--boolean_props--dataset--rules--value"></a>
### Nested Schema for `user_properties.boolean_props.dataset.rules.value`

Optional:

- `jq_query` (String)





<a id="nestedatt--user_properties--number_props"></a>
### Nested Schema for `user_properties.number_props`

Optional:

- `blueprint` (String) The blueprint identifier the property relates to
- `dataset` (Attributes) The dataset of the property (see [below for nested schema](#nestedatt--user_properties--number_props--dataset))
- `default` (Number) The default of the number property
- `default_jq_query` (String) The default jq query of the number property
- `depends_on` (List of String) The properties that this property depends on
- `description` (String) The description of the property
- `enum` (List of Number) The enum of the number property
- `format` (String) The format of the string property
- `enum_jq_query` (String) The enum jq query of the string property
- `icon` (String) The icon of the property
- `maximum` (Number) The min of the number property
- `minimum` (Number) The max of the number property
- `required` (Boolean) Whether the property is required
- `title` (String) The title of the property

<a id="nestedatt--user_properties--number_props--dataset"></a>
### Nested Schema for `user_properties.number_props.dataset`

Required:

- `combinator` (String) The combinator of the dataset
- `rules` (Attributes List) The rules of the dataset (see [below for nested schema](#nestedatt--user_properties--number_props--dataset--rules))

<a id="nestedatt--user_properties--number_props--dataset--rules"></a>
### Nested Schema for `user_properties.number_props.dataset.rules`

Required:

- `operator` (String) The operator of the rule
- `value` (Object) The value of the rule (see [below for nested schema](#nestedatt--user_properties--number_props--dataset--rules--value))

Optional:

- `blueprint` (String) The blueprint identifier of the rule
- `property` (String) The property identifier of the rule

<a id="nestedatt--user_properties--number_props--dataset--rules--value"></a>
### Nested Schema for `user_properties.number_props.dataset.rules.value`

Optional:

- `jq_query` (String)





<a id="nestedatt--user_properties--object_props"></a>
### Nested Schema for `user_properties.object_props`

Optional:

- `dataset` (Attributes) The dataset of the property (see [below for nested schema](#nestedatt--user_properties--object_props--dataset))
- `default` (String) The default of the object property
- `default_jq_query` (String) The default jq query of the object property
- `depends_on` (List of String) The properties that this property depends on
- `description` (String) The description of the property
- `icon` (String) The icon of the property
- `required` (Boolean) Whether the property is required
- `title` (String) The title of the property

<a id="nestedatt--user_properties--object_props--dataset"></a>
### Nested Schema for `user_properties.object_props.dataset`

Required:

- `combinator` (String) The combinator of the dataset
- `rules` (Attributes List) The rules of the dataset (see [below for nested schema](#nestedatt--user_properties--object_props--dataset--rules))

<a id="nestedatt--user_properties--object_props--dataset--rules"></a>
### Nested Schema for `user_properties.object_props.dataset.rules`

Required:

- `operator` (String) The operator of the rule
- `value` (Object) The value of the rule (see [below for nested schema](#nestedatt--user_properties--object_props--dataset--rules--value))

Optional:

- `blueprint` (String) The blueprint identifier of the rule
- `property` (String) The property identifier of the rule

<a id="nestedatt--user_properties--object_props--dataset--rules--value"></a>
### Nested Schema for `user_properties.object_props.dataset.rules.value`

Optional:

- `jq_query` (String)





<a id="nestedatt--user_properties--string_props"></a>
### Nested Schema for `user_properties.string_props`

Optional:

- `blueprint` (String) The blueprint identifier the property relates to
- `blueprint` (String) The blueprint identifier the string property relates to
- `dataset` (Attributes) The dataset of the property (see [below for nested schema](#nestedatt--user_properties--string_props--dataset))
- `default` (String) The default of the string property
- `default_jq_query` (String) The default jq query of the string property
- `depends_on` (List of String) The properties that this property depends on
- `description` (String) The description of the property
- `enum` (List of String) The enum of the string property
- `enum_jq_query` (String) The enum jq query of the string property
- `format` (String) The format of the string property
- `icon` (String) The icon of the property
- `max_length` (Number) The max length of the string property
Expand All @@ -193,6 +362,37 @@ Optional:
- `required` (Boolean) Whether the property is required
- `title` (String) The title of the property

<a id="nestedatt--user_properties--string_props--dataset"></a>
### Nested Schema for `user_properties.string_props.dataset`

Required:

- `combinator` (String) The combinator of the dataset
- `rules` (Attributes List) The rules of the dataset (see [below for nested schema](#nestedatt--user_properties--string_props--dataset--rules))

<a id="nestedatt--user_properties--string_props--dataset--rules"></a>
### Nested Schema for `user_properties.string_props.dataset.rules`

Required:

- `operator` (String) The operator of the rule
- `value` (Object) The value of the rule (see [below for nested schema](#nestedatt--user_properties--string_props--dataset--rules--value))

Optional:

- `blueprint` (String) The blueprint identifier of the rule
- `property` (String) The property identifier of the rule

<a id="nestedatt--user_properties--string_props--dataset--rules--value"></a>
### Nested Schema for `user_properties.string_props.dataset.rules.value`

Optional:

- `jq_query` (String)






<a id="nestedatt--webhook_method"></a>
Expand Down
11 changes: 7 additions & 4 deletions docs/resources/port_blueprint.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
page_title: "port_blueprint Resource - terraform-provider-port-labs"
subcategory: ""
description: |-
Group resource
Blueprint Resource
---

# port_blueprint (Resource)

Group resource
Blueprint Resource



Expand All @@ -18,6 +18,7 @@ Group resource
### Required

- `identifier` (String) The identifier of the blueprint
- `title` (String) The display name of the blueprint

### Optional

Expand All @@ -29,7 +30,6 @@ Group resource
- `properties` (Attributes) The properties of the blueprint (see [below for nested schema](#nestedatt--properties))
- `relations` (Attributes Map) The relations of the blueprint (see [below for nested schema](#nestedatt--relations))
- `team_inheritance` (Attributes) The team inheritance of the blueprint (see [below for nested schema](#nestedatt--team_inheritance))
- `title` (String) The display name of the blueprint
- `webhook_changelog_destination` (Attributes) The webhook changelog destination of the blueprint (see [below for nested schema](#nestedatt--webhook_changelog_destination))

### Read-Only
Expand Down Expand Up @@ -213,11 +213,14 @@ Required:
<a id="nestedatt--relations"></a>
### Nested Schema for `relations`

Required:

- `target` (String) The target of the relation

Optional:

- `many` (Boolean) The many of the relation
- `required` (Boolean) The required of the relation
- `target` (String) The target of the relation
- `title` (String) The title of the relation


Expand Down
Loading
Loading