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 29, 2024
1 parent 459224c commit d675ab7
Show file tree
Hide file tree
Showing 20 changed files with 2,559 additions and 17 deletions.
3 changes: 3 additions & 0 deletions 4.x/_gen/main.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
dialogflow_entity_type: (import 'resources/dialogflow_entity_type.libsonnet'),
dialogflow_fulfillment: (import 'resources/dialogflow_fulfillment.libsonnet'),
dialogflow_intent: (import 'resources/dialogflow_intent.libsonnet'),
discovery_engine_data_store: (import 'resources/discovery_engine_data_store.libsonnet'),
dns_managed_zone: (import 'resources/dns_managed_zone.libsonnet'),
dns_managed_zone_iam_binding: (import 'resources/dns_managed_zone_iam_binding.libsonnet'),
dns_managed_zone_iam_member: (import 'resources/dns_managed_zone_iam_member.libsonnet'),
Expand Down Expand Up @@ -669,6 +670,8 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
secure_source_manager_instance_iam_binding: (import 'resources/secure_source_manager_instance_iam_binding.libsonnet'),
secure_source_manager_instance_iam_member: (import 'resources/secure_source_manager_instance_iam_member.libsonnet'),
secure_source_manager_instance_iam_policy: (import 'resources/secure_source_manager_instance_iam_policy.libsonnet'),
securityposture_posture: (import 'resources/securityposture_posture.libsonnet'),
securityposture_posture_deployment: (import 'resources/securityposture_posture_deployment.libsonnet'),
service_account: (import 'resources/service_account.libsonnet'),
service_account_iam_binding: (import 'resources/service_account_iam_binding.libsonnet'),
service_account_iam_member: (import 'resources/service_account_iam_member.libsonnet'),
Expand Down
12 changes: 10 additions & 2 deletions 4.x/_gen/provider_google.libsonnet

Large diffs are not rendered by default.

82 changes: 80 additions & 2 deletions 4.x/_gen/resources/artifact_registry_repository.libsonnet

Large diffs are not rendered by default.

20 changes: 19 additions & 1 deletion 4.x/_gen/resources/composer_environment.libsonnet

Large diffs are not rendered by default.

