Skip to content

Commit

Permalink
Merge pull request #3351 from hashicorp/data/regeneration-from-298bce…
Browse files Browse the repository at this point in the history
…80e2fd5959bd006eb342bae31da5b3090d-rest-api-specs

Data: Rest Api Specs - regenerating based on 298bce8
  • Loading branch information
tombuildsstuff authored Nov 15, 2023
2 parents 298bce8 + e6a63c3 commit 3a2b2f4
Show file tree
Hide file tree
Showing 30 changed files with 364 additions and 42 deletions.

This file was deleted.

This file was deleted.

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
}

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
}

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
}
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"
}
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
}

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}"
}
}

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
}
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
}

This file was deleted.

This file was deleted.

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
}

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]
}
}

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
}
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
}
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
}

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"
}
}

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
}
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
}

This file was deleted.

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
}

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]
}
}

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
}
Loading

0 comments on commit 3a2b2f4

Please sign in to comment.