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

Signed-off-by: tflibsonnet-ci <[email protected]>
  • Loading branch information
renovate[bot] authored and tflibsonnet-ci committed Jun 30, 2023
1 parent 9d9c292 commit 45c0187
Show file tree
Hide file tree
Showing 24 changed files with 966 additions and 34 deletions.
1 change: 1 addition & 0 deletions 3.x/_gen/data/main.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
netapp_volume_group_sap_hana: (import 'netapp_volume_group_sap_hana.libsonnet'),
network_ddos_protection_plan: (import 'network_ddos_protection_plan.libsonnet'),
network_interface: (import 'network_interface.libsonnet'),
network_manager_network_group: (import 'network_manager_network_group.libsonnet'),
network_security_group: (import 'network_security_group.libsonnet'),
network_service_tags: (import 'network_service_tags.libsonnet'),
network_watcher: (import 'network_watcher.libsonnet'),
Expand Down
76 changes: 76 additions & 0 deletions 3.x/_gen/data/network_manager_network_group.libsonnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
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='network_manager_network_group', url='', help='`network_manager_network_group` represents the `azurerm_network_manager_network_group` 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`azurerm.data.network_manager_network_group.new` injects a new `data_azurerm_network_manager_network_group` 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 azurerm.data.network_manager_network_group.new('some_id')\n\nYou can get the reference to the `id` field of the created `azurerm.data.network_manager_network_group` using the reference:\n\n $._ref.data_azurerm_network_manager_network_group.some_id.get('id')\n\nThis is the same as directly entering `\"${ data_azurerm_network_manager_network_group.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 - `name` (`string`): Set the `name` field on the resulting data source block.\n - `network_manager_id` (`string`): Set the `network_manager_id` field on the resulting data source block.\n - `timeouts` (`obj`): Set the `timeouts` field on the resulting data source 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 [azurerm.data.network_manager_network_group.timeouts.new](#fn-timeoutsnew) constructor.\n\n**Returns**:\n- A mixin object that injects the new data source into the root Terraform configuration.\n", args=[]),
new(
dataSrcLabel,
name,
network_manager_id,
timeouts=null,
_meta={}
):: tf.withData(
type='azurerm_network_manager_network_group',
label=dataSrcLabel,
attrs=self.newAttrs(name=name, network_manager_id=network_manager_id, timeouts=timeouts),
_meta=_meta
),
'#newAttrs':: d.fn(help='\n`azurerm.data.network_manager_network_group.newAttrs` constructs a new object with attributes and blocks configured for the `network_manager_network_group`\nTerraform data source.\n\nUnlike [azurerm.data.network_manager_network_group.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 - `name` (`string`): Set the `name` field on the resulting object.\n - `network_manager_id` (`string`): Set the `network_manager_id` field on 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 [azurerm.data.network_manager_network_group.timeouts.new](#fn-timeoutsnew) constructor.\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 `network_manager_network_group` data source into the root Terraform configuration.\n', args=[]),
newAttrs(
name,
network_manager_id,
timeouts=null
):: std.prune(a={
name: name,
network_manager_id: network_manager_id,
timeouts: timeouts,
}),
timeouts:: {
'#new':: d.fn(help='\n`azurerm.network_manager_network_group.timeouts.new` constructs a new object with attributes and blocks configured for the `timeouts`\nTerraform sub block.\n\n\n\n**Args**:\n - `read` (`string`): Set the `read` field on the resulting object. When `null`, the `read` field will be omitted from the resulting object.\n\n**Returns**:\n - An attribute object that represents the `timeouts` sub block.\n', args=[]),
new(
read=null
):: std.prune(a={
read: read,
}),
},
'#withName':: d.fn(help='`azurerm.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+: {
azurerm_network_manager_network_group+: {
[dataSrcLabel]+: {
name: value,
},
},
},
},
'#withNetworkManagerId':: d.fn(help='`azurerm.string.withNetworkManagerId` constructs a mixin object that can be merged into the `string`\nTerraform data source block to set or update the network_manager_id 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 `network_manager_id` field.\n', args=[]),
withNetworkManagerId(dataSrcLabel, value): {
data+: {
azurerm_network_manager_network_group+: {
[dataSrcLabel]+: {
network_manager_id: value,
},
},
},
},
'#withTimeouts':: d.fn(help='`azurerm.obj.withTimeouts` constructs a mixin object that can be merged into the `obj`\nTerraform data source 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 [azurerm.obj.withTimeoutsMixin](TODO) function.\n\n**Args**:\n - `dataSrcLabel` (`string`): The name label of the block to update.\n - `value` (`obj`): The value to set for the `timeouts` field.\n', args=[]),
withTimeouts(dataSrcLabel, value): {
data+: {
azurerm_network_manager_network_group+: {
[dataSrcLabel]+: {
timeouts: value,
},
},
},
},
'#withTimeoutsMixin':: d.fn(help='`azurerm.obj.withTimeoutsMixin` constructs a mixin object that can be merged into the `obj`\nTerraform data source 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 [azurerm.obj.withTimeouts](TODO)\nfunction.\n\n\n**Args**:\n - `dataSrcLabel` (`string`): The name label of the block to update.\n - `value` (`obj`): The value to set for the `timeouts` field.\n', args=[]),
withTimeoutsMixin(dataSrcLabel, value): {
data+: {
azurerm_network_manager_network_group+: {
[dataSrcLabel]+: {
timeouts+: value,
},
},
},
},
}

Large diffs are not rendered by default.

Loading

0 comments on commit 45c0187

Please sign in to comment.