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 16, 2024
1 parent f9b3402 commit 66193fa
Show file tree
Hide file tree
Showing 36 changed files with 4,329 additions and 20 deletions.
61 changes: 61 additions & 0 deletions 4.x/_gen/data/dns_managed_zones.libsonnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
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='dns_managed_zones', url='', help='`dns_managed_zones` represents the `google_dns_managed_zones` Terraform data source.\n\nProvides access to all zones for a given project within Google Cloud DNS\n\nThis package contains functions and utilities for setting up the data source using Jsonnet code.\n'),
managed_zones:: {
'#new':: d.fn(help='\n`google.dns_managed_zones.managed_zones.new` constructs a new object with attributes and blocks configured for the `managed_zones`\nTerraform sub block.\n\n\n\n**Returns**:\n - An attribute object that represents the `managed_zones` sub block.\n', args=[]),
new(

):: std.prune(a={}),
},
'#new':: d.fn(help="\n`google.data.dns_managed_zones.new` injects a new `data_google_dns_managed_zones` 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.dns_managed_zones.new('some_id')\n\nYou can get the reference to the `id` field of the created `google.data.dns_managed_zones` using the reference:\n\n $._ref.data_google_dns_managed_zones.some_id.get('id')\n\nThis is the same as directly entering `\"${ data_google_dns_managed_zones.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 - `project` (`string`): The ID of the project for the Google Cloud. When `null`, the `project` field will be omitted from the resulting object.\n - `managed_zones` (`list[obj]`): The list of managed zones in the given project. When `null`, the `managed_zones` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [google.data.dns_managed_zones.managed_zones.new](#fn-managed_zonesnew) constructor.\n\n**Returns**:\n- A mixin object that injects the new data source into the root Terraform configuration.\n", args=[]),
new(
dataSrcLabel,
managed_zones=null,
project=null,
_meta={}
):: tf.withData(
type='google_dns_managed_zones',
label=dataSrcLabel,
attrs=self.newAttrs(managed_zones=managed_zones, project=project),
_meta=_meta
),
'#newAttrs':: d.fn(help='\n`google.data.dns_managed_zones.newAttrs` constructs a new object with attributes and blocks configured for the `dns_managed_zones`\nTerraform data source.\n\nUnlike [google.data.dns_managed_zones.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 - `project` (`string`): The ID of the project for the Google Cloud. When `null`, the `project` field will be omitted from the resulting object.\n - `managed_zones` (`list[obj]`): The list of managed zones in the given project. When `null`, the `managed_zones` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [google.data.dns_managed_zones.managed_zones.new](#fn-managed_zonesnew) constructor.\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 `dns_managed_zones` data source into the root Terraform configuration.\n', args=[]),
newAttrs(
managed_zones=null,
project=null
):: std.prune(a={
managed_zones: managed_zones,
project: project,
}),
'#withManagedZones':: d.fn(help='`google.list[obj].withManagedZones` constructs a mixin object that can be merged into the `list[obj]`\nTerraform data source block to set or update the managed_zones 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].withManagedZonesMixin](TODO) function.\n\n\n**Args**:\n - `dataSrcLabel` (`string`): The name label of the block to update.\n - `value` (`list[obj]`): The value to set for the `managed_zones` field.\n', args=[]),
withManagedZones(dataSrcLabel, value): {
data+: {
google_dns_managed_zones+: {
[dataSrcLabel]+: {
managed_zones: value,
},
},
},
},
'#withManagedZonesMixin':: d.fn(help='`google.list[obj].withManagedZonesMixin` constructs a mixin object that can be merged into the `list[obj]`\nTerraform data source block to set or update the managed_zones field.\n\nThis function will append the passed in array or object to the existing array. If you wish\nto instead replace the array with the passed in `value`, use the [google.list[obj].withManagedZones](TODO)\nfunction.\n\n\n**Args**:\n - `dataSrcLabel` (`string`): The name label of the block to update.\n - `value` (`list[obj]`): The value to set for the `managed_zones` field.\n', args=[]),
withManagedZonesMixin(dataSrcLabel, value): {
data+: {
google_dns_managed_zones+: {
[dataSrcLabel]+: {
managed_zones+: if std.isArray(v=value) then value else [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_dns_managed_zones+: {
[dataSrcLabel]+: {
project: value,
},
},
},
},
}
58 changes: 58 additions & 0 deletions 4.x/_gen/data/filestore_instance.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='filestore_instance', url='', help='`filestore_instance` represents the `google_filestore_instance` 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.filestore_instance.new` injects a new `data_google_filestore_instance` 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.filestore_instance.new('some_id')\n\nYou can get the reference to the `id` field of the created `google.data.filestore_instance` using the reference:\n\n $._ref.data_google_filestore_instance.some_id.get('id')\n\nThis is the same as directly entering `\"${ data_google_filestore_instance.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`): The name of the location of the instance. This can be a region for ENTERPRISE tier instances. When `null`, the `location` field will be omitted from the resulting object.\n - `name` (`string`): The resource name of the instance.\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_filestore_instance',
label=dataSrcLabel,
attrs=self.newAttrs(location=location, name=name, project=project),
_meta=_meta
),
'#newAttrs':: d.fn(help='\n`google.data.filestore_instance.newAttrs` constructs a new object with attributes and blocks configured for the `filestore_instance`\nTerraform data source.\n\nUnlike [google.data.filestore_instance.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`): The name of the location of the instance. This can be a region for ENTERPRISE tier instances. When `null`, the `location` field will be omitted from the resulting object.\n - `name` (`string`): The resource name of the instance.\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 `filestore_instance` 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_filestore_instance+: {
[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_filestore_instance+: {
[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_filestore_instance+: {
[dataSrcLabel]+: {
project: value,
},
},
},
},
}
3 changes: 3 additions & 0 deletions 4.x/_gen/data/main.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,11 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
dns_keys: (import 'dns_keys.libsonnet'),
dns_managed_zone: (import 'dns_managed_zone.libsonnet'),
dns_managed_zone_iam_policy: (import 'dns_managed_zone_iam_policy.libsonnet'),
dns_managed_zones: (import 'dns_managed_zones.libsonnet'),
dns_record_set: (import 'dns_record_set.libsonnet'),
endpoints_service_consumers_iam_policy: (import 'endpoints_service_consumers_iam_policy.libsonnet'),
endpoints_service_iam_policy: (import 'endpoints_service_iam_policy.libsonnet'),
filestore_instance: (import 'filestore_instance.libsonnet'),
folder: (import 'folder.libsonnet'),
folder_iam_policy: (import 'folder_iam_policy.libsonnet'),
folder_organization_policy: (import 'folder_organization_policy.libsonnet'),
Expand Down Expand Up @@ -232,6 +234,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
tpu_tensorflow_versions: (import 'tpu_tensorflow_versions.libsonnet'),
vertex_ai_index: (import 'vertex_ai_index.libsonnet'),
vmwareengine_cluster: (import 'vmwareengine_cluster.libsonnet'),
vmwareengine_external_access_rule: (import 'vmwareengine_external_access_rule.libsonnet'),
vmwareengine_external_address: (import 'vmwareengine_external_address.libsonnet'),
vmwareengine_network: (import 'vmwareengine_network.libsonnet'),
vmwareengine_network_peering: (import 'vmwareengine_network_peering.libsonnet'),
Expand Down
45 changes: 45 additions & 0 deletions 4.x/_gen/data/vmwareengine_external_access_rule.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='vmwareengine_external_access_rule', url='', help='`vmwareengine_external_access_rule` represents the `google_vmwareengine_external_access_rule` 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.vmwareengine_external_access_rule.new` injects a new `data_google_vmwareengine_external_access_rule` 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.vmwareengine_external_access_rule.new('some_id')\n\nYou can get the reference to the `id` field of the created `google.data.vmwareengine_external_access_rule` using the reference:\n\n $._ref.data_google_vmwareengine_external_access_rule.some_id.get('id')\n\nThis is the same as directly entering `\"${ data_google_vmwareengine_external_access_rule.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 access rule.\n - `parent` (`string`): The resource name of the network policy.\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/networkPolicies/my-policy\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_access_rule',
label=dataSrcLabel,
attrs=self.newAttrs(name=name, parent=parent),
_meta=_meta
),
'#newAttrs':: d.fn(help='\n`google.data.vmwareengine_external_access_rule.newAttrs` constructs a new object with attributes and blocks configured for the `vmwareengine_external_access_rule`\nTerraform data source.\n\nUnlike [google.data.vmwareengine_external_access_rule.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 access rule.\n - `parent` (`string`): The resource name of the network policy.\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/networkPolicies/my-policy\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 `vmwareengine_external_access_rule` data source into the root Terraform configuration.\n', args=[]),
newAttrs(
name,
parent
):: std.prune(a={
name: name,
parent: parent,
}),
'#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_vmwareengine_external_access_rule+: {
[dataSrcLabel]+: {
name: value,
},
},
},
},
'#withParent':: d.fn(help='`google.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_access_rule+: {
[dataSrcLabel]+: {
parent: value,
},
},
},
},
}
Loading

0 comments on commit 66193fa

Please sign in to comment.