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

Signed-off-by: tflibsonnet-ci <[email protected]>
  • Loading branch information
renovate[bot] authored and tflibsonnet-ci committed Jun 12, 2023
1 parent cbc7357 commit d20ee25
Show file tree
Hide file tree
Showing 40 changed files with 8,535 additions and 296 deletions.
24 changes: 21 additions & 3 deletions 4.x/_gen/data/billing_account.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,35 @@ 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_billing_account', url='', help='`google_billing_account` represents the `google-beta_google_billing_account` 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_billing_account.new` injects a new `data_google-beta_google_billing_account` 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_billing_account.new('some_id')\n\nYou can get the reference to the `id` field of the created `google-beta.data.google_billing_account` using the reference:\n\n $._ref.data_google-beta_google_billing_account.some_id.get('id')\n\nThis is the same as directly entering `\"${ data_google-beta_google_billing_account.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 - `billing_account` (`string`): Set the `billing_account` field on the resulting data source block. When `null`, the `billing_account` field will be omitted from the resulting object.\n - `display_name` (`string`): Set the `display_name` field on the resulting data source block. When `null`, the `display_name` field will be omitted from the resulting object.\n - `open` (`bool`): Set the `open` field on the resulting data source block. When `null`, the `open` 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_billing_account.new` injects a new `data_google-beta_google_billing_account` 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_billing_account.new('some_id')\n\nYou can get the reference to the `id` field of the created `google-beta.data.google_billing_account` using the reference:\n\n $._ref.data_google-beta_google_billing_account.some_id.get('id')\n\nThis is the same as directly entering `\"${ data_google-beta_google_billing_account.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 - `billing_account` (`string`): Set the `billing_account` field on the resulting data source block. When `null`, the `billing_account` field will be omitted from the resulting object.\n - `display_name` (`string`): Set the `display_name` field on the resulting data source block. When `null`, the `display_name` field will be omitted from the resulting object.\n - `lookup_projects` (`bool`): Set the `lookup_projects` field on the resulting data source block. When `null`, the `lookup_projects` field will be omitted from the resulting object.\n - `open` (`bool`): Set the `open` field on the resulting data source block. When `null`, the `open` 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,
billing_account=null,
display_name=null,
lookup_projects=null,
open=null,
_meta={}
):: tf.withData(
type='google_billing_account',
label=dataSrcLabel,
attrs=self.newAttrs(billing_account=billing_account, display_name=display_name, open=open),
attrs=self.newAttrs(
billing_account=billing_account,
display_name=display_name,
lookup_projects=lookup_projects,
open=open
),
_meta=_meta
),
'#newAttrs':: d.fn(help='\n`google-beta.data.google_billing_account.newAttrs` constructs a new object with attributes and blocks configured for the `google_billing_account`\nTerraform data source.\n\nUnlike [google-beta.data.google_billing_account.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 - `billing_account` (`string`): Set the `billing_account` field on the resulting object. When `null`, the `billing_account` field will be omitted from the resulting object.\n - `display_name` (`string`): Set the `display_name` field on the resulting object. When `null`, the `display_name` field will be omitted from the resulting object.\n - `open` (`bool`): Set the `open` field on the resulting object. When `null`, the `open` 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_billing_account` data source into the root Terraform configuration.\n', args=[]),
'#newAttrs':: d.fn(help='\n`google-beta.data.google_billing_account.newAttrs` constructs a new object with attributes and blocks configured for the `google_billing_account`\nTerraform data source.\n\nUnlike [google-beta.data.google_billing_account.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 - `billing_account` (`string`): Set the `billing_account` field on the resulting object. When `null`, the `billing_account` field will be omitted from the resulting object.\n - `display_name` (`string`): Set the `display_name` field on the resulting object. When `null`, the `display_name` field will be omitted from the resulting object.\n - `lookup_projects` (`bool`): Set the `lookup_projects` field on the resulting object. When `null`, the `lookup_projects` field will be omitted from the resulting object.\n - `open` (`bool`): Set the `open` field on the resulting object. When `null`, the `open` 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_billing_account` data source into the root Terraform configuration.\n', args=[]),
newAttrs(
billing_account=null,
display_name=null,
lookup_projects=null,
open=null
):: std.prune(a={
billing_account: billing_account,
display_name: display_name,
lookup_projects: lookup_projects,
open: open,
}),
'#withBillingAccount':: d.fn(help='`google-beta.string.withBillingAccount` constructs a mixin object that can be merged into the `string`\nTerraform data source block to set or update the billing_account 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 `billing_account` field.\n', args=[]),
Expand All @@ -45,6 +53,16 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
},
},
},
'#withLookupProjects':: d.fn(help='`google-beta.bool.withLookupProjects` constructs a mixin object that can be merged into the `bool`\nTerraform data source block to set or update the lookup_projects 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 `lookup_projects` field.\n', args=[]),
withLookupProjects(dataSrcLabel, value): {
data+: {
google_billing_account+: {
[dataSrcLabel]+: {
lookup_projects: value,
},
},
},
},
'#withOpen':: d.fn(help='`google-beta.bool.withOpen` constructs a mixin object that can be merged into the `bool`\nTerraform data source block to set or update the open 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 `open` field.\n', args=[]),
withOpen(dataSrcLabel, value): {
data+: {
Expand Down
58 changes: 58 additions & 0 deletions 4.x/_gen/data/dataplex_datascan_iam_policy.libsonnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
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_dataplex_datascan_iam_policy', url='', help='`google_dataplex_datascan_iam_policy` represents the `google-beta_google_dataplex_datascan_iam_policy` 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_dataplex_datascan_iam_policy.new` injects a new `data_google-beta_google_dataplex_datascan_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-beta.data.google_dataplex_datascan_iam_policy.new('some_id')\n\nYou can get the reference to the `id` field of the created `google-beta.data.google_dataplex_datascan_iam_policy` using the reference:\n\n $._ref.data_google-beta_google_dataplex_datascan_iam_policy.some_id.get('id')\n\nThis is the same as directly entering `\"${ data_google-beta_google_dataplex_datascan_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_scan_id` (`string`): Set the `data_scan_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=[]),
new(
dataSrcLabel,
data_scan_id,
location=null,
project=null,
_meta={}
):: tf.withData(
type='google_dataplex_datascan_iam_policy',
label=dataSrcLabel,
attrs=self.newAttrs(data_scan_id=data_scan_id, location=location, project=project),
_meta=_meta
),
'#newAttrs':: d.fn(help='\n`google-beta.data.google_dataplex_datascan_iam_policy.newAttrs` constructs a new object with attributes and blocks configured for the `google_dataplex_datascan_iam_policy`\nTerraform data source.\n\nUnlike [google-beta.data.google_dataplex_datascan_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_scan_id` (`string`): Set the `data_scan_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 `google_dataplex_datascan_iam_policy` data source into the root Terraform configuration.\n', args=[]),
newAttrs(
data_scan_id,
location=null,
project=null
):: std.prune(a={
data_scan_id: data_scan_id,
location: location,
project: project,
}),
'#withDataScanId':: d.fn(help='`google-beta.string.withDataScanId` constructs a mixin object that can be merged into the `string`\nTerraform data source block to set or update the data_scan_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_scan_id` field.\n', args=[]),
withDataScanId(dataSrcLabel, value): {
data+: {
google_dataplex_datascan_iam_policy+: {
[dataSrcLabel]+: {
data_scan_id: value,
},
},
},
},
'#withLocation':: d.fn(help='`google-beta.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=[]),
withLocation(dataSrcLabel, value): {
data+: {
google_dataplex_datascan_iam_policy+: {
[dataSrcLabel]+: {
location: value,
},
},
},
},
'#withProject':: d.fn(help='`google-beta.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_dataplex_datascan_iam_policy+: {
[dataSrcLabel]+: {
project: value,
},
},
},
},
}
2 changes: 2 additions & 0 deletions 4.x/_gen/data/main.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
data_catalog_taxonomy_iam_policy: (import 'data_catalog_taxonomy_iam_policy.libsonnet'),
data_fusion_instance_iam_policy: (import 'data_fusion_instance_iam_policy.libsonnet'),
dataplex_asset_iam_policy: (import 'dataplex_asset_iam_policy.libsonnet'),
dataplex_datascan_iam_policy: (import 'dataplex_datascan_iam_policy.libsonnet'),
dataplex_lake_iam_policy: (import 'dataplex_lake_iam_policy.libsonnet'),
dataplex_zone_iam_policy: (import 'dataplex_zone_iam_policy.libsonnet'),
dataproc_autoscaling_policy_iam_policy: (import 'dataproc_autoscaling_policy_iam_policy.libsonnet'),
Expand Down Expand Up @@ -238,6 +239,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
vertex_ai_featurestore_entitytype_iam_policy: (import 'vertex_ai_featurestore_entitytype_iam_policy.libsonnet'),
vertex_ai_featurestore_iam_policy: (import 'vertex_ai_featurestore_iam_policy.libsonnet'),
vertex_ai_index: (import 'vertex_ai_index.libsonnet'),
vmwareengine_network: (import 'vmwareengine_network.libsonnet'),
vpc_access_connector: (import 'vpc_access_connector.libsonnet'),
workstations_workstation_config_iam_policy: (import 'workstations_workstation_config_iam_policy.libsonnet'),
workstations_workstation_iam_policy: (import 'workstations_workstation_iam_policy.libsonnet'),
Expand Down
Loading

0 comments on commit d20ee25

Please sign in to comment.