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 Aug 15, 2023
1 parent 809bd85 commit 25a0503
Show file tree
Hide file tree
Showing 32 changed files with 1,276 additions and 40 deletions.
2 changes: 2 additions & 0 deletions 4.x/_gen/main.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
billing_account_iam_member: (import 'resources/billing_account_iam_member.libsonnet'),
billing_account_iam_policy: (import 'resources/billing_account_iam_policy.libsonnet'),
billing_budget: (import 'resources/billing_budget.libsonnet'),
billing_project_info: (import 'resources/billing_project_info.libsonnet'),
billing_subaccount: (import 'resources/billing_subaccount.libsonnet'),
binary_authorization_attestor: (import 'resources/binary_authorization_attestor.libsonnet'),
binary_authorization_attestor_iam_binding: (import 'resources/binary_authorization_attestor_iam_binding.libsonnet'),
Expand Down Expand Up @@ -532,6 +533,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
monitoring_slo: (import 'resources/monitoring_slo.libsonnet'),
monitoring_uptime_check_config: (import 'resources/monitoring_uptime_check_config.libsonnet'),
network_connectivity_hub: (import 'resources/network_connectivity_hub.libsonnet'),
network_connectivity_service_connection_policy: (import 'resources/network_connectivity_service_connection_policy.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'),
Expand Down
8 changes: 6 additions & 2 deletions 4.x/_gen/provider_google.libsonnet

Large diffs are not rendered by default.

