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 Jan 16, 2024
1 parent ce90761 commit ab44f6e
Show file tree
Hide file tree
Showing 34 changed files with 4,192 additions and 17 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='google_dns_managed_zones', url='', help='`google_dns_managed_zones` represents the `google-beta_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-beta.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-beta.data.google_dns_managed_zones.new` injects a new `data_google-beta_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-beta.data.google_dns_managed_zones.new('some_id')\n\nYou can get the reference to the `id` field of the created `google-beta.data.google_dns_managed_zones` using the reference:\n\n $._ref.data_google-beta_google_dns_managed_zones.some_id.get('id')\n\nThis is the same as directly entering `\"${ data_google-beta_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-beta.data.google_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-beta.data.google_dns_managed_zones.newAttrs` constructs a new object with attributes and blocks configured for the `google_dns_managed_zones`\nTerraform data source.\n\nUnlike [google-beta.data.google_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-beta.data.google_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 `google_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-beta.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-beta.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-beta.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-beta.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-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_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='google_filestore_instance', url='', help='`google_filestore_instance` represents the `google-beta_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-beta.data.google_filestore_instance.new` injects a new `data_google-beta_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-beta.data.google_filestore_instance.new('some_id')\n\nYou can get the reference to the `id` field of the created `google-beta.data.google_filestore_instance` using the reference:\n\n $._ref.data_google-beta_google_filestore_instance.some_id.get('id')\n\nThis is the same as directly entering `\"${ data_google-beta_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-beta.data.google_filestore_instance.newAttrs` constructs a new object with attributes and blocks configured for the `google_filestore_instance`\nTerraform data source.\n\nUnlike [google-beta.data.google_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 `google_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-beta.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-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_filestore_instance+: {
[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_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 @@ -135,9 +135,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'),
firebase_android_app: (import 'firebase_android_app.libsonnet'),
firebase_android_app_config: (import 'firebase_android_app_config.libsonnet'),
firebase_apple_app: (import 'firebase_apple_app.libsonnet'),
Expand Down Expand Up @@ -263,6 +265,7 @@ 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_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='google_vmwareengine_external_access_rule', url='', help='`google_vmwareengine_external_access_rule` represents the `google-beta_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-beta.data.google_vmwareengine_external_access_rule.new` injects a new `data_google-beta_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-beta.data.google_vmwareengine_external_access_rule.new('some_id')\n\nYou can get the reference to the `id` field of the created `google-beta.data.google_vmwareengine_external_access_rule` using the reference:\n\n $._ref.data_google-beta_google_vmwareengine_external_access_rule.some_id.get('id')\n\nThis is the same as directly entering `\"${ data_google-beta_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-beta.data.google_vmwareengine_external_access_rule.newAttrs` constructs a new object with attributes and blocks configured for the `google_vmwareengine_external_access_rule`\nTerraform data source.\n\nUnlike [google-beta.data.google_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 `google_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-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_access_rule+: {
[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_access_rule+: {
[dataSrcLabel]+: {
parent: value,
},
},
},
},
}
Loading

0 comments on commit ab44f6e

Please sign in to comment.