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 31, 2023
1 parent fb1b711 commit 5da7e8a
Show file tree
Hide file tree
Showing 38 changed files with 4,393 additions and 21 deletions.
76 changes: 76 additions & 0 deletions 4.x/_gen/data/dataplex_task_iam_policy.libsonnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
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='dataplex_task_iam_policy', url='', help='`dataplex_task_iam_policy` represents the `google_dataplex_task_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.data.dataplex_task_iam_policy.new` injects a new `data_google_dataplex_task_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.dataplex_task_iam_policy.new('some_id')\n\nYou can get the reference to the `id` field of the created `google.data.dataplex_task_iam_policy` using the reference:\n\n $._ref.data_google_dataplex_task_iam_policy.some_id.get('id')\n\nThis is the same as directly entering `\"${ data_google_dataplex_task_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 - `lake` (`string`): Set the `lake` 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 - `task_id` (`string`): Set the `task_id` field on the resulting data source block.\n\n**Returns**:\n- A mixin object that injects the new data source into the root Terraform configuration.\n", args=[]),
new(
dataSrcLabel,
lake,
task_id,
location=null,
project=null,
_meta={}
):: tf.withData(
type='google_dataplex_task_iam_policy',
label=dataSrcLabel,
attrs=self.newAttrs(
lake=lake,
location=location,
project=project,
task_id=task_id
),
_meta=_meta
),
'#newAttrs':: d.fn(help='\n`google.data.dataplex_task_iam_policy.newAttrs` constructs a new object with attributes and blocks configured for the `dataplex_task_iam_policy`\nTerraform data source.\n\nUnlike [google.data.dataplex_task_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 - `lake` (`string`): Set the `lake` 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 - `task_id` (`string`): Set the `task_id` field on 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 `dataplex_task_iam_policy` data source into the root Terraform configuration.\n', args=[]),
newAttrs(
lake,
task_id,
location=null,
project=null
):: std.prune(a={
lake: lake,
location: location,
project: project,
task_id: task_id,
}),
'#withLake':: d.fn(help='`google.string.withLake` constructs a mixin object that can be merged into the `string`\nTerraform data source block to set or update the lake 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 `lake` field.\n', args=[]),
withLake(dataSrcLabel, value): {
data+: {
google_dataplex_task_iam_policy+: {
[dataSrcLabel]+: {
lake: value,
},
},
},
},
'#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=[]),
withLocation(dataSrcLabel, value): {
data+: {
google_dataplex_task_iam_policy+: {
[dataSrcLabel]+: {
location: value,
},
},
},
},
'#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=[]),
withProject(dataSrcLabel, value): {
data+: {
google_dataplex_task_iam_policy+: {
[dataSrcLabel]+: {
project: value,
},
},
},
},
'#withTaskId':: d.fn(help='`google.string.withTaskId` constructs a mixin object that can be merged into the `string`\nTerraform data source block to set or update the task_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 `task_id` field.\n', args=[]),
withTaskId(dataSrcLabel, value): {
data+: {
google_dataplex_task_iam_policy+: {
[dataSrcLabel]+: {
task_id: value,
},
},
},
},
}
58 changes: 58 additions & 0 deletions 4.x/_gen/data/iap_web_region_backend_service_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='iap_web_region_backend_service_iam_policy', url='', help='`iap_web_region_backend_service_iam_policy` represents the `google_iap_web_region_backend_service_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.data.iap_web_region_backend_service_iam_policy.new` injects a new `data_google_iap_web_region_backend_service_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.iap_web_region_backend_service_iam_policy.new('some_id')\n\nYou can get the reference to the `id` field of the created `google.data.iap_web_region_backend_service_iam_policy` using the reference:\n\n $._ref.data_google_iap_web_region_backend_service_iam_policy.some_id.get('id')\n\nThis is the same as directly entering `\"${ data_google_iap_web_region_backend_service_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 - `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 - `region` (`string`): Set the `region` field on the resulting data source block. When `null`, the `region` field will be omitted from the resulting object.\n - `web_region_backend_service` (`string`): Set the `web_region_backend_service` field on the resulting data source block.\n\n**Returns**:\n- A mixin object that injects the new data source into the root Terraform configuration.\n", args=[]),
new(
dataSrcLabel,
web_region_backend_service,
project=null,
region=null,
_meta={}
):: tf.withData(
type='google_iap_web_region_backend_service_iam_policy',
label=dataSrcLabel,
attrs=self.newAttrs(project=project, region=region, web_region_backend_service=web_region_backend_service),
_meta=_meta
),
'#newAttrs':: d.fn(help='\n`google.data.iap_web_region_backend_service_iam_policy.newAttrs` constructs a new object with attributes and blocks configured for the `iap_web_region_backend_service_iam_policy`\nTerraform data source.\n\nUnlike [google.data.iap_web_region_backend_service_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 - `project` (`string`): Set the `project` field on the resulting object. When `null`, the `project` field will be omitted from the resulting object.\n - `region` (`string`): Set the `region` field on the resulting object. When `null`, the `region` field will be omitted from the resulting object.\n - `web_region_backend_service` (`string`): Set the `web_region_backend_service` field on 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 `iap_web_region_backend_service_iam_policy` data source into the root Terraform configuration.\n', args=[]),
newAttrs(
web_region_backend_service,
project=null,
region=null
):: std.prune(a={
project: project,
region: region,
web_region_backend_service: web_region_backend_service,
}),
'#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=[]),
withProject(dataSrcLabel, value): {
data+: {
google_iap_web_region_backend_service_iam_policy+: {
[dataSrcLabel]+: {
project: value,
},
},
},
},
'#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=[]),
withRegion(dataSrcLabel, value): {
data+: {
google_iap_web_region_backend_service_iam_policy+: {
[dataSrcLabel]+: {
region: value,
},
},
},
},
'#withWebRegionBackendService':: d.fn(help='`google.string.withWebRegionBackendService` constructs a mixin object that can be merged into the `string`\nTerraform data source block to set or update the web_region_backend_service 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 `web_region_backend_service` field.\n', args=[]),
withWebRegionBackendService(dataSrcLabel, value): {
data+: {
google_iap_web_region_backend_service_iam_policy+: {
[dataSrcLabel]+: {
web_region_backend_service: 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 @@ -105,6 +105,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.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_task_iam_policy: (import 'dataplex_task_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'),
dataproc_cluster_iam_policy: (import 'dataproc_cluster_iam_policy.libsonnet'),
Expand Down Expand Up @@ -141,6 +142,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
iap_tunnel_instance_iam_policy: (import 'iap_tunnel_instance_iam_policy.libsonnet'),
iap_web_backend_service_iam_policy: (import 'iap_web_backend_service_iam_policy.libsonnet'),
iap_web_iam_policy: (import 'iap_web_iam_policy.libsonnet'),
iap_web_region_backend_service_iam_policy: (import 'iap_web_region_backend_service_iam_policy.libsonnet'),
iap_web_type_app_engine_iam_policy: (import 'iap_web_type_app_engine_iam_policy.libsonnet'),
iap_web_type_compute_iam_policy: (import 'iap_web_type_compute_iam_policy.libsonnet'),
kms_crypto_key: (import 'kms_crypto_key.libsonnet'),
Expand Down
8 changes: 8 additions & 0 deletions 4.x/_gen/main.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
compute_region_network_firewall_policy_rule: (import 'resources/compute_region_network_firewall_policy_rule.libsonnet'),
compute_region_per_instance_config: (import 'resources/compute_region_per_instance_config.libsonnet'),
compute_region_ssl_certificate: (import 'resources/compute_region_ssl_certificate.libsonnet'),
compute_region_ssl_policy: (import 'resources/compute_region_ssl_policy.libsonnet'),
compute_region_target_http_proxy: (import 'resources/compute_region_target_http_proxy.libsonnet'),
compute_region_target_https_proxy: (import 'resources/compute_region_target_https_proxy.libsonnet'),
compute_region_target_tcp_proxy: (import 'resources/compute_region_target_tcp_proxy.libsonnet'),
Expand Down Expand Up @@ -330,6 +331,10 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
dataplex_lake_iam_binding: (import 'resources/dataplex_lake_iam_binding.libsonnet'),
dataplex_lake_iam_member: (import 'resources/dataplex_lake_iam_member.libsonnet'),
dataplex_lake_iam_policy: (import 'resources/dataplex_lake_iam_policy.libsonnet'),
dataplex_task: (import 'resources/dataplex_task.libsonnet'),
dataplex_task_iam_binding: (import 'resources/dataplex_task_iam_binding.libsonnet'),
dataplex_task_iam_member: (import 'resources/dataplex_task_iam_member.libsonnet'),
dataplex_task_iam_policy: (import 'resources/dataplex_task_iam_policy.libsonnet'),
dataplex_zone: (import 'resources/dataplex_zone.libsonnet'),
dataplex_zone_iam_binding: (import 'resources/dataplex_zone_iam_binding.libsonnet'),
dataplex_zone_iam_member: (import 'resources/dataplex_zone_iam_member.libsonnet'),
Expand Down Expand Up @@ -467,6 +472,9 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
iap_web_iam_binding: (import 'resources/iap_web_iam_binding.libsonnet'),
iap_web_iam_member: (import 'resources/iap_web_iam_member.libsonnet'),
iap_web_iam_policy: (import 'resources/iap_web_iam_policy.libsonnet'),
iap_web_region_backend_service_iam_binding: (import 'resources/iap_web_region_backend_service_iam_binding.libsonnet'),
iap_web_region_backend_service_iam_member: (import 'resources/iap_web_region_backend_service_iam_member.libsonnet'),
iap_web_region_backend_service_iam_policy: (import 'resources/iap_web_region_backend_service_iam_policy.libsonnet'),
iap_web_type_app_engine_iam_binding: (import 'resources/iap_web_type_app_engine_iam_binding.libsonnet'),
iap_web_type_app_engine_iam_member: (import 'resources/iap_web_type_app_engine_iam_member.libsonnet'),
iap_web_type_app_engine_iam_policy: (import 'resources/iap_web_type_app_engine_iam_policy.libsonnet'),
Expand Down
Loading

0 comments on commit 5da7e8a

Please sign in to comment.