-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3351 from hashicorp/data/regeneration-from-298bce…
…80e2fd5959bd006eb342bae31da5b3090d-rest-api-specs Data: Rest Api Specs - regenerating based on 298bce8
- Loading branch information
Showing
30 changed files
with
364 additions
and
42 deletions.
There are no files selected for viewing
7 changes: 0 additions & 7 deletions
7
.../ContainerService/Terraform/KubernetesClusterTrustedAccessRoleBinding-Resource-Tests.json
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
...ns/resource-manager/ContainerService/Terraform/KubernetesFleetManager-Resource-Tests.json
This file was deleted.
Oops, something went wrong.
13 changes: 13 additions & 0 deletions
13
...Service/Terraform/Tests/KubernetesClusterTrustedAccessRoleBinding-Resource-Basic-Test.hcl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
|
||
provider "azurerm" { | ||
features {} | ||
} | ||
|
||
resource "azurerm_kubernetes_cluster_trusted_access_role_binding" "test" { | ||
kubernetes_cluster_id = azurerm_kubernetes_cluster.test.id | ||
name = "acctestkctarb-${var.random_string}" | ||
roles = ["Microsoft.MachineLearningServices/workspaces/mlworkload"] | ||
source_resource_id = azurerm_machine_learning_workspace.test.id | ||
} | ||
|
13 changes: 13 additions & 0 deletions
13
...vice/Terraform/Tests/KubernetesClusterTrustedAccessRoleBinding-Resource-Complete-Test.hcl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
|
||
provider "azurerm" { | ||
features {} | ||
} | ||
|
||
resource "azurerm_kubernetes_cluster_trusted_access_role_binding" "test" { | ||
kubernetes_cluster_id = azurerm_kubernetes_cluster.test.id | ||
name = "acctestkctarb-${var.random_string}" | ||
roles = ["Microsoft.MachineLearningServices/workspaces/mlworkload", "Microsoft.MachineLearningServices/workspaces/inference-v1"] | ||
source_resource_id = azurerm_machine_learning_workspace.test.id | ||
} | ||
|
6 changes: 6 additions & 0 deletions
6
...rraform/Tests/KubernetesClusterTrustedAccessRoleBinding-Resource-Requires-Import-Test.hcl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
resource "azurerm_kubernetes_cluster_trusted_access_role_binding" "import" { | ||
kubernetes_cluster_id = azurerm_kubernetes_cluster_trusted_access_role_binding.test.kubernetes_cluster_id | ||
name = azurerm_kubernetes_cluster_trusted_access_role_binding.test.name | ||
roles = azurerm_kubernetes_cluster_trusted_access_role_binding.test.roles | ||
source_resource_id = azurerm_kubernetes_cluster_trusted_access_role_binding.test.source_resource_id | ||
} |
85 changes: 85 additions & 0 deletions
85
...vice/Terraform/Tests/KubernetesClusterTrustedAccessRoleBinding-Resource-Template-Test.hcl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
variable "primary_location" {} | ||
variable "random_integer" {} | ||
variable "random_string" {} | ||
|
||
resource "azurerm_application_insights" "test" { | ||
name = "acctestai-${var.random_integer}" | ||
location = azurerm_resource_group.test.location | ||
resource_group_name = azurerm_resource_group.test.name | ||
application_type = "web" | ||
} | ||
|
||
|
||
data "azurerm_client_config" "test" {} | ||
|
||
|
||
resource "azurerm_key_vault" "test" { | ||
name = "acctest-${var.random_string}" | ||
location = azurerm_resource_group.test.location | ||
resource_group_name = azurerm_resource_group.test.name | ||
tenant_id = data.azurerm_client_config.test.tenant_id | ||
sku_name = "standard" | ||
soft_delete_retention_days = 7 | ||
} | ||
|
||
|
||
resource "azurerm_key_vault_access_policy" "test" { | ||
key_vault_id = azurerm_key_vault.test.id | ||
tenant_id = data.azurerm_client_config.test.tenant_id | ||
object_id = data.azurerm_client_config.test.object_id | ||
|
||
key_permissions = [ | ||
"Create", | ||
"Get", | ||
"Delete", | ||
"Purge", | ||
"GetRotationPolicy", | ||
] | ||
} | ||
|
||
|
||
resource "azurerm_kubernetes_cluster" "test" { | ||
name = "acctestaks${var.random_string}" | ||
location = azurerm_resource_group.test.location | ||
resource_group_name = azurerm_resource_group.test.name | ||
dns_prefix = "acctestaks${var.random_string}" | ||
|
||
default_node_pool { | ||
name = "default" | ||
node_count = 1 | ||
vm_size = "Standard_DS2_v2" | ||
} | ||
|
||
identity { | ||
type = "SystemAssigned" | ||
} | ||
} | ||
|
||
|
||
resource "azurerm_machine_learning_workspace" "test" { | ||
name = "acctestmlw-${var.random_integer}" | ||
location = azurerm_resource_group.test.location | ||
resource_group_name = azurerm_resource_group.test.name | ||
key_vault_id = azurerm_key_vault.test.id | ||
storage_account_id = azurerm_storage_account.test.id | ||
application_insights_id = azurerm_application_insights.test.id | ||
|
||
identity { | ||
type = "SystemAssigned" | ||
} | ||
} | ||
|
||
|
||
resource "azurerm_resource_group" "test" { | ||
name = "acctestrg-${var.random_integer}" | ||
location = var.primary_location | ||
} | ||
|
||
|
||
resource "azurerm_storage_account" "test" { | ||
name = "acctestsa${var.random_string}" | ||
location = azurerm_resource_group.test.location | ||
resource_group_name = azurerm_resource_group.test.name | ||
account_tier = "Standard" | ||
account_replication_type = "LRS" | ||
} |
12 changes: 12 additions & 0 deletions
12
...e-manager/ContainerService/Terraform/Tests/KubernetesFleetManager-Resource-Basic-Test.hcl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
|
||
|
||
provider "azurerm" { | ||
features {} | ||
} | ||
|
||
resource "azurerm_kubernetes_fleet_manager" "test" { | ||
location = azurerm_resource_group.test.location | ||
name = "acctestkfm-${var.random_string}" | ||
resource_group_name = azurerm_resource_group.test.name | ||
} | ||
|
19 changes: 19 additions & 0 deletions
19
...anager/ContainerService/Terraform/Tests/KubernetesFleetManager-Resource-Complete-Test.hcl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
|
||
|
||
provider "azurerm" { | ||
features {} | ||
} | ||
|
||
resource "azurerm_kubernetes_fleet_manager" "test" { | ||
location = azurerm_resource_group.test.location | ||
name = "acctestkfm-${var.random_string}" | ||
resource_group_name = azurerm_resource_group.test.name | ||
tags = { | ||
environment = "terraform-acctests" | ||
some_key = "some-value" | ||
} | ||
hub_profile { | ||
dns_prefix = "val-${var.random_string}" | ||
} | ||
} | ||
|
5 changes: 5 additions & 0 deletions
5
...ContainerService/Terraform/Tests/KubernetesFleetManager-Resource-Requires-Import-Test.hcl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
resource "azurerm_kubernetes_fleet_manager" "import" { | ||
location = azurerm_kubernetes_fleet_manager.test.location | ||
name = azurerm_kubernetes_fleet_manager.test.name | ||
resource_group_name = azurerm_kubernetes_fleet_manager.test.resource_group_name | ||
} |
8 changes: 8 additions & 0 deletions
8
...anager/ContainerService/Terraform/Tests/KubernetesFleetManager-Resource-Template-Test.hcl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
variable "primary_location" {} | ||
variable "random_integer" {} | ||
variable "random_string" {} | ||
|
||
resource "azurerm_resource_group" "test" { | ||
name = "acctestrg-${var.random_integer}" | ||
location = var.primary_location | ||
} |
7 changes: 0 additions & 7 deletions
7
api-definitions/resource-manager/DevCenter/Terraform/DevCenter-Resource-Tests.json
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
api-definitions/resource-manager/DevCenter/Terraform/DevCenterProject-Resource-Tests.json
This file was deleted.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
api-definitions/resource-manager/DevCenter/Terraform/Tests/DevCenter-Resource-Basic-Test.hcl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
|
||
|
||
provider "azurerm" { | ||
features {} | ||
} | ||
|
||
resource "azurerm_dev_center" "test" { | ||
location = azurerm_resource_group.test.location | ||
name = "acctestdc-${var.random_string}" | ||
resource_group_name = azurerm_resource_group.test.name | ||
} | ||
|
20 changes: 20 additions & 0 deletions
20
...finitions/resource-manager/DevCenter/Terraform/Tests/DevCenter-Resource-Complete-Test.hcl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
|
||
|
||
provider "azurerm" { | ||
features {} | ||
} | ||
|
||
resource "azurerm_dev_center" "test" { | ||
location = azurerm_resource_group.test.location | ||
name = "acctestdc-${var.random_string}" | ||
resource_group_name = azurerm_resource_group.test.name | ||
tags = { | ||
environment = "terraform-acctests" | ||
some_key = "some-value" | ||
} | ||
identity { | ||
type = "SystemAssigned, UserAssigned" | ||
identity_ids = [azurerm_user_assigned_identity.test.id] | ||
} | ||
} | ||
|
5 changes: 5 additions & 0 deletions
5
...ns/resource-manager/DevCenter/Terraform/Tests/DevCenter-Resource-Requires-Import-Test.hcl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
resource "azurerm_dev_center" "import" { | ||
location = azurerm_dev_center.test.location | ||
name = azurerm_dev_center.test.name | ||
resource_group_name = azurerm_dev_center.test.resource_group_name | ||
} |
15 changes: 15 additions & 0 deletions
15
...finitions/resource-manager/DevCenter/Terraform/Tests/DevCenter-Resource-Template-Test.hcl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
variable "primary_location" {} | ||
variable "random_integer" {} | ||
variable "random_string" {} | ||
|
||
resource "azurerm_resource_group" "test" { | ||
name = "acctestrg-${var.random_integer}" | ||
location = var.primary_location | ||
} | ||
|
||
|
||
resource "azurerm_user_assigned_identity" "test" { | ||
name = "acctest-${var.random_integer}" | ||
resource_group_name = azurerm_resource_group.test.name | ||
location = azurerm_resource_group.test.location | ||
} |
13 changes: 13 additions & 0 deletions
13
...tions/resource-manager/DevCenter/Terraform/Tests/DevCenterProject-Resource-Basic-Test.hcl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
|
||
provider "azurerm" { | ||
features {} | ||
} | ||
|
||
resource "azurerm_dev_center_project" "test" { | ||
dev_center_id = azurerm_dev_center.test.id | ||
location = azurerm_resource_group.test.location | ||
name = "acctestdcp-${var.random_string}" | ||
resource_group_name = azurerm_resource_group.test.name | ||
} | ||
|
19 changes: 19 additions & 0 deletions
19
...ns/resource-manager/DevCenter/Terraform/Tests/DevCenterProject-Resource-Complete-Test.hcl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
|
||
|
||
provider "azurerm" { | ||
features {} | ||
} | ||
|
||
resource "azurerm_dev_center_project" "test" { | ||
dev_center_id = azurerm_dev_center.test.id | ||
location = azurerm_resource_group.test.location | ||
name = "acctestdcp-${var.random_string}" | ||
resource_group_name = azurerm_resource_group.test.name | ||
description = "Description for the Dev Center Project" | ||
maximum_dev_boxes_per_user = 21 | ||
tags = { | ||
environment = "terraform-acctests" | ||
some_key = "some-value" | ||
} | ||
} | ||
|
6 changes: 6 additions & 0 deletions
6
...urce-manager/DevCenter/Terraform/Tests/DevCenterProject-Resource-Requires-Import-Test.hcl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
resource "azurerm_dev_center_project" "import" { | ||
dev_center_id = azurerm_dev_center_project.test.dev_center_id | ||
location = azurerm_dev_center_project.test.location | ||
name = azurerm_dev_center_project.test.name | ||
resource_group_name = azurerm_dev_center_project.test.resource_group_name | ||
} |
19 changes: 19 additions & 0 deletions
19
...ns/resource-manager/DevCenter/Terraform/Tests/DevCenterProject-Resource-Template-Test.hcl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
variable "primary_location" {} | ||
variable "random_integer" {} | ||
variable "random_string" {} | ||
|
||
resource "azurerm_dev_center" "test" { | ||
name = "acctestdc-${var.random_string}" | ||
resource_group_name = azurerm_resource_group.test.name | ||
location = azurerm_resource_group.test.location | ||
|
||
identity { | ||
type = "SystemAssigned" | ||
} | ||
} | ||
|
||
|
||
resource "azurerm_resource_group" "test" { | ||
name = "acctestrg-${var.random_integer}" | ||
location = var.primary_location | ||
} |
7 changes: 0 additions & 7 deletions
7
api-definitions/resource-manager/LoadTestService/Terraform/LoadTest-Resource-Tests.json
This file was deleted.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
...nitions/resource-manager/LoadTestService/Terraform/Tests/LoadTest-Resource-Basic-Test.hcl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
|
||
|
||
provider "azurerm" { | ||
features {} | ||
} | ||
|
||
resource "azurerm_load_test" "test" { | ||
location = azurerm_resource_group.test.location | ||
name = "acctestlt-${var.random_string}" | ||
resource_group_name = azurerm_resource_group.test.name | ||
} | ||
|
21 changes: 21 additions & 0 deletions
21
...ions/resource-manager/LoadTestService/Terraform/Tests/LoadTest-Resource-Complete-Test.hcl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
|
||
|
||
provider "azurerm" { | ||
features {} | ||
} | ||
|
||
resource "azurerm_load_test" "test" { | ||
location = azurerm_resource_group.test.location | ||
name = "acctestlt-${var.random_string}" | ||
resource_group_name = azurerm_resource_group.test.name | ||
description = "Description for the Load Test" | ||
tags = { | ||
environment = "terraform-acctests" | ||
some_key = "some-value" | ||
} | ||
identity { | ||
type = "SystemAssigned, UserAssigned" | ||
identity_ids = [azurerm_user_assigned_identity.test.id] | ||
} | ||
} | ||
|
5 changes: 5 additions & 0 deletions
5
...source-manager/LoadTestService/Terraform/Tests/LoadTest-Resource-Requires-Import-Test.hcl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
resource "azurerm_load_test" "import" { | ||
location = azurerm_load_test.test.location | ||
name = azurerm_load_test.test.name | ||
resource_group_name = azurerm_load_test.test.resource_group_name | ||
} |
Oops, something went wrong.