|
| 1 | +local tf = (import 'github.com/tf-libsonnet/core/main.libsonnet'); |
| 2 | +local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'); |
| 3 | +{ |
| 4 | + '#':: 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'), |
| 5 | + '#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=[]), |
| 6 | + new( |
| 7 | + dataSrcLabel, |
| 8 | + filter=null, |
| 9 | + most_recent=null, |
| 10 | + name=null, |
| 11 | + project=null, |
| 12 | + region=null, |
| 13 | + _meta={} |
| 14 | + ):: tf.withData( |
| 15 | + type='google_compute_region_instance_template', |
| 16 | + label=dataSrcLabel, |
| 17 | + attrs=self.newAttrs( |
| 18 | + filter=filter, |
| 19 | + most_recent=most_recent, |
| 20 | + name=name, |
| 21 | + project=project, |
| 22 | + region=region |
| 23 | + ), |
| 24 | + _meta=_meta |
| 25 | + ), |
| 26 | + '#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=[]), |
| 27 | + newAttrs( |
| 28 | + filter=null, |
| 29 | + most_recent=null, |
| 30 | + name=null, |
| 31 | + project=null, |
| 32 | + region=null |
| 33 | + ):: std.prune(a={ |
| 34 | + filter: filter, |
| 35 | + most_recent: most_recent, |
| 36 | + name: name, |
| 37 | + project: project, |
| 38 | + region: region, |
| 39 | + }), |
| 40 | + '#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=[]), |
| 41 | + withFilter(dataSrcLabel, value): { |
| 42 | + data+: { |
| 43 | + google_compute_region_instance_template+: { |
| 44 | + [dataSrcLabel]+: { |
| 45 | + filter: value, |
| 46 | + }, |
| 47 | + }, |
| 48 | + }, |
| 49 | + }, |
| 50 | + '#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=[]), |
| 51 | + withMostRecent(dataSrcLabel, value): { |
| 52 | + data+: { |
| 53 | + google_compute_region_instance_template+: { |
| 54 | + [dataSrcLabel]+: { |
| 55 | + most_recent: value, |
| 56 | + }, |
| 57 | + }, |
| 58 | + }, |
| 59 | + }, |
| 60 | + '#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=[]), |
| 61 | + withName(dataSrcLabel, value): { |
| 62 | + data+: { |
| 63 | + google_compute_region_instance_template+: { |
| 64 | + [dataSrcLabel]+: { |
| 65 | + name: value, |
| 66 | + }, |
| 67 | + }, |
| 68 | + }, |
| 69 | + }, |
| 70 | + '#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=[]), |
| 71 | + withProject(dataSrcLabel, value): { |
| 72 | + data+: { |
| 73 | + google_compute_region_instance_template+: { |
| 74 | + [dataSrcLabel]+: { |
| 75 | + project: value, |
| 76 | + }, |
| 77 | + }, |
| 78 | + }, |
| 79 | + }, |
| 80 | + '#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=[]), |
| 81 | + withRegion(dataSrcLabel, value): { |
| 82 | + data+: { |
| 83 | + google_compute_region_instance_template+: { |
| 84 | + [dataSrcLabel]+: { |
| 85 | + region: value, |
| 86 | + }, |
| 87 | + }, |
| 88 | + }, |
| 89 | + }, |
| 90 | +} |
0 commit comments