Skip to content

Commit

Permalink
Generate libsonnet source from libgenerator PR tf-libsonnet/libgenera…
Browse files Browse the repository at this point in the history
…tor#231

Signed-off-by: tflibsonnet-ci <[email protected]>
  • Loading branch information
yorinasub17 authored and tflibsonnet-ci committed Nov 10, 2023
1 parent c7ebda0 commit f6baded
Show file tree
Hide file tree
Showing 24 changed files with 1,609 additions and 62 deletions.
2 changes: 2 additions & 0 deletions 3.x/_gen/main.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
raft_autopilot: (import 'resources/raft_autopilot.libsonnet'),
raft_snapshot_agent_config: (import 'resources/raft_snapshot_agent_config.libsonnet'),
rgp_policy: (import 'resources/rgp_policy.libsonnet'),
saml_auth_backend: (import 'resources/saml_auth_backend.libsonnet'),
saml_auth_backend_role: (import 'resources/saml_auth_backend_role.libsonnet'),
ssh_secret_backend_ca: (import 'resources/ssh_secret_backend_ca.libsonnet'),
ssh_secret_backend_role: (import 'resources/ssh_secret_backend_role.libsonnet'),
terraform_cloud_secret_backend: (import 'resources/terraform_cloud_secret_backend.libsonnet'),
Expand Down
76 changes: 52 additions & 24 deletions 3.x/_gen/provider_vault.libsonnet

Large diffs are not rendered by default.

