Skip to content

Commit

Permalink
Update dependency hashicorp/terraform-provider-hcp to v0.54.0 (#14)
Browse files Browse the repository at this point in the history
Signed-off-by: tflibsonnet-ci <[email protected]>
Co-authored-by: renovate[bot] <renovate[bot]@users.noreply.github.com>
  • Loading branch information
tflibsonnet-ci and renovate[bot] authored Feb 15, 2023
1 parent e031706 commit 26207cb
Show file tree
Hide file tree
Showing 4 changed files with 368 additions and 0 deletions.
1 change: 1 addition & 0 deletions 0.x/_gen/main.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
hvn: (import 'resources/hvn.libsonnet'),
hvn_peering_connection: (import 'resources/hvn_peering_connection.libsonnet'),
hvn_route: (import 'resources/hvn_route.libsonnet'),
packer_channel: (import 'resources/packer_channel.libsonnet'),
vault_cluster: (import 'resources/vault_cluster.libsonnet'),
vault_cluster_admin_token: (import 'resources/vault_cluster_admin_token.libsonnet'),
data: (import 'data/main.libsonnet'),
Expand Down
120 changes: 120 additions & 0 deletions 0.x/_gen/resources/packer_channel.libsonnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
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='packer_channel', url='', help='`packer_channel` represents the `hcp_packer_channel` Terraform resource.\n\nThe Packer Channel resource allows you to manage image bucket channels within an active HCP Packer Registry.\n\nThis package contains functions and utilities for setting up the resource using Jsonnet code.\n'),
iteration:: {
'#new':: d.fn(help='\n`hcp.packer_channel.iteration.new` constructs a new object with attributes and blocks configured for the `iteration`\nTerraform sub block.\n\n\n\n**Args**:\n - `fingerprint` (`string`): The fingerprint of the iteration assigned to the channel. When `null`, the `fingerprint` field will be omitted from the resulting object.\n - `incremental_version` (`number`): The incremental_version of the iteration assigned to the channel. When `null`, the `incremental_version` field will be omitted from the resulting object.\n\n**Returns**:\n - An attribute object that represents the `iteration` sub block.\n', args=[]),
new(
fingerprint=null,
incremental_version=null
):: std.prune(a={
fingerprint: fingerprint,
incremental_version: incremental_version,
}),
},
'#new':: d.fn(help="\n`hcp.packer_channel.new` injects a new `hcp_packer_channel` 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 hcp.packer_channel.new('some_id')\n\nYou can get the reference to the `id` field of the created `hcp.packer_channel` using the reference:\n\n $._ref.hcp_packer_channel.some_id.get('id')\n\nThis is the same as directly entering `\"${ hcp_packer_channel.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 - `bucket_name` (`string`): The slug of the HCP Packer Registry image bucket where the channel should be managed in.\n - `name` (`string`): The name of the channel being managed.\n - `iteration` (`list[obj]`): The iteration assigned to the channel. When `null`, the `iteration` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [hcp.packer_channel.iteration.new](#fn-iterationnew) constructor.\n - `timeouts` (`obj`): Set the `timeouts` field on the resulting resource block. When `null`, the `timeouts` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [hcp.packer_channel.timeouts.new](#fn-timeoutsnew) constructor.\n\n**Returns**:\n- A mixin object that injects the new resource into the root Terraform configuration.\n", args=[]),
new(
resourceLabel,
bucket_name,
name,
iteration=null,
timeouts=null,
_meta={}
):: tf.withResource(
type='hcp_packer_channel',
label=resourceLabel,
attrs=self.newAttrs(
bucket_name=bucket_name,
iteration=iteration,
name=name,
timeouts=timeouts
),
_meta=_meta
),
'#newAttrs':: d.fn(help='\n`hcp.packer_channel.newAttrs` constructs a new object with attributes and blocks configured for the `packer_channel`\nTerraform resource.\n\nUnlike [hcp.packer_channel.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 - `bucket_name` (`string`): The slug of the HCP Packer Registry image bucket where the channel should be managed in.\n - `name` (`string`): The name of the channel being managed.\n - `iteration` (`list[obj]`): The iteration assigned to the channel. When `null`, the `iteration` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [hcp.packer_channel.iteration.new](#fn-iterationnew) constructor.\n - `timeouts` (`obj`): Set the `timeouts` field on the resulting object. When `null`, the `timeouts` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [hcp.packer_channel.timeouts.new](#fn-timeoutsnew) constructor.\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 `packer_channel` resource into the root Terraform configuration.\n', args=[]),
newAttrs(
bucket_name,
name,
iteration=null,
timeouts=null
):: std.prune(a={
bucket_name: bucket_name,
iteration: iteration,
name: name,
timeouts: timeouts,
}),
timeouts:: {
'#new':: d.fn(help='\n`hcp.packer_channel.timeouts.new` constructs a new object with attributes and blocks configured for the `timeouts`\nTerraform sub block.\n\n\n\n**Args**:\n - `create` (`string`): Set the `create` field on the resulting object. When `null`, the `create` field will be omitted from the resulting object.\n - `default` (`string`): Set the `default` field on the resulting object. When `null`, the `default` field will be omitted from the resulting object.\n - `delete` (`string`): Set the `delete` field on the resulting object. When `null`, the `delete` field will be omitted from the resulting object.\n - `update` (`string`): Set the `update` field on the resulting object. When `null`, the `update` field will be omitted from the resulting object.\n\n**Returns**:\n - An attribute object that represents the `timeouts` sub block.\n', args=[]),
new(
create=null,
default=null,
delete=null,
update=null
):: std.prune(a={
create: create,
default: default,
delete: delete,
update: update,
}),
},
'#withBucketName':: d.fn(help='`hcp.string.withBucketName` constructs a mixin object that can be merged into the `string`\nTerraform resource block to set or update the bucket_name 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 `bucket_name` field.\n', args=[]),
withBucketName(resourceLabel, value): {
resource+: {
hcp_packer_channel+: {
[resourceLabel]+: {
bucket_name: value,
},
},
},
},
'#withIteration':: d.fn(help='`hcp.list[obj].withIteration` constructs a mixin object that can be merged into the `list[obj]`\nTerraform resource block to set or update the iteration field.\n\nThis function will replace the array with the passed in `value`. If you wish to instead append the\npassed in value to the existing array, use the [hcp.list[obj].withIterationMixin](TODO) function.\n\n\n**Args**:\n - `resourceLabel` (`string`): The name label of the block to update.\n - `value` (`list[obj]`): The value to set for the `iteration` field.\n', args=[]),
withIteration(resourceLabel, value): {
resource+: {
hcp_packer_channel+: {
[resourceLabel]+: {
iteration: value,
},
},
},
},
'#withIterationMixin':: d.fn(help='`hcp.list[obj].withIterationMixin` constructs a mixin object that can be merged into the `list[obj]`\nTerraform resource block to set or update the iteration field.\n\nThis function will append the passed in array or object to the existing array. If you wish\nto instead replace the array with the passed in `value`, use the [hcp.list[obj].withIteration](TODO)\nfunction.\n\n\n**Args**:\n - `resourceLabel` (`string`): The name label of the block to update.\n - `value` (`list[obj]`): The value to set for the `iteration` field.\n', args=[]),
withIterationMixin(resourceLabel, value): {
resource+: {
hcp_packer_channel+: {
[resourceLabel]+: {
iteration+: if std.isArray(v=value) then value else [value],
},
},
},
},
'#withName':: d.fn(help='`hcp.string.withName` constructs a mixin object that can be merged into the `string`\nTerraform resource block to set or update the name 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 `name` field.\n', args=[]),
withName(resourceLabel, value): {
resource+: {
hcp_packer_channel+: {
[resourceLabel]+: {
name: value,
},
},
},
},
'#withTimeouts':: d.fn(help='`hcp.obj.withTimeouts` constructs a mixin object that can be merged into the `obj`\nTerraform resource block to set or update the timeouts field.\n\nThis function will replace the map with the passed in `value`. If you wish to instead merge the\npassed in value to the existing map, use the [hcp.obj.withTimeoutsMixin](TODO) function.\n\n**Args**:\n - `resourceLabel` (`string`): The name label of the block to update.\n - `value` (`obj`): The value to set for the `timeouts` field.\n', args=[]),
withTimeouts(resourceLabel, value): {
resource+: {
hcp_packer_channel+: {
[resourceLabel]+: {
timeouts: value,
},
},
},
},
'#withTimeoutsMixin':: d.fn(help='`hcp.obj.withTimeoutsMixin` constructs a mixin object that can be merged into the `obj`\nTerraform resource block to set or update the timeouts field.\n\nThis function will merge the passed in value to the existing map. If you wish\nto instead replace the entire map with the passed in `value`, use the [hcp.obj.withTimeouts](TODO)\nfunction.\n\n\n**Args**:\n - `resourceLabel` (`string`): The name label of the block to update.\n - `value` (`obj`): The value to set for the `timeouts` field.\n', args=[]),
withTimeoutsMixin(resourceLabel, value): {
resource+: {
hcp_packer_channel+: {
[resourceLabel]+: {
timeouts+: value,
},
},
},
},
}
1 change: 1 addition & 0 deletions docs/0.x/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ project.
* [hvn](hvn.md)
* [hvn_peering_connection](hvn_peering_connection.md)
* [hvn_route](hvn_route.md)
* [packer_channel](packer_channel.md)
* [provider](provider.md)
* [vault_cluster](vault_cluster.md)
* [vault_cluster_admin_token](vault_cluster_admin_token.md)
Loading

0 comments on commit 26207cb

Please sign in to comment.