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.
Update dependency hashicorp/terraform-provider-hcp to v0.54.0 (#14)
Signed-off-by: tflibsonnet-ci <[email protected]> Co-authored-by: renovate[bot] <renovate[bot]@users.noreply.github.com>
- Loading branch information
1 parent
e031706
commit 26207cb
Showing
4 changed files
with
368 additions
and
0 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
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,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, | ||
}, | ||
}, | ||
}, | ||
}, | ||
} |
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
Oops, something went wrong.