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

Signed-off-by: tflibsonnet-ci <120686569+tflibsonnet-ci@users.noreply.github.com>
  • Loading branch information
renovate[bot] authored and tflibsonnet-ci committed Jul 18, 2023
1 parent 1c45e93 commit 555a83f
Show file tree
Hide file tree
Showing 74 changed files with 5,985 additions and 158 deletions.
58 changes: 58 additions & 0 deletions 4.x/_gen/data/cloudbuildv2_connection_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='cloudbuildv2_connection_iam_policy', url='', help='`cloudbuildv2_connection_iam_policy` represents the `google_cloudbuildv2_connection_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.data.cloudbuildv2_connection_iam_policy.new` injects a new `data_google_cloudbuildv2_connection_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.data.cloudbuildv2_connection_iam_policy.new('some_id')\n\nYou can get the reference to the `id` field of the created `google.data.cloudbuildv2_connection_iam_policy` using the reference:\n\n $._ref.data_google_cloudbuildv2_connection_iam_policy.some_id.get('id')\n\nThis is the same as directly entering `\"${ data_google_cloudbuildv2_connection_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 - `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 - `name` (`string`): Set the `name` field on the resulting data source block.\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_cloudbuildv2_connection_iam_policy',
label=dataSrcLabel,
attrs=self.newAttrs(location=location, name=name, project=project),
_meta=_meta
),
'#newAttrs':: d.fn(help='\n`google.data.cloudbuildv2_connection_iam_policy.newAttrs` constructs a new object with attributes and blocks configured for the `cloudbuildv2_connection_iam_policy`\nTerraform data source.\n\nUnlike [google.data.cloudbuildv2_connection_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 - `location` (`string`): Set the `location` field on the resulting object. When `null`, the `location` field will be omitted from the resulting object.\n - `name` (`string`): Set the `name` field on 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 `cloudbuildv2_connection_iam_policy` 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_cloudbuildv2_connection_iam_policy+: {
[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_cloudbuildv2_connection_iam_policy+: {
[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_cloudbuildv2_connection_iam_policy+: {
[dataSrcLabel]+: {
project: value,
},
},
},
},
}
1 change: 1 addition & 0 deletions 4.x/_gen/data/main.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
cloud_run_v2_service_iam_policy: (import 'cloud_run_v2_service_iam_policy.libsonnet'),
cloud_tasks_queue_iam_policy: (import 'cloud_tasks_queue_iam_policy.libsonnet'),
cloudbuild_trigger: (import 'cloudbuild_trigger.libsonnet'),
cloudbuildv2_connection_iam_policy: (import 'cloudbuildv2_connection_iam_policy.libsonnet'),
cloudfunctions2_function: (import 'cloudfunctions2_function.libsonnet'),
cloudfunctions2_function_iam_policy: (import 'cloudfunctions2_function_iam_policy.libsonnet'),
cloudfunctions_function: (import 'cloudfunctions_function.libsonnet'),
Expand Down
10 changes: 10 additions & 0 deletions 4.x/_gen/main.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,11 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
cloudbuild_bitbucket_server_config: (import 'resources/cloudbuild_bitbucket_server_config.libsonnet'),
cloudbuild_trigger: (import 'resources/cloudbuild_trigger.libsonnet'),
cloudbuild_worker_pool: (import 'resources/cloudbuild_worker_pool.libsonnet'),
cloudbuildv2_connection: (import 'resources/cloudbuildv2_connection.libsonnet'),
cloudbuildv2_connection_iam_binding: (import 'resources/cloudbuildv2_connection_iam_binding.libsonnet'),
cloudbuildv2_connection_iam_member: (import 'resources/cloudbuildv2_connection_iam_member.libsonnet'),
cloudbuildv2_connection_iam_policy: (import 'resources/cloudbuildv2_connection_iam_policy.libsonnet'),
cloudbuildv2_repository: (import 'resources/cloudbuildv2_repository.libsonnet'),
clouddeploy_delivery_pipeline: (import 'resources/clouddeploy_delivery_pipeline.libsonnet'),
clouddeploy_target: (import 'resources/clouddeploy_target.libsonnet'),
cloudfunctions2_function: (import 'resources/cloudfunctions2_function.libsonnet'),
Expand Down Expand Up @@ -516,9 +521,14 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
network_connectivity_hub: (import 'resources/network_connectivity_hub.libsonnet'),
network_connectivity_spoke: (import 'resources/network_connectivity_spoke.libsonnet'),
network_management_connectivity_test: (import 'resources/network_management_connectivity_test.libsonnet'),
network_security_address_group: (import 'resources/network_security_address_group.libsonnet'),
network_security_gateway_security_policy: (import 'resources/network_security_gateway_security_policy.libsonnet'),
network_security_gateway_security_policy_rule: (import 'resources/network_security_gateway_security_policy_rule.libsonnet'),
network_security_url_lists: (import 'resources/network_security_url_lists.libsonnet'),
network_services_edge_cache_keyset: (import 'resources/network_services_edge_cache_keyset.libsonnet'),
network_services_edge_cache_origin: (import 'resources/network_services_edge_cache_origin.libsonnet'),
network_services_edge_cache_service: (import 'resources/network_services_edge_cache_service.libsonnet'),
network_services_gateway: (import 'resources/network_services_gateway.libsonnet'),
notebooks_environment: (import 'resources/notebooks_environment.libsonnet'),
notebooks_instance: (import 'resources/notebooks_instance.libsonnet'),
notebooks_instance_iam_binding: (import 'resources/notebooks_instance_iam_binding.libsonnet'),
Expand Down
12 changes: 10 additions & 2 deletions 4.x/_gen/provider_google.libsonnet

Large diffs are not rendered by default.

Loading

0 comments on commit 555a83f

Please sign in to comment.