Skip to content

Commit

Permalink
Fix Terraform code generation (#23)
Browse files Browse the repository at this point in the history
Closes #19
Closes #22
  • Loading branch information
anthony-c-martin authored Nov 21, 2024
1 parent e6e434f commit 70446d1
Show file tree
Hide file tree
Showing 12 changed files with 379 additions and 74 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -892,3 +892,47 @@ No new or updated resource types.
> |-----|---------|
> | | [mongoClusters](~/microsoft.documentdb/change-log/mongoclusters.md#2024-07-01) |
## 2024-08-15

> [!div class="mx-tableFixed"]
> | New | Updated |
> |-----|---------|
> | | [databaseAccounts](~/microsoft.documentdb/change-log/databaseaccounts.md#2024-08-15) |
> | | [databaseAccounts/gremlinDatabases](~/microsoft.documentdb/change-log/databaseaccounts/gremlindatabases.md#2024-08-15) |
> | | [databaseAccounts/gremlinDatabases/graphs](~/microsoft.documentdb/change-log/databaseaccounts/gremlindatabases/graphs.md#2024-08-15) |
> | | [databaseAccounts/mongodbDatabases](~/microsoft.documentdb/change-log/databaseaccounts/mongodbdatabases.md#2024-08-15) |
> | | [databaseAccounts/mongodbDatabases/collections](~/microsoft.documentdb/change-log/databaseaccounts/mongodbdatabases/collections.md#2024-08-15) |
> | | [databaseAccounts/sqlDatabases](~/microsoft.documentdb/change-log/databaseaccounts/sqldatabases.md#2024-08-15) |
> | | [databaseAccounts/sqlDatabases/containers](~/microsoft.documentdb/change-log/databaseaccounts/sqldatabases/containers.md#2024-08-15) |
> | | [databaseAccounts/tables](~/microsoft.documentdb/change-log/databaseaccounts/tables.md#2024-08-15) |
## 2024-09-01-preview

> [!div class="mx-tableFixed"]
> | New | Updated |
> |-----|---------|
> | [databaseAccounts/chaosFaults](~/microsoft.documentdb/change-log/databaseaccounts/chaosfaults.md#2024-09-01-preview) | [cassandraClusters](~/microsoft.documentdb/change-log/cassandraclusters.md#2024-09-01-preview) |
> | | [databaseAccounts](~/microsoft.documentdb/change-log/databaseaccounts.md#2024-09-01-preview) |
> | | [databaseAccounts/cassandraKeyspaces](~/microsoft.documentdb/change-log/databaseaccounts/cassandrakeyspaces.md#2024-09-01-preview) |
> | | [databaseAccounts/cassandraKeyspaces/tables](~/microsoft.documentdb/change-log/databaseaccounts/cassandrakeyspaces/tables.md#2024-09-01-preview) |
> | | [databaseAccounts/cassandraKeyspaces/tables/throughputSettings](~/microsoft.documentdb/change-log/databaseaccounts/cassandrakeyspaces/tables/throughputsettings.md#2024-09-01-preview) |
> | | [databaseAccounts/cassandraKeyspaces/throughputSettings](~/microsoft.documentdb/change-log/databaseaccounts/cassandrakeyspaces/throughputsettings.md#2024-09-01-preview) |
> | | [databaseAccounts/gremlinDatabases](~/microsoft.documentdb/change-log/databaseaccounts/gremlindatabases.md#2024-09-01-preview) |
> | | [databaseAccounts/gremlinDatabases/graphs](~/microsoft.documentdb/change-log/databaseaccounts/gremlindatabases/graphs.md#2024-09-01-preview) |
> | | [databaseAccounts/gremlinDatabases/graphs/throughputSettings](~/microsoft.documentdb/change-log/databaseaccounts/gremlindatabases/graphs/throughputsettings.md#2024-09-01-preview) |
> | | [databaseAccounts/gremlinDatabases/throughputSettings](~/microsoft.documentdb/change-log/databaseaccounts/gremlindatabases/throughputsettings.md#2024-09-01-preview) |
> | | [databaseAccounts/mongodbDatabases](~/microsoft.documentdb/change-log/databaseaccounts/mongodbdatabases.md#2024-09-01-preview) |
> | | [databaseAccounts/mongodbDatabases/collections](~/microsoft.documentdb/change-log/databaseaccounts/mongodbdatabases/collections.md#2024-09-01-preview) |
> | | [databaseAccounts/mongodbDatabases/collections/throughputSettings](~/microsoft.documentdb/change-log/databaseaccounts/mongodbdatabases/collections/throughputsettings.md#2024-09-01-preview) |
> | | [databaseAccounts/mongodbDatabases/throughputSettings](~/microsoft.documentdb/change-log/databaseaccounts/mongodbdatabases/throughputsettings.md#2024-09-01-preview) |
> | | [databaseAccounts/privateEndpointConnections](~/microsoft.documentdb/change-log/databaseaccounts/privateendpointconnections.md#2024-09-01-preview) |
> | | [databaseAccounts/sqlDatabases](~/microsoft.documentdb/change-log/databaseaccounts/sqldatabases.md#2024-09-01-preview) |
> | | [databaseAccounts/sqlDatabases/containers](~/microsoft.documentdb/change-log/databaseaccounts/sqldatabases/containers.md#2024-09-01-preview) |
> | | [databaseAccounts/sqlDatabases/containers/storedProcedures](~/microsoft.documentdb/change-log/databaseaccounts/sqldatabases/containers/storedprocedures.md#2024-09-01-preview) |
> | | [databaseAccounts/sqlDatabases/containers/throughputSettings](~/microsoft.documentdb/change-log/databaseaccounts/sqldatabases/containers/throughputsettings.md#2024-09-01-preview) |
> | | [databaseAccounts/sqlDatabases/containers/triggers](~/microsoft.documentdb/change-log/databaseaccounts/sqldatabases/containers/triggers.md#2024-09-01-preview) |
> | | [databaseAccounts/sqlDatabases/containers/userDefinedFunctions](~/microsoft.documentdb/change-log/databaseaccounts/sqldatabases/containers/userdefinedfunctions.md#2024-09-01-preview) |
> | | [databaseAccounts/sqlDatabases/throughputSettings](~/microsoft.documentdb/change-log/databaseaccounts/sqldatabases/throughputsettings.md#2024-09-01-preview) |
> | | [databaseAccounts/tables](~/microsoft.documentdb/change-log/databaseaccounts/tables.md#2024-09-01-preview) |
> | | [databaseAccounts/tables/throughputSettings](~/microsoft.documentdb/change-log/databaseaccounts/tables/throughputsettings.md#2024-09-01-preview) |
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ ms.author: tomfitz

This article describes the properties that changed in each API version for [microsoft.costmanagement/exports](~/microsoft.costmanagement/exports.md). It only covers properties that are available during deployments.

## 2024-08-01

No properties added, updated or removed.

## 2023-11-01

No properties added, updated or removed.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,31 @@ ms.author: tomfitz

This article describes the properties that changed in each API version for [microsoft.documentdb/databaseaccounts](~/microsoft.documentdb/databaseaccounts.md). It only covers properties that are available during deployments.

## 2024-09-01-preview

Added:

* [DiagnosticLogSettings](~/microsoft.documentdb/2024-09-01-preview/databaseaccounts.md#diagnosticlogsettings)

Updated:

* [DatabaseAccountCreateUpdatePropertiesOrDatabaseAccountGetProperties](~/microsoft.documentdb/2024-09-01-preview/databaseaccounts.md#databaseaccountcreateupdatepropertiesordatabaseaccountgetproperties): Added property 'capacityMode'
* [DatabaseAccountCreateUpdatePropertiesOrDatabaseAccountGetProperties](~/microsoft.documentdb/2024-09-01-preview/databaseaccounts.md#databaseaccountcreateupdatepropertiesordatabaseaccountgetproperties): Added property 'capacityModeChangeTransitionState'
* [DatabaseAccountCreateUpdatePropertiesOrDatabaseAccountGetProperties](~/microsoft.documentdb/2024-09-01-preview/databaseaccounts.md#databaseaccountcreateupdatepropertiesordatabaseaccountgetproperties): Added property 'defaultPriorityLevel'
* [DatabaseAccountCreateUpdatePropertiesOrDatabaseAccountGetProperties](~/microsoft.documentdb/2024-09-01-preview/databaseaccounts.md#databaseaccountcreateupdatepropertiesordatabaseaccountgetproperties): Added property 'diagnosticLogSettings'
* [DatabaseAccountCreateUpdatePropertiesOrDatabaseAccountGetProperties](~/microsoft.documentdb/2024-09-01-preview/databaseaccounts.md#databaseaccountcreateupdatepropertiesordatabaseaccountgetproperties): Added property 'enableMaterializedViews'
* [DatabaseAccountCreateUpdatePropertiesOrDatabaseAccountGetProperties](~/microsoft.documentdb/2024-09-01-preview/databaseaccounts.md#databaseaccountcreateupdatepropertiesordatabaseaccountgetproperties): Added property 'enablePerRegionPerPartitionAutoscale'
* [DatabaseAccountCreateUpdatePropertiesOrDatabaseAccountGetProperties](~/microsoft.documentdb/2024-09-01-preview/databaseaccounts.md#databaseaccountcreateupdatepropertiesordatabaseaccountgetproperties): Added property 'enablePriorityBasedExecution'
* [RestoreParameters](~/microsoft.documentdb/2024-09-01-preview/databaseaccounts.md#restoreparameters): Added property 'sourceBackupLocation'


## 2024-08-15

Updated:

* [RestoreParameters](~/microsoft.documentdb/2024-08-15/databaseaccounts.md#restoreparameters): Added property 'restoreWithTtlDisabled'


## 2024-05-15

Removed:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -623,12 +623,21 @@ To create a Microsoft.Compute/disks resource, add the following Terraform to you
resource "azapi_resource" "symbolicname" {
type = "Microsoft.Compute/disks@2024-03-02"
name = "string"
extendedLocation = {
location = "string"
sku = {
name = "string"
type = "string"
}
location = "string"
tags = {
{customized property} = "string"
}
zones = [
"string"
]
body = jsonencode({
extendedLocation = {
name = "string"
type = "string"
}
properties = {
burstingEnabled = bool
completionPercent = int
Expand Down Expand Up @@ -712,15 +721,6 @@ resource "azapi_resource" "symbolicname" {
tier = "string"
}
})
sku = {
name = "string"
}
tags = {
{customized property} = "string"
}
zones = [
"string"
]
}
```
## Property values
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ ms.author: tomfitz

> [!div class="op_single_selector" title1="API Versions:"]
> - [Latest](../exports.md)
> - [2024-08-01](../2024-08-01/exports.md)
> - [2023-11-01](../2023-11-01/exports.md)
> - [2023-09-01](../2023-09-01/exports.md)
> - [2023-08-01](../2023-08-01/exports.md)
Expand Down Expand Up @@ -169,6 +170,7 @@ resource symbolicname 'Microsoft.CostManagement/exports@2019-01-01' = {
| ---- | ----------- | ------------ |
| name | The resource name | string (required) |
| properties | The properties of the export. | [ExportProperties](#exportproperties) |
| scope | Use when creating a resource at a scope that is different than the deployment scope. | Set this property to the symbolic name of a resource to apply the [extension resource](/azure/azure-resource-manager/bicep/scope-extension-resources). |

### QueryAggregation

Expand Down Expand Up @@ -613,6 +615,7 @@ resource "azapi_resource" "symbolicname" {
| Name | Description | Value |
| ---- | ----------- | ------------ |
| name | The resource name | string (required) |
| parent_id | The ID of the resource to apply this extension resource to. | string (required) |
| properties | The properties of the export. | [ExportProperties](#exportproperties-2) |
| type | The resource type | "Microsoft.CostManagement/exports@2019-01-01" |

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ ms.author: tomfitz

> [!div class="op_single_selector" title1="API Versions:"]
> - [Latest](../databaseaccounts.md)
> - [2024-09-01-preview](../2024-09-01-preview/databaseaccounts.md)
> - [2024-08-15](../2024-08-15/databaseaccounts.md)
> - [2024-05-15](../2024-05-15/databaseaccounts.md)
> - [2024-05-15-preview](../2024-05-15-preview/databaseaccounts.md)
> - [2024-02-15-preview](../2024-02-15-preview/databaseaccounts.md)
Expand Down Expand Up @@ -879,6 +881,9 @@ resource "azapi_resource" "symbolicname" {
}
kind = "string"
location = "string"
tags = {
{customized property} = "string"
}
body = jsonencode({
properties = {
analyticalStorageConfiguration = {
Expand Down Expand Up @@ -984,9 +989,6 @@ resource "azapi_resource" "symbolicname" {
]
}
})
tags = {
{customized property} = "string"
}
}
```
### BackupPolicy objects
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,9 @@ resource "azapi_resource" "symbolicname" {
type = "Microsoft.KeyVault/vaults@2023-07-01"
name = "string"
location = "string"
tags = {
{customized property} = "string"
}
body = jsonencode({
properties = {
accessPolicies = [
Expand Down Expand Up @@ -532,9 +535,6 @@ resource "azapi_resource" "symbolicname" {
vaultUri = "string"
}
})
tags = {
{customized property} = "string"
}
}
```
## Property values
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,13 +204,13 @@ resource "azapi_resource" "symbolicname" {
name = "string"
location = "string"
managedBy = "string"
tags = {
{customized property} = "string"
}
body = jsonencode({
properties = {
}
})
tags = {
{customized property} = "string"
}
}
```
## Property values
Expand Down
Loading

0 comments on commit 70446d1

Please sign in to comment.