generated from tf-libsonnet/provider-libsonnet-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate libsonnet source from libgenerator PR tf-libsonnet/libgenera…
…tor#189 Signed-off-by: tflibsonnet-ci <[email protected]>
- Loading branch information
1 parent
69d46c6
commit 51355ff
Showing
6 changed files
with
271 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
76 changes: 76 additions & 0 deletions
76
3.x/_gen/resources/pki_secret_backend_config_issuers.libsonnet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
local tf = (import 'github.com/tf-libsonnet/core/main.libsonnet'); | ||
local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'); | ||
{ | ||
'#':: d.pkg(name='pki_secret_backend_config_issuers', url='', help='`pki_secret_backend_config_issuers` represents the `vault_pki_secret_backend_config_issuers` Terraform resource.\n\n\n\nThis package contains functions and utilities for setting up the resource using Jsonnet code.\n'), | ||
'#new':: d.fn(help="\n`vault.pki_secret_backend_config_issuers.new` injects a new `vault_pki_secret_backend_config_issuers` Terraform `resource`\nblock into the root module document.\n\nAdditionally, this inserts a private function into the `_ref` attribute that generates references to attributes of the\nresource. For example, if you added a new instance to the root using:\n\n # arguments omitted for brevity\n vault.pki_secret_backend_config_issuers.new('some_id')\n\nYou can get the reference to the `id` field of the created `vault.pki_secret_backend_config_issuers` using the reference:\n\n $._ref.vault_pki_secret_backend_config_issuers.some_id.get('id')\n\nThis is the same as directly entering `\"${ vault_pki_secret_backend_config_issuers.some_id.id }\"` as the value.\n\nNOTE: if you are chaining multiple resources together in a merge operation, you may not be able to use `super`, `self`,\nor `$` to refer to the root object. Instead, make an explicit outer object using `local`.\n\n**Args**:\n - `resourceLabel` (`string`): The name label of the block.\n - `backend` (`string`): Full path where PKI backend is mounted.\n - `default` (`string`): Specifies the default issuer by ID. When `null`, the `default` field will be omitted from the resulting object.\n - `default_follows_latest_issuer` (`bool`): Specifies whether a root creation or an issuer import operation updates the default issuer to the newly added issuer. When `null`, the `default_follows_latest_issuer` field will be omitted from the resulting object.\n - `namespace` (`string`): Target namespace. (requires Enterprise) When `null`, the `namespace` field will be omitted from the resulting object.\n\n**Returns**:\n- A mixin object that injects the new resource into the root Terraform configuration.\n", args=[]), | ||
new( | ||
resourceLabel, | ||
backend, | ||
default=null, | ||
default_follows_latest_issuer=null, | ||
namespace=null, | ||
_meta={} | ||
):: tf.withResource( | ||
type='vault_pki_secret_backend_config_issuers', | ||
label=resourceLabel, | ||
attrs=self.newAttrs( | ||
backend=backend, | ||
default=default, | ||
default_follows_latest_issuer=default_follows_latest_issuer, | ||
namespace=namespace | ||
), | ||
_meta=_meta | ||
), | ||
'#newAttrs':: d.fn(help='\n`vault.pki_secret_backend_config_issuers.newAttrs` constructs a new object with attributes and blocks configured for the `pki_secret_backend_config_issuers`\nTerraform resource.\n\nUnlike [vault.pki_secret_backend_config_issuers.new](#fn-new), this function will not inject the `resource`\nblock into the root Terraform document. Instead, this must be passed in as the `attrs` argument for the\n[tf.withResource](https://github.com/tf-libsonnet/core/tree/main/docs#fn-withresource) function to build a complete block.\n\nThis is most useful when you need to preprocess the attributes with functions, conditional, or looping logic prior to\ninjecting into a complete block.\n\n**Args**:\n - `backend` (`string`): Full path where PKI backend is mounted.\n - `default` (`string`): Specifies the default issuer by ID. When `null`, the `default` field will be omitted from the resulting object.\n - `default_follows_latest_issuer` (`bool`): Specifies whether a root creation or an issuer import operation updates the default issuer to the newly added issuer. When `null`, the `default_follows_latest_issuer` field will be omitted from the resulting object.\n - `namespace` (`string`): Target namespace. (requires Enterprise) When `null`, the `namespace` field will be omitted from the resulting object.\n\n**Returns**:\n - An attribute object that can be used with [tf.withResource](https://github.com/tf-libsonnet/core/tree/main/docs#fn-withresource) to construct a new `pki_secret_backend_config_issuers` resource into the root Terraform configuration.\n', args=[]), | ||
newAttrs( | ||
backend, | ||
default=null, | ||
default_follows_latest_issuer=null, | ||
namespace=null | ||
):: std.prune(a={ | ||
backend: backend, | ||
default: default, | ||
default_follows_latest_issuer: default_follows_latest_issuer, | ||
namespace: namespace, | ||
}), | ||
'#withBackend':: d.fn(help='`vault.string.withBackend` constructs a mixin object that can be merged into the `string`\nTerraform resource block to set or update the backend field.\n\n\n\n**Args**:\n - `resourceLabel` (`string`): The name label of the block to update.\n - `value` (`string`): The value to set for the `backend` field.\n', args=[]), | ||
withBackend(resourceLabel, value): { | ||
resource+: { | ||
vault_pki_secret_backend_config_issuers+: { | ||
[resourceLabel]+: { | ||
backend: value, | ||
}, | ||
}, | ||
}, | ||
}, | ||
'#withDefault':: d.fn(help='`vault.string.withDefault` constructs a mixin object that can be merged into the `string`\nTerraform resource block to set or update the default field.\n\n\n\n**Args**:\n - `resourceLabel` (`string`): The name label of the block to update.\n - `value` (`string`): The value to set for the `default` field.\n', args=[]), | ||
withDefault(resourceLabel, value): { | ||
resource+: { | ||
vault_pki_secret_backend_config_issuers+: { | ||
[resourceLabel]+: { | ||
default: value, | ||
}, | ||
}, | ||
}, | ||
}, | ||
'#withDefaultFollowsLatestIssuer':: d.fn(help='`vault.bool.withDefaultFollowsLatestIssuer` constructs a mixin object that can be merged into the `bool`\nTerraform resource block to set or update the default_follows_latest_issuer field.\n\n\n\n**Args**:\n - `resourceLabel` (`string`): The name label of the block to update.\n - `value` (`bool`): The value to set for the `default_follows_latest_issuer` field.\n', args=[]), | ||
withDefaultFollowsLatestIssuer(resourceLabel, value): { | ||
resource+: { | ||
vault_pki_secret_backend_config_issuers+: { | ||
[resourceLabel]+: { | ||
default_follows_latest_issuer: value, | ||
}, | ||
}, | ||
}, | ||
}, | ||
'#withNamespace':: d.fn(help='`vault.string.withNamespace` constructs a mixin object that can be merged into the `string`\nTerraform resource block to set or update the namespace field.\n\n\n\n**Args**:\n - `resourceLabel` (`string`): The name label of the block to update.\n - `value` (`string`): The value to set for the `namespace` field.\n', args=[]), | ||
withNamespace(resourceLabel, value): { | ||
resource+: { | ||
vault_pki_secret_backend_config_issuers+: { | ||
[resourceLabel]+: { | ||
namespace: value, | ||
}, | ||
}, | ||
}, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,149 @@ | ||
--- | ||
permalink: /pki_secret_backend_config_issuers/ | ||
--- | ||
|
||
# pki_secret_backend_config_issuers | ||
|
||
`pki_secret_backend_config_issuers` represents the `vault_pki_secret_backend_config_issuers` Terraform resource. | ||
|
||
|
||
|
||
This package contains functions and utilities for setting up the resource using Jsonnet code. | ||
|
||
|
||
## Index | ||
|
||
* [`fn new()`](#fn-new) | ||
* [`fn newAttrs()`](#fn-newattrs) | ||
* [`fn withBackend()`](#fn-withbackend) | ||
* [`fn withDefault()`](#fn-withdefault) | ||
* [`fn withDefaultFollowsLatestIssuer()`](#fn-withdefaultfollowslatestissuer) | ||
* [`fn withNamespace()`](#fn-withnamespace) | ||
|
||
## Fields | ||
|
||
### fn new | ||
|
||
```ts | ||
new() | ||
``` | ||
|
||
|
||
`vault.pki_secret_backend_config_issuers.new` injects a new `vault_pki_secret_backend_config_issuers` Terraform `resource` | ||
block into the root module document. | ||
|
||
Additionally, this inserts a private function into the `_ref` attribute that generates references to attributes of the | ||
resource. For example, if you added a new instance to the root using: | ||
|
||
# arguments omitted for brevity | ||
vault.pki_secret_backend_config_issuers.new('some_id') | ||
|
||
You can get the reference to the `id` field of the created `vault.pki_secret_backend_config_issuers` using the reference: | ||
|
||
$._ref.vault_pki_secret_backend_config_issuers.some_id.get('id') | ||
|
||
This is the same as directly entering `"${ vault_pki_secret_backend_config_issuers.some_id.id }"` as the value. | ||
|
||
NOTE: if you are chaining multiple resources together in a merge operation, you may not be able to use `super`, `self`, | ||
or `$` to refer to the root object. Instead, make an explicit outer object using `local`. | ||
|
||
**Args**: | ||
- `resourceLabel` (`string`): The name label of the block. | ||
- `backend` (`string`): Full path where PKI backend is mounted. | ||
- `default` (`string`): Specifies the default issuer by ID. When `null`, the `default` field will be omitted from the resulting object. | ||
- `default_follows_latest_issuer` (`bool`): Specifies whether a root creation or an issuer import operation updates the default issuer to the newly added issuer. When `null`, the `default_follows_latest_issuer` field will be omitted from the resulting object. | ||
- `namespace` (`string`): Target namespace. (requires Enterprise) When `null`, the `namespace` field will be omitted from the resulting object. | ||
|
||
**Returns**: | ||
- A mixin object that injects the new resource into the root Terraform configuration. | ||
|
||
|
||
### fn newAttrs | ||
|
||
```ts | ||
newAttrs() | ||
``` | ||
|
||
|
||
`vault.pki_secret_backend_config_issuers.newAttrs` constructs a new object with attributes and blocks configured for the `pki_secret_backend_config_issuers` | ||
Terraform resource. | ||
|
||
Unlike [vault.pki_secret_backend_config_issuers.new](#fn-new), this function will not inject the `resource` | ||
block into the root Terraform document. Instead, this must be passed in as the `attrs` argument for the | ||
[tf.withResource](https://github.com/tf-libsonnet/core/tree/main/docs#fn-withresource) function to build a complete block. | ||
|
||
This is most useful when you need to preprocess the attributes with functions, conditional, or looping logic prior to | ||
injecting into a complete block. | ||
|
||
**Args**: | ||
- `backend` (`string`): Full path where PKI backend is mounted. | ||
- `default` (`string`): Specifies the default issuer by ID. When `null`, the `default` field will be omitted from the resulting object. | ||
- `default_follows_latest_issuer` (`bool`): Specifies whether a root creation or an issuer import operation updates the default issuer to the newly added issuer. When `null`, the `default_follows_latest_issuer` field will be omitted from the resulting object. | ||
- `namespace` (`string`): Target namespace. (requires Enterprise) When `null`, the `namespace` field will be omitted from the resulting object. | ||
|
||
**Returns**: | ||
- An attribute object that can be used with [tf.withResource](https://github.com/tf-libsonnet/core/tree/main/docs#fn-withresource) to construct a new `pki_secret_backend_config_issuers` resource into the root Terraform configuration. | ||
|
||
|
||
### fn withBackend | ||
|
||
```ts | ||
withBackend() | ||
``` | ||
|
||
`vault.string.withBackend` constructs a mixin object that can be merged into the `string` | ||
Terraform resource block to set or update the backend field. | ||
|
||
|
||
|
||
**Args**: | ||
- `resourceLabel` (`string`): The name label of the block to update. | ||
- `value` (`string`): The value to set for the `backend` field. | ||
|
||
|
||
### fn withDefault | ||
|
||
```ts | ||
withDefault() | ||
``` | ||
|
||
`vault.string.withDefault` constructs a mixin object that can be merged into the `string` | ||
Terraform resource block to set or update the default field. | ||
|
||
|
||
|
||
**Args**: | ||
- `resourceLabel` (`string`): The name label of the block to update. | ||
- `value` (`string`): The value to set for the `default` field. | ||
|
||
|
||
### fn withDefaultFollowsLatestIssuer | ||
|
||
```ts | ||
withDefaultFollowsLatestIssuer() | ||
``` | ||
|
||
`vault.bool.withDefaultFollowsLatestIssuer` constructs a mixin object that can be merged into the `bool` | ||
Terraform resource block to set or update the default_follows_latest_issuer field. | ||
|
||
|
||
|
||
**Args**: | ||
- `resourceLabel` (`string`): The name label of the block to update. | ||
- `value` (`bool`): The value to set for the `default_follows_latest_issuer` field. | ||
|
||
|
||
### fn withNamespace | ||
|
||
```ts | ||
withNamespace() | ||
``` | ||
|
||
`vault.string.withNamespace` constructs a mixin object that can be merged into the `string` | ||
Terraform resource block to set or update the namespace field. | ||
|
||
|
||
|
||
**Args**: | ||
- `resourceLabel` (`string`): The name label of the block to update. | ||
- `value` (`string`): The value to set for the `namespace` field. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters