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

Signed-off-by: tflibsonnet-ci <[email protected]>
  • Loading branch information
renovate[bot] authored and tflibsonnet-ci committed Aug 28, 2023
1 parent a4f5594 commit 3e73298
Show file tree
Hide file tree
Showing 46 changed files with 3,111 additions and 50 deletions.
1 change: 1 addition & 0 deletions 4.x/_gen/data/main.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
sql_ca_certs: (import 'sql_ca_certs.libsonnet'),
sql_database: (import 'sql_database.libsonnet'),
sql_database_instance: (import 'sql_database_instance.libsonnet'),
sql_database_instance_latest_recovery_time: (import 'sql_database_instance_latest_recovery_time.libsonnet'),
sql_database_instances: (import 'sql_database_instances.libsonnet'),
sql_databases: (import 'sql_databases.libsonnet'),
sql_tiers: (import 'sql_tiers.libsonnet'),
Expand Down
45 changes: 45 additions & 0 deletions 4.x/_gen/data/sql_database_instance_latest_recovery_time.libsonnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
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_sql_database_instance_latest_recovery_time', url='', help='`google_sql_database_instance_latest_recovery_time` represents the `google-beta_google_sql_database_instance_latest_recovery_time` 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_sql_database_instance_latest_recovery_time.new` injects a new `data_google-beta_google_sql_database_instance_latest_recovery_time` 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_sql_database_instance_latest_recovery_time.new('some_id')\n\nYou can get the reference to the `id` field of the created `google-beta.data.google_sql_database_instance_latest_recovery_time` using the reference:\n\n $._ref.data_google-beta_google_sql_database_instance_latest_recovery_time.some_id.get('id')\n\nThis is the same as directly entering `\"${ data_google-beta_google_sql_database_instance_latest_recovery_time.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 - `instance` (`string`): Set the `instance` field on the resulting data source 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\n**Returns**:\n- A mixin object that injects the new data source into the root Terraform configuration.\n", args=[]),
new(
dataSrcLabel,
instance,
project=null,
_meta={}
):: tf.withData(
type='google_sql_database_instance_latest_recovery_time',
label=dataSrcLabel,
attrs=self.newAttrs(instance=instance, project=project),
_meta=_meta
),
'#newAttrs':: d.fn(help='\n`google-beta.data.google_sql_database_instance_latest_recovery_time.newAttrs` constructs a new object with attributes and blocks configured for the `google_sql_database_instance_latest_recovery_time`\nTerraform data source.\n\nUnlike [google-beta.data.google_sql_database_instance_latest_recovery_time.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 - `instance` (`string`): Set the `instance` field on 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_sql_database_instance_latest_recovery_time` data source into the root Terraform configuration.\n', args=[]),
newAttrs(
instance,
project=null
):: std.prune(a={
instance: instance,
project: project,
}),
'#withInstance':: d.fn(help='`google-beta.string.withInstance` constructs a mixin object that can be merged into the `string`\nTerraform data source block to set or update the instance 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 `instance` field.\n', args=[]),
withInstance(dataSrcLabel, value): {
data+: {
google_sql_database_instance_latest_recovery_time+: {
[dataSrcLabel]+: {
instance: 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_sql_database_instance_latest_recovery_time+: {
[dataSrcLabel]+: {
project: value,
},
},
},
},
}
4 changes: 4 additions & 0 deletions 4.x/_gen/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');
bigquery_analytics_hub_listing_iam_binding: (import 'resources/bigquery_analytics_hub_listing_iam_binding.libsonnet'),
bigquery_analytics_hub_listing_iam_member: (import 'resources/bigquery_analytics_hub_listing_iam_member.libsonnet'),
bigquery_analytics_hub_listing_iam_policy: (import 'resources/bigquery_analytics_hub_listing_iam_policy.libsonnet'),
bigquery_bi_reservation: (import 'resources/bigquery_bi_reservation.libsonnet'),
bigquery_capacity_commitment: (import 'resources/bigquery_capacity_commitment.libsonnet'),
bigquery_connection: (import 'resources/bigquery_connection.libsonnet'),
bigquery_connection_iam_binding: (import 'resources/bigquery_connection_iam_binding.libsonnet'),
Expand Down Expand Up @@ -132,6 +133,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
certificate_manager_certificate_map: (import 'resources/certificate_manager_certificate_map.libsonnet'),
certificate_manager_certificate_map_entry: (import 'resources/certificate_manager_certificate_map_entry.libsonnet'),
certificate_manager_dns_authorization: (import 'resources/certificate_manager_dns_authorization.libsonnet'),
certificate_manager_trust_config: (import 'resources/certificate_manager_trust_config.libsonnet'),
cloud_asset_folder_feed: (import 'resources/cloud_asset_folder_feed.libsonnet'),
cloud_asset_organization_feed: (import 'resources/cloud_asset_organization_feed.libsonnet'),
cloud_asset_project_feed: (import 'resources/cloud_asset_project_feed.libsonnet'),
Expand Down Expand Up @@ -358,6 +360,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
dataflow_job: (import 'resources/dataflow_job.libsonnet'),
dataform_repository: (import 'resources/dataform_repository.libsonnet'),
dataform_repository_release_config: (import 'resources/dataform_repository_release_config.libsonnet'),
dataform_repository_workflow_config: (import 'resources/dataform_repository_workflow_config.libsonnet'),
dataplex_asset: (import 'resources/dataplex_asset.libsonnet'),
dataplex_asset_iam_binding: (import 'resources/dataplex_asset_iam_binding.libsonnet'),
dataplex_asset_iam_member: (import 'resources/dataplex_asset_iam_member.libsonnet'),
Expand Down Expand Up @@ -485,6 +488,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
gke_hub_membership_iam_binding: (import 'resources/gke_hub_membership_iam_binding.libsonnet'),
gke_hub_membership_iam_member: (import 'resources/gke_hub_membership_iam_member.libsonnet'),
gke_hub_membership_iam_policy: (import 'resources/gke_hub_membership_iam_policy.libsonnet'),
gke_hub_membership_rbac_role_binding: (import 'resources/gke_hub_membership_rbac_role_binding.libsonnet'),
gkeonprem_bare_metal_admin_cluster: (import 'resources/gkeonprem_bare_metal_admin_cluster.libsonnet'),
gkeonprem_bare_metal_cluster: (import 'resources/gkeonprem_bare_metal_cluster.libsonnet'),
gkeonprem_bare_metal_node_pool: (import 'resources/gkeonprem_bare_metal_node_pool.libsonnet'),
Expand Down
Loading

0 comments on commit 3e73298

Please sign in to comment.