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

Signed-off-by: tflibsonnet-ci <[email protected]>
  • Loading branch information
renovate[bot] authored and tflibsonnet-ci committed Aug 25, 2023
1 parent 70029a3 commit 373ef37
Show file tree
Hide file tree
Showing 16 changed files with 536 additions and 22 deletions.
1 change: 1 addition & 0 deletions 3.x/_gen/main.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
databricks_virtual_network_peering: (import 'resources/databricks_virtual_network_peering.libsonnet'),
databricks_workspace: (import 'resources/databricks_workspace.libsonnet'),
databricks_workspace_customer_managed_key: (import 'resources/databricks_workspace_customer_managed_key.libsonnet'),
databricks_workspace_root_dbfs_customer_managed_key: (import 'resources/databricks_workspace_root_dbfs_customer_managed_key.libsonnet'),
datadog_monitor: (import 'resources/datadog_monitor.libsonnet'),
datadog_monitor_sso_configuration: (import 'resources/datadog_monitor_sso_configuration.libsonnet'),
datadog_monitor_tag_rule: (import 'resources/datadog_monitor_tag_rule.libsonnet'),
Expand Down
42 changes: 38 additions & 4 deletions 3.x/_gen/resources/container_group.libsonnet

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
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='databricks_workspace_root_dbfs_customer_managed_key', url='', help='`databricks_workspace_root_dbfs_customer_managed_key` represents the `azurerm_databricks_workspace_root_dbfs_customer_managed_key` 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.databricks_workspace_root_dbfs_customer_managed_key.new` injects a new `azurerm_databricks_workspace_root_dbfs_customer_managed_key` 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.databricks_workspace_root_dbfs_customer_managed_key.new('some_id')\n\nYou can get the reference to the `id` field of the created `azurerm.databricks_workspace_root_dbfs_customer_managed_key` using the reference:\n\n $._ref.azurerm_databricks_workspace_root_dbfs_customer_managed_key.some_id.get('id')\n\nThis is the same as directly entering `\"${ azurerm_databricks_workspace_root_dbfs_customer_managed_key.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 - `key_vault_key_id` (`string`): Set the `key_vault_key_id` field on the resulting resource block.\n - `workspace_id` (`string`): Set the `workspace_id` field on the resulting resource block.\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.databricks_workspace_root_dbfs_customer_managed_key.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,
key_vault_key_id,
workspace_id,
timeouts=null,
_meta={}
):: tf.withResource(
type='azurerm_databricks_workspace_root_dbfs_customer_managed_key',
label=resourceLabel,
attrs=self.newAttrs(key_vault_key_id=key_vault_key_id, timeouts=timeouts, workspace_id=workspace_id),
_meta=_meta
),
'#newAttrs':: d.fn(help='\n`azurerm.databricks_workspace_root_dbfs_customer_managed_key.newAttrs` constructs a new object with attributes and blocks configured for the `databricks_workspace_root_dbfs_customer_managed_key`\nTerraform resource.\n\nUnlike [azurerm.databricks_workspace_root_dbfs_customer_managed_key.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 - `key_vault_key_id` (`string`): Set the `key_vault_key_id` field on the resulting object.\n - `workspace_id` (`string`): Set the `workspace_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.databricks_workspace_root_dbfs_customer_managed_key.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 `databricks_workspace_root_dbfs_customer_managed_key` resource into the root Terraform configuration.\n', args=[]),
newAttrs(
key_vault_key_id,
workspace_id,
timeouts=null
):: std.prune(a={
key_vault_key_id: key_vault_key_id,
timeouts: timeouts,
workspace_id: workspace_id,
}),
timeouts:: {
'#new':: d.fn(help='\n`azurerm.databricks_workspace_root_dbfs_customer_managed_key.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,
}),
},
'#withKeyVaultKeyId':: d.fn(help='`azurerm.string.withKeyVaultKeyId` constructs a mixin object that can be merged into the `string`\nTerraform resource block to set or update the key_vault_key_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 `key_vault_key_id` field.\n', args=[]),
withKeyVaultKeyId(resourceLabel, value): {
resource+: {
azurerm_databricks_workspace_root_dbfs_customer_managed_key+: {
[resourceLabel]+: {
key_vault_key_id: 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_databricks_workspace_root_dbfs_customer_managed_key+: {
[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_databricks_workspace_root_dbfs_customer_managed_key+: {
[resourceLabel]+: {
timeouts+: value,
},
},
},
},
'#withWorkspaceId':: d.fn(help='`azurerm.string.withWorkspaceId` constructs a mixin object that can be merged into the `string`\nTerraform resource block to set or update the workspace_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 `workspace_id` field.\n', args=[]),
withWorkspaceId(resourceLabel, value): {
resource+: {
azurerm_databricks_workspace_root_dbfs_customer_managed_key+: {
[resourceLabel]+: {
workspace_id: value,
},
},
},
},
}
6 changes: 3 additions & 3 deletions 3.x/_gen/resources/linux_web_app.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -655,21 +655,21 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
}),
},
status_code:: {
'#new':: d.fn(help='\n`azurerm.linux_web_app.site_config.auto_heal_setting.trigger.status_code.new` constructs a new object with attributes and blocks configured for the `status_code`\nTerraform sub block.\n\n\n\n**Args**:\n - `count` (`number`): Set the `count` field on the resulting object.\n - `interval` (`string`): Set the `interval` field on the resulting object.\n - `path` (`string`): Set the `path` field on the resulting object. When `null`, the `path` field will be omitted from the resulting object.\n - `status_code_range` (`string`): Set the `status_code_range` field on the resulting object.\n - `sub_status` (`number`): Set the `sub_status` field on the resulting object. When `null`, the `sub_status` field will be omitted from the resulting object.\n - `win32_status` (`number`): Set the `win32_status` field on the resulting object. When `null`, the `win32_status` field will be omitted from the resulting object.\n\n**Returns**:\n - An attribute object that represents the `status_code` sub block.\n', args=[]),
'#new':: d.fn(help='\n`azurerm.linux_web_app.site_config.auto_heal_setting.trigger.status_code.new` constructs a new object with attributes and blocks configured for the `status_code`\nTerraform sub block.\n\n\n\n**Args**:\n - `count` (`number`): Set the `count` field on the resulting object.\n - `interval` (`string`): Set the `interval` field on the resulting object.\n - `path` (`string`): Set the `path` field on the resulting object. When `null`, the `path` field will be omitted from the resulting object.\n - `status_code_range` (`string`): Set the `status_code_range` field on the resulting object.\n - `sub_status` (`number`): Set the `sub_status` field on the resulting object. When `null`, the `sub_status` field will be omitted from the resulting object.\n - `win32_status_code` (`number`): Set the `win32_status_code` field on the resulting object. When `null`, the `win32_status_code` field will be omitted from the resulting object.\n\n**Returns**:\n - An attribute object that represents the `status_code` sub block.\n', args=[]),
new(
count,
interval,
status_code_range,
path=null,
sub_status=null,
win32_status=null
win32_status_code=null
):: std.prune(a={
count: count,
interval: interval,
path: path,
status_code_range: status_code_range,
sub_status: sub_status,
win32_status: win32_status,
win32_status_code: win32_status_code,
}),
},
},
Expand Down
6 changes: 3 additions & 3 deletions 3.x/_gen/resources/linux_web_app_slot.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -647,21 +647,21 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
}),
},
status_code:: {
'#new':: d.fn(help='\n`azurerm.linux_web_app_slot.site_config.auto_heal_setting.trigger.status_code.new` constructs a new object with attributes and blocks configured for the `status_code`\nTerraform sub block.\n\n\n\n**Args**:\n - `count` (`number`): Set the `count` field on the resulting object.\n - `interval` (`string`): Set the `interval` field on the resulting object.\n - `path` (`string`): Set the `path` field on the resulting object. When `null`, the `path` field will be omitted from the resulting object.\n - `status_code_range` (`string`): Set the `status_code_range` field on the resulting object.\n - `sub_status` (`number`): Set the `sub_status` field on the resulting object. When `null`, the `sub_status` field will be omitted from the resulting object.\n - `win32_status` (`number`): Set the `win32_status` field on the resulting object. When `null`, the `win32_status` field will be omitted from the resulting object.\n\n**Returns**:\n - An attribute object that represents the `status_code` sub block.\n', args=[]),
'#new':: d.fn(help='\n`azurerm.linux_web_app_slot.site_config.auto_heal_setting.trigger.status_code.new` constructs a new object with attributes and blocks configured for the `status_code`\nTerraform sub block.\n\n\n\n**Args**:\n - `count` (`number`): Set the `count` field on the resulting object.\n - `interval` (`string`): Set the `interval` field on the resulting object.\n - `path` (`string`): Set the `path` field on the resulting object. When `null`, the `path` field will be omitted from the resulting object.\n - `status_code_range` (`string`): Set the `status_code_range` field on the resulting object.\n - `sub_status` (`number`): Set the `sub_status` field on the resulting object. When `null`, the `sub_status` field will be omitted from the resulting object.\n - `win32_status_code` (`number`): Set the `win32_status_code` field on the resulting object. When `null`, the `win32_status_code` field will be omitted from the resulting object.\n\n**Returns**:\n - An attribute object that represents the `status_code` sub block.\n', args=[]),
new(
count,
interval,
status_code_range,
path=null,
sub_status=null,
win32_status=null
win32_status_code=null
):: std.prune(a={
count: count,
interval: interval,
path: path,
status_code_range: status_code_range,
sub_status: sub_status,
win32_status: win32_status,
win32_status_code: win32_status_code,
}),
},
},
Expand Down
Loading

0 comments on commit 373ef37

Please sign in to comment.