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

Signed-off-by: tflibsonnet-ci <[email protected]>
  • Loading branch information
renovate[bot] authored and tflibsonnet-ci committed Jul 24, 2023
1 parent 92cca8a commit ee30bb3
Show file tree
Hide file tree
Showing 26 changed files with 2,514 additions and 21 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='compute_image', url='', help='`compute_image` represents the `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.data.compute_image.new` injects a new `data_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.data.compute_image.new('some_id')\n\nYou can get the reference to the `id` field of the created `google.data.compute_image` using the reference:\n\n $._ref.data_google_compute_image.some_id.get('id')\n\nThis is the same as directly entering `\"${ data_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.data.compute_image.new` injects a new `data_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.data.compute_image.new('some_id')\n\nYou can get the reference to the `id` field of the created `google.data.compute_image` using the reference:\n\n $._ref.data_google_compute_image.some_id.get('id')\n\nThis is the same as directly entering `\"${ data_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.data.compute_image.newAttrs` constructs a new object with attributes and blocks configured for the `compute_image`\nTerraform data source.\n\nUnlike [google.data.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 `compute_image` data source into the root Terraform configuration.\n', args=[]),
'#newAttrs':: d.fn(help='\n`google.data.compute_image.newAttrs` constructs a new object with attributes and blocks configured for the `compute_image`\nTerraform data source.\n\nUnlike [google.data.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 `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.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.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
3 changes: 3 additions & 0 deletions 4.x/_gen/main.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,8 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
dns_managed_zone_iam_policy: (import 'resources/dns_managed_zone_iam_policy.libsonnet'),
dns_policy: (import 'resources/dns_policy.libsonnet'),
dns_record_set: (import 'resources/dns_record_set.libsonnet'),
dns_response_policy: (import 'resources/dns_response_policy.libsonnet'),
dns_response_policy_rule: (import 'resources/dns_response_policy_rule.libsonnet'),
document_ai_processor: (import 'resources/document_ai_processor.libsonnet'),
document_ai_processor_default_version: (import 'resources/document_ai_processor_default_version.libsonnet'),
endpoints_service: (import 'resources/endpoints_service.libsonnet'),
Expand Down Expand Up @@ -506,6 +508,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.libsonnet

Large diffs are not rendered by default.

Loading

0 comments on commit ee30bb3

Please sign in to comment.