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 Jul 21, 2023
1 parent 4470def commit ef9687b
Show file tree
Hide file tree
Showing 16 changed files with 2,052 additions and 6 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 @@ -172,6 +172,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
mariadb_server: (import 'mariadb_server.libsonnet'),
marketplace_agreement: (import 'marketplace_agreement.libsonnet'),
mobile_network: (import 'mobile_network.libsonnet'),
mobile_network_attached_data_network: (import 'mobile_network_attached_data_network.libsonnet'),
mobile_network_data_network: (import 'mobile_network_data_network.libsonnet'),
mobile_network_packet_core_control_plane: (import 'mobile_network_packet_core_control_plane.libsonnet'),
mobile_network_packet_core_data_plane: (import 'mobile_network_packet_core_data_plane.libsonnet'),
Expand Down
76 changes: 76 additions & 0 deletions 3.x/_gen/data/mobile_network_attached_data_network.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='mobile_network_attached_data_network', url='', help='`mobile_network_attached_data_network` represents the `azurerm_mobile_network_attached_data_network` 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.mobile_network_attached_data_network.new` injects a new `data_azurerm_mobile_network_attached_data_network` 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.mobile_network_attached_data_network.new('some_id')\n\nYou can get the reference to the `id` field of the created `azurerm.data.mobile_network_attached_data_network` using the reference:\n\n $._ref.data_azurerm_mobile_network_attached_data_network.some_id.get('id')\n\nThis is the same as directly entering `\"${ data_azurerm_mobile_network_attached_data_network.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 - `mobile_network_data_network_name` (`string`): Set the `mobile_network_data_network_name` field on the resulting data source block.\n - `mobile_network_packet_core_data_plane_id` (`string`): Set the `mobile_network_packet_core_data_plane_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.mobile_network_attached_data_network.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,
mobile_network_data_network_name,
mobile_network_packet_core_data_plane_id,
timeouts=null,
_meta={}
):: tf.withData(
type='azurerm_mobile_network_attached_data_network',
label=dataSrcLabel,
attrs=self.newAttrs(mobile_network_data_network_name=mobile_network_data_network_name, mobile_network_packet_core_data_plane_id=mobile_network_packet_core_data_plane_id, timeouts=timeouts),
_meta=_meta
),
'#newAttrs':: d.fn(help='\n`azurerm.data.mobile_network_attached_data_network.newAttrs` constructs a new object with attributes and blocks configured for the `mobile_network_attached_data_network`\nTerraform data source.\n\nUnlike [azurerm.data.mobile_network_attached_data_network.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 - `mobile_network_data_network_name` (`string`): Set the `mobile_network_data_network_name` field on the resulting object.\n - `mobile_network_packet_core_data_plane_id` (`string`): Set the `mobile_network_packet_core_data_plane_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.mobile_network_attached_data_network.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 `mobile_network_attached_data_network` data source into the root Terraform configuration.\n', args=[]),
newAttrs(
mobile_network_data_network_name,
mobile_network_packet_core_data_plane_id,
timeouts=null
):: std.prune(a={
mobile_network_data_network_name: mobile_network_data_network_name,
mobile_network_packet_core_data_plane_id: mobile_network_packet_core_data_plane_id,
timeouts: timeouts,
}),
timeouts:: {
'#new':: d.fn(help='\n`azurerm.mobile_network_attached_data_network.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,
}),
},
'#withMobileNetworkDataNetworkName':: d.fn(help='`azurerm.string.withMobileNetworkDataNetworkName` constructs a mixin object that can be merged into the `string`\nTerraform data source block to set or update the mobile_network_data_network_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 `mobile_network_data_network_name` field.\n', args=[]),
withMobileNetworkDataNetworkName(dataSrcLabel, value): {
data+: {
azurerm_mobile_network_attached_data_network+: {
[dataSrcLabel]+: {
mobile_network_data_network_name: value,
},
},
},
},
'#withMobileNetworkPacketCoreDataPlaneId':: d.fn(help='`azurerm.string.withMobileNetworkPacketCoreDataPlaneId` constructs a mixin object that can be merged into the `string`\nTerraform data source block to set or update the mobile_network_packet_core_data_plane_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 `mobile_network_packet_core_data_plane_id` field.\n', args=[]),
withMobileNetworkPacketCoreDataPlaneId(dataSrcLabel, value): {
data+: {
azurerm_mobile_network_attached_data_network+: {
[dataSrcLabel]+: {
mobile_network_packet_core_data_plane_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_mobile_network_attached_data_network+: {
[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_mobile_network_attached_data_network+: {
[dataSrcLabel]+: {
timeouts+: value,
},
},
},
},
}
2 changes: 2 additions & 0 deletions 3.x/_gen/main.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
function_app_slot: (import 'resources/function_app_slot.libsonnet'),
gallery_application: (import 'resources/gallery_application.libsonnet'),
gallery_application_version: (import 'resources/gallery_application_version.libsonnet'),
graph_account: (import 'resources/graph_account.libsonnet'),
hdinsight_hadoop_cluster: (import 'resources/hdinsight_hadoop_cluster.libsonnet'),
hdinsight_hbase_cluster: (import 'resources/hdinsight_hbase_cluster.libsonnet'),
hdinsight_interactive_query_cluster: (import 'resources/hdinsight_interactive_query_cluster.libsonnet'),
Expand Down Expand Up @@ -541,6 +542,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
media_streaming_policy: (import 'resources/media_streaming_policy.libsonnet'),
media_transform: (import 'resources/media_transform.libsonnet'),
mobile_network: (import 'resources/mobile_network.libsonnet'),
mobile_network_attached_data_network: (import 'resources/mobile_network_attached_data_network.libsonnet'),
mobile_network_data_network: (import 'resources/mobile_network_data_network.libsonnet'),
mobile_network_packet_core_control_plane: (import 'resources/mobile_network_packet_core_control_plane.libsonnet'),
mobile_network_packet_core_data_plane: (import 'resources/mobile_network_packet_core_data_plane.libsonnet'),
Expand Down
114 changes: 114 additions & 0 deletions 3.x/_gen/resources/graph_account.libsonnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
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='graph_account', url='', help='`graph_account` represents the `azurerm_graph_account` Terraform resource.\n\n\n\nThis package contains functions and utilities for setting up the resource using Jsonnet code.\n'),
'#new':: d.fn(help="\n`azurerm.graph_account.new` injects a new `azurerm_graph_account` 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 azurerm.graph_account.new('some_id')\n\nYou can get the reference to the `id` field of the created `azurerm.graph_account` using the reference:\n\n $._ref.azurerm_graph_account.some_id.get('id')\n\nThis is the same as directly entering `\"${ azurerm_graph_account.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 - `application_id` (`string`): Set the `application_id` field on the resulting resource block.\n - `name` (`string`): Set the `name` field on the resulting resource block.\n - `resource_group_name` (`string`): Set the `resource_group_name` field on the resulting resource block.\n - `tags` (`obj`): Set the `tags` field on the resulting resource block. When `null`, the `tags` 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 [azurerm.graph_account.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,
application_id,
name,
resource_group_name,
tags=null,
timeouts=null,
_meta={}
):: tf.withResource(
type='azurerm_graph_account',
label=resourceLabel,
attrs=self.newAttrs(
application_id=application_id,
name=name,
resource_group_name=resource_group_name,
tags=tags,
timeouts=timeouts
),
_meta=_meta
),
'#newAttrs':: d.fn(help='\n`azurerm.graph_account.newAttrs` constructs a new object with attributes and blocks configured for the `graph_account`\nTerraform resource.\n\nUnlike [azurerm.graph_account.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 - `application_id` (`string`): Set the `application_id` field on the resulting object.\n - `name` (`string`): Set the `name` field on the resulting object.\n - `resource_group_name` (`string`): Set the `resource_group_name` field on the resulting object.\n - `tags` (`obj`): Set the `tags` field on the resulting object. When `null`, the `tags` 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 [azurerm.graph_account.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 `graph_account` resource into the root Terraform configuration.\n', args=[]),
newAttrs(
application_id,
name,
resource_group_name,
tags=null,
timeouts=null
):: std.prune(a={
application_id: application_id,
name: name,
resource_group_name: resource_group_name,
tags: tags,
timeouts: timeouts,
}),
timeouts:: {
'#new':: d.fn(help='\n`azurerm.graph_account.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 - `delete` (`string`): Set the `delete` field on the resulting object. When `null`, the `delete` field will be omitted from the resulting object.\n - `read` (`string`): Set the `read` field on the resulting object. When `null`, the `read` 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,
delete=null,
read=null,
update=null
):: std.prune(a={
create: create,
delete: delete,
read: read,
update: update,
}),
},
'#withApplicationId':: d.fn(help='`azurerm.string.withApplicationId` constructs a mixin object that can be merged into the `string`\nTerraform resource block to set or update the application_id 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 `application_id` field.\n', args=[]),
withApplicationId(resourceLabel, value): {
resource+: {
azurerm_graph_account+: {
[resourceLabel]+: {
application_id: value,
},
},
},
},
'#withName':: d.fn(help='`azurerm.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+: {
azurerm_graph_account+: {
[resourceLabel]+: {
name: value,
},
},
},
},
'#withResourceGroupName':: d.fn(help='`azurerm.string.withResourceGroupName` constructs a mixin object that can be merged into the `string`\nTerraform resource block to set or update the resource_group_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 `resource_group_name` field.\n', args=[]),
withResourceGroupName(resourceLabel, value): {
resource+: {
azurerm_graph_account+: {
[resourceLabel]+: {
resource_group_name: value,
},
},
},
},
'#withTags':: d.fn(help='`azurerm.obj.withTags` constructs a mixin object that can be merged into the `obj`\nTerraform resource block to set or update the tags field.\n\n\n\n**Args**:\n - `resourceLabel` (`string`): The name label of the block to update.\n - `value` (`obj`): The value to set for the `tags` field.\n', args=[]),
withTags(resourceLabel, value): {
resource+: {
azurerm_graph_account+: {
[resourceLabel]+: {
tags: value,
},
},
},
},
'#withTimeouts':: d.fn(help='`azurerm.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 [azurerm.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+: {
azurerm_graph_account+: {
[resourceLabel]+: {
timeouts: value,
},
},
},
},
'#withTimeoutsMixin':: d.fn(help='`azurerm.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 [azurerm.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+: {
azurerm_graph_account+: {
[resourceLabel]+: {
timeouts+: value,
},
},
},
},
}
Loading

0 comments on commit ef9687b

Please sign in to comment.