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

Signed-off-by: tflibsonnet-ci <120686569+tflibsonnet-ci@users.noreply.github.com>
  • Loading branch information
renovate[bot] authored and tflibsonnet-ci committed Jul 27, 2023
1 parent ee30bb3 commit fb1b711
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
10 changes: 4 additions & 6 deletions 4.x/_gen/resources/vpc_access_connector.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ 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='vpc_access_connector', url='', help='`vpc_access_connector` represents the `google_vpc_access_connector` Terraform resource.\n\n\n\nThis package contains functions and utilities for setting up the resource using Jsonnet code.\n'),
'#new':: d.fn(help="\n`google.vpc_access_connector.new` injects a new `google_vpc_access_connector` Terraform `resource`\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.vpc_access_connector.new('some_id')\n\nYou can get the reference to the `id` field of the created `google.vpc_access_connector` using the reference:\n\n $._ref.google_vpc_access_connector.some_id.get('id')\n\nThis is the same as directly entering `\"${ google_vpc_access_connector.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 - `resourceLabel` (`string`): The name label of the block.\n - `ip_cidr_range` (`string`): The range of internal addresses that follows RFC 4632 notation. Example: \u0026#39;10.132.0.0/28\u0026#39;. When `null`, the `ip_cidr_range` field will be omitted from the resulting object.\n - `machine_type` (`string`): Machine type of VM Instance underlying connector. Default is e2-micro When `null`, the `machine_type` field will be omitted from the resulting object.\n - `max_instances` (`number`): Maximum value of instances in autoscaling group underlying the connector. When `null`, the `max_instances` field will be omitted from the resulting object.\n - `max_throughput` (`number`): Maximum throughput of the connector in Mbps, must be greater than \u0026#39;min_throughput\u0026#39;. Default is 1000. When `null`, the `max_throughput` field will be omitted from the resulting object.\n - `min_instances` (`number`): Minimum value of instances in autoscaling group underlying the connector. When `null`, the `min_instances` field will be omitted from the resulting object.\n - `min_throughput` (`number`): Minimum throughput of the connector in Mbps. Default and min is 200. When `null`, the `min_throughput` field will be omitted from the resulting object.\n - `name` (`string`): The name of the resource (Max 25 characters).\n - `network` (`string`): Name or self_link of the VPC network. Required if \u0026#39;ip_cidr_range\u0026#39; is set. When `null`, the `network` field will be omitted from the resulting object.\n - `project` (`string`): Set the `project` field on the resulting resource block. When `null`, the `project` field will be omitted from the resulting object.\n - `region` (`string`): Region where the VPC Access connector resides. If it is not provided, the provider region is used. When `null`, the `region` field will be omitted from the resulting object.\n - `subnet` (`list[obj]`): The subnet in which to house the connector When `null`, the `subnet` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [google.vpc_access_connector.subnet.new](#fn-subnetnew) constructor.\n - `timeouts` (`obj`): Set the `timeouts` field on the resulting resource block. When `null`, the `timeouts` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [google.vpc_access_connector.timeouts.new](#fn-timeoutsnew) constructor.\n\n**Returns**:\n- A mixin object that injects the new resource into the root Terraform configuration.\n", args=[]),
'#new':: d.fn(help="\n`google.vpc_access_connector.new` injects a new `google_vpc_access_connector` Terraform `resource`\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.vpc_access_connector.new('some_id')\n\nYou can get the reference to the `id` field of the created `google.vpc_access_connector` using the reference:\n\n $._ref.google_vpc_access_connector.some_id.get('id')\n\nThis is the same as directly entering `\"${ google_vpc_access_connector.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 - `resourceLabel` (`string`): The name label of the block.\n - `ip_cidr_range` (`string`): The range of internal addresses that follows RFC 4632 notation. Example: \u0026#39;10.132.0.0/28\u0026#39;. When `null`, the `ip_cidr_range` field will be omitted from the resulting object.\n - `machine_type` (`string`): Machine type of VM Instance underlying connector. Default is e2-micro When `null`, the `machine_type` field will be omitted from the resulting object.\n - `max_instances` (`number`): Maximum value of instances in autoscaling group underlying the connector. When `null`, the `max_instances` field will be omitted from the resulting object.\n - `max_throughput` (`number`): Maximum throughput of the connector in Mbps, must be greater than \u0026#39;min_throughput\u0026#39;. Default is 300. When `null`, the `max_throughput` field will be omitted from the resulting object.\n - `min_instances` (`number`): Minimum value of instances in autoscaling group underlying the connector. When `null`, the `min_instances` field will be omitted from the resulting object.\n - `min_throughput` (`number`): Minimum throughput of the connector in Mbps. Default and min is 200. When `null`, the `min_throughput` field will be omitted from the resulting object.\n - `name` (`string`): The name of the resource (Max 25 characters).\n - `network` (`string`): Name or self_link of the VPC network. Required if \u0026#39;ip_cidr_range\u0026#39; is set. When `null`, the `network` field will be omitted from the resulting object.\n - `project` (`string`): Set the `project` field on the resulting resource block. When `null`, the `project` field will be omitted from the resulting object.\n - `region` (`string`): Region where the VPC Access connector resides. If it is not provided, the provider region is used. When `null`, the `region` field will be omitted from the resulting object.\n - `subnet` (`list[obj]`): The subnet in which to house the connector When `null`, the `subnet` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [google.vpc_access_connector.subnet.new](#fn-subnetnew) constructor.\n - `timeouts` (`obj`): Set the `timeouts` field on the resulting resource block. When `null`, the `timeouts` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [google.vpc_access_connector.timeouts.new](#fn-timeoutsnew) constructor.\n\n**Returns**:\n- A mixin object that injects the new resource into the root Terraform configuration.\n", args=[]),
new(
resourceLabel,
name,
Expand Down Expand Up @@ -37,7 +37,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
),
_meta=_meta
),
'#newAttrs':: d.fn(help='\n`google.vpc_access_connector.newAttrs` constructs a new object with attributes and blocks configured for the `vpc_access_connector`\nTerraform resource.\n\nUnlike [google.vpc_access_connector.new](#fn-new), this function will not inject the `resource`\nblock into the root Terraform document. Instead, this must be passed in as the `attrs` argument for the\n[tf.withResource](https://github.com/tf-libsonnet/core/tree/main/docs#fn-withresource) 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 - `ip_cidr_range` (`string`): The range of internal addresses that follows RFC 4632 notation. Example: &#39;10.132.0.0/28&#39;. When `null`, the `ip_cidr_range` field will be omitted from the resulting object.\n - `machine_type` (`string`): Machine type of VM Instance underlying connector. Default is e2-micro When `null`, the `machine_type` field will be omitted from the resulting object.\n - `max_instances` (`number`): Maximum value of instances in autoscaling group underlying the connector. When `null`, the `max_instances` field will be omitted from the resulting object.\n - `max_throughput` (`number`): Maximum throughput of the connector in Mbps, must be greater than &#39;min_throughput&#39;. Default is 1000. When `null`, the `max_throughput` field will be omitted from the resulting object.\n - `min_instances` (`number`): Minimum value of instances in autoscaling group underlying the connector. When `null`, the `min_instances` field will be omitted from the resulting object.\n - `min_throughput` (`number`): Minimum throughput of the connector in Mbps. Default and min is 200. When `null`, the `min_throughput` field will be omitted from the resulting object.\n - `name` (`string`): The name of the resource (Max 25 characters).\n - `network` (`string`): Name or self_link of the VPC network. Required if &#39;ip_cidr_range&#39; is set. When `null`, the `network` field will be omitted from 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 - `region` (`string`): Region where the VPC Access connector resides. If it is not provided, the provider region is used. When `null`, the `region` field will be omitted from the resulting object.\n - `subnet` (`list[obj]`): The subnet in which to house the connector When `null`, the `subnet` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [google.vpc_access_connector.subnet.new](#fn-subnetnew) constructor.\n - `timeouts` (`obj`): Set the `timeouts` field on the resulting object. When `null`, the `timeouts` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [google.vpc_access_connector.timeouts.new](#fn-timeoutsnew) constructor.\n\n**Returns**:\n - An attribute object that can be used with [tf.withResource](https://github.com/tf-libsonnet/core/tree/main/docs#fn-withresource) to construct a new `vpc_access_connector` resource into the root Terraform configuration.\n', args=[]),
'#newAttrs':: d.fn(help='\n`google.vpc_access_connector.newAttrs` constructs a new object with attributes and blocks configured for the `vpc_access_connector`\nTerraform resource.\n\nUnlike [google.vpc_access_connector.new](#fn-new), this function will not inject the `resource`\nblock into the root Terraform document. Instead, this must be passed in as the `attrs` argument for the\n[tf.withResource](https://github.com/tf-libsonnet/core/tree/main/docs#fn-withresource) 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 - `ip_cidr_range` (`string`): The range of internal addresses that follows RFC 4632 notation. Example: &#39;10.132.0.0/28&#39;. When `null`, the `ip_cidr_range` field will be omitted from the resulting object.\n - `machine_type` (`string`): Machine type of VM Instance underlying connector. Default is e2-micro When `null`, the `machine_type` field will be omitted from the resulting object.\n - `max_instances` (`number`): Maximum value of instances in autoscaling group underlying the connector. When `null`, the `max_instances` field will be omitted from the resulting object.\n - `max_throughput` (`number`): Maximum throughput of the connector in Mbps, must be greater than &#39;min_throughput&#39;. Default is 300. When `null`, the `max_throughput` field will be omitted from the resulting object.\n - `min_instances` (`number`): Minimum value of instances in autoscaling group underlying the connector. When `null`, the `min_instances` field will be omitted from the resulting object.\n - `min_throughput` (`number`): Minimum throughput of the connector in Mbps. Default and min is 200. When `null`, the `min_throughput` field will be omitted from the resulting object.\n - `name` (`string`): The name of the resource (Max 25 characters).\n - `network` (`string`): Name or self_link of the VPC network. Required if &#39;ip_cidr_range&#39; is set. When `null`, the `network` field will be omitted from 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 - `region` (`string`): Region where the VPC Access connector resides. If it is not provided, the provider region is used. When `null`, the `region` field will be omitted from the resulting object.\n - `subnet` (`list[obj]`): The subnet in which to house the connector When `null`, the `subnet` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [google.vpc_access_connector.subnet.new](#fn-subnetnew) constructor.\n - `timeouts` (`obj`): Set the `timeouts` field on the resulting object. When `null`, the `timeouts` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [google.vpc_access_connector.timeouts.new](#fn-timeoutsnew) constructor.\n\n**Returns**:\n - An attribute object that can be used with [tf.withResource](https://github.com/tf-libsonnet/core/tree/main/docs#fn-withresource) to construct a new `vpc_access_connector` resource into the root Terraform configuration.\n', args=[]),
newAttrs(
name,
ip_cidr_range=null,
Expand Down Expand Up @@ -76,15 +76,13 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
}),
},
timeouts:: {
'#new':: d.fn(help='\n`google.vpc_access_connector.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':: d.fn(help='\n`google.vpc_access_connector.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(
create=null,
delete=null,
update=null
delete=null
):: std.prune(a={
create: create,
delete: delete,
update: update,
}),
},
'#withIpCidrRange':: d.fn(help='`google.string.withIpCidrRange` constructs a mixin object that can be merged into the `string`\nTerraform resource block to set or update the ip_cidr_range 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 `ip_cidr_range` field.\n', args=[]),
Expand Down
5 changes: 2 additions & 3 deletions docs/4.x/vpc_access_connector.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ or `$` to refer to the root object. Instead, make an explicit outer object using
- `ip_cidr_range` (`string`): The range of internal addresses that follows RFC 4632 notation. Example: &#39;10.132.0.0/28&#39;. When `null`, the `ip_cidr_range` field will be omitted from the resulting object.
- `machine_type` (`string`): Machine type of VM Instance underlying connector. Default is e2-micro When `null`, the `machine_type` field will be omitted from the resulting object.
- `max_instances` (`number`): Maximum value of instances in autoscaling group underlying the connector. When `null`, the `max_instances` field will be omitted from the resulting object.
- `max_throughput` (`number`): Maximum throughput of the connector in Mbps, must be greater than &#39;min_throughput&#39;. Default is 1000. When `null`, the `max_throughput` field will be omitted from the resulting object.
- `max_throughput` (`number`): Maximum throughput of the connector in Mbps, must be greater than &#39;min_throughput&#39;. Default is 300. When `null`, the `max_throughput` field will be omitted from the resulting object.
- `min_instances` (`number`): Minimum value of instances in autoscaling group underlying the connector. When `null`, the `min_instances` field will be omitted from the resulting object.
- `min_throughput` (`number`): Minimum throughput of the connector in Mbps. Default and min is 200. When `null`, the `min_throughput` field will be omitted from the resulting object.
- `name` (`string`): The name of the resource (Max 25 characters).
Expand Down Expand Up @@ -101,7 +101,7 @@ injecting into a complete block.
- `ip_cidr_range` (`string`): The range of internal addresses that follows RFC 4632 notation. Example: &#39;10.132.0.0/28&#39;. When `null`, the `ip_cidr_range` field will be omitted from the resulting object.
- `machine_type` (`string`): Machine type of VM Instance underlying connector. Default is e2-micro When `null`, the `machine_type` field will be omitted from the resulting object.
- `max_instances` (`number`): Maximum value of instances in autoscaling group underlying the connector. When `null`, the `max_instances` field will be omitted from the resulting object.
- `max_throughput` (`number`): Maximum throughput of the connector in Mbps, must be greater than &#39;min_throughput&#39;. Default is 1000. When `null`, the `max_throughput` field will be omitted from the resulting object.
- `max_throughput` (`number`): Maximum throughput of the connector in Mbps, must be greater than &#39;min_throughput&#39;. Default is 300. When `null`, the `max_throughput` field will be omitted from the resulting object.
- `min_instances` (`number`): Minimum value of instances in autoscaling group underlying the connector. When `null`, the `min_instances` field will be omitted from the resulting object.
- `min_throughput` (`number`): Minimum throughput of the connector in Mbps. Default and min is 200. When `null`, the `min_throughput` field will be omitted from the resulting object.
- `name` (`string`): The name of the resource (Max 25 characters).
Expand Down Expand Up @@ -392,7 +392,6 @@ Terraform sub block.
**Args**:
- `create` (`string`): Set the `create` field on the resulting object. When `null`, the `create` field will be omitted from the resulting object.
- `delete` (`string`): Set the `delete` field on the resulting object. When `null`, the `delete` field will be omitted from the resulting object.
- `update` (`string`): Set the `update` field on the resulting object. When `null`, the `update` field will be omitted from the resulting object.

**Returns**:
- An attribute object that represents the `timeouts` sub block.

0 comments on commit fb1b711

Please sign in to comment.