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

Signed-off-by: tflibsonnet-ci <120686569+tflibsonnet-ci@users.noreply.github.com>
  • Loading branch information
renovate[bot] authored and tflibsonnet-ci committed Jan 8, 2024
1 parent 14a2cb6 commit ce90761
Show file tree
Hide file tree
Showing 54 changed files with 5,283 additions and 45 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='google_compute_reservation', url='', help='`google_compute_reservation` represents the `google-beta_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-beta.data.google_compute_reservation.new` injects a new `data_google-beta_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-beta.data.google_compute_reservation.new('some_id')\n\nYou can get the reference to the `id` field of the created `google-beta.data.google_compute_reservation` using the reference:\n\n $._ref.data_google-beta_google_compute_reservation.some_id.get('id')\n\nThis is the same as directly entering `\"${ data_google-beta_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-beta.data.google_compute_reservation.newAttrs` constructs a new object with attributes and blocks configured for the `google_compute_reservation`\nTerraform data source.\n\nUnlike [google-beta.data.google_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 `google_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-beta.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-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_compute_reservation+: {
[dataSrcLabel]+: {
project: value,
},
},
},
},
'#withZone':: d.fn(help='`google-beta.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 @@ -92,6 +92,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
8 changes: 8 additions & 0 deletions 4.x/_gen/main.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
cloudbuildv2_connection_iam_member: (import 'resources/cloudbuildv2_connection_iam_member.libsonnet'),
cloudbuildv2_connection_iam_policy: (import 'resources/cloudbuildv2_connection_iam_policy.libsonnet'),
cloudbuildv2_repository: (import 'resources/cloudbuildv2_repository.libsonnet'),
clouddeploy_automation: (import 'resources/clouddeploy_automation.libsonnet'),
clouddeploy_delivery_pipeline: (import 'resources/clouddeploy_delivery_pipeline.libsonnet'),
clouddeploy_target: (import 'resources/clouddeploy_target.libsonnet'),
cloudfunctions2_function: (import 'resources/cloudfunctions2_function.libsonnet'),
Expand Down Expand Up @@ -582,6 +583,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 @@ -598,12 +600,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 @@ -622,6 +626,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 @@ -804,6 +810,8 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
vertex_ai_endpoint_iam_binding: (import 'resources/vertex_ai_endpoint_iam_binding.libsonnet'),
vertex_ai_endpoint_iam_member: (import 'resources/vertex_ai_endpoint_iam_member.libsonnet'),
vertex_ai_endpoint_iam_policy: (import 'resources/vertex_ai_endpoint_iam_policy.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 ce90761

Please sign in to comment.