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

Signed-off-by: tflibsonnet-ci <[email protected]>
  • Loading branch information
renovate[bot] authored and tflibsonnet-ci committed Jul 24, 2023
1 parent 5a2d8af commit 18e8d01
Show file tree
Hide file tree
Showing 24 changed files with 1,581 additions and 23 deletions.
18 changes: 16 additions & 2 deletions 4.x/_gen/data/compute_image.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ 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='google_compute_image', url='', help='`google_compute_image` represents the `google-beta_google_compute_image` 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-beta.data.google_compute_image.new` injects a new `data_google-beta_google_compute_image` 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-beta.data.google_compute_image.new('some_id')\n\nYou can get the reference to the `id` field of the created `google-beta.data.google_compute_image` using the reference:\n\n $._ref.data_google-beta_google_compute_image.some_id.get('id')\n\nThis is the same as directly entering `\"${ data_google-beta_google_compute_image.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 - `family` (`string`): Set the `family` field on the resulting data source block. When `null`, the `family` field will be omitted from the resulting object.\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 - `name` (`string`): Set the `name` field on the resulting data source block. When `null`, the `name` 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=[]),
'#new':: d.fn(help="\n`google-beta.data.google_compute_image.new` injects a new `data_google-beta_google_compute_image` 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-beta.data.google_compute_image.new('some_id')\n\nYou can get the reference to the `id` field of the created `google-beta.data.google_compute_image` using the reference:\n\n $._ref.data_google-beta_google_compute_image.some_id.get('id')\n\nThis is the same as directly entering `\"${ data_google-beta_google_compute_image.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 - `family` (`string`): Set the `family` field on the resulting data source block. When `null`, the `family` field will be omitted from the resulting object.\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`): Set the `name` field on the resulting data source block. When `null`, the `name` 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=[]),
new(
dataSrcLabel,
family=null,
filter=null,
most_recent=null,
name=null,
project=null,
_meta={}
Expand All @@ -16,20 +17,23 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
attrs=self.newAttrs(
family=family,
filter=filter,
most_recent=most_recent,
name=name,
project=project
),
_meta=_meta
),
'#newAttrs':: d.fn(help='\n`google-beta.data.google_compute_image.newAttrs` constructs a new object with attributes and blocks configured for the `google_compute_image`\nTerraform data source.\n\nUnlike [google-beta.data.google_compute_image.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 - `family` (`string`): Set the `family` field on the resulting object. When `null`, the `family` field will be omitted from the resulting object.\n - `filter` (`string`): Set the `filter` field on the resulting object. When `null`, the `filter` field will be omitted from the resulting object.\n - `name` (`string`): Set the `name` field on the resulting object. When `null`, the `name` 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 `google_compute_image` data source into the root Terraform configuration.\n', args=[]),
'#newAttrs':: d.fn(help='\n`google-beta.data.google_compute_image.newAttrs` constructs a new object with attributes and blocks configured for the `google_compute_image`\nTerraform data source.\n\nUnlike [google-beta.data.google_compute_image.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 - `family` (`string`): Set the `family` field on the resulting object. When `null`, the `family` field will be omitted from the resulting object.\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`): Set the `name` field on the resulting object. When `null`, the `name` 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 `google_compute_image` data source into the root Terraform configuration.\n', args=[]),
newAttrs(
family=null,
filter=null,
most_recent=null,
name=null,
project=null
):: std.prune(a={
family: family,
filter: filter,
most_recent: most_recent,
name: name,
project: project,
}),
Expand All @@ -53,6 +57,16 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
},
},
},
'#withMostRecent':: d.fn(help='`google-beta.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_image+: {
[dataSrcLabel]+: {
most_recent: value,
},
},
},
},
'#withName':: d.fn(help='`google-beta.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+: {
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 @@ -567,6 +567,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
logging_project_bucket_config: (import 'resources/logging_project_bucket_config.libsonnet'),
logging_project_exclusion: (import 'resources/logging_project_exclusion.libsonnet'),
logging_project_sink: (import 'resources/logging_project_sink.libsonnet'),
looker_instance: (import 'resources/looker_instance.libsonnet'),
memcache_instance: (import 'resources/memcache_instance.libsonnet'),
ml_engine_model: (import 'resources/ml_engine_model.libsonnet'),
monitoring_alert_policy: (import 'resources/monitoring_alert_policy.libsonnet'),
Expand Down
8 changes: 6 additions & 2 deletions 4.x/_gen/provider_google-beta.libsonnet

Large diffs are not rendered by default.

Loading

0 comments on commit 18e8d01

Please sign in to comment.