From c1a727383f73bc61f11dcf22a0d11a1d65f55e4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Gr=C3=BCbel?= <33207684+gruebel@users.noreply.github.com> Date: Fri, 15 Nov 2019 18:48:57 +0100 Subject: [PATCH] Doc Fix: `azurerm_api_management` swap deprecated fields for valid ones and fix `azurerm_api_management_api_version_set` doc (#4894) --- website/azurerm.erb | 2 +- ...api_management_api_version_set.html.markdown | 17 +++++++---------- .../docs/r/api_management_backend.html.markdown | 5 +---- .../r/api_management_certificate.html.markdown | 5 +---- ...gement_openid_connect_provider.html.markdown | 5 +---- 5 files changed, 11 insertions(+), 23 deletions(-) diff --git a/website/azurerm.erb b/website/azurerm.erb index daf50ad76b4d..75178892fe11 100644 --- a/website/azurerm.erb +++ b/website/azurerm.erb @@ -498,7 +498,7 @@
  • - azurerm_api_management_version_set + azurerm_api_management_api_version_set
  • diff --git a/website/docs/r/api_management_api_version_set.html.markdown b/website/docs/r/api_management_api_version_set.html.markdown index a000ccf0a12d..dbb0748ed192 100644 --- a/website/docs/r/api_management_api_version_set.html.markdown +++ b/website/docs/r/api_management_api_version_set.html.markdown @@ -1,15 +1,15 @@ --- subcategory: "API Management" layout: "azurerm" -page_title: "Azure Resource Manager: azurerm_api_management_version_set" +page_title: "Azure Resource Manager: azurerm_api_management_api_version_set" sidebar_current: "docs-azurerm-resource-api-management-api-version-set" description: |- - Manages an API Version Set within a API Management Service. + Manages an API Version Set within an API Management Service. --- -# azurerm_api_management_version_set +# azurerm_api_management_api_version_set -Manages an API Version Set within a API Management Service. +Manages an API Version Set within an API Management Service. ## Example Usage @@ -26,13 +26,10 @@ resource "azurerm_api_management" "example" { publisher_name = "pub1" publisher_email = "pub1@email.com" - sku { - name = "Developer" - capacity = 1 - } + sku_name = "Developer_1" } -resource "azurerm_api_management_version_set" "example" { +resource "azurerm_api_management_api_version_set" "example" { name = "example-apimapi-1.0.0" resource_group_name = "${azurerm_resource_group.example.name}" api_management_name = "${azurerm_api_management.example.name}" @@ -79,5 +76,5 @@ In addition to all arguments above, the following attributes are exported: API Version Set can be imported using the `resource id`, e.g. ```shell -terraform import azurerm_api_management_version_set.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-resources/providers/Microsoft.ApiManagement/service/example-apim/api-version-sets/example-apimp +terraform import azurerm_api_management_api_version_set.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-resources/providers/Microsoft.ApiManagement/service/example-apim/api-version-sets/example-apimp ``` diff --git a/website/docs/r/api_management_backend.html.markdown b/website/docs/r/api_management_backend.html.markdown index 20b82811f462..b24fe01b80b6 100644 --- a/website/docs/r/api_management_backend.html.markdown +++ b/website/docs/r/api_management_backend.html.markdown @@ -26,10 +26,7 @@ resource "azurerm_api_management" "example" { publisher_name = "My Company" publisher_email = "company@terraform.io" - sku { - name = "Developer" - capacity = 1 - } + sku_name = "Developer_1" } resource "azurerm_api_management_backend" "example" { diff --git a/website/docs/r/api_management_certificate.html.markdown b/website/docs/r/api_management_certificate.html.markdown index 61842263eeca..2fb76e3c6763 100644 --- a/website/docs/r/api_management_certificate.html.markdown +++ b/website/docs/r/api_management_certificate.html.markdown @@ -26,10 +26,7 @@ resource "azurerm_api_management" "example" { publisher_name = "My Company" publisher_email = "company@terraform.io" - sku { - name = "Developer" - capacity = 1 - } + sku_name = "Developer_1" } resource "azurerm_api_management_certificate" "example" { diff --git a/website/docs/r/api_management_openid_connect_provider.html.markdown b/website/docs/r/api_management_openid_connect_provider.html.markdown index edc0ad359599..6fd1c30d07e8 100644 --- a/website/docs/r/api_management_openid_connect_provider.html.markdown +++ b/website/docs/r/api_management_openid_connect_provider.html.markdown @@ -26,10 +26,7 @@ resource "azurerm_api_management" "example" { publisher_name = "My Company" publisher_email = "company@terraform.io" - sku { - name = "Developer" - capacity = 1 - } + sku_name = "Developer_1" } resource "azurerm_api_management_openid_connect_provider" "example" {