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 <[email protected]>
  • Loading branch information
renovate[bot] authored and tflibsonnet-ci committed Dec 11, 2023
1 parent d403494 commit df782a5
Show file tree
Hide file tree
Showing 54 changed files with 3,753 additions and 30 deletions.
32 changes: 32 additions & 0 deletions 4.x/_gen/data/logging_folder_settings.libsonnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
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_logging_folder_settings', url='', help='`google_logging_folder_settings` represents the `google-beta_google_logging_folder_settings` 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_logging_folder_settings.new` injects a new `data_google-beta_google_logging_folder_settings` 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_logging_folder_settings.new('some_id')\n\nYou can get the reference to the `id` field of the created `google-beta.data.google_logging_folder_settings` using the reference:\n\n $._ref.data_google-beta_google_logging_folder_settings.some_id.get('id')\n\nThis is the same as directly entering `\"${ data_google-beta_google_logging_folder_settings.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 - `folder` (`string`): The folder for which to retrieve settings.\n\n**Returns**:\n- A mixin object that injects the new data source into the root Terraform configuration.\n", args=[]),
new(
dataSrcLabel,
folder,
_meta={}
):: tf.withData(
type='google_logging_folder_settings',
label=dataSrcLabel,
attrs=self.newAttrs(folder=folder),
_meta=_meta
),
'#newAttrs':: d.fn(help='\n`google-beta.data.google_logging_folder_settings.newAttrs` constructs a new object with attributes and blocks configured for the `google_logging_folder_settings`\nTerraform data source.\n\nUnlike [google-beta.data.google_logging_folder_settings.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 - `folder` (`string`): The folder for which to retrieve settings.\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_logging_folder_settings` data source into the root Terraform configuration.\n', args=[]),
newAttrs(
folder
):: std.prune(a={
folder: folder,
}),
'#withFolder':: d.fn(help='`google-beta.string.withFolder` constructs a mixin object that can be merged into the `string`\nTerraform data source block to set or update the folder 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 `folder` field.\n', args=[]),
withFolder(dataSrcLabel, value): {
data+: {
google_logging_folder_settings+: {
[dataSrcLabel]+: {
folder: value,
},
},
},
},
}
32 changes: 32 additions & 0 deletions 4.x/_gen/data/logging_organization_settings.libsonnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
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_logging_organization_settings', url='', help='`google_logging_organization_settings` represents the `google-beta_google_logging_organization_settings` 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_logging_organization_settings.new` injects a new `data_google-beta_google_logging_organization_settings` 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_logging_organization_settings.new('some_id')\n\nYou can get the reference to the `id` field of the created `google-beta.data.google_logging_organization_settings` using the reference:\n\n $._ref.data_google-beta_google_logging_organization_settings.some_id.get('id')\n\nThis is the same as directly entering `\"${ data_google-beta_google_logging_organization_settings.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 - `organization` (`string`): The organization for which to retrieve settings.\n\n**Returns**:\n- A mixin object that injects the new data source into the root Terraform configuration.\n", args=[]),
new(
dataSrcLabel,
organization,
_meta={}
):: tf.withData(
type='google_logging_organization_settings',
label=dataSrcLabel,
attrs=self.newAttrs(organization=organization),
_meta=_meta
),
'#newAttrs':: d.fn(help='\n`google-beta.data.google_logging_organization_settings.newAttrs` constructs a new object with attributes and blocks configured for the `google_logging_organization_settings`\nTerraform data source.\n\nUnlike [google-beta.data.google_logging_organization_settings.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 - `organization` (`string`): The organization for which to retrieve settings.\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_logging_organization_settings` data source into the root Terraform configuration.\n', args=[]),
newAttrs(
organization
):: std.prune(a={
organization: organization,
}),
'#withOrganization':: d.fn(help='`google-beta.string.withOrganization` constructs a mixin object that can be merged into the `string`\nTerraform data source block to set or update the organization 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 `organization` field.\n', args=[]),
withOrganization(dataSrcLabel, value): {
data+: {
google_logging_organization_settings+: {
[dataSrcLabel]+: {
organization: value,
},
},
},
},
}
32 changes: 32 additions & 0 deletions 4.x/_gen/data/logging_project_settings.libsonnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
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_logging_project_settings', url='', help='`google_logging_project_settings` represents the `google-beta_google_logging_project_settings` 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_logging_project_settings.new` injects a new `data_google-beta_google_logging_project_settings` 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_logging_project_settings.new('some_id')\n\nYou can get the reference to the `id` field of the created `google-beta.data.google_logging_project_settings` using the reference:\n\n $._ref.data_google-beta_google_logging_project_settings.some_id.get('id')\n\nThis is the same as directly entering `\"${ data_google-beta_google_logging_project_settings.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 project for which to retrieve settings.\n\n**Returns**:\n- A mixin object that injects the new data source into the root Terraform configuration.\n", args=[]),
new(
dataSrcLabel,
project,
_meta={}
):: tf.withData(
type='google_logging_project_settings',
label=dataSrcLabel,
attrs=self.newAttrs(project=project),
_meta=_meta
),
'#newAttrs':: d.fn(help='\n`google-beta.data.google_logging_project_settings.newAttrs` constructs a new object with attributes and blocks configured for the `google_logging_project_settings`\nTerraform data source.\n\nUnlike [google-beta.data.google_logging_project_settings.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 project for which to retrieve settings.\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_logging_project_settings` data source into the root Terraform configuration.\n', args=[]),
newAttrs(
project
):: std.prune(a={
project: project,
}),
'#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_logging_project_settings+: {
[dataSrcLabel]+: {
project: value,
},
},
},
},
}
6 changes: 6 additions & 0 deletions 4.x/_gen/data/main.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,10 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
kms_secret: (import 'kms_secret.libsonnet'),
kms_secret_asymmetric: (import 'kms_secret_asymmetric.libsonnet'),
kms_secret_ciphertext: (import 'kms_secret_ciphertext.libsonnet'),
logging_folder_settings: (import 'logging_folder_settings.libsonnet'),
logging_organization_settings: (import 'logging_organization_settings.libsonnet'),
logging_project_cmek_settings: (import 'logging_project_cmek_settings.libsonnet'),
logging_project_settings: (import 'logging_project_settings.libsonnet'),
logging_sink: (import 'logging_sink.libsonnet'),
monitoring_app_engine_service: (import 'monitoring_app_engine_service.libsonnet'),
monitoring_cluster_istio_service: (import 'monitoring_cluster_istio_service.libsonnet'),
Expand Down Expand Up @@ -216,6 +219,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
secret_manager_secret_version: (import 'secret_manager_secret_version.libsonnet'),
secret_manager_secret_version_access: (import 'secret_manager_secret_version_access.libsonnet'),
secret_manager_secrets: (import 'secret_manager_secrets.libsonnet'),
secure_source_manager_instance_iam_policy: (import 'secure_source_manager_instance_iam_policy.libsonnet'),
service_account: (import 'service_account.libsonnet'),
service_account_access_token: (import 'service_account_access_token.libsonnet'),
service_account_iam_policy: (import 'service_account_iam_policy.libsonnet'),
Expand Down Expand Up @@ -259,6 +263,8 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
vmwareengine_cluster: (import 'vmwareengine_cluster.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'),
vpc_access_connector: (import 'vpc_access_connector.libsonnet'),
workstations_workstation_config_iam_policy: (import 'workstations_workstation_config_iam_policy.libsonnet'),
Expand Down
58 changes: 58 additions & 0 deletions 4.x/_gen/data/secure_source_manager_instance_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='google_secure_source_manager_instance_iam_policy', url='', help='`google_secure_source_manager_instance_iam_policy` represents the `google-beta_google_secure_source_manager_instance_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-beta.data.google_secure_source_manager_instance_iam_policy.new` injects a new `data_google-beta_google_secure_source_manager_instance_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-beta.data.google_secure_source_manager_instance_iam_policy.new('some_id')\n\nYou can get the reference to the `id` field of the created `google-beta.data.google_secure_source_manager_instance_iam_policy` using the reference:\n\n $._ref.data_google-beta_google_secure_source_manager_instance_iam_policy.some_id.get('id')\n\nThis is the same as directly entering `\"${ data_google-beta_google_secure_source_manager_instance_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 - `instance_id` (`string`): Set the `instance_id` field on the resulting data source 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 - `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,
instance_id,
location=null,
project=null,
_meta={}
):: tf.withData(
type='google_secure_source_manager_instance_iam_policy',
label=dataSrcLabel,
attrs=self.newAttrs(instance_id=instance_id, location=location, project=project),
_meta=_meta
),
'#newAttrs':: d.fn(help='\n`google-beta.data.google_secure_source_manager_instance_iam_policy.newAttrs` constructs a new object with attributes and blocks configured for the `google_secure_source_manager_instance_iam_policy`\nTerraform data source.\n\nUnlike [google-beta.data.google_secure_source_manager_instance_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 - `instance_id` (`string`): Set the `instance_id` field on the resulting object.\n - `location` (`string`): Set the `location` field on the resulting object. When `null`, the `location` 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\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_secure_source_manager_instance_iam_policy` data source into the root Terraform configuration.\n', args=[]),
newAttrs(
instance_id,
location=null,
project=null
):: std.prune(a={
instance_id: instance_id,
location: location,
project: project,
}),
'#withInstanceId':: d.fn(help='`google-beta.string.withInstanceId` constructs a mixin object that can be merged into the `string`\nTerraform data source block to set or update the instance_id 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 `instance_id` field.\n', args=[]),
withInstanceId(dataSrcLabel, value): {
data+: {
google_secure_source_manager_instance_iam_policy+: {
[dataSrcLabel]+: {
instance_id: value,
},
},
},
},
'#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_secure_source_manager_instance_iam_policy+: {
[dataSrcLabel]+: {
location: 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_secure_source_manager_instance_iam_policy+: {
[dataSrcLabel]+: {
project: value,
},
},
},
},
}
Loading

0 comments on commit df782a5

Please sign in to comment.