22 changes: 19 additions & 3 deletions 4.x/_gen/resources/bigquery_table.libsonnet

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion 4.x/_gen/resources/billing_budget.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,15 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
}),
},
},
'#new':: d.fn(help='\n`google.billing_budget.budget_filter.new` constructs a new object with attributes and blocks configured for the `budget_filter`\nTerraform sub block.\n\n\n\n**Args**:\n - `calendar_period` (`string`): A CalendarPeriod represents the abstract concept of a recurring time period that has a\ncanonical start. Grammatically, &#34;the start of the current CalendarPeriod&#34;.\nAll calendar times begin at 12 AM US and Canadian Pacific Time (UTC-8).\n\nExactly one of &#39;calendar_period&#39;, &#39;custom_period&#39; must be provided. Possible values: [&#34;MONTH&#34;, &#34;QUARTER&#34;, &#34;YEAR&#34;, &#34;CALENDAR_PERIOD_UNSPECIFIED&#34;] When `null`, the `calendar_period` field will be omitted from the resulting object.\n - `credit_types` (`list`): Optional. If creditTypesTreatment is INCLUDE_SPECIFIED_CREDITS,\nthis is a list of credit types to be subtracted from gross cost to determine the spend for threshold calculations. See a list of acceptable credit type values.\nIf creditTypesTreatment is not INCLUDE_SPECIFIED_CREDITS, this field must be empty.\n\n**Note:** If the field has a value in the config and needs to be removed, the field has to be an emtpy array in the config. When `null`, the `credit_types` field will be omitted from the resulting object.\n - `credit_types_treatment` (`string`): Specifies how credits should be treated when determining spend\nfor threshold calculations. Default value: &#34;INCLUDE_ALL_CREDITS&#34; Possible values: [&#34;INCLUDE_ALL_CREDITS&#34;, &#34;EXCLUDE_ALL_CREDITS&#34;, &#34;INCLUDE_SPECIFIED_CREDITS&#34;] When `null`, the `credit_types_treatment` field will be omitted from the resulting object.\n - `labels` (`obj`): A single label and value pair specifying that usage from only\nthis set of labeled resources should be included in the budget. When `null`, the `labels` field will be omitted from the resulting object.\n - `projects` (`list`): A set of projects of the form projects/{project_number},\nspecifying that usage from only this set of projects should be\nincluded in the budget. If omitted, the report will include\nall usage for the billing account, regardless of which project\nthe usage occurred on. When `null`, the `projects` field will be omitted from the resulting object.\n - `services` (`list`): A set of services of the form services/{service_id},\nspecifying that usage from only this set of services should be\nincluded in the budget. If omitted, the report will include\nusage for all the services. The service names are available\nthrough the Catalog API:\nhttps://cloud.google.com/billing/v1/how-tos/catalog-api. When `null`, the `services` field will be omitted from the resulting object.\n - `subaccounts` (`list`): A set of subaccounts of the form billingAccounts/{account_id},\nspecifying that usage from only this set of subaccounts should\nbe included in the budget. If a subaccount is set to the name of\nthe parent account, usage from the parent account will be included.\nIf the field is omitted, the report will include usage from the parent\naccount and all subaccounts, if they exist.\n\n**Note:** If the field has a value in the config and needs to be removed, the field has to be an emtpy array in the config. When `null`, the `subaccounts` field will be omitted from the resulting object.\n - `custom_period` (`list[obj]`): Specifies to track usage from any start date (required) to any end date (optional).\nThis time period is static, it does not recur.\n\nExactly one of &#39;calendar_period&#39;, &#39;custom_period&#39; must be provided. When `null`, the `custom_period` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [google.billing_budget.budget_filter.custom_period.new](#fn-budget_filtercustom_periodnew) constructor.\n\n**Returns**:\n - An attribute object that represents the `budget_filter` sub block.\n', args=[]),
'#new':: d.fn(help='\n`google.billing_budget.budget_filter.new` constructs a new object with attributes and blocks configured for the `budget_filter`\nTerraform sub block.\n\n\n\n**Args**:\n - `calendar_period` (`string`): A CalendarPeriod represents the abstract concept of a recurring time period that has a\ncanonical start. Grammatically, &#34;the start of the current CalendarPeriod&#34;.\nAll calendar times begin at 12 AM US and Canadian Pacific Time (UTC-8).\n\nExactly one of &#39;calendar_period&#39;, &#39;custom_period&#39; must be provided. Possible values: [&#34;MONTH&#34;, &#34;QUARTER&#34;, &#34;YEAR&#34;, &#34;CALENDAR_PERIOD_UNSPECIFIED&#34;] When `null`, the `calendar_period` field will be omitted from the resulting object.\n - `credit_types` (`list`): Optional. If creditTypesTreatment is INCLUDE_SPECIFIED_CREDITS,\nthis is a list of credit types to be subtracted from gross cost to determine the spend for threshold calculations. See a list of acceptable credit type values.\nIf creditTypesTreatment is not INCLUDE_SPECIFIED_CREDITS, this field must be empty.\n\n**Note:** If the field has a value in the config and needs to be removed, the field has to be an emtpy array in the config. When `null`, the `credit_types` field will be omitted from the resulting object.\n - `credit_types_treatment` (`string`): Specifies how credits should be treated when determining spend\nfor threshold calculations. Default value: &#34;INCLUDE_ALL_CREDITS&#34; Possible values: [&#34;INCLUDE_ALL_CREDITS&#34;, &#34;EXCLUDE_ALL_CREDITS&#34;, &#34;INCLUDE_SPECIFIED_CREDITS&#34;] When `null`, the `credit_types_treatment` field will be omitted from the resulting object.\n - `labels` (`obj`): A single label and value pair specifying that usage from only\nthis set of labeled resources should be included in the budget. When `null`, the `labels` field will be omitted from the resulting object.\n - `projects` (`list`): A set of projects of the form projects/{project_number},\nspecifying that usage from only this set of projects should be\nincluded in the budget. If omitted, the report will include\nall usage for the billing account, regardless of which project\nthe usage occurred on. When `null`, the `projects` field will be omitted from the resulting object.\n - `resource_ancestors` (`list`): A set of folder and organization names of the form folders/{folderId} or organizations/{organizationId},\nspecifying that usage from only this set of folders and organizations should be included in the budget.\nIf omitted, the budget includes all usage that the billing account pays for. If the folder or organization\ncontains projects that are paid for by a different Cloud Billing account, the budget doesn&#39;t apply to those projects. When `null`, the `resource_ancestors` field will be omitted from the resulting object.\n - `services` (`list`): A set of services of the form services/{service_id},\nspecifying that usage from only this set of services should be\nincluded in the budget. If omitted, the report will include\nusage for all the services. The service names are available\nthrough the Catalog API:\nhttps://cloud.google.com/billing/v1/how-tos/catalog-api. When `null`, the `services` field will be omitted from the resulting object.\n - `subaccounts` (`list`): A set of subaccounts of the form billingAccounts/{account_id},\nspecifying that usage from only this set of subaccounts should\nbe included in the budget. If a subaccount is set to the name of\nthe parent account, usage from the parent account will be included.\nIf the field is omitted, the report will include usage from the parent\naccount and all subaccounts, if they exist.\n\n**Note:** If the field has a value in the config and needs to be removed, the field has to be an emtpy array in the config. When `null`, the `subaccounts` field will be omitted from the resulting object.\n - `custom_period` (`list[obj]`): Specifies to track usage from any start date (required) to any end date (optional).\nThis time period is static, it does not recur.\n\nExactly one of &#39;calendar_period&#39;, &#39;custom_period&#39; must be provided. When `null`, the `custom_period` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [google.billing_budget.budget_filter.custom_period.new](#fn-budget_filtercustom_periodnew) constructor.\n\n**Returns**:\n - An attribute object that represents the `budget_filter` sub block.\n', args=[]),
new(
calendar_period=null,
credit_types=null,
credit_types_treatment=null,
custom_period=null,
labels=null,
projects=null,
resource_ancestors=null,
services=null,
subaccounts=null
):: std.prune(a={
Expand All @@ -90,6 +91,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
custom_period: custom_period,
labels: labels,
projects: projects,
resource_ancestors: resource_ancestors,
services: services,
subaccounts: subaccounts,
}),
Expand Down
80 changes: 80 additions & 0 deletions 4.x/_gen/resources/billing_project_info.libsonnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
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='billing_project_info', url='', help='`billing_project_info` represents the `google_billing_project_info` 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.billing_project_info.new` injects a new `google_billing_project_info` 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.billing_project_info.new('some_id')\n\nYou can get the reference to the `id` field of the created `google.billing_project_info` using the reference:\n\n $._ref.google_billing_project_info.some_id.get('id')\n\nThis is the same as directly entering `\"${ google_billing_project_info.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 - `billing_account` (`string`): The ID of the billing account associated with the project, if\nany. Set to empty string to disable billing for the project.\nFor example, \u0026#39;\u0026#34;012345-567890-ABCDEF\u0026#34;\u0026#39; or \u0026#39;\u0026#34;\u0026#34;\u0026#39;.\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.billing_project_info.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,
billing_account,
project=null,
timeouts=null,
_meta={}
):: tf.withResource(
type='google_billing_project_info',
label=resourceLabel,
attrs=self.newAttrs(billing_account=billing_account, project=project, timeouts=timeouts),
_meta=_meta
),
'#newAttrs':: d.fn(help='\n`google.billing_project_info.newAttrs` constructs a new object with attributes and blocks configured for the `billing_project_info`\nTerraform resource.\n\nUnlike [google.billing_project_info.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 - `billing_account` (`string`): The ID of the billing account associated with the project, if\nany. Set to empty string to disable billing for the project.\nFor example, &#39;&#34;012345-567890-ABCDEF&#34;&#39; or &#39;&#34;&#34;&#39;.\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.billing_project_info.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 `billing_project_info` resource into the root Terraform configuration.\n', args=[]),
newAttrs(
billing_account,
project=null,
timeouts=null
):: std.prune(a={
billing_account: billing_account,
project: project,
timeouts: timeouts,
}),
timeouts:: {
'#new':: d.fn(help='\n`google.billing_project_info.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,
}),
},
'#withBillingAccount':: d.fn(help='`google.string.withBillingAccount` constructs a mixin object that can be merged into the `string`\nTerraform resource block to set or update the billing_account 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 `billing_account` field.\n', args=[]),
withBillingAccount(resourceLabel, value): {
resource+: {
google_billing_project_info+: {
[resourceLabel]+: {
billing_account: 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_billing_project_info+: {
[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_billing_project_info+: {
[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_billing_project_info+: {
[resourceLabel]+: {
timeouts+: value,
},
},
},
},
}
Loading

0 comments on commit 25a0503

Please sign in to comment.