Skip to content

Commit c6bdf92

Browse files
authored
Merge pull request #3 from hattan/fhi
refactor FHI mappings files
2 parents 14b7331 + 183445c commit c6bdf92

26 files changed

+174
-193
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
mapping "azurerm_frontdoor" {
2+
import_path = "azure-rest-api-specs/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-01-01/frontdoor.json"
3+
4+
name = frontDoorNameParameter
5+
resource_group_name = resourceGroupNameParameter
6+
backend_pools_send_receive_timeout_seconds = BackendPoolsSettings.sendRecvTimeoutSeconds
7+
friendly_name = FrontDoorUpdateParameters.friendlyName
8+
}

tools/apispec-rule-gen/mappings/frontdoor.hcl renamed to tools/apispec-rule-gen/mappings/azurerm_frontdoor_firewall_policy.hcl

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
mapping "azurerm_frontdoor" {
2-
import_path = "azure-rest-api-specs/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-01-01/frontdoor.json"
3-
4-
name = frontDoorNameParameter
5-
resource_group_name = resourceGroupNameParameter
6-
backend_pools_send_receive_timeout_seconds = BackendPoolsSettings.sendRecvTimeoutSeconds
7-
friendly_name = FrontDoorUpdateParameters.friendlyName
8-
}
9-
101
mapping "azurerm_frontdoor_firewall_policy" {
112
import_path = "azure-rest-api-specs/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-10-01/webapplicationfirewall.json"
123

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
mapping "azurerm_hdinsight_hadoop_cluster" {
2+
import_path = "azure-rest-api-specs/specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2018-06-01-preview/cluster.json"
3+
4+
name = ClusterNameParameter
5+
resource_group_name = ResourceGroupNameParameter
6+
cluster_version = ClusterCreateProperties.clusterVersion
7+
tier = ClusterCreateProperties.tier
8+
min_tls_version = ClusterCreateProperties.minSupportedTlsVersion
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
mapping "azurerm_hdinsight_hbase_cluster" {
2+
import_path = "azure-rest-api-specs/specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2018-06-01-preview/cluster.json"
3+
4+
name = ClusterNameParameter
5+
resource_group_name = ResourceGroupNameParameter
6+
cluster_version = ClusterCreateProperties.clusterVersion
7+
tier = ClusterCreateProperties.tier
8+
min_tls_version = ClusterCreateProperties.minSupportedTlsVersion
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
mapping "azurerm_hdinsight_interactive_query_cluster" {
2+
import_path = "azure-rest-api-specs/specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2018-06-01-preview/cluster.json"
3+
4+
name = ClusterNameParameter
5+
resource_group_name = ResourceGroupNameParameter
6+
cluster_version = ClusterCreateProperties.clusterVersion
7+
tier = ClusterCreateProperties.tier
8+
min_tls_version = ClusterCreateProperties.minSupportedTlsVersion
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
mapping "azurerm_hdinsight_kafka_cluster" {
2+
import_path = "azure-rest-api-specs/specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2018-06-01-preview/cluster.json"
3+
4+
name = ClusterNameParameter
5+
resource_group_name = ResourceGroupNameParameter
6+
cluster_version = ClusterCreateProperties.clusterVersion
7+
tier = ClusterCreateProperties.tier
8+
min_tls_version = ClusterCreateProperties.minSupportedTlsVersion
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
mapping "azurerm_hdinsight_ml_services_cluster" {
2+
import_path = "azure-rest-api-specs/specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2018-06-01-preview/cluster.json"
3+
4+
name = ClusterNameParameter
5+
resource_group_name = ResourceGroupNameParameter
6+
cluster_version = ClusterCreateProperties.clusterVersion
7+
tier = ClusterCreateProperties.tier
8+
min_tls_version = ClusterCreateProperties.minSupportedTlsVersion
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
mapping "azurerm_hdinsight_rserver_cluster" {
2+
import_path = "azure-rest-api-specs/specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2018-06-01-preview/cluster.json"
3+
4+
name = ClusterNameParameter
5+
resource_group_name = ResourceGroupNameParameter
6+
cluster_version = ClusterCreateProperties.clusterVersion
7+
tier = ClusterCreateProperties.tier
8+
min_tls_version = ClusterCreateProperties.minSupportedTlsVersion
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
mapping "azurerm_hdinsight_spark_cluster" {
2+
import_path = "azure-rest-api-specs/specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2018-06-01-preview/cluster.json"
3+
4+
name = ClusterNameParameter
5+
resource_group_name = ResourceGroupNameParameter
6+
cluster_version = ClusterCreateProperties.clusterVersion
7+
tier = ClusterCreateProperties.tier
8+
min_tls_version = ClusterCreateProperties.minSupportedTlsVersion
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
mapping "azurerm_hdinsight_storm_cluster" {
2+
import_path = "azure-rest-api-specs/specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2018-06-01-preview/cluster.json"
3+
4+
name = ClusterNameParameter
5+
resource_group_name = ResourceGroupNameParameter
6+
cluster_version = ClusterCreateProperties.clusterVersion
7+
tier = ClusterCreateProperties.tier
8+
min_tls_version = ClusterCreateProperties.minSupportedTlsVersion
9+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
mapping "azurerm_iothub" {
2+
import_path = "azure-rest-api-specs/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-03-01/iothub.json"
3+
4+
name = resourceName
5+
resource_group_name = resourceGroupName
6+
event_hub_partition_count = EventHubProperties.partitionCount
7+
event_hub_retention_in_days = EventHubProperties.retentionTimeInDays
8+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
mapping "azurerm_iothub_consumer_group" {
2+
import_path = "azure-rest-api-specs/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-03-01/iothub.json"
3+
4+
name = resourceName
5+
iothub_name = resourceName
6+
resource_group_name = resourceGroupName
7+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
mapping "azurerm_iothub_dps" {
2+
import_path = "azure-rest-api-specs/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-03-01/iothub.json"
3+
4+
name = resourceName
5+
resource_group_name = resourceGroupName
6+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
mapping "azurerm_iothub_dps_certificate" {
2+
import_path = "azure-rest-api-specs/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-03-01/iothub.json"
3+
4+
name = resourceName
5+
resource_group_name = resourceGroupName
6+
iot_dps_name = resourceName
7+
certificate_content = CertificateProperties.certificate
8+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
mapping "azurerm_iothub_dps_shared_access_policy" {
2+
import_path = "azure-rest-api-specs/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-03-01/iothub.json"
3+
4+
name = resourceName
5+
resource_group_name = resourceGroupName
6+
iothub_dps_name = resourceName
7+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
mapping "azurerm_iothub_endpoint_eventhub" {
2+
import_path = "azure-rest-api-specs/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-03-01/iothub.json"
3+
4+
name = resourceName
5+
connection_string = RoutingEventHubProperties.connectionString
6+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
mapping "azurerm_iothub_endpoint_servicebus_queue" {
2+
import_path = "azure-rest-api-specs/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-03-01/iothub.json"
3+
4+
name = resourceName
5+
connection_string = RoutingServiceBusQueueEndpointProperties.connectionString
6+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
mapping "azurerm_iothub_endpoint_servicebus_topic" {
2+
import_path = "azure-rest-api-specs/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-03-01/iothub.json"
3+
4+
name = resourceName
5+
connection_string = RoutingServiceBusTopicEndpointProperties.connectionString
6+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
mapping "azurerm_iothub_endpoint_storage_container" {
2+
import_path = "azure-rest-api-specs/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-03-01/iothub.json"
3+
4+
name = RoutingStorageContainerProperties.name
5+
resource_group_name = RoutingStorageContainerProperties.resourceGroup
6+
iothub_name = resourceName
7+
connection_string = RoutingStorageContainerProperties.connectionString
8+
batch_frequency_in_seconds = RoutingStorageContainerProperties.batchFrequencyInSeconds
9+
max_chunk_size_in_bytes = RoutingStorageContainerProperties.maxChunkSizeInBytes
10+
container_name = RoutingStorageContainerProperties.containerName
11+
encoding = RoutingStorageContainerProperties.encoding
12+
file_name_format = RoutingStorageContainerProperties.fileNameFormat
13+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
mapping "azurerm_iothub_fallback_route" {
2+
import_path = "azure-rest-api-specs/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-03-01/iothub.json"
3+
4+
resource_group_name = resourceGroupName
5+
iothub_name = resourceName
6+
enabled = FallbackRouteProperties.isEnabled
7+
endpoint_names = FallbackRouteProperties.endpointNames
8+
condition = FallbackRouteProperties.condition
9+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
mapping "azurerm_iothub_route" {
2+
import_path = "azure-rest-api-specs/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-03-01/iothub.json"
3+
4+
name = RouteProperties.name
5+
resource_group_name = resourceGroupName
6+
iothub_name = resourceName
7+
source = RouteProperties.source
8+
condition = RouteProperties.condition
9+
endpoint_names = RouteProperties.endpointNames
10+
enabled = RouteProperties.isEnabled
11+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
mapping "azurerm_iothub_shared_access_policy" {
2+
import_path = "azure-rest-api-specs/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-03-01/iothub.json"
3+
4+
name = resourceName
5+
resource_group_name = resourceGroupName
6+
iothub_name = resourceName
7+
}

tools/apispec-rule-gen/mappings/hdinsight.hcl

Lines changed: 0 additions & 79 deletions
This file was deleted.

tools/apispec-rule-gen/mappings/iothub.hcl

Lines changed: 0 additions & 105 deletions
This file was deleted.

0 commit comments

Comments
 (0)