|
| 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='bigquery_analytics_hub_data_exchange_iam_policy', url='', help='`bigquery_analytics_hub_data_exchange_iam_policy` represents the `google_bigquery_analytics_hub_data_exchange_iam_policy` 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.bigquery_analytics_hub_data_exchange_iam_policy.new` injects a new `data_google_bigquery_analytics_hub_data_exchange_iam_policy` 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.bigquery_analytics_hub_data_exchange_iam_policy.new('some_id')\n\nYou can get the reference to the `id` field of the created `google.data.bigquery_analytics_hub_data_exchange_iam_policy` using the reference:\n\n $._ref.data_google_bigquery_analytics_hub_data_exchange_iam_policy.some_id.get('id')\n\nThis is the same as directly entering `\"${ data_google_bigquery_analytics_hub_data_exchange_iam_policy.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 - `data_exchange_id` (`string`): Set the `data_exchange_id` field on the resulting data source block.\n - `location` (`string`): Set the `location` field on the resulting data source block. When `null`, the `location` field will be omitted from the resulting object.\n - `project` (`string`): Set the `project` field on the resulting data source block. When `null`, the `project` 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 | + data_exchange_id, |
| 9 | + location=null, |
| 10 | + project=null, |
| 11 | + _meta={} |
| 12 | + ):: tf.withData( |
| 13 | + type='google_bigquery_analytics_hub_data_exchange_iam_policy', |
| 14 | + label=dataSrcLabel, |
| 15 | + attrs=self.newAttrs(data_exchange_id=data_exchange_id, location=location, project=project), |
| 16 | + _meta=_meta |
| 17 | + ), |
| 18 | + '#newAttrs':: d.fn(help='\n`google.data.bigquery_analytics_hub_data_exchange_iam_policy.newAttrs` constructs a new object with attributes and blocks configured for the `bigquery_analytics_hub_data_exchange_iam_policy`\nTerraform data source.\n\nUnlike [google.data.bigquery_analytics_hub_data_exchange_iam_policy.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 - `data_exchange_id` (`string`): Set the `data_exchange_id` field on the resulting object.\n - `location` (`string`): Set the `location` field on the resulting object. When `null`, the `location` field will be omitted from the resulting object.\n - `project` (`string`): Set the `project` field on the resulting object. When `null`, the `project` 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 `bigquery_analytics_hub_data_exchange_iam_policy` data source into the root Terraform configuration.\n', args=[]), |
| 19 | + newAttrs( |
| 20 | + data_exchange_id, |
| 21 | + location=null, |
| 22 | + project=null |
| 23 | + ):: std.prune(a={ |
| 24 | + data_exchange_id: data_exchange_id, |
| 25 | + location: location, |
| 26 | + project: project, |
| 27 | + }), |
| 28 | + '#withDataExchangeId':: d.fn(help='`google.string.withDataExchangeId` constructs a mixin object that can be merged into the `string`\nTerraform data source block to set or update the data_exchange_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 `data_exchange_id` field.\n', args=[]), |
| 29 | + withDataExchangeId(dataSrcLabel, value): { |
| 30 | + data+: { |
| 31 | + google_bigquery_analytics_hub_data_exchange_iam_policy+: { |
| 32 | + [dataSrcLabel]+: { |
| 33 | + data_exchange_id: value, |
| 34 | + }, |
| 35 | + }, |
| 36 | + }, |
| 37 | + }, |
| 38 | + '#withLocation':: d.fn(help='`google.string.withLocation` constructs a mixin object that can be merged into the `string`\nTerraform data source block to set or update the location 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 `location` field.\n', args=[]), |
| 39 | + withLocation(dataSrcLabel, value): { |
| 40 | + data+: { |
| 41 | + google_bigquery_analytics_hub_data_exchange_iam_policy+: { |
| 42 | + [dataSrcLabel]+: { |
| 43 | + location: value, |
| 44 | + }, |
| 45 | + }, |
| 46 | + }, |
| 47 | + }, |
| 48 | + '#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=[]), |
| 49 | + withProject(dataSrcLabel, value): { |
| 50 | + data+: { |
| 51 | + google_bigquery_analytics_hub_data_exchange_iam_policy+: { |
| 52 | + [dataSrcLabel]+: { |
| 53 | + project: value, |
| 54 | + }, |
| 55 | + }, |
| 56 | + }, |
| 57 | + }, |
| 58 | +} |
0 commit comments