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

Signed-off-by: tflibsonnet-ci <120686569+tflibsonnet-ci@users.noreply.github.com>
  • Loading branch information
renovate[bot] authored and tflibsonnet-ci committed Sep 11, 2023
1 parent df2095b commit 727ff75
Show file tree
Hide file tree
Showing 12 changed files with 2,398 additions and 4 deletions.
90 changes: 90 additions & 0 deletions 4.x/_gen/data/compute_region_instance_template.libsonnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
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='compute_region_instance_template', url='', help='`compute_region_instance_template` represents the `google_compute_region_instance_template` 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`google.data.compute_region_instance_template.new` injects a new `data_google_compute_region_instance_template` 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 google.data.compute_region_instance_template.new('some_id')\n\nYou can get the reference to the `id` field of the created `google.data.compute_region_instance_template` using the reference:\n\n $._ref.data_google_compute_region_instance_template.some_id.get('id')\n\nThis is the same as directly entering `\"${ data_google_compute_region_instance_template.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 - `filter` (`string`): Set the `filter` field on the resulting data source block. When `null`, the `filter` field will be omitted from the resulting object.\n - `most_recent` (`bool`): Set the `most_recent` field on the resulting data source block. When `null`, the `most_recent` field will be omitted from the resulting object.\n - `name` (`string`): The name of the instance template. If you leave this blank, Terraform will auto-generate a unique name. When `null`, the `name` field will be omitted from the resulting object.\n - `project` (`string`): The ID of the project in which the resource belongs. If it is not provided, the provider project is used. When `null`, the `project` field will be omitted from the resulting object.\n - `region` (`string`): The region in which the instance template is located. If it is not provided, the provider region is used. When `null`, the `region` field will be omitted from the resulting object.\n\n**Returns**:\n- A mixin object that injects the new data source into the root Terraform configuration.\n", args=[]),
new(
dataSrcLabel,
filter=null,
most_recent=null,
name=null,
project=null,
region=null,
_meta={}
):: tf.withData(
type='google_compute_region_instance_template',
label=dataSrcLabel,
attrs=self.newAttrs(
filter=filter,
most_recent=most_recent,
name=name,
project=project,
region=region
),
_meta=_meta
),
'#newAttrs':: d.fn(help='\n`google.data.compute_region_instance_template.newAttrs` constructs a new object with attributes and blocks configured for the `compute_region_instance_template`\nTerraform data source.\n\nUnlike [google.data.compute_region_instance_template.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 - `filter` (`string`): Set the `filter` field on the resulting object. When `null`, the `filter` field will be omitted from the resulting object.\n - `most_recent` (`bool`): Set the `most_recent` field on the resulting object. When `null`, the `most_recent` field will be omitted from the resulting object.\n - `name` (`string`): The name of the instance template. If you leave this blank, Terraform will auto-generate a unique name. When `null`, the `name` field will be omitted from the resulting object.\n - `project` (`string`): The ID of the project in which the resource belongs. If it is not provided, the provider project is used. When `null`, the `project` field will be omitted from the resulting object.\n - `region` (`string`): The region in which the instance template is located. If it is not provided, the provider region is used. When `null`, the `region` field will be omitted from the resulting object.\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 `compute_region_instance_template` data source into the root Terraform configuration.\n', args=[]),
newAttrs(
filter=null,
most_recent=null,
name=null,
project=null,
region=null
):: std.prune(a={
filter: filter,
most_recent: most_recent,
name: name,
project: project,
region: region,
}),
'#withFilter':: d.fn(help='`google.string.withFilter` constructs a mixin object that can be merged into the `string`\nTerraform data source block to set or update the filter 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 `filter` field.\n', args=[]),
withFilter(dataSrcLabel, value): {
data+: {
google_compute_region_instance_template+: {
[dataSrcLabel]+: {
filter: value,
},
},
},
},
'#withMostRecent':: d.fn(help='`google.bool.withMostRecent` constructs a mixin object that can be merged into the `bool`\nTerraform data source block to set or update the most_recent field.\n\n\n\n**Args**:\n - `dataSrcLabel` (`string`): The name label of the block to update.\n - `value` (`bool`): The value to set for the `most_recent` field.\n', args=[]),
withMostRecent(dataSrcLabel, value): {
data+: {
google_compute_region_instance_template+: {
[dataSrcLabel]+: {
most_recent: value,
},
},
},
},
'#withName':: d.fn(help='`google.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+: {
google_compute_region_instance_template+: {
[dataSrcLabel]+: {
name: value,
},
},
},
},
'#withProject':: d.fn(help='`google.string.withProject` constructs a mixin object that can be merged into the `string`\nTerraform data source block to set or update the project 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 `project` field.\n', args=[]),
withProject(dataSrcLabel, value): {
data+: {
google_compute_region_instance_template+: {
[dataSrcLabel]+: {
project: value,
},
},
},
},
'#withRegion':: d.fn(help='`google.string.withRegion` constructs a mixin object that can be merged into the `string`\nTerraform data source block to set or update the region 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 `region` field.\n', args=[]),
withRegion(dataSrcLabel, value): {
data+: {
google_compute_region_instance_template+: {
[dataSrcLabel]+: {
region: value,
},
},
},
},
}
1 change: 1 addition & 0 deletions 4.x/_gen/data/main.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
compute_node_types: (import 'compute_node_types.libsonnet'),
compute_region_disk_iam_policy: (import 'compute_region_disk_iam_policy.libsonnet'),
compute_region_instance_group: (import 'compute_region_instance_group.libsonnet'),
compute_region_instance_template: (import 'compute_region_instance_template.libsonnet'),
compute_region_network_endpoint_group: (import 'compute_region_network_endpoint_group.libsonnet'),
compute_region_ssl_certificate: (import 'compute_region_ssl_certificate.libsonnet'),
compute_regions: (import 'compute_regions.libsonnet'),
Expand Down
1 change: 1 addition & 0 deletions 4.x/_gen/main.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
compute_region_disk_resource_policy_attachment: (import 'resources/compute_region_disk_resource_policy_attachment.libsonnet'),
compute_region_health_check: (import 'resources/compute_region_health_check.libsonnet'),
compute_region_instance_group_manager: (import 'resources/compute_region_instance_group_manager.libsonnet'),
compute_region_instance_template: (import 'resources/compute_region_instance_template.libsonnet'),
compute_region_network_endpoint_group: (import 'resources/compute_region_network_endpoint_group.libsonnet'),
compute_region_network_firewall_policy: (import 'resources/compute_region_network_firewall_policy.libsonnet'),
compute_region_network_firewall_policy_association: (import 'resources/compute_region_network_firewall_policy_association.libsonnet'),
Expand Down
Loading

0 comments on commit 727ff75

Please sign in to comment.