Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(azure): rename tables and properties to fix postgres long names … #46

Open
wants to merge 8 commits into
base: alpha
Choose a base branch
from
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"@azure/identity": "^2.0.4",
"@azure/storage-blob": "^12.8.0",
"@azure/storage-queue": "^12.9.0",
"@cloudgraph/sdk": "0.20.0",
"@cloudgraph/sdk": "0.22.0",
"@graphql-tools/load-files": "^6.5.3",
"@graphql-tools/merge": "^8.2.3",
"@microsoft/microsoft-graph-client": "^3.0.2",
Expand Down
6 changes: 3 additions & 3 deletions src/enums/schemasMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default {
[services.adServicePrincipal]: 'azureADServicePrincipal',
[services.adUser]: 'azureADUser',
[services.aksManagedCluster]: 'azureAksManagedCluster',
[services.applicationGateway]: 'azureApplicationGateway',
[services.appGateway]: 'azureAppGateway',
[services.appServiceEnvironment]: 'azureAppServiceEnvironment',
// [services.appServiceKubeEnvironment]: 'azureAppServiceKubeEnvironment',
[services.appInsights]: 'azureAppInsights',
Expand All @@ -38,7 +38,7 @@ export default {
[services.cosmosDb]: 'azureCosmosDb',
[services.dataCollectionRule]: 'azureDataCollectionRule',
[services.dataFactory]: 'azureDataFactory',
[services.databaseManagedSqlInstance]: 'azureDatabaseManagedSqlInstance',
[services.databaseManagedSqlInstance]: 'azureDbManagedSqlInstance',
[services.databaseMySql]: 'azureDatabaseMySql',
[services.databasePostgreSql]: 'azureDatabasePostgreSql',
[services.databaseSqlVm]: 'azureDatabaseSqlVm',
Expand Down Expand Up @@ -90,7 +90,7 @@ export default {
[services.synapseSqlPools]: 'azureSynapseSqlPool',
[services.synapseWorkspaces]: 'azureSynapseWorkspace',
[services.trafficManagerProfile]: 'azureTrafficManagerProfile',
[services.virtualMachineScaleSet]: 'azureVirtualMachineScaleSet',
[services.virtualMachineScaleSet]: 'azureVmScaleSet',
[services.virtualMachine]: 'azureVirtualMachine',
[services.virtualNetwork]: 'azureVirtualNetwork',
tag: 'azureTag',
Expand Down
2 changes: 1 addition & 1 deletion src/enums/serviceAliases.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
[services.actionGroup]: 'actionGroups',
[services.activityLogAlerts]: 'activityLogAlerts',
[services.aksManagedCluster]: 'aksManagedClusters',
[services.applicationGateway]: 'applicationGateways',
[services.appGateway]: 'appGateways',
[services.appServiceEnvironment]: 'appServiceEnvironments',
[services.appInsights]: 'appInsights',
[services.appServicePlan]: 'appServicePlans',
Expand Down
3 changes: 2 additions & 1 deletion src/enums/serviceMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,9 @@ export default {
[services.adServicePrincipal]: AzureADServicePrincipal,
[services.adUser]: AzureADUser,
[services.aksManagedCluster]: AzureAksManagedCluster,
[services.appGateway]: AzureApplicationGateway,
[services.metricAlert]: AzureMetricAlert,
[services.applicationGateway]: AzureApplicationGateway,
[services.appGateway]: AzureApplicationGateway,
[services.appServiceEnvironment]: AzureAppServiceEnvironment,
// [services.appServiceKubeEnvironment]: AzureAppServiceKubeEnvironment,
[services.appInsights]: AzureAppInsights,
Expand Down
2 changes: 1 addition & 1 deletion src/enums/services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default {
adServicePrincipal: 'adServicePrincipal',
adUser: 'adUser',
aksManagedCluster: 'aksManagedCluster',
applicationGateway: 'applicationGateway',
appGateway: 'appGateway',
appServiceEnvironment: 'appServiceEnvironment',
// appServiceKubeEnvironment: 'appServiceKubeEnvironment',
appInsights: 'appInsights',
Expand Down
2 changes: 1 addition & 1 deletion src/services/aksManagedCluster/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -193,5 +193,5 @@ type azureAksManagedCluster implements azureResource
skuName: String @search(by: [hash, regexp])
skuTier: String @search(by: [hash, regexp])
resourceGroup: [azureResourceGroup] @hasInverse(field: aksManagedClusters)
virtualMachineScaleSets: [azureVirtualMachineScaleSet] @hasInverse(field: aksManagedClusters)
virtualMachineScaleSets: [azureVmScaleSet] @hasInverse(field: aksManagedClusters)
}
12 changes: 6 additions & 6 deletions src/services/appServiceWebApp/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ type azureAppServiceWebAppSiteConfigVirtualDirectory
physicalPath: String @search(by: [hash, regexp])
}

type azureAppServiceWebAppSiteConfigVirtualApplication
type azureAppServiceWebAppSiteConfigVirtualApp
@generate(
query: { get: false, query: true, aggregate: false }
mutation: { add: false, delete: false }
Expand Down Expand Up @@ -213,7 +213,7 @@ type azureAppServiceWebAppSiteConfigSlowRequestsBasedTriggers
timeInterval: String @search(by: [hash, regexp])
}

type azureAppServiceWebAppSiteConfigStatusCodesRangeBasedTrigger
type azureAppServiceWebAppSiteConfigStatusCodes
@generate(
query: { get: false, query: true, aggregate: false }
mutation: { add: false, delete: false }
Expand All @@ -227,7 +227,7 @@ type azureAppServiceWebAppSiteConfigStatusCodesRangeBasedTrigger
timeInterval: String @search(by: [hash, regexp])
}

type azureAppServiceWebAppSiteConfigAutoHealTriggers
type azureAppServiceWebAppSiteConfigTriggers
@generate(
query: { get: false, query: true, aggregate: false }
mutation: { add: false, delete: false }
Expand All @@ -238,7 +238,7 @@ type azureAppServiceWebAppSiteConfigAutoHealTriggers
statusCodes: [azureAppServiceWebAppSiteConfigStatusCodesBasedTrigger]
slowRequests: azureAppServiceWebAppSiteConfigSlowRequestsBasedTrigger
slowRequestsWithPath: [azureAppServiceWebAppSiteConfigSlowRequestsBasedTriggers]
statusCodesRange: [azureAppServiceWebAppSiteConfigStatusCodesRangeBasedTrigger]
statusCodesRange: [azureAppServiceWebAppSiteConfigStatusCodes]
}

type azureAppServiceWebAppSiteConfigAutoHealCustomAction
Expand Down Expand Up @@ -268,7 +268,7 @@ type azureAppServiceWebAppSiteConfigAutoHealRules
mutation: { add: false, delete: false }
subscription: false
) {
triggers: azureAppServiceWebAppSiteConfigAutoHealTriggers
triggers: azureAppServiceWebAppSiteConfigTriggers
actions: azureAppServiceWebAppSiteConfigAutoHealActions
}

Expand Down Expand Up @@ -326,7 +326,7 @@ type azureAppServiceWebAppSiteConfig
javaContainerVersion: String @search(by: [hash, regexp])
appCommandLine: String @search(by: [hash, regexp])
managedPipelineMode: String @search(by: [hash, regexp])
virtualApplications: [azureAppServiceWebAppSiteConfigVirtualApplication]
virtualApplications: [azureAppServiceWebAppSiteConfigVirtualApp]
loadBalancing: String @search(by: [hash, regexp])
experiments: azureAppServiceWebAppSiteConfigExperiments
limits: azureAppServiceWebAppSiteConfigLimits
Expand Down
Loading