168 changes: 168 additions & 0 deletions 4.x/_gen/resources/discovery_engine_data_store.libsonnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,168 @@
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='discovery_engine_data_store', url='', help='`discovery_engine_data_store` represents the `google_discovery_engine_data_store` 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.discovery_engine_data_store.new` injects a new `google_discovery_engine_data_store` 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.discovery_engine_data_store.new('some_id')\n\nYou can get the reference to the `id` field of the created `google.discovery_engine_data_store` using the reference:\n\n $._ref.google_discovery_engine_data_store.some_id.get('id')\n\nThis is the same as directly entering `\"${ google_discovery_engine_data_store.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 - `content_config` (`string`): The content config of the data store. Possible values: [\u0026#34;NO_CONTENT\u0026#34;, \u0026#34;CONTENT_REQUIRED\u0026#34;, \u0026#34;PUBLIC_WEBSITE\u0026#34;]\n - `create_advanced_site_search` (`bool`): If true, an advanced data store for site search will be created. If the\ndata store is not configured as site search (GENERIC vertical and\nPUBLIC_WEBSITE contentConfig), this flag will be ignored. When `null`, the `create_advanced_site_search` field will be omitted from the resulting object.\n - `data_store_id` (`string`): The unique id of the data store.\n - `display_name` (`string`): The display name of the data store. This field must be a UTF-8 encoded\nstring with a length limit of 128 characters.\n - `industry_vertical` (`string`): The industry vertical that the data store registers. Possible values: [\u0026#34;GENERIC\u0026#34;, \u0026#34;MEDIA\u0026#34;]\n - `location` (`string`): The geographic location where the data store should reside. The value can\nonly be one of \u0026#34;global\u0026#34;, \u0026#34;us\u0026#34; and \u0026#34;eu\u0026#34;.\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 - `solution_types` (`list`): The solutions that the data store enrolls. Possible values: [\u0026#34;SOLUTION_TYPE_RECOMMENDATION\u0026#34;, \u0026#34;SOLUTION_TYPE_SEARCH\u0026#34;, \u0026#34;SOLUTION_TYPE_CHAT\u0026#34;] When `null`, the `solution_types` field will be omitted from the resulting object.\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.discovery_engine_data_store.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,
content_config,
data_store_id,
display_name,
industry_vertical,
location,
create_advanced_site_search=null,
project=null,
solution_types=null,
timeouts=null,
_meta={}
):: tf.withResource(
type='google_discovery_engine_data_store',
label=resourceLabel,
attrs=self.newAttrs(
content_config=content_config,
create_advanced_site_search=create_advanced_site_search,
data_store_id=data_store_id,
display_name=display_name,
industry_vertical=industry_vertical,
location=location,
project=project,
solution_types=solution_types,
timeouts=timeouts
),
_meta=_meta
),
'#newAttrs':: d.fn(help='\n`google.discovery_engine_data_store.newAttrs` constructs a new object with attributes and blocks configured for the `discovery_engine_data_store`\nTerraform resource.\n\nUnlike [google.discovery_engine_data_store.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 - `content_config` (`string`): The content config of the data store. Possible values: [&#34;NO_CONTENT&#34;, &#34;CONTENT_REQUIRED&#34;, &#34;PUBLIC_WEBSITE&#34;]\n - `create_advanced_site_search` (`bool`): If true, an advanced data store for site search will be created. If the\ndata store is not configured as site search (GENERIC vertical and\nPUBLIC_WEBSITE contentConfig), this flag will be ignored. When `null`, the `create_advanced_site_search` field will be omitted from the resulting object.\n - `data_store_id` (`string`): The unique id of the data store.\n - `display_name` (`string`): The display name of the data store. This field must be a UTF-8 encoded\nstring with a length limit of 128 characters.\n - `industry_vertical` (`string`): The industry vertical that the data store registers. Possible values: [&#34;GENERIC&#34;, &#34;MEDIA&#34;]\n - `location` (`string`): The geographic location where the data store should reside. The value can\nonly be one of &#34;global&#34;, &#34;us&#34; and &#34;eu&#34;.\n - `project` (`string`): Set the `project` field on the resulting object. When `null`, the `project` field will be omitted from the resulting object.\n - `solution_types` (`list`): The solutions that the data store enrolls. Possible values: [&#34;SOLUTION_TYPE_RECOMMENDATION&#34;, &#34;SOLUTION_TYPE_SEARCH&#34;, &#34;SOLUTION_TYPE_CHAT&#34;] When `null`, the `solution_types` field will be omitted from the resulting object.\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.discovery_engine_data_store.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 `discovery_engine_data_store` resource into the root Terraform configuration.\n', args=[]),
newAttrs(
content_config,
data_store_id,
display_name,
industry_vertical,
location,
create_advanced_site_search=null,
project=null,
solution_types=null,
timeouts=null
):: std.prune(a={
content_config: content_config,
create_advanced_site_search: create_advanced_site_search,
data_store_id: data_store_id,
display_name: display_name,
industry_vertical: industry_vertical,
location: location,
project: project,
solution_types: solution_types,
timeouts: timeouts,
}),
timeouts:: {
'#new':: d.fn(help='\n`google.discovery_engine_data_store.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(
create=null,
delete=null,
update=null
):: std.prune(a={
create: create,
delete: delete,
update: update,
}),
},
'#withContentConfig':: d.fn(help='`google.string.withContentConfig` constructs a mixin object that can be merged into the `string`\nTerraform resource block to set or update the content_config 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 `content_config` field.\n', args=[]),
withContentConfig(resourceLabel, value): {
resource+: {
google_discovery_engine_data_store+: {
[resourceLabel]+: {
content_config: value,
},
},
},
},
'#withCreateAdvancedSiteSearch':: d.fn(help='`google.bool.withCreateAdvancedSiteSearch` constructs a mixin object that can be merged into the `bool`\nTerraform resource block to set or update the create_advanced_site_search field.\n\n\n\n**Args**:\n - `resourceLabel` (`string`): The name label of the block to update.\n - `value` (`bool`): The value to set for the `create_advanced_site_search` field.\n', args=[]),
withCreateAdvancedSiteSearch(resourceLabel, value): {
resource+: {
google_discovery_engine_data_store+: {
[resourceLabel]+: {
create_advanced_site_search: value,
},
},
},
},
'#withDataStoreId':: d.fn(help='`google.string.withDataStoreId` constructs a mixin object that can be merged into the `string`\nTerraform resource block to set or update the data_store_id 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 `data_store_id` field.\n', args=[]),
withDataStoreId(resourceLabel, value): {
resource+: {
google_discovery_engine_data_store+: {
[resourceLabel]+: {
data_store_id: value,
},
},
},
},
'#withDisplayName':: d.fn(help='`google.string.withDisplayName` constructs a mixin object that can be merged into the `string`\nTerraform resource block to set or update the display_name 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 `display_name` field.\n', args=[]),
withDisplayName(resourceLabel, value): {
resource+: {
google_discovery_engine_data_store+: {
[resourceLabel]+: {
display_name: value,
},
},
},
},
'#withIndustryVertical':: d.fn(help='`google.string.withIndustryVertical` constructs a mixin object that can be merged into the `string`\nTerraform resource block to set or update the industry_vertical 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 `industry_vertical` field.\n', args=[]),
withIndustryVertical(resourceLabel, value): {
resource+: {
google_discovery_engine_data_store+: {
[resourceLabel]+: {
industry_vertical: value,
},
},
},
},
'#withLocation':: d.fn(help='`google.string.withLocation` constructs a mixin object that can be merged into the `string`\nTerraform resource block to set or update the location 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 `location` field.\n', args=[]),
withLocation(resourceLabel, value): {
resource+: {
google_discovery_engine_data_store+: {
[resourceLabel]+: {
location: value,
},
},
},
},
'#withProject':: d.fn(help='`google.string.withProject` constructs a mixin object that can be merged into the `string`\nTerraform resource block to set or update the project 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 `project` field.\n', args=[]),
withProject(resourceLabel, value): {
resource+: {
google_discovery_engine_data_store+: {
[resourceLabel]+: {
project: value,
},
},
},
},
'#withSolutionTypes':: d.fn(help='`google.list.withSolutionTypes` constructs a mixin object that can be merged into the `list`\nTerraform resource block to set or update the solution_types field.\n\n\n\n**Args**:\n - `resourceLabel` (`string`): The name label of the block to update.\n - `value` (`list`): The value to set for the `solution_types` field.\n', args=[]),
withSolutionTypes(resourceLabel, value): {
resource+: {
google_discovery_engine_data_store+: {
[resourceLabel]+: {
solution_types: value,
},
},
},
},
'#withTimeouts':: d.fn(help='`google.obj.withTimeouts` constructs a mixin object that can be merged into the `obj`\nTerraform resource block to set or update the timeouts field.\n\nThis function will replace the map with the passed in `value`. If you wish to instead merge the\npassed in value to the existing map, use the [google.obj.withTimeoutsMixin](TODO) function.\n\n**Args**:\n - `resourceLabel` (`string`): The name label of the block to update.\n - `value` (`obj`): The value to set for the `timeouts` field.\n', args=[]),
withTimeouts(resourceLabel, value): {
resource+: {
google_discovery_engine_data_store+: {
[resourceLabel]+: {
timeouts: value,
},
},
},
},
'#withTimeoutsMixin':: d.fn(help='`google.obj.withTimeoutsMixin` constructs a mixin object that can be merged into the `obj`\nTerraform resource block to set or update the timeouts field.\n\nThis function will merge the passed in value to the existing map. If you wish\nto instead replace the entire map with the passed in `value`, use the [google.obj.withTimeouts](TODO)\nfunction.\n\n\n**Args**:\n - `resourceLabel` (`string`): The name label of the block to update.\n - `value` (`obj`): The value to set for the `timeouts` field.\n', args=[]),
withTimeoutsMixin(resourceLabel, value): {
resource+: {
google_discovery_engine_data_store+: {
[resourceLabel]+: {
timeouts+: value,
},
},
},
},
}
4 changes: 1 addition & 3 deletions 4.x/_gen/resources/eventarc_trigger.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,12 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
service: service,
}),
},
'#new':: d.fn(help='\n`google.eventarc_trigger.destination.new` constructs a new object with attributes and blocks configured for the `destination`\nTerraform sub block.\n\n\n\n**Args**:\n - `cloud_function` (`string`): [WARNING] Configuring a Cloud Function in Trigger is not supported as of today. The Cloud Function resource name. Format: projects/{project}/locations/{location}/functions/{function} When `null`, the `cloud_function` field will be omitted from the resulting object.\n - `workflow` (`string`): The resource name of the Workflow whose Executions are triggered by the events. The Workflow resource should be deployed in the same project as the trigger. Format: `projects/{project}/locations/{location}/workflows/{workflow}` When `null`, the `workflow` field will be omitted from the resulting object.\n - `cloud_run_service` (`list[obj]`): Cloud Run fully-managed service that receives the events. The service should be running in the same project of the trigger. When `null`, the `cloud_run_service` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [google.eventarc_trigger.destination.cloud_run_service.new](#fn-destinationcloud_run_servicenew) constructor.\n - `gke` (`list[obj]`): A GKE service capable of receiving events. The service should be running in the same project as the trigger. When `null`, the `gke` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [google.eventarc_trigger.destination.gke.new](#fn-destinationgkenew) constructor.\n\n**Returns**:\n - An attribute object that represents the `destination` sub block.\n', args=[]),
'#new':: d.fn(help='\n`google.eventarc_trigger.destination.new` constructs a new object with attributes and blocks configured for the `destination`\nTerraform sub block.\n\n\n\n**Args**:\n - `workflow` (`string`): The resource name of the Workflow whose Executions are triggered by the events. The Workflow resource should be deployed in the same project as the trigger. Format: `projects/{project}/locations/{location}/workflows/{workflow}` When `null`, the `workflow` field will be omitted from the resulting object.\n - `cloud_run_service` (`list[obj]`): Cloud Run fully-managed service that receives the events. The service should be running in the same project of the trigger. When `null`, the `cloud_run_service` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [google.eventarc_trigger.destination.cloud_run_service.new](#fn-destinationcloud_run_servicenew) constructor.\n - `gke` (`list[obj]`): A GKE service capable of receiving events. The service should be running in the same project as the trigger. When `null`, the `gke` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [google.eventarc_trigger.destination.gke.new](#fn-destinationgkenew) constructor.\n\n**Returns**:\n - An attribute object that represents the `destination` sub block.\n', args=[]),
new(
cloud_function=null,
cloud_run_service=null,
gke=null,
workflow=null
):: std.prune(a={
cloud_function: cloud_function,
cloud_run_service: cloud_run_service,
gke: gke,
workflow: workflow,
Expand Down
Loading

0 comments on commit d675ab7

Please sign in to comment.