Skip to content

Commit

Permalink
Fixing build errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tzrlk committed Aug 13, 2024
1 parent 528c33a commit ac07d57
Show file tree
Hide file tree
Showing 18 changed files with 334 additions and 143 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,6 @@ dist/
*.tfstate
*.tfstate.backup
*.tfvars

# Examples
examples/**/*.json
7 changes: 5 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
# Visit https://golangci-lint.run/ for usage documentation
# and information on other useful linters
issues:
max-per-linter: 0
max-same-issues: 0
max-issues-per-linter: 0
max-same-issues: 0
exclude-rules:
- source: '//.+</?editor-fold'
linters: [ godot ]

linters:
disable-all: true
Expand Down
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ $(addsuffix local_override.tf,${TF_SRC_DIRS}): %/local_override.tf: \
#: Generate documentation.
docs: \
docs/*
phony: docs
.PHONY: docs

docs/*: \
docs/data-sources/* \
Expand All @@ -258,7 +258,8 @@ docs/*: \
# Define relationships between docs and their source files (actually pointless).
docs/index.md: \
examples/provider/provider.tf \
internal/provider/provider.go
internal/provider/provider.go \
templates/index.md.tmpl
docs/data-sources/%: \
examples/data-sources/idmc_$$(basename %)/data-source.tf \
internal/provider/$$(basename %).go
Expand Down
6 changes: 3 additions & 3 deletions docs/data-sources/agent_installer.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
# Had to mess with description rendering because it was failing with a weird error.
# https://github.com/hashicorp/terraform-plugin-docs/blob/main/internal/provider/template.go
page_title: "idmc_agent_installer Data Source - idmc"
subcategory: ""
description: |-
Expand All @@ -15,12 +15,12 @@ https://docs.informatica.com/integration-cloud/b2b-gateway/current-version/rest-
```terraform
# Linux
data "idmc_agent_installer" "linux" {
platform = "linux"
platform = "linux64"
}
# Windows
data "idmc_agent_installer" "windows" {
platform = "windows"
platform = "win64"
}
```

Expand Down
58 changes: 58 additions & 0 deletions docs/data-sources/role.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# Had to mess with description rendering because it was failing with a weird error.
# https://github.com/hashicorp/terraform-plugin-docs/blob/main/internal/provider/template.go
page_title: "idmc_role Data Source - idmc"
subcategory: ""
description: |-
https://docs.informatica.com/integration-cloud/data-integration/current-version/rest-api-reference/platform-rest-api-version-3-resources/roles/getting-role-details.html
---

# idmc_role (Data Source)

https://docs.informatica.com/integration-cloud/data-integration/current-version/rest-api-reference/platform-rest-api-version-3-resources/roles/getting-role-details.html

## Example Usage

```terraform
# by id
data "idmc_role" "by_id" {
id = var.role_id
}
# by name
data "idmc_role" "by_name" {
name = var.role_name
}
```

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

### Optional

- `id` (String) Role ID.
- `name` (String) Name of the role.

### Read-Only

- `created_by` (String) User who created the role.
- `created_time` (String) Date and time the role was created.
- `description` (String) Description of the role.
- `display_description` (String) Description displayed in the user interface.
- `display_name` (String) Role name displayed in the user interface.
- `org_id` (String) ID of the organization the role belongs to.
- `privileges` (Attributes List) The privileges assigned to the role. (see [below for nested schema](#nestedatt--privileges))
- `status` (String) Whether the organization's license to use the role is valid or has expired.
- `system_role` (Boolean) Whether the role is a system-defined role.
- `updated_by` (String) User who last updated the role.
- `updated_time` (String) Date and time the role was last updated.

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

Read-Only:

- `description` (String) Description of the privilege.
- `id` (String) Privilege ID.
- `name` (String) Name of the privilege.
- `service` (String) Service the privilege applies to.
- `status` (String) Status of the privilege (Enabled/Disabled).
44 changes: 44 additions & 0 deletions docs/data-sources/role_list.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Had to mess with description rendering because it was failing with a weird error.
# https://github.com/hashicorp/terraform-plugin-docs/blob/main/internal/provider/template.go
page_title: "idmc_role_list Data Source - idmc"
subcategory: ""
description: |-
https://docs.informatica.com/integration-cloud/data-integration/current-version/rest-api-reference/platform-rest-api-version-3-resources/roles/getting-role-details.html
---

# idmc_role_list (Data Source)

https://docs.informatica.com/integration-cloud/data-integration/current-version/rest-api-reference/platform-rest-api-version-3-resources/roles/getting-role-details.html

## Example Usage

```terraform
# Full role list
data "idmc_role_list" "example" {
}
```

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

### Read-Only

- `roles` (Attributes List) The query results (see [below for nested schema](#nestedatt--roles))

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

Read-Only:

- `created_by` (String) User who created the role.
- `created_time` (String) Date and time the role was created.
- `description` (String) Description of the role.
- `display_description` (String) Description displayed in the user interface.
- `display_name` (String) Role name displayed in the user interface.
- `id` (String) Role ID.
- `name` (String) Name of the role.
- `org_id` (String) ID of the organization the role belongs to.
- `status` (String) Whether the organization's license to use the role is valid or has expired.
- `system_role` (Boolean) Whether the role is a system-defined role.
- `updated_by` (String) User who last updated the role.
- `updated_time` (String) Date and time the role was last updated.
59 changes: 59 additions & 0 deletions docs/data-sources/role_privilege_list.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# Had to mess with description rendering because it was failing with a weird error.
# https://github.com/hashicorp/terraform-plugin-docs/blob/main/internal/provider/template.go
page_title: "idmc_role_privilege_list Data Source - idmc"
subcategory: ""
description: |-
https://docs.informatica.com/integration-cloud/b2b-gateway/current-version/rest-api-reference/platform_rest_api_version_3_resources/privileges.html
---

# idmc_role_privilege_list (Data Source)

https://docs.informatica.com/integration-cloud/b2b-gateway/current-version/rest-api-reference/platform_rest_api_version_3_resources/privileges.html

## Example Usage

```terraform
data "idmc_role_privilege_list" "example" {
status = var.status
}
# Inputs
variable "status" {
type = string
nullable = true
}
# Outputs
output "privileges" {
value = data.idmc_role_privilege_list.example.privileges
}
```

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

### Optional

- `status` (String) Filters the results by status. Use 'All' to get more than enabled and default results.

### Read-Only

- `privileges` (Attributes List) The results of the privilege list request. (see [below for nested schema](#nestedatt--privileges))

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

Optional:

- `id` (String) Privilege ID.
- `name` (String) Name of the privilege.

Read-Only:

- `description` (String) Description of the privilege.
- `service` (String) Service the privilege applies to.
- `status` (String) Status of the privilege:
Enabled: License to use the privilege is valid.
Disabled: License to use the privilege has expired.
Unassigned: No license to use this privilege.
Default: Privilege included by default.
105 changes: 0 additions & 105 deletions docs/data-sources/roles.md

This file was deleted.

20 changes: 16 additions & 4 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
# Had to mess with description rendering because it was failing with a weird error.
# https://github.com/hashicorp/terraform-plugin-docs/blob/main/internal/provider/template.go
page_title: "idmc Provider"
subcategory: ""
description: |-
TODO
https://docs.informatica.com/integration-cloud/data-integration/current-version/rest-api-reference/platform_rest_api_version_3_resources/login_2.html
---

# idmc Provider

TODO
https://docs.informatica.com/integration-cloud/data-integration/current-version/rest-api-reference/platform_rest_api_version_3_resources/login_2.html

## Example Usage

Expand All @@ -18,6 +18,18 @@ provider "idmc" {
auth_user = var.auth_user
auth_pass = var.auth_pass
}
# Inputs
variable "auth_host" {
type = string
}
variable "auth_user" {
type = string
}
variable "auth_pass" {
type = string
sensitive = true
}
```

<!-- schema generated by tfplugindocs -->
Expand Down
Loading

0 comments on commit ac07d57

Please sign in to comment.