18 changes: 16 additions & 2 deletions 3.x/_gen/resources/aws_secret_backend.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@ 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='aws_secret_backend', url='', help='`aws_secret_backend` represents the `vault_aws_secret_backend` 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.aws_secret_backend.new` injects a new `vault_aws_secret_backend` 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.aws_secret_backend.new('some_id')\n\nYou can get the reference to the `id` field of the created `vault.aws_secret_backend` using the reference:\n\n $._ref.vault_aws_secret_backend.some_id.get('id')\n\nThis is the same as directly entering `\"${ vault_aws_secret_backend.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 - `access_key` (`string`): The AWS Access Key ID to use when generating new credentials. When `null`, the `access_key` field will be omitted from the resulting object.\n - `default_lease_ttl_seconds` (`number`): Default lease duration for secrets in seconds When `null`, the `default_lease_ttl_seconds` field will be omitted from the resulting object.\n - `description` (`string`): Human-friendly description of the mount for the backend. When `null`, the `description` field will be omitted from the resulting object.\n - `disable_remount` (`bool`): If set, opts out of mount migration on path updates. When `null`, the `disable_remount` field will be omitted from the resulting object.\n - `iam_endpoint` (`string`): Specifies a custom HTTP IAM endpoint to use. When `null`, the `iam_endpoint` field will be omitted from the resulting object.\n - `max_lease_ttl_seconds` (`number`): Maximum possible lease duration for secrets in seconds When `null`, the `max_lease_ttl_seconds` 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 - `path` (`string`): Path to mount the backend at. When `null`, the `path` field will be omitted from the resulting object.\n - `region` (`string`): The AWS region to make API calls against. Defaults to us-east-1. When `null`, the `region` field will be omitted from the resulting object.\n - `secret_key` (`string`): The AWS Secret Access Key to use when generating new credentials. When `null`, the `secret_key` field will be omitted from the resulting object.\n - `sts_endpoint` (`string`): Specifies a custom HTTP STS endpoint to use. When `null`, the `sts_endpoint` field will be omitted from the resulting object.\n - `username_template` (`string`): Template describing how dynamic usernames are generated. When `null`, the `username_template` 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':: d.fn(help="\n`vault.aws_secret_backend.new` injects a new `vault_aws_secret_backend` 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.aws_secret_backend.new('some_id')\n\nYou can get the reference to the `id` field of the created `vault.aws_secret_backend` using the reference:\n\n $._ref.vault_aws_secret_backend.some_id.get('id')\n\nThis is the same as directly entering `\"${ vault_aws_secret_backend.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 - `access_key` (`string`): The AWS Access Key ID to use when generating new credentials. When `null`, the `access_key` field will be omitted from the resulting object.\n - `default_lease_ttl_seconds` (`number`): Default lease duration for secrets in seconds When `null`, the `default_lease_ttl_seconds` field will be omitted from the resulting object.\n - `description` (`string`): Human-friendly description of the mount for the backend. When `null`, the `description` field will be omitted from the resulting object.\n - `disable_remount` (`bool`): If set, opts out of mount migration on path updates. When `null`, the `disable_remount` field will be omitted from the resulting object.\n - `iam_endpoint` (`string`): Specifies a custom HTTP IAM endpoint to use. When `null`, the `iam_endpoint` field will be omitted from the resulting object.\n - `local_` (`bool`): Specifies if the secret backend is local only When `null`, the `local_` field will be omitted from the resulting object.\n - `max_lease_ttl_seconds` (`number`): Maximum possible lease duration for secrets in seconds When `null`, the `max_lease_ttl_seconds` 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 - `path` (`string`): Path to mount the backend at. When `null`, the `path` field will be omitted from the resulting object.\n - `region` (`string`): The AWS region to make API calls against. Defaults to us-east-1. When `null`, the `region` field will be omitted from the resulting object.\n - `secret_key` (`string`): The AWS Secret Access Key to use when generating new credentials. When `null`, the `secret_key` field will be omitted from the resulting object.\n - `sts_endpoint` (`string`): Specifies a custom HTTP STS endpoint to use. When `null`, the `sts_endpoint` field will be omitted from the resulting object.\n - `username_template` (`string`): Template describing how dynamic usernames are generated. When `null`, the `username_template` 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,
access_key=null,
default_lease_ttl_seconds=null,
description=null,
disable_remount=null,
iam_endpoint=null,
local_=null,
max_lease_ttl_seconds=null,
namespace=null,
path=null,
Expand All @@ -27,6 +28,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
description=description,
disable_remount=disable_remount,
iam_endpoint=iam_endpoint,
local_=local_,
max_lease_ttl_seconds=max_lease_ttl_seconds,
namespace=namespace,
path=path,
Expand All @@ -37,13 +39,14 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
),
_meta=_meta
),
'#newAttrs':: d.fn(help='\n`vault.aws_secret_backend.newAttrs` constructs a new object with attributes and blocks configured for the `aws_secret_backend`\nTerraform resource.\n\nUnlike [vault.aws_secret_backend.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 - `access_key` (`string`): The AWS Access Key ID to use when generating new credentials. When `null`, the `access_key` field will be omitted from the resulting object.\n - `default_lease_ttl_seconds` (`number`): Default lease duration for secrets in seconds When `null`, the `default_lease_ttl_seconds` field will be omitted from the resulting object.\n - `description` (`string`): Human-friendly description of the mount for the backend. When `null`, the `description` field will be omitted from the resulting object.\n - `disable_remount` (`bool`): If set, opts out of mount migration on path updates. When `null`, the `disable_remount` field will be omitted from the resulting object.\n - `iam_endpoint` (`string`): Specifies a custom HTTP IAM endpoint to use. When `null`, the `iam_endpoint` field will be omitted from the resulting object.\n - `max_lease_ttl_seconds` (`number`): Maximum possible lease duration for secrets in seconds When `null`, the `max_lease_ttl_seconds` 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 - `path` (`string`): Path to mount the backend at. When `null`, the `path` field will be omitted from the resulting object.\n - `region` (`string`): The AWS region to make API calls against. Defaults to us-east-1. When `null`, the `region` field will be omitted from the resulting object.\n - `secret_key` (`string`): The AWS Secret Access Key to use when generating new credentials. When `null`, the `secret_key` field will be omitted from the resulting object.\n - `sts_endpoint` (`string`): Specifies a custom HTTP STS endpoint to use. When `null`, the `sts_endpoint` field will be omitted from the resulting object.\n - `username_template` (`string`): Template describing how dynamic usernames are generated. When `null`, the `username_template` 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 `aws_secret_backend` resource into the root Terraform configuration.\n', args=[]),
'#newAttrs':: d.fn(help='\n`vault.aws_secret_backend.newAttrs` constructs a new object with attributes and blocks configured for the `aws_secret_backend`\nTerraform resource.\n\nUnlike [vault.aws_secret_backend.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 - `access_key` (`string`): The AWS Access Key ID to use when generating new credentials. When `null`, the `access_key` field will be omitted from the resulting object.\n - `default_lease_ttl_seconds` (`number`): Default lease duration for secrets in seconds When `null`, the `default_lease_ttl_seconds` field will be omitted from the resulting object.\n - `description` (`string`): Human-friendly description of the mount for the backend. When `null`, the `description` field will be omitted from the resulting object.\n - `disable_remount` (`bool`): If set, opts out of mount migration on path updates. When `null`, the `disable_remount` field will be omitted from the resulting object.\n - `iam_endpoint` (`string`): Specifies a custom HTTP IAM endpoint to use. When `null`, the `iam_endpoint` field will be omitted from the resulting object.\n - `local_` (`bool`): Specifies if the secret backend is local only When `null`, the `local_` field will be omitted from the resulting object.\n - `max_lease_ttl_seconds` (`number`): Maximum possible lease duration for secrets in seconds When `null`, the `max_lease_ttl_seconds` 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 - `path` (`string`): Path to mount the backend at. When `null`, the `path` field will be omitted from the resulting object.\n - `region` (`string`): The AWS region to make API calls against. Defaults to us-east-1. When `null`, the `region` field will be omitted from the resulting object.\n - `secret_key` (`string`): The AWS Secret Access Key to use when generating new credentials. When `null`, the `secret_key` field will be omitted from the resulting object.\n - `sts_endpoint` (`string`): Specifies a custom HTTP STS endpoint to use. When `null`, the `sts_endpoint` field will be omitted from the resulting object.\n - `username_template` (`string`): Template describing how dynamic usernames are generated. When `null`, the `username_template` 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 `aws_secret_backend` resource into the root Terraform configuration.\n', args=[]),
newAttrs(
access_key=null,
default_lease_ttl_seconds=null,
description=null,
disable_remount=null,
iam_endpoint=null,
local_=null,
max_lease_ttl_seconds=null,
namespace=null,
path=null,
Expand All @@ -57,6 +60,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
description: description,
disable_remount: disable_remount,
iam_endpoint: iam_endpoint,
'local': local_,
max_lease_ttl_seconds: max_lease_ttl_seconds,
namespace: namespace,
path: path,
Expand Down Expand Up @@ -115,6 +119,16 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
},
},
},
'#withLocal':: d.fn(help='`vault.bool.withLocal` constructs a mixin object that can be merged into the `bool`\nTerraform resource block to set or update the local 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 `local` field.\n', args=[]),
withLocal(resourceLabel, value): {
resource+: {
vault_aws_secret_backend+: {
[resourceLabel]+: {
'local': value,
},
},
},
},
'#withMaxLeaseTtlSeconds':: d.fn(help='`vault.number.withMaxLeaseTtlSeconds` constructs a mixin object that can be merged into the `number`\nTerraform resource block to set or update the max_lease_ttl_seconds field.\n\n\n\n**Args**:\n - `resourceLabel` (`string`): The name label of the block to update.\n - `value` (`number`): The value to set for the `max_lease_ttl_seconds` field.\n', args=[]),
withMaxLeaseTtlSeconds(resourceLabel, value): {
resource+: {
Expand Down
Loading

0 comments on commit f6baded

Please sign in to comment.