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 Jan 8, 2024
1 parent a56b4e0 commit f9b3402
Show file tree
Hide file tree
Showing 48 changed files with 4,171 additions and 40 deletions.
58 changes: 58 additions & 0 deletions 4.x/_gen/data/compute_reservation.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_reservation', url='', help='`compute_reservation` represents the `google_compute_reservation` 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_reservation.new` injects a new `data_google_compute_reservation` 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_reservation.new('some_id')\n\nYou can get the reference to the `id` field of the created `google.data.compute_reservation` using the reference:\n\n $._ref.data_google_compute_reservation.some_id.get('id')\n\nThis is the same as directly entering `\"${ data_google_compute_reservation.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.\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 - `zone` (`string`): The zone where the reservation is made.\n\n**Returns**:\n- A mixin object that injects the new data source into the root Terraform configuration.\n", args=[]),
new(
dataSrcLabel,
name,
zone,
project=null,
_meta={}
):: tf.withData(
type='google_compute_reservation',
label=dataSrcLabel,
attrs=self.newAttrs(name=name, project=project, zone=zone),
_meta=_meta
),
'#newAttrs':: d.fn(help='\n`google.data.compute_reservation.newAttrs` constructs a new object with attributes and blocks configured for the `compute_reservation`\nTerraform data source.\n\nUnlike [google.data.compute_reservation.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.\n - `project` (`string`): Set the `project` field on the resulting object. When `null`, the `project` field will be omitted from the resulting object.\n - `zone` (`string`): The zone where the reservation is made.\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_reservation` data source into the root Terraform configuration.\n', args=[]),
newAttrs(
name,
zone,
project=null
):: std.prune(a={
name: name,
project: project,
zone: zone,
}),
'#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+: {
google_compute_reservation+: {
[dataSrcLabel]+: {
name: 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_reservation+: {
[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_reservation+: {
[dataSrcLabel]+: {
zone: value,
},
},
},
},
}
1 change: 1 addition & 0 deletions 4.x/_gen/data/main.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
compute_region_network_endpoint_group: (import 'compute_region_network_endpoint_group.libsonnet'),
compute_region_ssl_certificate: (import 'compute_region_ssl_certificate.libsonnet'),
compute_regions: (import 'compute_regions.libsonnet'),
compute_reservation: (import 'compute_reservation.libsonnet'),
compute_resource_policy: (import 'compute_resource_policy.libsonnet'),
compute_router: (import 'compute_router.libsonnet'),
compute_router_nat: (import 'compute_router_nat.libsonnet'),
Expand Down
7 changes: 7 additions & 0 deletions 4.x/_gen/main.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
identity_platform_tenant_inbound_saml_config: (import 'resources/identity_platform_tenant_inbound_saml_config.libsonnet'),
identity_platform_tenant_oauth_idp_config: (import 'resources/identity_platform_tenant_oauth_idp_config.libsonnet'),
integration_connectors_connection: (import 'resources/integration_connectors_connection.libsonnet'),
integration_connectors_endpoint_attachment: (import 'resources/integration_connectors_endpoint_attachment.libsonnet'),
kms_crypto_key: (import 'resources/kms_crypto_key.libsonnet'),
kms_crypto_key_iam_binding: (import 'resources/kms_crypto_key_iam_binding.libsonnet'),
kms_crypto_key_iam_member: (import 'resources/kms_crypto_key_iam_member.libsonnet'),
Expand All @@ -537,12 +538,14 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
logging_billing_account_sink: (import 'resources/logging_billing_account_sink.libsonnet'),
logging_folder_bucket_config: (import 'resources/logging_folder_bucket_config.libsonnet'),
logging_folder_exclusion: (import 'resources/logging_folder_exclusion.libsonnet'),
logging_folder_settings: (import 'resources/logging_folder_settings.libsonnet'),
logging_folder_sink: (import 'resources/logging_folder_sink.libsonnet'),
logging_linked_dataset: (import 'resources/logging_linked_dataset.libsonnet'),
logging_log_view: (import 'resources/logging_log_view.libsonnet'),
logging_metric: (import 'resources/logging_metric.libsonnet'),
logging_organization_bucket_config: (import 'resources/logging_organization_bucket_config.libsonnet'),
logging_organization_exclusion: (import 'resources/logging_organization_exclusion.libsonnet'),
logging_organization_settings: (import 'resources/logging_organization_settings.libsonnet'),
logging_organization_sink: (import 'resources/logging_organization_sink.libsonnet'),
logging_project_bucket_config: (import 'resources/logging_project_bucket_config.libsonnet'),
logging_project_exclusion: (import 'resources/logging_project_exclusion.libsonnet'),
Expand All @@ -561,6 +564,8 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
monitoring_service: (import 'resources/monitoring_service.libsonnet'),
monitoring_slo: (import 'resources/monitoring_slo.libsonnet'),
monitoring_uptime_check_config: (import 'resources/monitoring_uptime_check_config.libsonnet'),
netapp_active_directory: (import 'resources/netapp_active_directory.libsonnet'),
netapp_backup_vault: (import 'resources/netapp_backup_vault.libsonnet'),
netapp_storage_pool: (import 'resources/netapp_storage_pool.libsonnet'),
network_connectivity_hub: (import 'resources/network_connectivity_hub.libsonnet'),
network_connectivity_policy_based_route: (import 'resources/network_connectivity_policy_based_route.libsonnet'),
Expand Down Expand Up @@ -710,6 +715,8 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
tpu_node: (import 'resources/tpu_node.libsonnet'),
vertex_ai_dataset: (import 'resources/vertex_ai_dataset.libsonnet'),
vertex_ai_endpoint: (import 'resources/vertex_ai_endpoint.libsonnet'),
vertex_ai_feature_group: (import 'resources/vertex_ai_feature_group.libsonnet'),
vertex_ai_feature_online_store: (import 'resources/vertex_ai_feature_online_store.libsonnet'),
vertex_ai_featurestore: (import 'resources/vertex_ai_featurestore.libsonnet'),
vertex_ai_featurestore_entitytype: (import 'resources/vertex_ai_featurestore_entitytype.libsonnet'),
vertex_ai_featurestore_entitytype_feature: (import 'resources/vertex_ai_featurestore_entitytype_feature.libsonnet'),
Expand Down
Loading

0 comments on commit f9b3402

Please sign in to comment.