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 22, 2024
1 parent 66193fa commit 459224c
Show file tree
Hide file tree
Showing 56 changed files with 3,623 additions and 48 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 @@ -175,6 +175,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
monitoring_notification_channel: (import 'monitoring_notification_channel.libsonnet'),
monitoring_uptime_check_ips: (import 'monitoring_uptime_check_ips.libsonnet'),
netblock_ip_ranges: (import 'netblock_ip_ranges.libsonnet'),
network_security_address_group_iam_policy: (import 'network_security_address_group_iam_policy.libsonnet'),
notebooks_instance_iam_policy: (import 'notebooks_instance_iam_policy.libsonnet'),
notebooks_runtime_iam_policy: (import 'notebooks_runtime_iam_policy.libsonnet'),
organization: (import 'organization.libsonnet'),
Expand Down
58 changes: 58 additions & 0 deletions 4.x/_gen/data/network_security_address_group_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='network_security_address_group_iam_policy', url='', help='`network_security_address_group_iam_policy` represents the `google_network_security_address_group_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.network_security_address_group_iam_policy.new` injects a new `data_google_network_security_address_group_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.network_security_address_group_iam_policy.new('some_id')\n\nYou can get the reference to the `id` field of the created `google.data.network_security_address_group_iam_policy` using the reference:\n\n $._ref.data_google_network_security_address_group_iam_policy.some_id.get('id')\n\nThis is the same as directly entering `\"${ data_google_network_security_address_group_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 - `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 - `name` (`string`): Set the `name` 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,
name,
location=null,
project=null,
_meta={}
):: tf.withData(
type='google_network_security_address_group_iam_policy',
label=dataSrcLabel,
attrs=self.newAttrs(location=location, name=name, project=project),
_meta=_meta
),
'#newAttrs':: d.fn(help='\n`google.data.network_security_address_group_iam_policy.newAttrs` constructs a new object with attributes and blocks configured for the `network_security_address_group_iam_policy`\nTerraform data source.\n\nUnlike [google.data.network_security_address_group_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 - `location` (`string`): Set the `location` field on the resulting object. When `null`, the `location` field will be omitted from the resulting object.\n - `name` (`string`): Set the `name` 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 `network_security_address_group_iam_policy` data source into the root Terraform configuration.\n', args=[]),
newAttrs(
name,
location=null,
project=null
):: std.prune(a={
location: location,
name: name,
project: project,
}),
'#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_network_security_address_group_iam_policy+: {
[dataSrcLabel]+: {
location: value,
},
},
},
},
'#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_network_security_address_group_iam_policy+: {
[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_network_security_address_group_iam_policy+: {
[dataSrcLabel]+: {
project: value,
},
},
},
},
}
6 changes: 6 additions & 0 deletions 4.x/_gen/main.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -566,15 +566,20 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.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_policy: (import 'resources/netapp_backup_policy.libsonnet'),
netapp_backup_vault: (import 'resources/netapp_backup_vault.libsonnet'),
netapp_kmsconfig: (import 'resources/netapp_kmsconfig.libsonnet'),
netapp_storage_pool: (import 'resources/netapp_storage_pool.libsonnet'),
netapp_volume: (import 'resources/netapp_volume.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'),
network_connectivity_spoke: (import 'resources/network_connectivity_spoke.libsonnet'),
network_management_connectivity_test: (import 'resources/network_management_connectivity_test.libsonnet'),
network_security_address_group: (import 'resources/network_security_address_group.libsonnet'),
network_security_address_group_iam_binding: (import 'resources/network_security_address_group_iam_binding.libsonnet'),
network_security_address_group_iam_member: (import 'resources/network_security_address_group_iam_member.libsonnet'),
network_security_address_group_iam_policy: (import 'resources/network_security_address_group_iam_policy.libsonnet'),
network_security_gateway_security_policy: (import 'resources/network_security_gateway_security_policy.libsonnet'),
network_security_gateway_security_policy_rule: (import 'resources/network_security_gateway_security_policy_rule.libsonnet'),
network_security_url_lists: (import 'resources/network_security_url_lists.libsonnet'),
Expand Down Expand Up @@ -718,6 +723,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.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_group_feature: (import 'resources/vertex_ai_feature_group_feature.libsonnet'),
vertex_ai_feature_online_store: (import 'resources/vertex_ai_feature_online_store.libsonnet'),
vertex_ai_feature_online_store_featureview: (import 'resources/vertex_ai_feature_online_store_featureview.libsonnet'),
vertex_ai_featurestore: (import 'resources/vertex_ai_featurestore.libsonnet'),
Expand Down
18 changes: 16 additions & 2 deletions 4.x/_gen/resources/alloydb_cluster.libsonnet

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions 4.x/_gen/resources/beyondcorp_app_gateway.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,15 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
type: type,
}),
timeouts:: {
'#new':: d.fn(help='\n`google.beyondcorp_app_gateway.timeouts.new` constructs a new object with attributes and blocks configured for the `timeouts`\nTerraform sub block.\n\n\n\n**Args**:\n - `create` (`string`): Set the `create` field on the resulting object. When `null`, the `create` field will be omitted from the resulting object.\n - `delete` (`string`): Set the `delete` field on the resulting object. When `null`, the `delete` field will be omitted from the resulting object.\n\n**Returns**:\n - An attribute object that represents the `timeouts` sub block.\n', args=[]),
'#new':: d.fn(help='\n`google.beyondcorp_app_gateway.timeouts.new` constructs a new object with attributes and blocks configured for the `timeouts`\nTerraform sub block.\n\n\n\n**Args**:\n - `create` (`string`): Set the `create` field on the resulting object. When `null`, the `create` field will be omitted from the resulting object.\n - `delete` (`string`): Set the `delete` field on the resulting object. When `null`, the `delete` field will be omitted from the resulting object.\n - `update` (`string`): Set the `update` field on the resulting object. When `null`, the `update` field will be omitted from the resulting object.\n\n**Returns**:\n - An attribute object that represents the `timeouts` sub block.\n', args=[]),
new(
create=null,
delete=null
delete=null,
update=null
):: std.prune(a={
create: create,
delete: delete,
update: update,
}),
},
'#withDisplayName':: d.fn(help='`google.string.withDisplayName` constructs a mixin object that can be merged into the `string`\nTerraform resource block to set or update the display_name field.\n\n\n\n**Args**:\n - `resourceLabel` (`string`): The name label of the block to update.\n - `value` (`string`): The value to set for the `display_name` field.\n', args=[]),
Expand Down
6 changes: 4 additions & 2 deletions 4.x/_gen/resources/bigquery_job.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -334,13 +334,15 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
},
},
timeouts:: {
'#new':: d.fn(help='\n`google.bigquery_job.timeouts.new` constructs a new object with attributes and blocks configured for the `timeouts`\nTerraform sub block.\n\n\n\n**Args**:\n - `create` (`string`): Set the `create` field on the resulting object. When `null`, the `create` field will be omitted from the resulting object.\n - `delete` (`string`): Set the `delete` field on the resulting object. When `null`, the `delete` field will be omitted from the resulting object.\n\n**Returns**:\n - An attribute object that represents the `timeouts` sub block.\n', args=[]),
'#new':: d.fn(help='\n`google.bigquery_job.timeouts.new` constructs a new object with attributes and blocks configured for the `timeouts`\nTerraform sub block.\n\n\n\n**Args**:\n - `create` (`string`): Set the `create` field on the resulting object. When `null`, the `create` field will be omitted from the resulting object.\n - `delete` (`string`): Set the `delete` field on the resulting object. When `null`, the `delete` field will be omitted from the resulting object.\n - `update` (`string`): Set the `update` field on the resulting object. When `null`, the `update` field will be omitted from the resulting object.\n\n**Returns**:\n - An attribute object that represents the `timeouts` sub block.\n', args=[]),
new(
create=null,
delete=null
delete=null,
update=null
):: std.prune(a={
create: create,
delete: delete,
update: update,
}),
},
'#withCopy':: d.fn(help='`google.list[obj].withCopy` constructs a mixin object that can be merged into the `list[obj]`\nTerraform resource block to set or update the copy field.\n\nThis function will replace the array with the passed in `value`. If you wish to instead append the\npassed in value to the existing array, use the [google.list[obj].withCopyMixin](TODO) function.\n\n\n**Args**:\n - `resourceLabel` (`string`): The name label of the block to update.\n - `value` (`list[obj]`): The value to set for the `copy` field.\n', args=[]),
Expand Down
Loading

0 comments on commit 459224c

Please sign in to comment.