Skip to content

Commit

Permalink
fix: pathagain (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-FFFFFF authored Jul 5, 2024
1 parent f2fc25d commit 562db77
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
8 changes: 4 additions & 4 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ For more information please visit the [GitHub repository](https://github.com/Azu
- `client_secret` (String, Sensitive) The client secret which should be used. For use when authenticating as a service principal using a client secret. If not specified, value will be attempted to be read from the `ARM_CLIENT_SECRET` environment variable.
- `environment` (String)
- `lib_overwrite_enabled` (Boolean) Whether to allow overwriting of the library by other lib directories. Default is `false`.
- `library_references` (Attributes List) A list of references to the [ALZ library](https://aka.ms/alz/library) to use. Each reference should either contain the `path` (e.g. `platform/alz`) and the `tag` (e.g. `2024.03.03`), or a `custom_url` to be supplied to go-getter.
- `library_references` (Attributes List) A list of references to the [ALZ library](https://aka.ms/alz/library) to use. Each reference should either contain the `path` (e.g. `platform/alz`) and the `ref` (e.g. `2024.03.03`), or a `custom_url` to be supplied to go-getter.
If this value is not specified, the default value will be used, which is:

```terraform
Expand All @@ -113,6 +113,6 @@ alz_library_references = [
Optional:
- `custom_url` (String, Sensitive) A custom path/URL to the library to use. Conflicts with `path` and `tag`. For supported protocols, see [go-getter](https://pkg.go.dev/github.com/hashicorp/go-getter/v2). Value is marked sensitive as may contain secrets.
- `path` (String) The path in the ALZ Library, e.g. `platform/alz`. Conflicts with `custom_url`.
- `ref` (String) This is the version of the library to use, e.g. `2024.03.03`. Conflicts with `custom_url`.
- `custom_url` (String, Sensitive) A custom path/URL to the library to use. Conflicts with `path` and `ref`. For supported protocols, see [go-getter](https://pkg.go.dev/github.com/hashicorp/go-getter/v2). Value is marked sensitive as may contain secrets.
- `path` (String) The path in the ALZ Library, e.g. `platform/alz`. Also requires `ref`. Conflicts with `custom_url`.
- `ref` (String) This is the version of the library to use, e.g. `2024.03.03`. Also requires `path`. Conflicts with `custom_url`.
18 changes: 9 additions & 9 deletions internal/provider/gen/alz_provider_gen.go

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

10 changes: 5 additions & 5 deletions internal/provider/ir.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,14 +120,14 @@
"name": "library_references",
"list_nested": {
"optional_required": "optional",
"description": "A list of references to the [ALZ library](https://aka.ms/alz/library) to use. Each reference should either contain the `path` (e.g. `platform/alz`) and the `tag` (e.g. `2024.03.03`), or a `custom_url` to be supplied to go-getter.\nIf this value is not specified, the default value will be used, which is:\n\n```terraform\nalz_library_references = [\n { path = \"platform/alz\", tag = \"2024.03.03\" },\n]\n```\n",
"description": "A list of references to the [ALZ library](https://aka.ms/alz/library) to use. Each reference should either contain the `path` (e.g. `platform/alz`) and the `ref` (e.g. `2024.03.03`), or a `custom_url` to be supplied to go-getter.\nIf this value is not specified, the default value will be used, which is:\n\n```terraform\nalz_library_references = [\n { path = \"platform/alz\", tag = \"2024.03.03\" },\n]\n```\n",
"nested_object": {
"attributes": [
{
"name": "path",
"string": {
"optional_required": "optional",
"description": "The path in the ALZ Library, e.g. `platform/alz`. Conflicts with `custom_url`.",
"description": "The path in the ALZ Library, e.g. `platform/alz`. Also requires `ref`. Conflicts with `custom_url`.",
"validators": [
{
"custom": {
Expand Down Expand Up @@ -156,7 +156,7 @@
"name": "ref",
"string": {
"optional_required": "optional",
"description": "This is the version of the library to use, e.g. `2024.03.03`. Conflicts with `custom_url`.",
"description": "This is the version of the library to use, e.g. `2024.03.03`. Also requires `path`. Conflicts with `custom_url`.",
"validators": [
{
"custom": {
Expand Down Expand Up @@ -185,7 +185,7 @@
"name": "custom_url",
"string": {
"optional_required": "optional",
"description": "A custom path/URL to the library to use. Conflicts with `path` and `tag`. For supported protocols, see [go-getter](https://pkg.go.dev/github.com/hashicorp/go-getter/v2). Value is marked sensitive as may contain secrets.",
"description": "A custom path/URL to the library to use. Conflicts with `path` and `ref`. For supported protocols, see [go-getter](https://pkg.go.dev/github.com/hashicorp/go-getter/v2). Value is marked sensitive as may contain secrets.",
"sensitive": true,
"validators": [
{
Expand All @@ -211,7 +211,7 @@
"path": "github.com/hashicorp/terraform-plugin-framework/path"
}
],
"schema_definition": "stringvalidator.ConflictsWith(path.MatchRelative().AtParent().AtName(\"tag\"))"
"schema_definition": "stringvalidator.ConflictsWith(path.MatchRelative().AtParent().AtName(\"ref\"))"
}
}
]
Expand Down

0 comments on commit 562db77

Please sign in to comment.