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 Dec 18, 2023
1 parent df782a5 commit 14a2cb6
Show file tree
Hide file tree
Showing 62 changed files with 4,390 additions and 40 deletions.
58 changes: 58 additions & 0 deletions 4.x/_gen/data/compute_region_disk.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_region_disk', url='', help='`google_compute_region_disk` represents the `google-beta_google_compute_region_disk` 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_region_disk.new` injects a new `data_google-beta_google_compute_region_disk` 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_region_disk.new('some_id')\n\nYou can get the reference to the `id` field of the created `google-beta.data.google_compute_region_disk` using the reference:\n\n $._ref.data_google-beta_google_compute_region_disk.some_id.get('id')\n\nThis is the same as directly entering `\"${ data_google-beta_google_compute_region_disk.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 - `region` (`string`): A reference to the region where the disk resides. When `null`, the `region` 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,
project=null,
region=null,
_meta={}
):: tf.withData(
type='google_compute_region_disk',
label=dataSrcLabel,
attrs=self.newAttrs(name=name, project=project, region=region),
_meta=_meta
),
'#newAttrs':: d.fn(help='\n`google-beta.data.google_compute_region_disk.newAttrs` constructs a new object with attributes and blocks configured for the `google_compute_region_disk`\nTerraform data source.\n\nUnlike [google-beta.data.google_compute_region_disk.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 - `region` (`string`): A reference to the region where the disk resides. When `null`, the `region` 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_compute_region_disk` data source into the root Terraform configuration.\n', args=[]),
newAttrs(
name,
project=null,
region=null
):: std.prune(a={
name: name,
project: project,
region: region,
}),
'#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_region_disk+: {
[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_region_disk+: {
[dataSrcLabel]+: {
project: value,
},
},
},
},
'#withRegion':: d.fn(help='`google-beta.string.withRegion` constructs a mixin object that can be merged into the `string`\nTerraform data source block to set or update the region 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 `region` field.\n', args=[]),
withRegion(dataSrcLabel, value): {
data+: {
google_compute_region_disk+: {
[dataSrcLabel]+: {
region: value,
},
},
},
},
}
5 changes: 5 additions & 0 deletions 4.x/_gen/data/main.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
compute_networks: (import 'compute_networks.libsonnet'),
compute_node_types: (import 'compute_node_types.libsonnet'),
compute_region_backend_service_iam_policy: (import 'compute_region_backend_service_iam_policy.libsonnet'),
compute_region_disk: (import 'compute_region_disk.libsonnet'),
compute_region_disk_iam_policy: (import 'compute_region_disk_iam_policy.libsonnet'),
compute_region_instance_group: (import 'compute_region_instance_group.libsonnet'),
compute_region_instance_template: (import 'compute_region_instance_template.libsonnet'),
Expand Down Expand Up @@ -261,12 +262,16 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
vertex_ai_featurestore_iam_policy: (import 'vertex_ai_featurestore_iam_policy.libsonnet'),
vertex_ai_index: (import 'vertex_ai_index.libsonnet'),
vmwareengine_cluster: (import 'vmwareengine_cluster.libsonnet'),
vmwareengine_external_address: (import 'vmwareengine_external_address.libsonnet'),
vmwareengine_network: (import 'vmwareengine_network.libsonnet'),
vmwareengine_network_peering: (import 'vmwareengine_network_peering.libsonnet'),
vmwareengine_network_policy: (import 'vmwareengine_network_policy.libsonnet'),
vmwareengine_nsx_credentials: (import 'vmwareengine_nsx_credentials.libsonnet'),
vmwareengine_private_cloud: (import 'vmwareengine_private_cloud.libsonnet'),
vmwareengine_subnet: (import 'vmwareengine_subnet.libsonnet'),
vmwareengine_vcenter_credentials: (import 'vmwareengine_vcenter_credentials.libsonnet'),
vpc_access_connector: (import 'vpc_access_connector.libsonnet'),
workbench_instance_iam_policy: (import 'workbench_instance_iam_policy.libsonnet'),
workstations_workstation_config_iam_policy: (import 'workstations_workstation_config_iam_policy.libsonnet'),
workstations_workstation_iam_policy: (import 'workstations_workstation_iam_policy.libsonnet'),
}
45 changes: 45 additions & 0 deletions 4.x/_gen/data/vmwareengine_external_address.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_vmwareengine_external_address', url='', help='`google_vmwareengine_external_address` represents the `google-beta_google_vmwareengine_external_address` 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_vmwareengine_external_address.new` injects a new `data_google-beta_google_vmwareengine_external_address` 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_vmwareengine_external_address.new('some_id')\n\nYou can get the reference to the `id` field of the created `google-beta.data.google_vmwareengine_external_address` using the reference:\n\n $._ref.data_google-beta_google_vmwareengine_external_address.some_id.get('id')\n\nThis is the same as directly entering `\"${ data_google-beta_google_vmwareengine_external_address.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`): The ID of the external IP Address.\n - `parent` (`string`): The resource name of the private cloud to create a new external address in.\nResource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names.\nFor example: projects/my-project/locations/us-west1-a/privateClouds/my-cloud\n\n**Returns**:\n- A mixin object that injects the new data source into the root Terraform configuration.\n", args=[]),
new(
dataSrcLabel,
name,
parent,
_meta={}
):: tf.withData(
type='google_vmwareengine_external_address',
label=dataSrcLabel,
attrs=self.newAttrs(name=name, parent=parent),
_meta=_meta
),
'#newAttrs':: d.fn(help='\n`google-beta.data.google_vmwareengine_external_address.newAttrs` constructs a new object with attributes and blocks configured for the `google_vmwareengine_external_address`\nTerraform data source.\n\nUnlike [google-beta.data.google_vmwareengine_external_address.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`): The ID of the external IP Address.\n - `parent` (`string`): The resource name of the private cloud to create a new external address in.\nResource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names.\nFor example: projects/my-project/locations/us-west1-a/privateClouds/my-cloud\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_vmwareengine_external_address` data source into the root Terraform configuration.\n', args=[]),
newAttrs(
name,
parent
):: std.prune(a={
name: name,
parent: parent,
}),
'#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_vmwareengine_external_address+: {
[dataSrcLabel]+: {
name: value,
},
},
},
},
'#withParent':: d.fn(help='`google-beta.string.withParent` constructs a mixin object that can be merged into the `string`\nTerraform data source block to set or update the parent 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 `parent` field.\n', args=[]),
withParent(dataSrcLabel, value): {
data+: {
google_vmwareengine_external_address+: {
[dataSrcLabel]+: {
parent: value,
},
},
},
},
}
45 changes: 45 additions & 0 deletions 4.x/_gen/data/vmwareengine_subnet.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_vmwareengine_subnet', url='', help='`google_vmwareengine_subnet` represents the `google-beta_google_vmwareengine_subnet` 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_vmwareengine_subnet.new` injects a new `data_google-beta_google_vmwareengine_subnet` 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_vmwareengine_subnet.new('some_id')\n\nYou can get the reference to the `id` field of the created `google-beta.data.google_vmwareengine_subnet` using the reference:\n\n $._ref.data_google-beta_google_vmwareengine_subnet.some_id.get('id')\n\nThis is the same as directly entering `\"${ data_google-beta_google_vmwareengine_subnet.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`): The ID of the subnet. For userDefined subnets, this name should be in the format of \u0026#34;service-n\u0026#34;,\nwhere n ranges from 1 to 5.\n - `parent` (`string`): The resource name of the private cloud to create a new subnet in.\nResource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names.\nFor example: projects/my-project/locations/us-west1-a/privateClouds/my-cloud\n\n**Returns**:\n- A mixin object that injects the new data source into the root Terraform configuration.\n", args=[]),
new(
dataSrcLabel,
name,
parent,
_meta={}
):: tf.withData(
type='google_vmwareengine_subnet',
label=dataSrcLabel,
attrs=self.newAttrs(name=name, parent=parent),
_meta=_meta
),
'#newAttrs':: d.fn(help='\n`google-beta.data.google_vmwareengine_subnet.newAttrs` constructs a new object with attributes and blocks configured for the `google_vmwareengine_subnet`\nTerraform data source.\n\nUnlike [google-beta.data.google_vmwareengine_subnet.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`): The ID of the subnet. For userDefined subnets, this name should be in the format of &#34;service-n&#34;,\nwhere n ranges from 1 to 5.\n - `parent` (`string`): The resource name of the private cloud to create a new subnet in.\nResource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names.\nFor example: projects/my-project/locations/us-west1-a/privateClouds/my-cloud\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_vmwareengine_subnet` data source into the root Terraform configuration.\n', args=[]),
newAttrs(
name,
parent
):: std.prune(a={
name: name,
parent: parent,
}),
'#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_vmwareengine_subnet+: {
[dataSrcLabel]+: {
name: value,
},
},
},
},
'#withParent':: d.fn(help='`google-beta.string.withParent` constructs a mixin object that can be merged into the `string`\nTerraform data source block to set or update the parent 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 `parent` field.\n', args=[]),
withParent(dataSrcLabel, value): {
data+: {
google_vmwareengine_subnet+: {
[dataSrcLabel]+: {
parent: value,
},
},
},
},
}
Loading

0 comments on commit 14a2cb6

Please sign in to comment.