diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 2224e01..bb6303d 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -5,8 +5,8 @@ management: docVersion: 1.0.0 speakeasyVersion: 1.405.6 generationVersion: 2.428.1 - releaseVersion: 0.10.5 - configChecksum: e5e91d6c27c05c8fea869d9f95553a9e + releaseVersion: 0.10.6 + configChecksum: eee95f8fdd1db73006a00153b53647bb features: terraform: additionalDependencies: 0.1.0 @@ -21,10 +21,10 @@ generatedFiles: - .gitattributes - USAGE.md - examples/README.md - - examples/data-sources/epilot-variable_custom_variable/data-source.tf + - examples/data-sources/epilot-custom-variable_custom_variable/data-source.tf - examples/provider/provider.tf - - examples/resources/epilot-variable_custom_variable/import.sh - - examples/resources/epilot-variable_custom_variable/resource.tf + - examples/resources/epilot-custom-variable_custom_variable/import.sh + - examples/resources/epilot-custom-variable_custom_variable/resource.tf - go.mod - go.sum - internal/planmodifiers/boolplanmodifier/suppress_diff.go @@ -150,7 +150,7 @@ examples: speakeasy-default-get-custom-variables: responses: "200": - application/json: [{"id": "rbse777b-3cf8-4bff-bb0c-253fd1123250", "type": "order_table", "name": "My Custom table", "key": "my_custom_table", "helper_params": ["param1", "param2"], "helper_logic": "return param1 * param2;", "template": "\n \n \n {{#each table_config.header.columns as |column|}}\n {{#if column.enable}}\n \n {{/if}}\n {{/each}}\n \n \n \n \n {{#each order.products as |product|}}\n {{#if @last}}\n \n {{else}}\n \n {{/if}}\n {{#each @root.table_config.header.columns as |column|}}\n {{#if column.enable}}\n {{#if (eq column.id 'item')}}\n \n \n {{/if}}\n {{#if (eq column.id 'quantity')}}\n \n \n {{/if}}\n {{#if (eq column.id 'tax')}}\n \n \n {{/if}}\n {{#if (eq column.id 'unit_amount')}}\n \n \n {{/if}}\n {{#if (eq column.id 'net_total')}}\n \n \n {{/if}}\n {{#if (eq column.id 'amount_tax')}}\n \n \n {{/if}}\n {{#if (eq column.id 'gross_total')}}\n \n \n {{/if}}\n {{/if}}\n {{/each}}\n \n {{/each}}\n \n {{#if table_config.footer.gross_total.enable}}\n {{#each order.total_details.recurrences as |item|}}\n \n \n {{#if @root.table_config.footer.payment_type.enable}}\n \n {{/if}}\n {{#if (isColumnEnabled @root.table_config 'net_total')}}\n {{#if @root.table_config.footer.net_total.enable}}\n \n {{/if}}\n {{/if}}\n \n \n {{/each}}\n {{/if}}\n \n \n
{{column._label}}
\n {{#if @root.table_config.body.product_name.enable}}\n {{product.name}}\n {{/if}}\n {{#if @root.table_config.body.price_description.enable}}\n
\n {{product.price.description}}\n {{/if}}\n {{#if @root.table_config.body.product_description.enable}}\n
\n {{product.description}}\n {{/if}}\n
{{product.price.quantity}}\n \n {{product.price.tax_rate}}\n \n {{product.price.unit_amount_net}}\n \n {{product.price.amount_subtotal}}\n \n {{product.price.amount_tax}}\n \n {{product.price.amount_total}}\n {{#if @root.table_config.body.payment_type.enable}}\n {{#if (eq product.price.type 'recurring')}}\n
\n {{product.price.billing_period}}\n {{/if}}\n {{/if}}\n
{{item.billing_period}}{{item.amount_subtotal}}{{item.amount_total}}\n {{#if @root.table_config.footer.amount_tax.enable}}\n
\n {{item.full_amount_tax}}\n {{/if}}\n
\n", "created_at": "2022-04-19T12:41:43.662Z", "created_by": "100042", "updated_at": "2022-04-20T12:41:43.662Z", "updated_by": "100042"}, {"id": "rbse777b-3cf8-4bff-bb0c-253fd1123250", "type": "order_table", "name": "My Custom table", "key": "my_custom_table", "helper_params": ["param1", "param2"], "helper_logic": "return param1 * param2;", "template": "\n \n \n {{#each table_config.header.columns as |column|}}\n {{#if column.enable}}\n \n {{/if}}\n {{/each}}\n \n \n \n \n {{#each order.products as |product|}}\n {{#if @last}}\n \n {{else}}\n \n {{/if}}\n {{#each @root.table_config.header.columns as |column|}}\n {{#if column.enable}}\n {{#if (eq column.id 'item')}}\n \n \n {{/if}}\n {{#if (eq column.id 'quantity')}}\n \n \n {{/if}}\n {{#if (eq column.id 'tax')}}\n \n \n {{/if}}\n {{#if (eq column.id 'unit_amount')}}\n \n \n {{/if}}\n {{#if (eq column.id 'net_total')}}\n \n \n {{/if}}\n {{#if (eq column.id 'amount_tax')}}\n \n \n {{/if}}\n {{#if (eq column.id 'gross_total')}}\n \n \n {{/if}}\n {{/if}}\n {{/each}}\n \n {{/each}}\n \n {{#if table_config.footer.gross_total.enable}}\n {{#each order.total_details.recurrences as |item|}}\n \n \n {{#if @root.table_config.footer.payment_type.enable}}\n \n {{/if}}\n {{#if (isColumnEnabled @root.table_config 'net_total')}}\n {{#if @root.table_config.footer.net_total.enable}}\n \n {{/if}}\n {{/if}}\n \n \n {{/each}}\n {{/if}}\n \n \n
{{column._label}}
\n {{#if @root.table_config.body.product_name.enable}}\n {{product.name}}\n {{/if}}\n {{#if @root.table_config.body.price_description.enable}}\n
\n {{product.price.description}}\n {{/if}}\n {{#if @root.table_config.body.product_description.enable}}\n
\n {{product.description}}\n {{/if}}\n
{{product.price.quantity}}\n \n {{product.price.tax_rate}}\n \n {{product.price.unit_amount_net}}\n \n {{product.price.amount_subtotal}}\n \n {{product.price.amount_tax}}\n \n {{product.price.amount_total}}\n {{#if @root.table_config.body.payment_type.enable}}\n {{#if (eq product.price.type 'recurring')}}\n
\n {{product.price.billing_period}}\n {{/if}}\n {{/if}}\n
{{item.billing_period}}{{item.amount_subtotal}}{{item.amount_total}}\n {{#if @root.table_config.footer.amount_tax.enable}}\n
\n {{item.full_amount_tax}}\n {{/if}}\n
\n", "created_at": "2022-04-19T12:41:43.662Z", "created_by": "100042", "updated_at": "2022-04-20T12:41:43.662Z", "updated_by": "100042"}, {"id": "rbse777b-3cf8-4bff-bb0c-253fd1123250", "type": "custom", "name": "My Custom table", "key": "my_custom_table", "helper_params": ["param1", "param2"], "helper_logic": "return param1 * param2;", "template": "\n \n \n {{#each table_config.header.columns as |column|}}\n {{#if column.enable}}\n \n {{/if}}\n {{/each}}\n \n \n \n \n {{#each order.products as |product|}}\n {{#if @last}}\n \n {{else}}\n \n {{/if}}\n {{#each @root.table_config.header.columns as |column|}}\n {{#if column.enable}}\n {{#if (eq column.id 'item')}}\n \n \n {{/if}}\n {{#if (eq column.id 'quantity')}}\n \n \n {{/if}}\n {{#if (eq column.id 'tax')}}\n \n \n {{/if}}\n {{#if (eq column.id 'unit_amount')}}\n \n \n {{/if}}\n {{#if (eq column.id 'net_total')}}\n \n \n {{/if}}\n {{#if (eq column.id 'amount_tax')}}\n \n \n {{/if}}\n {{#if (eq column.id 'gross_total')}}\n \n \n {{/if}}\n {{/if}}\n {{/each}}\n \n {{/each}}\n \n {{#if table_config.footer.gross_total.enable}}\n {{#each order.total_details.recurrences as |item|}}\n \n \n {{#if @root.table_config.footer.payment_type.enable}}\n \n {{/if}}\n {{#if (isColumnEnabled @root.table_config 'net_total')}}\n {{#if @root.table_config.footer.net_total.enable}}\n \n {{/if}}\n {{/if}}\n \n \n {{/each}}\n {{/if}}\n \n \n
{{column._label}}
\n {{#if @root.table_config.body.product_name.enable}}\n {{product.name}}\n {{/if}}\n {{#if @root.table_config.body.price_description.enable}}\n
\n {{product.price.description}}\n {{/if}}\n {{#if @root.table_config.body.product_description.enable}}\n
\n {{product.description}}\n {{/if}}\n
{{product.price.quantity}}\n \n {{product.price.tax_rate}}\n \n {{product.price.unit_amount_net}}\n \n {{product.price.amount_subtotal}}\n \n {{product.price.amount_tax}}\n \n {{product.price.amount_total}}\n {{#if @root.table_config.body.payment_type.enable}}\n {{#if (eq product.price.type 'recurring')}}\n
\n {{product.price.billing_period}}\n {{/if}}\n {{/if}}\n
{{item.billing_period}}{{item.amount_subtotal}}{{item.amount_total}}\n {{#if @root.table_config.footer.amount_tax.enable}}\n
\n {{item.full_amount_tax}}\n {{/if}}\n
\n", "created_at": "2022-04-19T12:41:43.662Z", "created_by": "100042", "updated_at": "2022-04-20T12:41:43.662Z", "updated_by": "100042"}] + application/json: [{"id": "rbse777b-3cf8-4bff-bb0c-253fd1123250", "type": "custom", "name": "My Custom table", "key": "my_custom_table", "helper_params": ["param1", "param2"], "helper_logic": "return param1 * param2;", "template": "\n \n \n {{#each table_config.header.columns as |column|}}\n {{#if column.enable}}\n \n {{/if}}\n {{/each}}\n \n \n \n \n {{#each order.products as |product|}}\n {{#if @last}}\n \n {{else}}\n \n {{/if}}\n {{#each @root.table_config.header.columns as |column|}}\n {{#if column.enable}}\n {{#if (eq column.id 'item')}}\n \n \n {{/if}}\n {{#if (eq column.id 'quantity')}}\n \n \n {{/if}}\n {{#if (eq column.id 'tax')}}\n \n \n {{/if}}\n {{#if (eq column.id 'unit_amount')}}\n \n \n {{/if}}\n {{#if (eq column.id 'net_total')}}\n \n \n {{/if}}\n {{#if (eq column.id 'amount_tax')}}\n \n \n {{/if}}\n {{#if (eq column.id 'gross_total')}}\n \n \n {{/if}}\n {{/if}}\n {{/each}}\n \n {{/each}}\n \n {{#if table_config.footer.gross_total.enable}}\n {{#each order.total_details.recurrences as |item|}}\n \n \n {{#if @root.table_config.footer.payment_type.enable}}\n \n {{/if}}\n {{#if (isColumnEnabled @root.table_config 'net_total')}}\n {{#if @root.table_config.footer.net_total.enable}}\n \n {{/if}}\n {{/if}}\n \n \n {{/each}}\n {{/if}}\n \n \n
{{column._label}}
\n {{#if @root.table_config.body.product_name.enable}}\n {{product.name}}\n {{/if}}\n {{#if @root.table_config.body.price_description.enable}}\n
\n {{product.price.description}}\n {{/if}}\n {{#if @root.table_config.body.product_description.enable}}\n
\n {{product.description}}\n {{/if}}\n
{{product.price.quantity}}\n \n {{product.price.tax_rate}}\n \n {{product.price.unit_amount_net}}\n \n {{product.price.amount_subtotal}}\n \n {{product.price.amount_tax}}\n \n {{product.price.amount_total}}\n {{#if @root.table_config.body.payment_type.enable}}\n {{#if (eq product.price.type 'recurring')}}\n
\n {{product.price.billing_period}}\n {{/if}}\n {{/if}}\n
{{item.billing_period}}{{item.amount_subtotal}}{{item.amount_total}}\n {{#if @root.table_config.footer.amount_tax.enable}}\n
\n {{item.full_amount_tax}}\n {{/if}}\n
\n", "created_at": "2022-04-19T12:41:43.662Z", "created_by": "100042", "updated_at": "2022-04-20T12:41:43.662Z", "updated_by": "100042"}, {"id": "rbse777b-3cf8-4bff-bb0c-253fd1123250", "type": "order_table", "name": "My Custom table", "key": "my_custom_table", "helper_params": ["param1", "param2"], "helper_logic": "return param1 * param2;", "template": "\n \n \n {{#each table_config.header.columns as |column|}}\n {{#if column.enable}}\n \n {{/if}}\n {{/each}}\n \n \n \n \n {{#each order.products as |product|}}\n {{#if @last}}\n \n {{else}}\n \n {{/if}}\n {{#each @root.table_config.header.columns as |column|}}\n {{#if column.enable}}\n {{#if (eq column.id 'item')}}\n \n \n {{/if}}\n {{#if (eq column.id 'quantity')}}\n \n \n {{/if}}\n {{#if (eq column.id 'tax')}}\n \n \n {{/if}}\n {{#if (eq column.id 'unit_amount')}}\n \n \n {{/if}}\n {{#if (eq column.id 'net_total')}}\n \n \n {{/if}}\n {{#if (eq column.id 'amount_tax')}}\n \n \n {{/if}}\n {{#if (eq column.id 'gross_total')}}\n \n \n {{/if}}\n {{/if}}\n {{/each}}\n \n {{/each}}\n \n {{#if table_config.footer.gross_total.enable}}\n {{#each order.total_details.recurrences as |item|}}\n \n \n {{#if @root.table_config.footer.payment_type.enable}}\n \n {{/if}}\n {{#if (isColumnEnabled @root.table_config 'net_total')}}\n {{#if @root.table_config.footer.net_total.enable}}\n \n {{/if}}\n {{/if}}\n \n \n {{/each}}\n {{/if}}\n \n \n
{{column._label}}
\n {{#if @root.table_config.body.product_name.enable}}\n {{product.name}}\n {{/if}}\n {{#if @root.table_config.body.price_description.enable}}\n
\n {{product.price.description}}\n {{/if}}\n {{#if @root.table_config.body.product_description.enable}}\n
\n {{product.description}}\n {{/if}}\n
{{product.price.quantity}}\n \n {{product.price.tax_rate}}\n \n {{product.price.unit_amount_net}}\n \n {{product.price.amount_subtotal}}\n \n {{product.price.amount_tax}}\n \n {{product.price.amount_total}}\n {{#if @root.table_config.body.payment_type.enable}}\n {{#if (eq product.price.type 'recurring')}}\n
\n {{product.price.billing_period}}\n {{/if}}\n {{/if}}\n
{{item.billing_period}}{{item.amount_subtotal}}{{item.amount_total}}\n {{#if @root.table_config.footer.amount_tax.enable}}\n
\n {{item.full_amount_tax}}\n {{/if}}\n
\n", "created_at": "2022-04-19T12:41:43.662Z", "created_by": "100042", "updated_at": "2022-04-20T12:41:43.662Z", "updated_by": "100042"}, {"id": "rbse777b-3cf8-4bff-bb0c-253fd1123250", "type": "order_table", "name": "My Custom table", "key": "my_custom_table", "helper_params": ["param1", "param2"], "helper_logic": "return param1 * param2;", "template": "\n \n \n {{#each table_config.header.columns as |column|}}\n {{#if column.enable}}\n \n {{/if}}\n {{/each}}\n \n \n \n \n {{#each order.products as |product|}}\n {{#if @last}}\n \n {{else}}\n \n {{/if}}\n {{#each @root.table_config.header.columns as |column|}}\n {{#if column.enable}}\n {{#if (eq column.id 'item')}}\n \n \n {{/if}}\n {{#if (eq column.id 'quantity')}}\n \n \n {{/if}}\n {{#if (eq column.id 'tax')}}\n \n \n {{/if}}\n {{#if (eq column.id 'unit_amount')}}\n \n \n {{/if}}\n {{#if (eq column.id 'net_total')}}\n \n \n {{/if}}\n {{#if (eq column.id 'amount_tax')}}\n \n \n {{/if}}\n {{#if (eq column.id 'gross_total')}}\n \n \n {{/if}}\n {{/if}}\n {{/each}}\n \n {{/each}}\n \n {{#if table_config.footer.gross_total.enable}}\n {{#each order.total_details.recurrences as |item|}}\n \n \n {{#if @root.table_config.footer.payment_type.enable}}\n \n {{/if}}\n {{#if (isColumnEnabled @root.table_config 'net_total')}}\n {{#if @root.table_config.footer.net_total.enable}}\n \n {{/if}}\n {{/if}}\n \n \n {{/each}}\n {{/if}}\n \n \n
{{column._label}}
\n {{#if @root.table_config.body.product_name.enable}}\n {{product.name}}\n {{/if}}\n {{#if @root.table_config.body.price_description.enable}}\n
\n {{product.price.description}}\n {{/if}}\n {{#if @root.table_config.body.product_description.enable}}\n
\n {{product.description}}\n {{/if}}\n
{{product.price.quantity}}\n \n {{product.price.tax_rate}}\n \n {{product.price.unit_amount_net}}\n \n {{product.price.amount_subtotal}}\n \n {{product.price.amount_tax}}\n \n {{product.price.amount_total}}\n {{#if @root.table_config.body.payment_type.enable}}\n {{#if (eq product.price.type 'recurring')}}\n
\n {{product.price.billing_period}}\n {{/if}}\n {{/if}}\n
{{item.billing_period}}{{item.amount_subtotal}}{{item.amount_total}}\n {{#if @root.table_config.footer.amount_tax.enable}}\n
\n {{item.full_amount_tax}}\n {{/if}}\n
\n", "created_at": "2022-04-19T12:41:43.662Z", "created_by": "100042", "updated_at": "2022-04-20T12:41:43.662Z", "updated_by": "100042"}] createCustomVariable: speakeasy-default-create-custom-variable: requestBody: @@ -161,7 +161,7 @@ examples: application/json: {"query": "logo", "sort_by": "[\"created_at\",\"created_at:desc\",\"name\",\"name:desc\",\"key\"]"} responses: "200": - application/json: {"results": [{"id": "rbse777b-3cf8-4bff-bb0c-253fd1123250", "type": "custom", "name": "My Custom table", "key": "my_custom_table", "helper_params": ["param1", "param2"], "helper_logic": "return param1 * param2;", "template": "\n \n \n {{#each table_config.header.columns as |column|}}\n {{#if column.enable}}\n \n {{/if}}\n {{/each}}\n \n \n \n \n {{#each order.products as |product|}}\n {{#if @last}}\n \n {{else}}\n \n {{/if}}\n {{#each @root.table_config.header.columns as |column|}}\n {{#if column.enable}}\n {{#if (eq column.id 'item')}}\n \n \n {{/if}}\n {{#if (eq column.id 'quantity')}}\n \n \n {{/if}}\n {{#if (eq column.id 'tax')}}\n \n \n {{/if}}\n {{#if (eq column.id 'unit_amount')}}\n \n \n {{/if}}\n {{#if (eq column.id 'net_total')}}\n \n \n {{/if}}\n {{#if (eq column.id 'amount_tax')}}\n \n \n {{/if}}\n {{#if (eq column.id 'gross_total')}}\n \n \n {{/if}}\n {{/if}}\n {{/each}}\n \n {{/each}}\n \n {{#if table_config.footer.gross_total.enable}}\n {{#each order.total_details.recurrences as |item|}}\n \n \n {{#if @root.table_config.footer.payment_type.enable}}\n \n {{/if}}\n {{#if (isColumnEnabled @root.table_config 'net_total')}}\n {{#if @root.table_config.footer.net_total.enable}}\n \n {{/if}}\n {{/if}}\n \n \n {{/each}}\n {{/if}}\n \n \n
{{column._label}}
\n {{#if @root.table_config.body.product_name.enable}}\n {{product.name}}\n {{/if}}\n {{#if @root.table_config.body.price_description.enable}}\n
\n {{product.price.description}}\n {{/if}}\n {{#if @root.table_config.body.product_description.enable}}\n
\n {{product.description}}\n {{/if}}\n
{{product.price.quantity}}\n \n {{product.price.tax_rate}}\n \n {{product.price.unit_amount_net}}\n \n {{product.price.amount_subtotal}}\n \n {{product.price.amount_tax}}\n \n {{product.price.amount_total}}\n {{#if @root.table_config.body.payment_type.enable}}\n {{#if (eq product.price.type 'recurring')}}\n
\n {{product.price.billing_period}}\n {{/if}}\n {{/if}}\n
{{item.billing_period}}{{item.amount_subtotal}}{{item.amount_total}}\n {{#if @root.table_config.footer.amount_tax.enable}}\n
\n {{item.full_amount_tax}}\n {{/if}}\n
\n", "created_at": "2022-04-19T12:41:43.662Z", "created_by": "100042", "updated_at": "2022-04-20T12:41:43.662Z", "updated_by": "100042"}, {"id": "rbse777b-3cf8-4bff-bb0c-253fd1123250", "type": "order_table", "name": "My Custom table", "key": "my_custom_table", "helper_params": ["param1", "param2"], "helper_logic": "return param1 * param2;", "template": "\n \n \n {{#each table_config.header.columns as |column|}}\n {{#if column.enable}}\n \n {{/if}}\n {{/each}}\n \n \n \n \n {{#each order.products as |product|}}\n {{#if @last}}\n \n {{else}}\n \n {{/if}}\n {{#each @root.table_config.header.columns as |column|}}\n {{#if column.enable}}\n {{#if (eq column.id 'item')}}\n \n \n {{/if}}\n {{#if (eq column.id 'quantity')}}\n \n \n {{/if}}\n {{#if (eq column.id 'tax')}}\n \n \n {{/if}}\n {{#if (eq column.id 'unit_amount')}}\n \n \n {{/if}}\n {{#if (eq column.id 'net_total')}}\n \n \n {{/if}}\n {{#if (eq column.id 'amount_tax')}}\n \n \n {{/if}}\n {{#if (eq column.id 'gross_total')}}\n \n \n {{/if}}\n {{/if}}\n {{/each}}\n \n {{/each}}\n \n {{#if table_config.footer.gross_total.enable}}\n {{#each order.total_details.recurrences as |item|}}\n \n \n {{#if @root.table_config.footer.payment_type.enable}}\n \n {{/if}}\n {{#if (isColumnEnabled @root.table_config 'net_total')}}\n {{#if @root.table_config.footer.net_total.enable}}\n \n {{/if}}\n {{/if}}\n \n \n {{/each}}\n {{/if}}\n \n \n
{{column._label}}
\n {{#if @root.table_config.body.product_name.enable}}\n {{product.name}}\n {{/if}}\n {{#if @root.table_config.body.price_description.enable}}\n
\n {{product.price.description}}\n {{/if}}\n {{#if @root.table_config.body.product_description.enable}}\n
\n {{product.description}}\n {{/if}}\n
{{product.price.quantity}}\n \n {{product.price.tax_rate}}\n \n {{product.price.unit_amount_net}}\n \n {{product.price.amount_subtotal}}\n \n {{product.price.amount_tax}}\n \n {{product.price.amount_total}}\n {{#if @root.table_config.body.payment_type.enable}}\n {{#if (eq product.price.type 'recurring')}}\n
\n {{product.price.billing_period}}\n {{/if}}\n {{/if}}\n
{{item.billing_period}}{{item.amount_subtotal}}{{item.amount_total}}\n {{#if @root.table_config.footer.amount_tax.enable}}\n
\n {{item.full_amount_tax}}\n {{/if}}\n
\n", "created_at": "2022-04-19T12:41:43.662Z", "created_by": "100042", "updated_at": "2022-04-20T12:41:43.662Z", "updated_by": "100042"}], "hits": 100} + application/json: {"results": [{"id": "rbse777b-3cf8-4bff-bb0c-253fd1123250", "type": "custom", "name": "My Custom table", "key": "my_custom_table", "helper_params": ["param1", "param2"], "helper_logic": "return param1 * param2;", "template": "\n \n \n {{#each table_config.header.columns as |column|}}\n {{#if column.enable}}\n \n {{/if}}\n {{/each}}\n \n \n \n \n {{#each order.products as |product|}}\n {{#if @last}}\n \n {{else}}\n \n {{/if}}\n {{#each @root.table_config.header.columns as |column|}}\n {{#if column.enable}}\n {{#if (eq column.id 'item')}}\n \n \n {{/if}}\n {{#if (eq column.id 'quantity')}}\n \n \n {{/if}}\n {{#if (eq column.id 'tax')}}\n \n \n {{/if}}\n {{#if (eq column.id 'unit_amount')}}\n \n \n {{/if}}\n {{#if (eq column.id 'net_total')}}\n \n \n {{/if}}\n {{#if (eq column.id 'amount_tax')}}\n \n \n {{/if}}\n {{#if (eq column.id 'gross_total')}}\n \n \n {{/if}}\n {{/if}}\n {{/each}}\n \n {{/each}}\n \n {{#if table_config.footer.gross_total.enable}}\n {{#each order.total_details.recurrences as |item|}}\n \n \n {{#if @root.table_config.footer.payment_type.enable}}\n \n {{/if}}\n {{#if (isColumnEnabled @root.table_config 'net_total')}}\n {{#if @root.table_config.footer.net_total.enable}}\n \n {{/if}}\n {{/if}}\n \n \n {{/each}}\n {{/if}}\n \n \n
{{column._label}}
\n {{#if @root.table_config.body.product_name.enable}}\n {{product.name}}\n {{/if}}\n {{#if @root.table_config.body.price_description.enable}}\n
\n {{product.price.description}}\n {{/if}}\n {{#if @root.table_config.body.product_description.enable}}\n
\n {{product.description}}\n {{/if}}\n
{{product.price.quantity}}\n \n {{product.price.tax_rate}}\n \n {{product.price.unit_amount_net}}\n \n {{product.price.amount_subtotal}}\n \n {{product.price.amount_tax}}\n \n {{product.price.amount_total}}\n {{#if @root.table_config.body.payment_type.enable}}\n {{#if (eq product.price.type 'recurring')}}\n
\n {{product.price.billing_period}}\n {{/if}}\n {{/if}}\n
{{item.billing_period}}{{item.amount_subtotal}}{{item.amount_total}}\n {{#if @root.table_config.footer.amount_tax.enable}}\n
\n {{item.full_amount_tax}}\n {{/if}}\n
\n", "created_at": "2022-04-19T12:41:43.662Z", "created_by": "100042", "updated_at": "2022-04-20T12:41:43.662Z", "updated_by": "100042"}, {"id": "rbse777b-3cf8-4bff-bb0c-253fd1123250", "type": "custom", "name": "My Custom table", "key": "my_custom_table", "helper_params": ["param1", "param2"], "helper_logic": "return param1 * param2;", "template": "\n \n \n {{#each table_config.header.columns as |column|}}\n {{#if column.enable}}\n \n {{/if}}\n {{/each}}\n \n \n \n \n {{#each order.products as |product|}}\n {{#if @last}}\n \n {{else}}\n \n {{/if}}\n {{#each @root.table_config.header.columns as |column|}}\n {{#if column.enable}}\n {{#if (eq column.id 'item')}}\n \n \n {{/if}}\n {{#if (eq column.id 'quantity')}}\n \n \n {{/if}}\n {{#if (eq column.id 'tax')}}\n \n \n {{/if}}\n {{#if (eq column.id 'unit_amount')}}\n \n \n {{/if}}\n {{#if (eq column.id 'net_total')}}\n \n \n {{/if}}\n {{#if (eq column.id 'amount_tax')}}\n \n \n {{/if}}\n {{#if (eq column.id 'gross_total')}}\n \n \n {{/if}}\n {{/if}}\n {{/each}}\n \n {{/each}}\n \n {{#if table_config.footer.gross_total.enable}}\n {{#each order.total_details.recurrences as |item|}}\n \n \n {{#if @root.table_config.footer.payment_type.enable}}\n \n {{/if}}\n {{#if (isColumnEnabled @root.table_config 'net_total')}}\n {{#if @root.table_config.footer.net_total.enable}}\n \n {{/if}}\n {{/if}}\n \n \n {{/each}}\n {{/if}}\n \n \n
{{column._label}}
\n {{#if @root.table_config.body.product_name.enable}}\n {{product.name}}\n {{/if}}\n {{#if @root.table_config.body.price_description.enable}}\n
\n {{product.price.description}}\n {{/if}}\n {{#if @root.table_config.body.product_description.enable}}\n
\n {{product.description}}\n {{/if}}\n
{{product.price.quantity}}\n \n {{product.price.tax_rate}}\n \n {{product.price.unit_amount_net}}\n \n {{product.price.amount_subtotal}}\n \n {{product.price.amount_tax}}\n \n {{product.price.amount_total}}\n {{#if @root.table_config.body.payment_type.enable}}\n {{#if (eq product.price.type 'recurring')}}\n
\n {{product.price.billing_period}}\n {{/if}}\n {{/if}}\n
{{item.billing_period}}{{item.amount_subtotal}}{{item.amount_total}}\n {{#if @root.table_config.footer.amount_tax.enable}}\n
\n {{item.full_amount_tax}}\n {{/if}}\n
\n", "created_at": "2022-04-19T12:41:43.662Z", "created_by": "100042", "updated_at": "2022-04-20T12:41:43.662Z", "updated_by": "100042"}], "hits": 100} updateCustomVariable: "": parameters: diff --git a/README.md b/README.md index 80cb5ff..79d12b3 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ -# epilot-variable +# epilot-custom-variable -Developer-friendly & type-safe Terraform SDK specifically catered to leverage *epilot-variable* API. +Developer-friendly & type-safe Terraform SDK specifically catered to leverage *epilot-custom-variable* API.
- + @@ -40,14 +40,14 @@ To install this provider, copy and paste this code into your Terraform configura ```hcl terraform { required_providers { - epilot-variable = { - source = "epilot-dev/epilot-variable" - version = "0.10.5" + epilot-custom-variable = { + source = "epilot-dev/epilot-custom-variable" + version = "0.10.6" } } } -provider "epilot-variable" { +provider "epilot-custom-variable" { # Configuration options } ``` @@ -58,10 +58,10 @@ provider "epilot-variable" { ### Resources -* [epilot-variable_custom_variable](docs/resources/custom_variable.md) +* [epilot-custom-variable_custom_variable](docs/resources/custom_variable.md) ### Data Sources -* [epilot-variable_custom_variable](docs/data-sources/custom_variable.md) +* [epilot-custom-variable_custom_variable](docs/data-sources/custom_variable.md) @@ -86,7 +86,7 @@ TF_REATTACH_PROVIDERS=... terraform apply Terraform allows you to use local provider builds by setting a `dev_overrides` block in a configuration file called `.terraformrc`. This block overrides all other configured installation methods. -1. Execute `go build` to construct a binary called `terraform-provider-epilot-variable` +1. Execute `go build` to construct a binary called `terraform-provider-epilot-custom-variable` 2. Ensure that the `.terraformrc` file is configured with a `dev_overrides` section such that your local copy of terraform can see the provider binary Terraform searches for the `.terraformrc` file in your home directory and applies any configuration settings you set. @@ -95,7 +95,7 @@ Terraform searches for the `.terraformrc` file in your home directory and applie provider_installation { dev_overrides { - "registry.terraform.io/epilot-dev/epilot-variable" = "" + "registry.terraform.io/epilot-dev/epilot-custom-variable" = "" } # For all other providers, install them directly from their origin provider @@ -115,4 +115,4 @@ provider_installation { While we value open-source contributions to this terraform provider, this library is generated programmatically. Any manual changes added to internal files will be overwritten on the next generation. We look forward to hearing your feedback. Feel free to open a PR or an issue with a proof of concept and we'll do our best to include it in a future release. -### SDK Created by [Speakeasy](https://www.speakeasy.com/?utm_source=epilot-variable&utm_campaign=terraform) +### SDK Created by [Speakeasy](https://www.speakeasy.com/?utm_source=epilot-custom-variable&utm_campaign=terraform) diff --git a/docs/data-sources/custom_variable.md b/docs/data-sources/custom_variable.md index 1ea456e..bd01bb8 100644 --- a/docs/data-sources/custom_variable.md +++ b/docs/data-sources/custom_variable.md @@ -1,19 +1,19 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "epilot-variable_custom_variable Data Source - terraform-provider-epilot-variable" +page_title: "epilot-custom-variable_custom_variable Data Source - terraform-provider-epilot-custom-variable" subcategory: "" description: |- CustomVariable DataSource --- -# epilot-variable_custom_variable (Data Source) +# epilot-custom-variable_custom_variable (Data Source) CustomVariable DataSource ## Example Usage ```terraform -data "epilot-variable_custom_variable" "my_customvariable" { +data "epilot-custom-variable_custom_variable" "my_customvariable" { id = "rbse777b-3cf8-4bff-bb0c-253fd1123250" } ``` diff --git a/docs/index.md b/docs/index.md index 25d96ad..208d2f6 100644 --- a/docs/index.md +++ b/docs/index.md @@ -1,12 +1,12 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "epilot-variable Provider" +page_title: "epilot-custom-variable Provider" subcategory: "" description: |- Template Variables API: API to provide variables for email and document templates. --- -# epilot-variable Provider +# epilot-custom-variable Provider Template Variables API: API to provide variables for email and document templates. @@ -15,14 +15,14 @@ Template Variables API: API to provide variables for email and document template ```terraform terraform { required_providers { - epilot-variable = { - source = "epilot-dev/epilot-variable" - version = "0.10.5" + epilot-custom-variable = { + source = "epilot-dev/epilot-custom-variable" + version = "0.10.6" } } } -provider "epilot-variable" { +provider "epilot-custom-variable" { # Configuration options } ``` diff --git a/docs/resources/custom_variable.md b/docs/resources/custom_variable.md index f831f5f..fc00ec8 100644 --- a/docs/resources/custom_variable.md +++ b/docs/resources/custom_variable.md @@ -1,19 +1,19 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "epilot-variable_custom_variable Resource - terraform-provider-epilot-variable" +page_title: "epilot-custom-variable_custom_variable Resource - terraform-provider-epilot-custom-variable" subcategory: "" description: |- CustomVariable Resource --- -# epilot-variable_custom_variable (Resource) +# epilot-custom-variable_custom_variable (Resource) CustomVariable Resource ## Example Usage ```terraform -resource "epilot-variable_custom_variable" "my_customvariable" { +resource "epilot-custom-variable_custom_variable" "my_customvariable" { config = { # ... } @@ -63,5 +63,5 @@ resource "epilot-variable_custom_variable" "my_customvariable" { Import is supported using the following syntax: ```shell -terraform import epilot-variable_custom_variable.my_epilot-variable_custom_variable "rbse777b-3cf8-4bff-bb0c-253fd1123250" +terraform import epilot-custom-variable_custom_variable.my_epilot-custom-variable_custom_variable "rbse777b-3cf8-4bff-bb0c-253fd1123250" ``` diff --git a/examples/data-sources/epilot-custom-variable_custom_variable/data-source.tf b/examples/data-sources/epilot-custom-variable_custom_variable/data-source.tf new file mode 100644 index 0000000..0289a55 --- /dev/null +++ b/examples/data-sources/epilot-custom-variable_custom_variable/data-source.tf @@ -0,0 +1,3 @@ +data "epilot-custom-variable_custom_variable" "my_customvariable" { + id = "rbse777b-3cf8-4bff-bb0c-253fd1123250" +} \ No newline at end of file diff --git a/examples/data-sources/epilot-variable_custom_variable/data-source.tf b/examples/data-sources/epilot-variable_custom_variable/data-source.tf deleted file mode 100644 index 672c225..0000000 --- a/examples/data-sources/epilot-variable_custom_variable/data-source.tf +++ /dev/null @@ -1,3 +0,0 @@ -data "epilot-variable_custom_variable" "my_customvariable" { - id = "rbse777b-3cf8-4bff-bb0c-253fd1123250" -} \ No newline at end of file diff --git a/examples/provider/provider.tf b/examples/provider/provider.tf index 0848fff..1022f53 100644 --- a/examples/provider/provider.tf +++ b/examples/provider/provider.tf @@ -1,8 +1,8 @@ terraform { required_providers { - epilot-variable = { - source = "epilot-dev/epilot-variable" - version = "0.10.5" + epilot-custom-variable = { + source = "epilot-dev/epilot-custom-variable" + version = "0.10.6" } } } @@ -10,14 +10,14 @@ terraform { variable "epilot_auth" { type = string } -variable "template_variables_api_url" { +variable "custom_variables_api_url" { type = string default = "https://template-variables-api.dev.sls.epilot.io" } -provider "epilot-variable" { +provider "epilot-custom-variable" { epilot_auth = var.epilot_auth - server_url = var.template_variables_api_url + server_url = var.custom_variables_api_url } resource "epilot-variable_custom_variable" "my_variable" { diff --git a/examples/resources/epilot-custom-variable_custom_variable/import.sh b/examples/resources/epilot-custom-variable_custom_variable/import.sh new file mode 100644 index 0000000..cc2311a --- /dev/null +++ b/examples/resources/epilot-custom-variable_custom_variable/import.sh @@ -0,0 +1 @@ +terraform import epilot-custom-variable_custom_variable.my_epilot-custom-variable_custom_variable "rbse777b-3cf8-4bff-bb0c-253fd1123250" diff --git a/examples/resources/epilot-variable_custom_variable/resource.tf b/examples/resources/epilot-custom-variable_custom_variable/resource.tf similarity index 98% rename from examples/resources/epilot-variable_custom_variable/resource.tf rename to examples/resources/epilot-custom-variable_custom_variable/resource.tf index 5fe0106..c0ef55e 100644 --- a/examples/resources/epilot-variable_custom_variable/resource.tf +++ b/examples/resources/epilot-custom-variable_custom_variable/resource.tf @@ -1,4 +1,4 @@ -resource "epilot-variable_custom_variable" "my_customvariable" { +resource "epilot-custom-variable_custom_variable" "my_customvariable" { config = { # ... } diff --git a/examples/resources/epilot-variable_custom_variable/import.sh b/examples/resources/epilot-variable_custom_variable/import.sh deleted file mode 100644 index abca533..0000000 --- a/examples/resources/epilot-variable_custom_variable/import.sh +++ /dev/null @@ -1 +0,0 @@ -terraform import epilot-variable_custom_variable.my_epilot-variable_custom_variable "rbse777b-3cf8-4bff-bb0c-253fd1123250" diff --git a/gen.yaml b/gen.yaml index a9bdcbe..8490cb1 100644 --- a/gen.yaml +++ b/gen.yaml @@ -29,7 +29,7 @@ go: outputModelSuffix: output packageName: openapi terraform: - version: 0.10.5 + version: 0.10.6 additionalDataSources: [] additionalDependencies: {} additionalResources: [] @@ -46,4 +46,4 @@ terraform: webhooks: webhooks inputModelSuffix: input outputModelSuffix: output - packageName: epilot-variable + packageName: epilot-custom-variable diff --git a/go.mod b/go.mod index 5da583c..823b64f 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/epilot-dev/terraform-provider-epilot-variable +module github.com/epilot-dev/terraform-provider-epilot-custom-variable go 1.21 diff --git a/internal/planmodifiers/boolplanmodifier/suppress_diff.go b/internal/planmodifiers/boolplanmodifier/suppress_diff.go index e5397b0..b0abef2 100644 --- a/internal/planmodifiers/boolplanmodifier/suppress_diff.go +++ b/internal/planmodifiers/boolplanmodifier/suppress_diff.go @@ -4,7 +4,7 @@ package boolplanmodifier import ( "context" - "github.com/epilot-dev/terraform-provider-epilot-variable/internal/planmodifiers/utils" + "github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/planmodifiers/utils" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" ) diff --git a/internal/planmodifiers/float64planmodifier/suppress_diff.go b/internal/planmodifiers/float64planmodifier/suppress_diff.go index f143774..6f6a52c 100644 --- a/internal/planmodifiers/float64planmodifier/suppress_diff.go +++ b/internal/planmodifiers/float64planmodifier/suppress_diff.go @@ -4,7 +4,7 @@ package float64planmodifier import ( "context" - "github.com/epilot-dev/terraform-provider-epilot-variable/internal/planmodifiers/utils" + "github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/planmodifiers/utils" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" ) diff --git a/internal/planmodifiers/int64planmodifier/suppress_diff.go b/internal/planmodifiers/int64planmodifier/suppress_diff.go index c4d76b3..88440d8 100644 --- a/internal/planmodifiers/int64planmodifier/suppress_diff.go +++ b/internal/planmodifiers/int64planmodifier/suppress_diff.go @@ -4,7 +4,7 @@ package int64planmodifier import ( "context" - "github.com/epilot-dev/terraform-provider-epilot-variable/internal/planmodifiers/utils" + "github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/planmodifiers/utils" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" ) diff --git a/internal/planmodifiers/listplanmodifier/suppress_diff.go b/internal/planmodifiers/listplanmodifier/suppress_diff.go index 7a38a26..c5a9c1b 100644 --- a/internal/planmodifiers/listplanmodifier/suppress_diff.go +++ b/internal/planmodifiers/listplanmodifier/suppress_diff.go @@ -4,7 +4,7 @@ package listplanmodifier import ( "context" - "github.com/epilot-dev/terraform-provider-epilot-variable/internal/planmodifiers/utils" + "github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/planmodifiers/utils" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" ) diff --git a/internal/planmodifiers/mapplanmodifier/suppress_diff.go b/internal/planmodifiers/mapplanmodifier/suppress_diff.go index 119a4cb..9950106 100644 --- a/internal/planmodifiers/mapplanmodifier/suppress_diff.go +++ b/internal/planmodifiers/mapplanmodifier/suppress_diff.go @@ -4,7 +4,7 @@ package mapplanmodifier import ( "context" - "github.com/epilot-dev/terraform-provider-epilot-variable/internal/planmodifiers/utils" + "github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/planmodifiers/utils" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" ) diff --git a/internal/planmodifiers/numberplanmodifier/suppress_diff.go b/internal/planmodifiers/numberplanmodifier/suppress_diff.go index 66a1b7b..4162a2e 100644 --- a/internal/planmodifiers/numberplanmodifier/suppress_diff.go +++ b/internal/planmodifiers/numberplanmodifier/suppress_diff.go @@ -4,7 +4,7 @@ package numberplanmodifier import ( "context" - "github.com/epilot-dev/terraform-provider-epilot-variable/internal/planmodifiers/utils" + "github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/planmodifiers/utils" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" ) diff --git a/internal/planmodifiers/objectplanmodifier/suppress_diff.go b/internal/planmodifiers/objectplanmodifier/suppress_diff.go index e0800d2..9993c22 100644 --- a/internal/planmodifiers/objectplanmodifier/suppress_diff.go +++ b/internal/planmodifiers/objectplanmodifier/suppress_diff.go @@ -4,7 +4,7 @@ package objectplanmodifier import ( "context" - "github.com/epilot-dev/terraform-provider-epilot-variable/internal/planmodifiers/utils" + "github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/planmodifiers/utils" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" ) diff --git a/internal/planmodifiers/setplanmodifier/suppress_diff.go b/internal/planmodifiers/setplanmodifier/suppress_diff.go index c15fe14..d34b806 100644 --- a/internal/planmodifiers/setplanmodifier/suppress_diff.go +++ b/internal/planmodifiers/setplanmodifier/suppress_diff.go @@ -4,7 +4,7 @@ package setplanmodifier import ( "context" - "github.com/epilot-dev/terraform-provider-epilot-variable/internal/planmodifiers/utils" + "github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/planmodifiers/utils" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" ) diff --git a/internal/planmodifiers/stringplanmodifier/suppress_diff.go b/internal/planmodifiers/stringplanmodifier/suppress_diff.go index 04aab81..ae5fffa 100644 --- a/internal/planmodifiers/stringplanmodifier/suppress_diff.go +++ b/internal/planmodifiers/stringplanmodifier/suppress_diff.go @@ -4,7 +4,7 @@ package stringplanmodifier import ( "context" - "github.com/epilot-dev/terraform-provider-epilot-variable/internal/planmodifiers/utils" + "github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/planmodifiers/utils" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" ) diff --git a/internal/provider/customvariable_data_source.go b/internal/provider/customvariable_data_source.go index f515cea..3d59d53 100644 --- a/internal/provider/customvariable_data_source.go +++ b/internal/provider/customvariable_data_source.go @@ -5,9 +5,9 @@ package provider import ( "context" "fmt" - tfTypes "github.com/epilot-dev/terraform-provider-epilot-variable/internal/provider/types" - "github.com/epilot-dev/terraform-provider-epilot-variable/internal/sdk" - "github.com/epilot-dev/terraform-provider-epilot-variable/internal/sdk/models/operations" + tfTypes "github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/provider/types" + "github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/sdk" + "github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/sdk/models/operations" "github.com/hashicorp/terraform-plugin-framework/datasource" "github.com/hashicorp/terraform-plugin-framework/datasource/schema" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/provider/customvariable_data_source_sdk.go b/internal/provider/customvariable_data_source_sdk.go index 043c482..64f225c 100644 --- a/internal/provider/customvariable_data_source_sdk.go +++ b/internal/provider/customvariable_data_source_sdk.go @@ -3,8 +3,8 @@ package provider import ( - tfTypes "github.com/epilot-dev/terraform-provider-epilot-variable/internal/provider/types" - "github.com/epilot-dev/terraform-provider-epilot-variable/internal/sdk/models/shared" + tfTypes "github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/provider/types" + "github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/sdk/models/shared" "github.com/hashicorp/terraform-plugin-framework/types" ) diff --git a/internal/provider/customvariable_resource.go b/internal/provider/customvariable_resource.go index 77e4d0f..8ec7c49 100644 --- a/internal/provider/customvariable_resource.go +++ b/internal/provider/customvariable_resource.go @@ -5,12 +5,12 @@ package provider import ( "context" "fmt" - speakeasy_listplanmodifier "github.com/epilot-dev/terraform-provider-epilot-variable/internal/planmodifiers/listplanmodifier" - speakeasy_objectplanmodifier "github.com/epilot-dev/terraform-provider-epilot-variable/internal/planmodifiers/objectplanmodifier" - speakeasy_stringplanmodifier "github.com/epilot-dev/terraform-provider-epilot-variable/internal/planmodifiers/stringplanmodifier" - tfTypes "github.com/epilot-dev/terraform-provider-epilot-variable/internal/provider/types" - "github.com/epilot-dev/terraform-provider-epilot-variable/internal/sdk" - "github.com/epilot-dev/terraform-provider-epilot-variable/internal/sdk/models/operations" + speakeasy_listplanmodifier "github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/planmodifiers/listplanmodifier" + speakeasy_objectplanmodifier "github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/planmodifiers/objectplanmodifier" + speakeasy_stringplanmodifier "github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/planmodifiers/stringplanmodifier" + tfTypes "github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/provider/types" + "github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/sdk" + "github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/sdk/models/operations" "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator" "github.com/hashicorp/terraform-plugin-framework/path" "github.com/hashicorp/terraform-plugin-framework/resource" diff --git a/internal/provider/customvariable_resource_sdk.go b/internal/provider/customvariable_resource_sdk.go index 3e897f5..013299f 100644 --- a/internal/provider/customvariable_resource_sdk.go +++ b/internal/provider/customvariable_resource_sdk.go @@ -3,8 +3,8 @@ package provider import ( - tfTypes "github.com/epilot-dev/terraform-provider-epilot-variable/internal/provider/types" - "github.com/epilot-dev/terraform-provider-epilot-variable/internal/sdk/models/shared" + tfTypes "github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/provider/types" + "github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/sdk/models/shared" "github.com/hashicorp/terraform-plugin-framework/types" ) diff --git a/internal/provider/provider.go b/internal/provider/provider.go index 93f95b5..ef684bf 100644 --- a/internal/provider/provider.go +++ b/internal/provider/provider.go @@ -4,8 +4,8 @@ package provider import ( "context" - "github.com/epilot-dev/terraform-provider-epilot-variable/internal/sdk" - "github.com/epilot-dev/terraform-provider-epilot-variable/internal/sdk/models/shared" + "github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/sdk" + "github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/sdk/models/shared" "github.com/hashicorp/terraform-plugin-framework/datasource" "github.com/hashicorp/terraform-plugin-framework/provider" "github.com/hashicorp/terraform-plugin-framework/provider/schema" @@ -14,28 +14,28 @@ import ( "net/http" ) -var _ provider.Provider = &EpilotVariableProvider{} +var _ provider.Provider = &EpilotCustomVariableProvider{} -type EpilotVariableProvider struct { +type EpilotCustomVariableProvider struct { // version is set to the provider version on release, "dev" when the // provider is built and ran locally, and "test" when running acceptance // testing. version string } -// EpilotVariableProviderModel describes the provider data model. -type EpilotVariableProviderModel struct { +// EpilotCustomVariableProviderModel describes the provider data model. +type EpilotCustomVariableProviderModel struct { ServerURL types.String `tfsdk:"server_url"` EpilotAuth types.String `tfsdk:"epilot_auth"` EpilotOrg types.String `tfsdk:"epilot_org"` } -func (p *EpilotVariableProvider) Metadata(ctx context.Context, req provider.MetadataRequest, resp *provider.MetadataResponse) { - resp.TypeName = "epilot-variable" +func (p *EpilotCustomVariableProvider) Metadata(ctx context.Context, req provider.MetadataRequest, resp *provider.MetadataResponse) { + resp.TypeName = "epilot-custom-variable" resp.Version = p.version } -func (p *EpilotVariableProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse) { +func (p *EpilotCustomVariableProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse) { resp.Schema = schema.Schema{ Description: `Template Variables API: API to provide variables for email and document templates.`, Attributes: map[string]schema.Attribute{ @@ -56,8 +56,8 @@ func (p *EpilotVariableProvider) Schema(ctx context.Context, req provider.Schema } } -func (p *EpilotVariableProvider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse) { - var data EpilotVariableProviderModel +func (p *EpilotCustomVariableProvider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse) { + var data EpilotCustomVariableProviderModel resp.Diagnostics.Append(req.Config.Get(ctx, &data)...) @@ -99,13 +99,13 @@ func (p *EpilotVariableProvider) Configure(ctx context.Context, req provider.Con resp.ResourceData = client } -func (p *EpilotVariableProvider) Resources(ctx context.Context) []func() resource.Resource { +func (p *EpilotCustomVariableProvider) Resources(ctx context.Context) []func() resource.Resource { return []func() resource.Resource{ NewCustomVariableResource, } } -func (p *EpilotVariableProvider) DataSources(ctx context.Context) []func() datasource.DataSource { +func (p *EpilotCustomVariableProvider) DataSources(ctx context.Context) []func() datasource.DataSource { return []func() datasource.DataSource{ NewCustomVariableDataSource, } @@ -113,7 +113,7 @@ func (p *EpilotVariableProvider) DataSources(ctx context.Context) []func() datas func New(version string) func() provider.Provider { return func() provider.Provider { - return &EpilotVariableProvider{ + return &EpilotCustomVariableProvider{ version: version, } } diff --git a/internal/provider/utils.go b/internal/provider/utils.go index 58a7811..3e151fa 100644 --- a/internal/provider/utils.go +++ b/internal/provider/utils.go @@ -6,7 +6,7 @@ import ( "context" "encoding/json" "fmt" - tfReflect "github.com/epilot-dev/terraform-provider-epilot-variable/internal/provider/reflect" + tfReflect "github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/provider/reflect" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/path" "github.com/hashicorp/terraform-plugin-framework/resource" diff --git a/internal/sdk/customvariables.go b/internal/sdk/customvariables.go index da355a7..0af47f5 100644 --- a/internal/sdk/customvariables.go +++ b/internal/sdk/customvariables.go @@ -7,12 +7,12 @@ import ( "context" "fmt" "github.com/cenkalti/backoff/v4" - "github.com/epilot-dev/terraform-provider-epilot-variable/internal/sdk/internal/hooks" - "github.com/epilot-dev/terraform-provider-epilot-variable/internal/sdk/internal/utils" - "github.com/epilot-dev/terraform-provider-epilot-variable/internal/sdk/models/errors" - "github.com/epilot-dev/terraform-provider-epilot-variable/internal/sdk/models/operations" - "github.com/epilot-dev/terraform-provider-epilot-variable/internal/sdk/models/shared" - "github.com/epilot-dev/terraform-provider-epilot-variable/internal/sdk/retry" + "github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/sdk/internal/hooks" + "github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/sdk/internal/utils" + "github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/sdk/models/errors" + "github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/sdk/models/operations" + "github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/sdk/models/shared" + "github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/sdk/retry" "io" "net/http" "net/url" diff --git a/internal/sdk/internal/utils/form.go b/internal/sdk/internal/utils/form.go index 626759b..19dcb76 100644 --- a/internal/sdk/internal/utils/form.go +++ b/internal/sdk/internal/utils/form.go @@ -12,7 +12,7 @@ import ( "github.com/ericlagergren/decimal" - "github.com/epilot-dev/terraform-provider-epilot-variable/internal/sdk/types" + "github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/sdk/types" ) func populateForm(paramName string, explode bool, objType reflect.Type, objValue reflect.Value, delimiter string, getFieldName func(reflect.StructField) string) url.Values { diff --git a/internal/sdk/internal/utils/json.go b/internal/sdk/internal/utils/json.go index e34c74c..57e3a4b 100644 --- a/internal/sdk/internal/utils/json.go +++ b/internal/sdk/internal/utils/json.go @@ -13,7 +13,7 @@ import ( "time" "unsafe" - "github.com/epilot-dev/terraform-provider-epilot-variable/internal/sdk/types" + "github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/sdk/types" "github.com/ericlagergren/decimal" ) diff --git a/internal/sdk/internal/utils/pathparams.go b/internal/sdk/internal/utils/pathparams.go index bbb7ea2..9406587 100644 --- a/internal/sdk/internal/utils/pathparams.go +++ b/internal/sdk/internal/utils/pathparams.go @@ -13,7 +13,7 @@ import ( "github.com/ericlagergren/decimal" - "github.com/epilot-dev/terraform-provider-epilot-variable/internal/sdk/types" + "github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/sdk/types" ) func GenerateURL(_ context.Context, serverURL, path string, pathParams interface{}, globals interface{}) (string, error) { diff --git a/internal/sdk/internal/utils/queryparams.go b/internal/sdk/internal/utils/queryparams.go index 68215c1..b21584e 100644 --- a/internal/sdk/internal/utils/queryparams.go +++ b/internal/sdk/internal/utils/queryparams.go @@ -14,7 +14,7 @@ import ( "github.com/ericlagergren/decimal" - "github.com/epilot-dev/terraform-provider-epilot-variable/internal/sdk/types" + "github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/sdk/types" ) func PopulateQueryParams(_ context.Context, req *http.Request, queryParams interface{}, globals interface{}) error { diff --git a/internal/sdk/internal/utils/retries.go b/internal/sdk/internal/utils/retries.go index ce31b65..813d430 100644 --- a/internal/sdk/internal/utils/retries.go +++ b/internal/sdk/internal/utils/retries.go @@ -7,7 +7,7 @@ import ( "errors" "fmt" "github.com/cenkalti/backoff/v4" - "github.com/epilot-dev/terraform-provider-epilot-variable/internal/sdk/retry" + "github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/sdk/retry" "net/http" "net/url" "strconv" diff --git a/internal/sdk/models/operations/getblueprinttableconfig.go b/internal/sdk/models/operations/getblueprinttableconfig.go index cbe6329..7079786 100644 --- a/internal/sdk/models/operations/getblueprinttableconfig.go +++ b/internal/sdk/models/operations/getblueprinttableconfig.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/epilot-dev/terraform-provider-epilot-variable/internal/sdk/models/shared" + "github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/sdk/models/shared" "net/http" ) diff --git a/internal/sdk/models/operations/getcategories.go b/internal/sdk/models/operations/getcategories.go index ef2d7ec..b53c63c 100644 --- a/internal/sdk/models/operations/getcategories.go +++ b/internal/sdk/models/operations/getcategories.go @@ -3,8 +3,8 @@ package operations import ( - "github.com/epilot-dev/terraform-provider-epilot-variable/internal/sdk/internal/utils" - "github.com/epilot-dev/terraform-provider-epilot-variable/internal/sdk/models/shared" + "github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/sdk/internal/utils" + "github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/sdk/models/shared" "net/http" ) diff --git a/internal/sdk/models/operations/getcustomvariable.go b/internal/sdk/models/operations/getcustomvariable.go index ae58621..aa2fec0 100644 --- a/internal/sdk/models/operations/getcustomvariable.go +++ b/internal/sdk/models/operations/getcustomvariable.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/epilot-dev/terraform-provider-epilot-variable/internal/sdk/models/shared" + "github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/sdk/models/shared" "net/http" ) diff --git a/internal/sdk/models/operations/getcustomvariables.go b/internal/sdk/models/operations/getcustomvariables.go index 58447da..dd2379b 100644 --- a/internal/sdk/models/operations/getcustomvariables.go +++ b/internal/sdk/models/operations/getcustomvariables.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/epilot-dev/terraform-provider-epilot-variable/internal/sdk/models/shared" + "github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/sdk/models/shared" "net/http" ) diff --git a/internal/sdk/models/operations/getvariablecontext.go b/internal/sdk/models/operations/getvariablecontext.go index 859f53f..a76d618 100644 --- a/internal/sdk/models/operations/getvariablecontext.go +++ b/internal/sdk/models/operations/getvariablecontext.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/epilot-dev/terraform-provider-epilot-variable/internal/sdk/models/shared" + "github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/sdk/models/shared" "net/http" ) diff --git a/internal/sdk/models/operations/options.go b/internal/sdk/models/operations/options.go index 85e23f7..dc26f62 100644 --- a/internal/sdk/models/operations/options.go +++ b/internal/sdk/models/operations/options.go @@ -4,8 +4,8 @@ package operations import ( "errors" - "github.com/epilot-dev/terraform-provider-epilot-variable/internal/sdk/internal/utils" - "github.com/epilot-dev/terraform-provider-epilot-variable/internal/sdk/retry" + "github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/sdk/internal/utils" + "github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/sdk/retry" "time" ) diff --git a/internal/sdk/models/operations/replacetemplates.go b/internal/sdk/models/operations/replacetemplates.go index cb070fc..57985e2 100644 --- a/internal/sdk/models/operations/replacetemplates.go +++ b/internal/sdk/models/operations/replacetemplates.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/epilot-dev/terraform-provider-epilot-variable/internal/sdk/models/shared" + "github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/sdk/models/shared" "net/http" ) diff --git a/internal/sdk/models/operations/searchcustomvariables.go b/internal/sdk/models/operations/searchcustomvariables.go index 4630817..ed5c5de 100644 --- a/internal/sdk/models/operations/searchcustomvariables.go +++ b/internal/sdk/models/operations/searchcustomvariables.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/epilot-dev/terraform-provider-epilot-variable/internal/sdk/models/shared" + "github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/sdk/models/shared" "net/http" ) diff --git a/internal/sdk/models/operations/searchvariables.go b/internal/sdk/models/operations/searchvariables.go index 068b67f..9e1e9ad 100644 --- a/internal/sdk/models/operations/searchvariables.go +++ b/internal/sdk/models/operations/searchvariables.go @@ -3,8 +3,8 @@ package operations import ( - "github.com/epilot-dev/terraform-provider-epilot-variable/internal/sdk/internal/utils" - "github.com/epilot-dev/terraform-provider-epilot-variable/internal/sdk/models/shared" + "github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/sdk/internal/utils" + "github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/sdk/models/shared" "net/http" ) diff --git a/internal/sdk/models/operations/updatecustomvariable.go b/internal/sdk/models/operations/updatecustomvariable.go index 7db2d88..27c3aed 100644 --- a/internal/sdk/models/operations/updatecustomvariable.go +++ b/internal/sdk/models/operations/updatecustomvariable.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/epilot-dev/terraform-provider-epilot-variable/internal/sdk/models/shared" + "github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/sdk/models/shared" "net/http" ) diff --git a/internal/sdk/models/shared/customvariablessearchparams.go b/internal/sdk/models/shared/customvariablessearchparams.go index 30b8b01..6746835 100644 --- a/internal/sdk/models/shared/customvariablessearchparams.go +++ b/internal/sdk/models/shared/customvariablessearchparams.go @@ -5,7 +5,7 @@ package shared import ( "encoding/json" "fmt" - "github.com/epilot-dev/terraform-provider-epilot-variable/internal/sdk/internal/utils" + "github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/sdk/internal/utils" ) // CustomVariablesSearchParamsType - Variable type diff --git a/internal/sdk/models/shared/variableparameters.go b/internal/sdk/models/shared/variableparameters.go index 75312a1..36b9b03 100644 --- a/internal/sdk/models/shared/variableparameters.go +++ b/internal/sdk/models/shared/variableparameters.go @@ -3,7 +3,7 @@ package shared import ( - "github.com/epilot-dev/terraform-provider-epilot-variable/internal/sdk/internal/utils" + "github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/sdk/internal/utils" ) // ContextData - If context data is avaialble, this data will be used for variable replace. diff --git a/internal/sdk/sdk.go b/internal/sdk/sdk.go index 190e6c9..e43e5a5 100644 --- a/internal/sdk/sdk.go +++ b/internal/sdk/sdk.go @@ -5,10 +5,10 @@ package sdk import ( "context" "fmt" - "github.com/epilot-dev/terraform-provider-epilot-variable/internal/sdk/internal/hooks" - "github.com/epilot-dev/terraform-provider-epilot-variable/internal/sdk/internal/utils" - "github.com/epilot-dev/terraform-provider-epilot-variable/internal/sdk/models/shared" - "github.com/epilot-dev/terraform-provider-epilot-variable/internal/sdk/retry" + "github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/sdk/internal/hooks" + "github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/sdk/internal/utils" + "github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/sdk/models/shared" + "github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/sdk/retry" "net/http" "time" ) @@ -151,7 +151,7 @@ func New(opts ...SDKOption) *SDK { OpenAPIDocVersion: "1.0.0", SDKVersion: "0.0.1", GenVersion: "2.428.1", - UserAgent: "speakeasy-sdk/go 0.0.1 2.428.1 1.0.0 github.com/epilot-dev/terraform-provider-epilot-variable/internal/sdk", + UserAgent: "speakeasy-sdk/go 0.0.1 2.428.1 1.0.0 github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/sdk", Hooks: hooks.New(), }, } diff --git a/internal/sdk/variables.go b/internal/sdk/variables.go index 0862074..62de212 100644 --- a/internal/sdk/variables.go +++ b/internal/sdk/variables.go @@ -7,12 +7,12 @@ import ( "context" "fmt" "github.com/cenkalti/backoff/v4" - "github.com/epilot-dev/terraform-provider-epilot-variable/internal/sdk/internal/hooks" - "github.com/epilot-dev/terraform-provider-epilot-variable/internal/sdk/internal/utils" - "github.com/epilot-dev/terraform-provider-epilot-variable/internal/sdk/models/errors" - "github.com/epilot-dev/terraform-provider-epilot-variable/internal/sdk/models/operations" - "github.com/epilot-dev/terraform-provider-epilot-variable/internal/sdk/models/shared" - "github.com/epilot-dev/terraform-provider-epilot-variable/internal/sdk/retry" + "github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/sdk/internal/hooks" + "github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/sdk/internal/utils" + "github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/sdk/models/errors" + "github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/sdk/models/operations" + "github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/sdk/models/shared" + "github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/sdk/retry" "io" "net/http" "net/url" diff --git a/internal/validators/DateValidator.go b/internal/validators/DateValidator.go index f2a5f05..3940e09 100644 --- a/internal/validators/DateValidator.go +++ b/internal/validators/DateValidator.go @@ -4,7 +4,7 @@ package validators import ( "context" - "github.com/epilot-dev/terraform-provider-epilot-variable/internal/sdk/types" + "github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/sdk/types" "github.com/hashicorp/terraform-plugin-framework-validators/helpers/validatordiag" "github.com/hashicorp/terraform-plugin-framework/schema/validator" ) diff --git a/main.go b/main.go index cba184d..583451e 100644 --- a/main.go +++ b/main.go @@ -7,7 +7,7 @@ import ( "flag" "log" - "github.com/epilot-dev/terraform-provider-epilot-variable/internal/provider" + "github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/provider" "github.com/hashicorp/terraform-plugin-framework/providerserver" ) @@ -15,7 +15,7 @@ import ( // Run the docs generation tool, check its repository for more information on how it works and how docs // can be customized. -//go:generate go run github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs generate --provider-name terraform-provider-epilot-variable --rendered-provider-name terraform-provider-epilot-variable +//go:generate go run github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs generate --provider-name terraform-provider-epilot-custom-variable --rendered-provider-name terraform-provider-epilot-custom-variable var ( // these will be set by the goreleaser configuration @@ -30,7 +30,7 @@ func main() { flag.Parse() opts := providerserver.ServeOpts{ - Address: "registry.terraform.io/epilot-dev/epilot-variable", + Address: "registry.terraform.io/epilot-dev/epilot-custom-variable", Debug: debug, }