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

Signed-off-by: tflibsonnet-ci <[email protected]>
  • Loading branch information
renovate[bot] authored and tflibsonnet-ci committed Feb 5, 2024
1 parent d675ab7 commit 6d31dfe
Show file tree
Hide file tree
Showing 32 changed files with 3,022 additions and 36 deletions.
58 changes: 58 additions & 0 deletions 4.x/_gen/data/compute_machine_types.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='compute_machine_types', url='', help='`compute_machine_types` represents the `google_compute_machine_types` 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_machine_types.new` injects a new `data_google_compute_machine_types` 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_machine_types.new('some_id')\n\nYou can get the reference to the `id` field of the created `google.data.compute_machine_types` using the reference:\n\n $._ref.data_google_compute_machine_types.some_id.get('id')\n\nThis is the same as directly entering `\"${ data_google_compute_machine_types.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 - `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 - `project` (`string`): Project ID for this request. When `null`, the `project` field will be omitted from the resulting object.\n - `zone` (`string`): The name of the zone for this request. When `null`, the `zone` 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,
filter=null,
project=null,
zone=null,
_meta={}
):: tf.withData(
type='google_compute_machine_types',
label=dataSrcLabel,
attrs=self.newAttrs(filter=filter, project=project, zone=zone),
_meta=_meta
),
'#newAttrs':: d.fn(help='\n`google.data.compute_machine_types.newAttrs` constructs a new object with attributes and blocks configured for the `compute_machine_types`\nTerraform data source.\n\nUnlike [google.data.compute_machine_types.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 - `filter` (`string`): Set the `filter` field on the resulting object. When `null`, the `filter` field will be omitted from the resulting object.\n - `project` (`string`): Project ID for this request. When `null`, the `project` field will be omitted from the resulting object.\n - `zone` (`string`): The name of the zone for this request. When `null`, the `zone` 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_machine_types` data source into the root Terraform configuration.\n', args=[]),
newAttrs(
filter=null,
project=null,
zone=null
):: std.prune(a={
filter: filter,
project: project,
zone: zone,
}),
'#withFilter':: d.fn(help='`google.string.withFilter` constructs a mixin object that can be merged into the `string`\nTerraform data source block to set or update the filter 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 `filter` field.\n', args=[]),
withFilter(dataSrcLabel, value): {
data+: {
google_compute_machine_types+: {
[dataSrcLabel]+: {
filter: 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_compute_machine_types+: {
[dataSrcLabel]+: {
project: value,
},
},
},
},
'#withZone':: d.fn(help='`google.string.withZone` constructs a mixin object that can be merged into the `string`\nTerraform data source block to set or update the zone 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 `zone` field.\n', args=[]),
withZone(dataSrcLabel, value): {
data+: {
google_compute_machine_types+: {
[dataSrcLabel]+: {
zone: value,
},
},
},
},
}
4 changes: 2 additions & 2 deletions 4.x/_gen/data/compute_region_network_endpoint_group.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ 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_region_network_endpoint_group', url='', help='`compute_region_network_endpoint_group` represents the `google_compute_region_network_endpoint_group` 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_region_network_endpoint_group.new` injects a new `data_google_compute_region_network_endpoint_group` 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_region_network_endpoint_group.new('some_id')\n\nYou can get the reference to the `id` field of the created `google.data.compute_region_network_endpoint_group` using the reference:\n\n $._ref.data_google_compute_region_network_endpoint_group.some_id.get('id')\n\nThis is the same as directly entering `\"${ data_google_compute_region_network_endpoint_group.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 - `name` (`string`): Name of the resource; provided by the client when the resource is\ncreated. The name must be 1-63 characters long, and comply with\nRFC1035. Specifically, the name must be 1-63 characters long and match\nthe regular expression \u0026#39;[a-z]([-a-z0-9]*[a-z0-9])?\u0026#39; which means the\nfirst character must be a lowercase letter, and all following\ncharacters must be a dash, lowercase letter, or digit, except the last\ncharacter, which cannot be a dash. 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 - `region` (`string`): A reference to the region where the Serverless NEGs Reside. When `null`, the `region` field will be omitted from the resulting object.\n - `self_link` (`string`): Set the `self_link` field on the resulting data source block. When `null`, the `self_link` 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_region_network_endpoint_group.new` injects a new `data_google_compute_region_network_endpoint_group` 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_region_network_endpoint_group.new('some_id')\n\nYou can get the reference to the `id` field of the created `google.data.compute_region_network_endpoint_group` using the reference:\n\n $._ref.data_google_compute_region_network_endpoint_group.some_id.get('id')\n\nThis is the same as directly entering `\"${ data_google_compute_region_network_endpoint_group.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 - `name` (`string`): Name of the resource; provided by the client when the resource is\ncreated. The name must be 1-63 characters long, and comply with\nRFC1035. Specifically, the name must be 1-63 characters long and match\nthe regular expression \u0026#39;[a-z]([-a-z0-9]*[a-z0-9])?\u0026#39; which means the\nfirst character must be a lowercase letter, and all following\ncharacters must be a dash, lowercase letter, or digit, except the last\ncharacter, which cannot be a dash. 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 - `region` (`string`): A reference to the region where the regional NEGs reside. When `null`, the `region` field will be omitted from the resulting object.\n - `self_link` (`string`): Set the `self_link` field on the resulting data source block. When `null`, the `self_link` 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,
name=null,
Expand All @@ -21,7 +21,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
),
_meta=_meta
),
'#newAttrs':: d.fn(help='\n`google.data.compute_region_network_endpoint_group.newAttrs` constructs a new object with attributes and blocks configured for the `compute_region_network_endpoint_group`\nTerraform data source.\n\nUnlike [google.data.compute_region_network_endpoint_group.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 - `name` (`string`): Name of the resource; provided by the client when the resource is\ncreated. The name must be 1-63 characters long, and comply with\nRFC1035. Specifically, the name must be 1-63 characters long and match\nthe regular expression &#39;[a-z]([-a-z0-9]*[a-z0-9])?&#39; which means the\nfirst character must be a lowercase letter, and all following\ncharacters must be a dash, lowercase letter, or digit, except the last\ncharacter, which cannot be a dash. 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 - `region` (`string`): A reference to the region where the Serverless NEGs Reside. When `null`, the `region` field will be omitted from the resulting object.\n - `self_link` (`string`): Set the `self_link` field on the resulting object. When `null`, the `self_link` 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_region_network_endpoint_group` data source into the root Terraform configuration.\n', args=[]),
'#newAttrs':: d.fn(help='\n`google.data.compute_region_network_endpoint_group.newAttrs` constructs a new object with attributes and blocks configured for the `compute_region_network_endpoint_group`\nTerraform data source.\n\nUnlike [google.data.compute_region_network_endpoint_group.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 - `name` (`string`): Name of the resource; provided by the client when the resource is\ncreated. The name must be 1-63 characters long, and comply with\nRFC1035. Specifically, the name must be 1-63 characters long and match\nthe regular expression &#39;[a-z]([-a-z0-9]*[a-z0-9])?&#39; which means the\nfirst character must be a lowercase letter, and all following\ncharacters must be a dash, lowercase letter, or digit, except the last\ncharacter, which cannot be a dash. 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 - `region` (`string`): A reference to the region where the regional NEGs reside. When `null`, the `region` field will be omitted from the resulting object.\n - `self_link` (`string`): Set the `self_link` field on the resulting object. When `null`, the `self_link` 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_region_network_endpoint_group` data source into the root Terraform configuration.\n', args=[]),
newAttrs(
name=null,
project=null,
Expand Down
1 change: 1 addition & 0 deletions 4.x/_gen/data/main.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
compute_instance_serial_port: (import 'compute_instance_serial_port.libsonnet'),
compute_instance_template: (import 'compute_instance_template.libsonnet'),
compute_lb_ip_ranges: (import 'compute_lb_ip_ranges.libsonnet'),
compute_machine_types: (import 'compute_machine_types.libsonnet'),
compute_network: (import 'compute_network.libsonnet'),
compute_network_endpoint_group: (import 'compute_network_endpoint_group.libsonnet'),
compute_network_peering: (import 'compute_network_peering.libsonnet'),
Expand Down
5 changes: 5 additions & 0 deletions 4.x/_gen/main.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
binary_authorization_attestor_iam_member: (import 'resources/binary_authorization_attestor_iam_member.libsonnet'),
binary_authorization_attestor_iam_policy: (import 'resources/binary_authorization_attestor_iam_policy.libsonnet'),
binary_authorization_policy: (import 'resources/binary_authorization_policy.libsonnet'),
blockchain_node_engine_blockchain_nodes: (import 'resources/blockchain_node_engine_blockchain_nodes.libsonnet'),
certificate_manager_certificate: (import 'resources/certificate_manager_certificate.libsonnet'),
certificate_manager_certificate_issuance_config: (import 'resources/certificate_manager_certificate_issuance_config.libsonnet'),
certificate_manager_certificate_map: (import 'resources/certificate_manager_certificate_map.libsonnet'),
Expand Down Expand Up @@ -240,6 +241,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
compute_region_health_check: (import 'resources/compute_region_health_check.libsonnet'),
compute_region_instance_group_manager: (import 'resources/compute_region_instance_group_manager.libsonnet'),
compute_region_instance_template: (import 'resources/compute_region_instance_template.libsonnet'),
compute_region_network_endpoint: (import 'resources/compute_region_network_endpoint.libsonnet'),
compute_region_network_endpoint_group: (import 'resources/compute_region_network_endpoint_group.libsonnet'),
compute_region_network_firewall_policy: (import 'resources/compute_region_network_firewall_policy.libsonnet'),
compute_region_network_firewall_policy_association: (import 'resources/compute_region_network_firewall_policy_association.libsonnet'),
Expand Down Expand Up @@ -382,7 +384,9 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
dialogflow_entity_type: (import 'resources/dialogflow_entity_type.libsonnet'),
dialogflow_fulfillment: (import 'resources/dialogflow_fulfillment.libsonnet'),
dialogflow_intent: (import 'resources/dialogflow_intent.libsonnet'),
discovery_engine_chat_engine: (import 'resources/discovery_engine_chat_engine.libsonnet'),
discovery_engine_data_store: (import 'resources/discovery_engine_data_store.libsonnet'),
discovery_engine_search_engine: (import 'resources/discovery_engine_search_engine.libsonnet'),
dns_managed_zone: (import 'resources/dns_managed_zone.libsonnet'),
dns_managed_zone_iam_binding: (import 'resources/dns_managed_zone_iam_binding.libsonnet'),
dns_managed_zone_iam_member: (import 'resources/dns_managed_zone_iam_member.libsonnet'),
Expand Down Expand Up @@ -572,6 +576,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
netapp_kmsconfig: (import 'resources/netapp_kmsconfig.libsonnet'),
netapp_storage_pool: (import 'resources/netapp_storage_pool.libsonnet'),
netapp_volume: (import 'resources/netapp_volume.libsonnet'),
netapp_volume_snapshot: (import 'resources/netapp_volume_snapshot.libsonnet'),
network_connectivity_hub: (import 'resources/network_connectivity_hub.libsonnet'),
network_connectivity_policy_based_route: (import 'resources/network_connectivity_policy_based_route.libsonnet'),
network_connectivity_service_connection_policy: (import 'resources/network_connectivity_service_connection_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 6d31dfe

Please sign in to comment.