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

Signed-off-by: tflibsonnet-ci <[email protected]>
  • Loading branch information
renovate[bot] authored and tflibsonnet-ci committed Sep 5, 2023
1 parent dd288d8 commit df2095b
Show file tree
Hide file tree
Showing 44 changed files with 5,591 additions and 100 deletions.
45 changes: 45 additions & 0 deletions 4.x/_gen/data/gke_hub_scope_iam_policy.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='gke_hub_scope_iam_policy', url='', help='`gke_hub_scope_iam_policy` represents the `google_gke_hub_scope_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.gke_hub_scope_iam_policy.new` injects a new `data_google_gke_hub_scope_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.gke_hub_scope_iam_policy.new('some_id')\n\nYou can get the reference to the `id` field of the created `google.data.gke_hub_scope_iam_policy` using the reference:\n\n $._ref.data_google_gke_hub_scope_iam_policy.some_id.get('id')\n\nThis is the same as directly entering `\"${ data_google_gke_hub_scope_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 - `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 - `scope_id` (`string`): Set the `scope_id` field on the resulting data source block.\n\n**Returns**:\n- A mixin object that injects the new data source into the root Terraform configuration.\n", args=[]),
new(
dataSrcLabel,
scope_id,
project=null,
_meta={}
):: tf.withData(
type='google_gke_hub_scope_iam_policy',
label=dataSrcLabel,
attrs=self.newAttrs(project=project, scope_id=scope_id),
_meta=_meta
),
'#newAttrs':: d.fn(help='\n`google.data.gke_hub_scope_iam_policy.newAttrs` constructs a new object with attributes and blocks configured for the `gke_hub_scope_iam_policy`\nTerraform data source.\n\nUnlike [google.data.gke_hub_scope_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 - `project` (`string`): Set the `project` field on the resulting object. When `null`, the `project` field will be omitted from the resulting object.\n - `scope_id` (`string`): Set the `scope_id` field on 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 `gke_hub_scope_iam_policy` data source into the root Terraform configuration.\n', args=[]),
newAttrs(
scope_id,
project=null
):: std.prune(a={
project: project,
scope_id: scope_id,
}),
'#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_gke_hub_scope_iam_policy+: {
[dataSrcLabel]+: {
project: value,
},
},
},
},
'#withScopeId':: d.fn(help='`google.string.withScopeId` constructs a mixin object that can be merged into the `string`\nTerraform data source block to set or update the scope_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 `scope_id` field.\n', args=[]),
withScopeId(dataSrcLabel, value): {
data+: {
google_gke_hub_scope_iam_policy+: {
[dataSrcLabel]+: {
scope_id: 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 @@ -127,6 +127,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
gke_backup_backup_plan_iam_policy: (import 'gke_backup_backup_plan_iam_policy.libsonnet'),
gke_hub_feature_iam_policy: (import 'gke_hub_feature_iam_policy.libsonnet'),
gke_hub_membership_iam_policy: (import 'gke_hub_membership_iam_policy.libsonnet'),
gke_hub_scope_iam_policy: (import 'gke_hub_scope_iam_policy.libsonnet'),
healthcare_consent_store_iam_policy: (import 'healthcare_consent_store_iam_policy.libsonnet'),
healthcare_dataset_iam_policy: (import 'healthcare_dataset_iam_policy.libsonnet'),
healthcare_dicom_store_iam_policy: (import 'healthcare_dicom_store_iam_policy.libsonnet'),
Expand Down
9 changes: 9 additions & 0 deletions 4.x/_gen/main.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
beyondcorp_app_connection: (import 'resources/beyondcorp_app_connection.libsonnet'),
beyondcorp_app_connector: (import 'resources/beyondcorp_app_connector.libsonnet'),
beyondcorp_app_gateway: (import 'resources/beyondcorp_app_gateway.libsonnet'),
biglake_catalog: (import 'resources/biglake_catalog.libsonnet'),
biglake_database: (import 'resources/biglake_database.libsonnet'),
bigquery_analytics_hub_data_exchange: (import 'resources/bigquery_analytics_hub_data_exchange.libsonnet'),
bigquery_analytics_hub_data_exchange_iam_binding: (import 'resources/bigquery_analytics_hub_data_exchange_iam_binding.libsonnet'),
bigquery_analytics_hub_data_exchange_iam_member: (import 'resources/bigquery_analytics_hub_data_exchange_iam_member.libsonnet'),
Expand Down Expand Up @@ -430,9 +432,16 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
gke_hub_feature_iam_policy: (import 'resources/gke_hub_feature_iam_policy.libsonnet'),
gke_hub_feature_membership: (import 'resources/gke_hub_feature_membership.libsonnet'),
gke_hub_membership: (import 'resources/gke_hub_membership.libsonnet'),
gke_hub_membership_binding: (import 'resources/gke_hub_membership_binding.libsonnet'),
gke_hub_membership_iam_binding: (import 'resources/gke_hub_membership_iam_binding.libsonnet'),
gke_hub_membership_iam_member: (import 'resources/gke_hub_membership_iam_member.libsonnet'),
gke_hub_membership_iam_policy: (import 'resources/gke_hub_membership_iam_policy.libsonnet'),
gke_hub_namespace: (import 'resources/gke_hub_namespace.libsonnet'),
gke_hub_scope: (import 'resources/gke_hub_scope.libsonnet'),
gke_hub_scope_iam_binding: (import 'resources/gke_hub_scope_iam_binding.libsonnet'),
gke_hub_scope_iam_member: (import 'resources/gke_hub_scope_iam_member.libsonnet'),
gke_hub_scope_iam_policy: (import 'resources/gke_hub_scope_iam_policy.libsonnet'),
gke_hub_scope_rbac_role_binding: (import 'resources/gke_hub_scope_rbac_role_binding.libsonnet'),
healthcare_consent_store: (import 'resources/healthcare_consent_store.libsonnet'),
healthcare_consent_store_iam_binding: (import 'resources/healthcare_consent_store_iam_binding.libsonnet'),
healthcare_consent_store_iam_member: (import 'resources/healthcare_consent_store_iam_member.libsonnet'),
Expand Down
8 changes: 6 additions & 2 deletions 4.x/_gen/provider_google.libsonnet

Large diffs are not rendered by default.

96 changes: 96 additions & 0 deletions 4.x/_gen/resources/biglake_catalog.libsonnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
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='biglake_catalog', url='', help='`biglake_catalog` represents the `google_biglake_catalog` 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.biglake_catalog.new` injects a new `google_biglake_catalog` 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.biglake_catalog.new('some_id')\n\nYou can get the reference to the `id` field of the created `google.biglake_catalog` using the reference:\n\n $._ref.google_biglake_catalog.some_id.get('id')\n\nThis is the same as directly entering `\"${ google_biglake_catalog.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 - `location` (`string`): The geographic location where the Catalog should reside.\n - `name` (`string`): The name of the Catalog. Format:\nprojects/{project_id_or_number}/locations/{locationId}/catalogs/{catalogId}\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 - `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.biglake_catalog.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,
location,
name,
project=null,
timeouts=null,
_meta={}
):: tf.withResource(
type='google_biglake_catalog',
label=resourceLabel,
attrs=self.newAttrs(
location=location,
name=name,
project=project,
timeouts=timeouts
),
_meta=_meta
),
'#newAttrs':: d.fn(help='\n`google.biglake_catalog.newAttrs` constructs a new object with attributes and blocks configured for the `biglake_catalog`\nTerraform resource.\n\nUnlike [google.biglake_catalog.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 - `location` (`string`): The geographic location where the Catalog should reside.\n - `name` (`string`): The name of the Catalog. Format:\nprojects/{project_id_or_number}/locations/{locationId}/catalogs/{catalogId}\n - `project` (`string`): Set the `project` field on the resulting object. When `null`, the `project` 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.biglake_catalog.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 `biglake_catalog` resource into the root Terraform configuration.\n', args=[]),
newAttrs(
location,
name,
project=null,
timeouts=null
):: std.prune(a={
location: location,
name: name,
project: project,
timeouts: timeouts,
}),
timeouts:: {
'#new':: d.fn(help='\n`google.biglake_catalog.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\n**Returns**:\n - An attribute object that represents the `timeouts` sub block.\n', args=[]),
new(
create=null,
delete=null
):: std.prune(a={
create: create,
delete: delete,
}),
},
'#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_biglake_catalog+: {
[resourceLabel]+: {
location: value,
},
},
},
},
'#withName':: d.fn(help='`google.string.withName` constructs a mixin object that can be merged into the `string`\nTerraform resource block to set or update the 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 `name` field.\n', args=[]),
withName(resourceLabel, value): {
resource+: {
google_biglake_catalog+: {
[resourceLabel]+: {
name: 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_biglake_catalog+: {
[resourceLabel]+: {
project: 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_biglake_catalog+: {
[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_biglake_catalog+: {
[resourceLabel]+: {
timeouts+: value,
},
},
},
},
}
Loading

0 comments on commit df2095b

Please sign in to comment.