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

Signed-off-by: tflibsonnet-ci <[email protected]>
  • Loading branch information
renovate[bot] authored and tflibsonnet-ci committed Dec 13, 2023
1 parent d194a25 commit 48295dd
Show file tree
Hide file tree
Showing 6 changed files with 239 additions and 12 deletions.
36 changes: 32 additions & 4 deletions 0.x/_gen/resources/azure_peering_connection.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ 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='azure_peering_connection', url='', help='`azure_peering_connection` represents the `hcp_azure_peering_connection` Terraform resource.\n\nThe Azure peering connection resource allows you to manage a peering connection between an HVN and a peer Azure VNet.\n\nThis package contains functions and utilities for setting up the resource using Jsonnet code.\n'),
'#new':: d.fn(help="\n`hcp.azure_peering_connection.new` injects a new `hcp_azure_peering_connection` 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.azure_peering_connection.new('some_id')\n\nYou can get the reference to the `id` field of the created `hcp.azure_peering_connection` using the reference:\n\n $._ref.hcp_azure_peering_connection.some_id.get('id')\n\nThis is the same as directly entering `\"${ hcp_azure_peering_connection.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 - `hvn_link` (`string`): The `self_link` of the HashiCorp Virtual Network (HVN).\n - `peer_resource_group_name` (`string`): The resource group name of the peer VNet in Azure.\n - `peer_subscription_id` (`string`): The subscription ID of the peer VNet in Azure.\n - `peer_tenant_id` (`string`): The tenant ID of the peer VNet in Azure.\n - `peer_vnet_name` (`string`): The name of the peer VNet in Azure.\n - `peer_vnet_region` (`string`): The region of the peer VNet in Azure.\n - `peering_id` (`string`): The ID of the peering connection.\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.azure_peering_connection.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':: d.fn(help="\n`hcp.azure_peering_connection.new` injects a new `hcp_azure_peering_connection` 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.azure_peering_connection.new('some_id')\n\nYou can get the reference to the `id` field of the created `hcp.azure_peering_connection` using the reference:\n\n $._ref.hcp_azure_peering_connection.some_id.get('id')\n\nThis is the same as directly entering `\"${ hcp_azure_peering_connection.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 - `allow_forwarded_traffic` (`bool`): Whether the forwarded traffic originating from the peered VNet is allowed in the HVN When `null`, the `allow_forwarded_traffic` field will be omitted from the resulting object.\n - `hvn_link` (`string`): The `self_link` of the HashiCorp Virtual Network (HVN).\n - `peer_resource_group_name` (`string`): The resource group name of the peer VNet in Azure.\n - `peer_subscription_id` (`string`): The subscription ID of the peer VNet in Azure.\n - `peer_tenant_id` (`string`): The tenant ID of the peer VNet in Azure.\n - `peer_vnet_name` (`string`): The name of the peer VNet in Azure.\n - `peer_vnet_region` (`string`): The region of the peer VNet in Azure.\n - `peering_id` (`string`): The ID of the peering connection.\n - `use_remote_gateways` (`bool`): If the HVN should use the gateway of the peered VNet When `null`, the `use_remote_gateways` field will be omitted from the resulting object.\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.azure_peering_connection.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,
hvn_link,
Expand All @@ -12,24 +12,28 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
peer_vnet_name,
peer_vnet_region,
peering_id,
allow_forwarded_traffic=null,
timeouts=null,
use_remote_gateways=null,
_meta={}
):: tf.withResource(
type='hcp_azure_peering_connection',
label=resourceLabel,
attrs=self.newAttrs(
allow_forwarded_traffic=allow_forwarded_traffic,
hvn_link=hvn_link,
peer_resource_group_name=peer_resource_group_name,
peer_subscription_id=peer_subscription_id,
peer_tenant_id=peer_tenant_id,
peer_vnet_name=peer_vnet_name,
peer_vnet_region=peer_vnet_region,
peering_id=peering_id,
timeouts=timeouts
timeouts=timeouts,
use_remote_gateways=use_remote_gateways
),
_meta=_meta
),
'#newAttrs':: d.fn(help='\n`hcp.azure_peering_connection.newAttrs` constructs a new object with attributes and blocks configured for the `azure_peering_connection`\nTerraform resource.\n\nUnlike [hcp.azure_peering_connection.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 - `hvn_link` (`string`): The `self_link` of the HashiCorp Virtual Network (HVN).\n - `peer_resource_group_name` (`string`): The resource group name of the peer VNet in Azure.\n - `peer_subscription_id` (`string`): The subscription ID of the peer VNet in Azure.\n - `peer_tenant_id` (`string`): The tenant ID of the peer VNet in Azure.\n - `peer_vnet_name` (`string`): The name of the peer VNet in Azure.\n - `peer_vnet_region` (`string`): The region of the peer VNet in Azure.\n - `peering_id` (`string`): The ID of the peering connection.\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.azure_peering_connection.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 `azure_peering_connection` resource into the root Terraform configuration.\n', args=[]),
'#newAttrs':: d.fn(help='\n`hcp.azure_peering_connection.newAttrs` constructs a new object with attributes and blocks configured for the `azure_peering_connection`\nTerraform resource.\n\nUnlike [hcp.azure_peering_connection.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 - `allow_forwarded_traffic` (`bool`): Whether the forwarded traffic originating from the peered VNet is allowed in the HVN When `null`, the `allow_forwarded_traffic` field will be omitted from the resulting object.\n - `hvn_link` (`string`): The `self_link` of the HashiCorp Virtual Network (HVN).\n - `peer_resource_group_name` (`string`): The resource group name of the peer VNet in Azure.\n - `peer_subscription_id` (`string`): The subscription ID of the peer VNet in Azure.\n - `peer_tenant_id` (`string`): The tenant ID of the peer VNet in Azure.\n - `peer_vnet_name` (`string`): The name of the peer VNet in Azure.\n - `peer_vnet_region` (`string`): The region of the peer VNet in Azure.\n - `peering_id` (`string`): The ID of the peering connection.\n - `use_remote_gateways` (`bool`): If the HVN should use the gateway of the peered VNet When `null`, the `use_remote_gateways` field will be omitted from the resulting object.\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.azure_peering_connection.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 `azure_peering_connection` resource into the root Terraform configuration.\n', args=[]),
newAttrs(
hvn_link,
peer_resource_group_name,
Expand All @@ -38,8 +42,11 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
peer_vnet_name,
peer_vnet_region,
peering_id,
timeouts=null
allow_forwarded_traffic=null,
timeouts=null,
use_remote_gateways=null
):: std.prune(a={
allow_forwarded_traffic: allow_forwarded_traffic,
hvn_link: hvn_link,
peer_resource_group_name: peer_resource_group_name,
peer_subscription_id: peer_subscription_id,
Expand All @@ -48,6 +55,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
peer_vnet_region: peer_vnet_region,
peering_id: peering_id,
timeouts: timeouts,
use_remote_gateways: use_remote_gateways,
}),
timeouts:: {
'#new':: d.fn(help='\n`hcp.azure_peering_connection.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\n**Returns**:\n - An attribute object that represents the `timeouts` sub block.\n', args=[]),
Expand All @@ -61,6 +69,16 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
delete: delete,
}),
},
'#withAllowForwardedTraffic':: d.fn(help='`hcp.bool.withAllowForwardedTraffic` constructs a mixin object that can be merged into the `bool`\nTerraform resource block to set or update the allow_forwarded_traffic 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 `allow_forwarded_traffic` field.\n', args=[]),
withAllowForwardedTraffic(resourceLabel, value): {
resource+: {
hcp_azure_peering_connection+: {
[resourceLabel]+: {
allow_forwarded_traffic: value,
},
},
},
},
'#withHvnLink':: d.fn(help='`hcp.string.withHvnLink` constructs a mixin object that can be merged into the `string`\nTerraform resource block to set or update the hvn_link 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 `hvn_link` field.\n', args=[]),
withHvnLink(resourceLabel, value): {
resource+: {
Expand Down Expand Up @@ -151,4 +169,14 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
},
},
},
'#withUseRemoteGateways':: d.fn(help='`hcp.bool.withUseRemoteGateways` constructs a mixin object that can be merged into the `bool`\nTerraform resource block to set or update the use_remote_gateways 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 `use_remote_gateways` field.\n', args=[]),
withUseRemoteGateways(resourceLabel, value): {
resource+: {
hcp_azure_peering_connection+: {
[resourceLabel]+: {
use_remote_gateways: value,
},
},
},
},
}
Loading

0 comments on commit 48295dd

Please sign in to comment.