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#175

Signed-off-by: tflibsonnet-ci <[email protected]>
  • Loading branch information
yorinasub17 authored and tflibsonnet-ci committed Jun 22, 2023
1 parent a761929 commit bc89eab
Show file tree
Hide file tree
Showing 36 changed files with 2,478 additions and 20 deletions.
58 changes: 58 additions & 0 deletions 3.x/_gen/data/aws_static_access_credentials.libsonnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
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_static_access_credentials', url='', help='`aws_static_access_credentials` represents the `vault_aws_static_access_credentials` Terraform data source.\n\n\n\nThis package contains functions and utilities for setting up the data source using Jsonnet code.\n'),
'#new':: d.fn(help="\n`vault.data.aws_static_access_credentials.new` injects a new `data_vault_aws_static_access_credentials` Terraform `data source`\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.data.aws_static_access_credentials.new('some_id')\n\nYou can get the reference to the `id` field of the created `vault.data.aws_static_access_credentials` using the reference:\n\n $._ref.data_vault_aws_static_access_credentials.some_id.get('id')\n\nThis is the same as directly entering `\"${ data_vault_aws_static_access_credentials.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 - `dataSrcLabel` (`string`): The name label of the block.\n - `backend` (`string`): AWS Secret Backend to read credentials from.\n - `name` (`string`): Name of the role.\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 data source into the root Terraform configuration.\n", args=[]),
new(
dataSrcLabel,
backend,
name,
namespace=null,
_meta={}
):: tf.withData(
type='vault_aws_static_access_credentials',
label=dataSrcLabel,
attrs=self.newAttrs(backend=backend, name=name, namespace=namespace),
_meta=_meta
),
'#newAttrs':: d.fn(help='\n`vault.data.aws_static_access_credentials.newAttrs` constructs a new object with attributes and blocks configured for the `aws_static_access_credentials`\nTerraform data source.\n\nUnlike [vault.data.aws_static_access_credentials.new](#fn-new), this function will not inject the `data source`\nblock into the root Terraform document. Instead, this must be passed in as the `attrs` argument for the\n[tf.withData](https://github.com/tf-libsonnet/core/tree/main/docs#fn-withdata) 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`): AWS Secret Backend to read credentials from.\n - `name` (`string`): Name of the role.\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.withData](https://github.com/tf-libsonnet/core/tree/main/docs#fn-withdata) to construct a new `aws_static_access_credentials` data source into the root Terraform configuration.\n', args=[]),
newAttrs(
backend,
name,
namespace=null
):: std.prune(a={
backend: backend,
name: name,
namespace: namespace,
}),
'#withBackend':: d.fn(help='`vault.string.withBackend` constructs a mixin object that can be merged into the `string`\nTerraform data source block to set or update the backend field.\n\n\n\n**Args**:\n - `dataSrcLabel` (`string`): The name label of the block to update.\n - `value` (`string`): The value to set for the `backend` field.\n', args=[]),
withBackend(dataSrcLabel, value): {
data+: {
vault_aws_static_access_credentials+: {
[dataSrcLabel]+: {
backend: value,
},
},
},
},
'#withName':: d.fn(help='`vault.string.withName` constructs a mixin object that can be merged into the `string`\nTerraform data source block to set or update the name field.\n\n\n\n**Args**:\n - `dataSrcLabel` (`string`): The name label of the block to update.\n - `value` (`string`): The value to set for the `name` field.\n', args=[]),
withName(dataSrcLabel, value): {
data+: {
vault_aws_static_access_credentials+: {
[dataSrcLabel]+: {
name: value,
},
},
},
},
'#withNamespace':: d.fn(help='`vault.string.withNamespace` constructs a mixin object that can be merged into the `string`\nTerraform data source block to set or update the namespace field.\n\n\n\n**Args**:\n - `dataSrcLabel` (`string`): The name label of the block to update.\n - `value` (`string`): The value to set for the `namespace` field.\n', args=[]),
withNamespace(dataSrcLabel, value): {
data+: {
vault_aws_static_access_credentials+: {
[dataSrcLabel]+: {
namespace: value,
},
},
},
},
}
5 changes: 5 additions & 0 deletions 3.x/_gen/data/main.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
auth_backend: (import 'auth_backend.libsonnet'),
auth_backends: (import 'auth_backends.libsonnet'),
aws_access_credentials: (import 'aws_access_credentials.libsonnet'),
aws_static_access_credentials: (import 'aws_static_access_credentials.libsonnet'),
azure_access_credentials: (import 'azure_access_credentials.libsonnet'),
gcp_auth_backend_role: (import 'gcp_auth_backend_role.libsonnet'),
generic_secret: (import 'generic_secret.libsonnet'),
Expand All @@ -25,6 +26,10 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
ldap_dynamic_credentials: (import 'ldap_dynamic_credentials.libsonnet'),
ldap_static_credentials: (import 'ldap_static_credentials.libsonnet'),
nomad_access_token: (import 'nomad_access_token.libsonnet'),
pki_secret_backend_issuer: (import 'pki_secret_backend_issuer.libsonnet'),
pki_secret_backend_issuers: (import 'pki_secret_backend_issuers.libsonnet'),
pki_secret_backend_key: (import 'pki_secret_backend_key.libsonnet'),
pki_secret_backend_keys: (import 'pki_secret_backend_keys.libsonnet'),
policy_document: (import 'policy_document.libsonnet'),
raft_autopilot_state: (import 'raft_autopilot_state.libsonnet'),
transform_decode: (import 'transform_decode.libsonnet'),
Expand Down
58 changes: 58 additions & 0 deletions 3.x/_gen/data/pki_secret_backend_issuer.libsonnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
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_issuer', url='', help='`pki_secret_backend_issuer` represents the `vault_pki_secret_backend_issuer` Terraform data source.\n\n\n\nThis package contains functions and utilities for setting up the data source using Jsonnet code.\n'),
'#new':: d.fn(help="\n`vault.data.pki_secret_backend_issuer.new` injects a new `data_vault_pki_secret_backend_issuer` Terraform `data source`\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.data.pki_secret_backend_issuer.new('some_id')\n\nYou can get the reference to the `id` field of the created `vault.data.pki_secret_backend_issuer` using the reference:\n\n $._ref.data_vault_pki_secret_backend_issuer.some_id.get('id')\n\nThis is the same as directly entering `\"${ data_vault_pki_secret_backend_issuer.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 - `dataSrcLabel` (`string`): The name label of the block.\n - `backend` (`string`): Full path where PKI backend is mounted.\n - `issuer_ref` (`string`): Reference to an existing issuer.\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 data source into the root Terraform configuration.\n", args=[]),
new(
dataSrcLabel,
backend,
issuer_ref,
namespace=null,
_meta={}
):: tf.withData(
type='vault_pki_secret_backend_issuer',
label=dataSrcLabel,
attrs=self.newAttrs(backend=backend, issuer_ref=issuer_ref, namespace=namespace),
_meta=_meta
),
'#newAttrs':: d.fn(help='\n`vault.data.pki_secret_backend_issuer.newAttrs` constructs a new object with attributes and blocks configured for the `pki_secret_backend_issuer`\nTerraform data source.\n\nUnlike [vault.data.pki_secret_backend_issuer.new](#fn-new), this function will not inject the `data source`\nblock into the root Terraform document. Instead, this must be passed in as the `attrs` argument for the\n[tf.withData](https://github.com/tf-libsonnet/core/tree/main/docs#fn-withdata) 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 - `issuer_ref` (`string`): Reference to an existing issuer.\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.withData](https://github.com/tf-libsonnet/core/tree/main/docs#fn-withdata) to construct a new `pki_secret_backend_issuer` data source into the root Terraform configuration.\n', args=[]),
newAttrs(
backend,
issuer_ref,
namespace=null
):: std.prune(a={
backend: backend,
issuer_ref: issuer_ref,
namespace: namespace,
}),
'#withBackend':: d.fn(help='`vault.string.withBackend` constructs a mixin object that can be merged into the `string`\nTerraform data source block to set or update the backend field.\n\n\n\n**Args**:\n - `dataSrcLabel` (`string`): The name label of the block to update.\n - `value` (`string`): The value to set for the `backend` field.\n', args=[]),
withBackend(dataSrcLabel, value): {
data+: {
vault_pki_secret_backend_issuer+: {
[dataSrcLabel]+: {
backend: value,
},
},
},
},
'#withIssuerRef':: d.fn(help='`vault.string.withIssuerRef` constructs a mixin object that can be merged into the `string`\nTerraform data source block to set or update the issuer_ref field.\n\n\n\n**Args**:\n - `dataSrcLabel` (`string`): The name label of the block to update.\n - `value` (`string`): The value to set for the `issuer_ref` field.\n', args=[]),
withIssuerRef(dataSrcLabel, value): {
data+: {
vault_pki_secret_backend_issuer+: {
[dataSrcLabel]+: {
issuer_ref: value,
},
},
},
},
'#withNamespace':: d.fn(help='`vault.string.withNamespace` constructs a mixin object that can be merged into the `string`\nTerraform data source block to set or update the namespace field.\n\n\n\n**Args**:\n - `dataSrcLabel` (`string`): The name label of the block to update.\n - `value` (`string`): The value to set for the `namespace` field.\n', args=[]),
withNamespace(dataSrcLabel, value): {
data+: {
vault_pki_secret_backend_issuer+: {
[dataSrcLabel]+: {
namespace: value,
},
},
},
},
}
45 changes: 45 additions & 0 deletions 3.x/_gen/data/pki_secret_backend_issuers.libsonnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
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_issuers', url='', help='`pki_secret_backend_issuers` represents the `vault_pki_secret_backend_issuers` Terraform data source.\n\n\n\nThis package contains functions and utilities for setting up the data source using Jsonnet code.\n'),
'#new':: d.fn(help="\n`vault.data.pki_secret_backend_issuers.new` injects a new `data_vault_pki_secret_backend_issuers` Terraform `data source`\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.data.pki_secret_backend_issuers.new('some_id')\n\nYou can get the reference to the `id` field of the created `vault.data.pki_secret_backend_issuers` using the reference:\n\n $._ref.data_vault_pki_secret_backend_issuers.some_id.get('id')\n\nThis is the same as directly entering `\"${ data_vault_pki_secret_backend_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 - `dataSrcLabel` (`string`): The name label of the block.\n - `backend` (`string`): Full path where PKI backend is mounted.\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 data source into the root Terraform configuration.\n", args=[]),
new(
dataSrcLabel,
backend,
namespace=null,
_meta={}
):: tf.withData(
type='vault_pki_secret_backend_issuers',
label=dataSrcLabel,
attrs=self.newAttrs(backend=backend, namespace=namespace),
_meta=_meta
),
'#newAttrs':: d.fn(help='\n`vault.data.pki_secret_backend_issuers.newAttrs` constructs a new object with attributes and blocks configured for the `pki_secret_backend_issuers`\nTerraform data source.\n\nUnlike [vault.data.pki_secret_backend_issuers.new](#fn-new), this function will not inject the `data source`\nblock into the root Terraform document. Instead, this must be passed in as the `attrs` argument for the\n[tf.withData](https://github.com/tf-libsonnet/core/tree/main/docs#fn-withdata) 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 - `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.withData](https://github.com/tf-libsonnet/core/tree/main/docs#fn-withdata) to construct a new `pki_secret_backend_issuers` data source into the root Terraform configuration.\n', args=[]),
newAttrs(
backend,
namespace=null
):: std.prune(a={
backend: backend,
namespace: namespace,
}),
'#withBackend':: d.fn(help='`vault.string.withBackend` constructs a mixin object that can be merged into the `string`\nTerraform data source block to set or update the backend field.\n\n\n\n**Args**:\n - `dataSrcLabel` (`string`): The name label of the block to update.\n - `value` (`string`): The value to set for the `backend` field.\n', args=[]),
withBackend(dataSrcLabel, value): {
data+: {
vault_pki_secret_backend_issuers+: {
[dataSrcLabel]+: {
backend: value,
},
},
},
},
'#withNamespace':: d.fn(help='`vault.string.withNamespace` constructs a mixin object that can be merged into the `string`\nTerraform data source block to set or update the namespace field.\n\n\n\n**Args**:\n - `dataSrcLabel` (`string`): The name label of the block to update.\n - `value` (`string`): The value to set for the `namespace` field.\n', args=[]),
withNamespace(dataSrcLabel, value): {
data+: {
vault_pki_secret_backend_issuers+: {
[dataSrcLabel]+: {
namespace: value,
},
},
},
},
}
Loading

0 comments on commit bc89eab

Please sign in to comment.