Skip to content

Commit 018b32b

Browse files
m-pizarrohjaraujof
authored andcommitted
feat(azure): rename tables and properties to fix postgres long names errors
1 parent 77b7601 commit 018b32b

37 files changed

Lines changed: 669 additions & 478 deletions

File tree

src/enums/schemasMap.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export default {
3838
[services.cosmosDb]: 'azureCosmosDb',
3939
[services.dataCollectionRule]: 'azureDataCollectionRule',
4040
[services.dataFactory]: 'azureDataFactory',
41-
[services.databaseManagedSqlInstance]: 'azureDatabaseManagedSqlInstance',
41+
[services.databaseManagedSqlInstance]: 'azureDbManagedSqlInstance',
4242
[services.databaseMySql]: 'azureDatabaseMySql',
4343
[services.databasePostgreSql]: 'azureDatabasePostgreSql',
4444
[services.databaseSqlVm]: 'azureDatabaseSqlVm',
@@ -90,7 +90,7 @@ export default {
9090
[services.synapseSqlPools]: 'azureSynapseSqlPool',
9191
[services.synapseWorkspaces]: 'azureSynapseWorkspace',
9292
[services.trafficManagerProfile]: 'azureTrafficManagerProfile',
93-
[services.virtualMachineScaleSet]: 'azureVirtualMachineScaleSet',
93+
[services.virtualMachineScaleSet]: 'azureVmScaleSet',
9494
[services.virtualMachine]: 'azureVirtualMachine',
9595
[services.virtualNetwork]: 'azureVirtualNetwork',
9696
tag: 'azureTag',

src/services/appServiceWebApp/schema.graphql

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ type azureAppServiceWebAppSiteConfigVirtualDirectory
5454
physicalPath: String @search(by: [hash, regexp])
5555
}
5656

57-
type azureAppServiceWebAppSiteConfigVirtualApplication
57+
type azureAppServiceWebAppSiteConfigVirtualApp
5858
@generate(
5959
query: { get: false, query: true, aggregate: false }
6060
mutation: { add: false, delete: false }
@@ -213,7 +213,7 @@ type azureAppServiceWebAppSiteConfigSlowRequestsBasedTriggers
213213
timeInterval: String @search(by: [hash, regexp])
214214
}
215215

216-
type azureAppServiceWebAppSiteConfigStatusCodesRangeBasedTrigger
216+
type azureAppServiceWebAppSiteConfigStatusCodes
217217
@generate(
218218
query: { get: false, query: true, aggregate: false }
219219
mutation: { add: false, delete: false }
@@ -227,7 +227,7 @@ type azureAppServiceWebAppSiteConfigStatusCodesRangeBasedTrigger
227227
timeInterval: String @search(by: [hash, regexp])
228228
}
229229

230-
type azureAppServiceWebAppSiteConfigAutoHealTriggers
230+
type azureAppServiceWebAppSiteConfigTriggers
231231
@generate(
232232
query: { get: false, query: true, aggregate: false }
233233
mutation: { add: false, delete: false }
@@ -238,7 +238,7 @@ type azureAppServiceWebAppSiteConfigAutoHealTriggers
238238
statusCodes: [azureAppServiceWebAppSiteConfigStatusCodesBasedTrigger]
239239
slowRequests: azureAppServiceWebAppSiteConfigSlowRequestsBasedTrigger
240240
slowRequestsWithPath: [azureAppServiceWebAppSiteConfigSlowRequestsBasedTriggers]
241-
statusCodesRange: [azureAppServiceWebAppSiteConfigStatusCodesRangeBasedTrigger]
241+
statusCodesRange: [azureAppServiceWebAppSiteConfigStatusCodes]
242242
}
243243

244244
type azureAppServiceWebAppSiteConfigAutoHealCustomAction
@@ -268,7 +268,7 @@ type azureAppServiceWebAppSiteConfigAutoHealRules
268268
mutation: { add: false, delete: false }
269269
subscription: false
270270
) {
271-
triggers: azureAppServiceWebAppSiteConfigAutoHealTriggers
271+
triggers: azureAppServiceWebAppSiteConfigTriggers
272272
actions: azureAppServiceWebAppSiteConfigAutoHealActions
273273
}
274274

@@ -326,7 +326,7 @@ type azureAppServiceWebAppSiteConfig
326326
javaContainerVersion: String @search(by: [hash, regexp])
327327
appCommandLine: String @search(by: [hash, regexp])
328328
managedPipelineMode: String @search(by: [hash, regexp])
329-
virtualApplications: [azureAppServiceWebAppSiteConfigVirtualApplication]
329+
virtualApplications: [azureAppServiceWebAppSiteConfigVirtualApp]
330330
loadBalancing: String @search(by: [hash, regexp])
331331
experiments: azureAppServiceWebAppSiteConfigExperiments
332332
limits: azureAppServiceWebAppSiteConfigLimits

src/services/base/schema.graphql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
interface azureKeyValueProperty
1+
type azureKeyValueProperty
22
@generate(
33
query: { get: false, query: false, aggregate: false }
44
mutation: { add: false, delete: false }
@@ -20,7 +20,7 @@ interface azureNameValueProperty
2020
value: String @search(by: [hash, regexp])
2121
}
2222

23-
interface azureSubResource
23+
type azureSubResource
2424
@generate(
2525
query: { get: false, query: false, aggregate: false }
2626
mutation: { add: false, delete: false }
@@ -40,7 +40,7 @@ interface azureBaseResource
4040
type: String @search(by: [hash, regexp])
4141
}
4242

43-
interface azureOptionalResource
43+
type azureOptionalResource
4444
@generate(
4545
query: { get: false, query: false, aggregate: false }
4646
mutation: { add: false, delete: false }

src/services/cdnEndpoints/schema.graphql

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ type azureCdnSigningParamIdentifier {
4040
paramName: String @search(by: [hash, regexp])
4141
}
4242

43-
type azureCdnResourceReference {
43+
type azureCdnResourceRef {
4444
id: String! @id @search(by: [hash, regexp])
4545
}
4646

@@ -54,7 +54,7 @@ type azureCdnDeliveryRuleActionParameter {
5454
customFragment: String @search(by: [hash, regexp])
5555
algorithm: String @search(by: [hash, regexp])
5656
parameterNameOverride: [azureCdnSigningParamIdentifier]
57-
originGroup: azureCdnResourceReference
57+
originGroup: azureCdnResourceRef
5858
sourcePattern: String @search(by: [hash, regexp])
5959
destination: String @search(by: [hash, regexp])
6060
preserveUnmatchedPath: Boolean @search
@@ -82,7 +82,7 @@ type azureCdnDeliveryRule {
8282
actions: [azureCdnDeliveryRuleActionAutoGeneratedUnion]
8383
}
8484

85-
type azureCdnEndpointPropertiesUpdateParametersDeliveryPolicy
85+
type azureCdnEndpointDeliveryPolicy
8686
@generate(
8787
query: { get: false, query: true, aggregate: false }
8888
mutation: { add: false, delete: false }
@@ -110,7 +110,7 @@ type azureCdnEndpoint implements azureResource
110110
geoFilters: [azureCdnGeoFilter]
111111
defaultOriginGroupId: String @search(by: [hash, regexp])
112112
urlSigningKeys: [azureCdnUrlSigningKey]
113-
deliveryPolicy: azureCdnEndpointPropertiesUpdateParametersDeliveryPolicy
113+
deliveryPolicy: azureCdnEndpointDeliveryPolicy
114114
webApplicationFirewallPolicyLinkId: String @search(by: [hash, regexp])
115115
hostName: String @search(by: [hash, regexp])
116116
resourceState: String @search(by: [hash, regexp])

src/services/cdnOriginGroups/schema.graphql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ type azureCdnHttpErrorRangeParameters
2121
end: Int @search
2222
}
2323

24-
type azureCdnResponseBasedOriginErrorDetectionParameters
24+
type azureCdnResponseOriginErrorDetection
2525
@generate(
2626
query: { get: false, query: true, aggregate: false }
2727
mutation: { add: false, delete: false }
@@ -49,7 +49,7 @@ type azureCdnOriginGroup implements azureBaseResource
4949
lastModifiedAt: String @search(by: [hash, regexp])
5050
healthProbeSettings: azureCdnHealthProbeParameters
5151
trafficRestorationTimeToHealedOrNewEndpointsInMinutes: Int @search
52-
responseBasedOriginErrorDetectionSettings: azureCdnResponseBasedOriginErrorDetectionParameters
52+
responseBasedOriginErrorDetectionSettings: azureCdnResponseOriginErrorDetection
5353
resourceState: String @search(by: [hash, regexp])
5454
provisioningState: String @search(by: [hash, regexp])
5555
resourceGroup: [azureResourceGroup] @hasInverse(field: cdnOriginGroups)

src/services/cognitiveServicesAccount/schema.graphql

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,12 @@ type azureCognitiveServicesAccountPrivateEndpointConnection
108108
lastModifiedByType: String @search(by: [hash, regexp])
109109
lastModifiedAt: DateTime @search(by: [day])
110110
privateEndpointId: String @search(by: [hash, regexp])
111-
privateLinkServiceConnectionState: azureCognitiveServicesAccountPrivateEndpointServiceConnectionStatus
111+
privateLinkServiceConnectionState: azureCognitiveServicesAccountConnStatus
112112
provisioningState: String @search(by: [hash, regexp])
113113
groupIds: [String] @search(by: [hash, regexp])
114114
}
115115

116-
type azureCognitiveServicesAccountPrivateEndpointServiceConnectionStatus
116+
type azureCognitiveServicesAccountConnStatus
117117
@generate(
118118
query: { get: false, query: true, aggregate: false }
119119
mutation: { add: false, delete: false }
@@ -200,14 +200,16 @@ type azureCognitiveServicesAccountCapability implements azureNameValueProperty
200200
id: String! @id @search(by: [hash])
201201
}
202202

203-
type azureCognitiveServicesAccountEndpoint implements azureKeyValueProperty
203+
type azureCognitiveServicesAccountEndpoint
204204
@generate(
205205
query: { get: false, query: true, aggregate: false }
206206
mutation: { add: false, delete: false }
207207
subscription: false
208208
)
209209
@key(fields: "id") {
210210
id: String! @id @search(by: [hash])
211+
key: String @search(by: [hash, regexp])
212+
value: String @search(by: [hash, regexp])
211213
}
212214

213215
type azureCognitiveServicesAccount implements azureResource

src/services/containerRegistry/schema.graphql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
type azureContainerRegistryPrivateEndpointConnection
1+
type azureContainerRegistryPrivateEndpoint
22
@generate(
33
query: { get: false, query: true, aggregate: false }
44
mutation: { add: false, delete: false }
@@ -145,7 +145,7 @@ type azureContainerRegistry implements azureResource
145145
encryption: azureContainerRegistryEncryption
146146
dataEndpointEnabled: Boolean @search
147147
dataEndpointHostNames: [String] @search(by: [hash, regexp])
148-
privateEndpointConnections: [azureContainerRegistryPrivateEndpointConnection]
148+
privateEndpointConnections: [azureContainerRegistryPrivateEndpoint]
149149
publicNetworkAccess: String @search(by: [hash, regexp])
150150
networkRuleBypassOptions: String @search(by: [hash, regexp])
151151
zoneRedundancy: String @search(by: [hash, regexp])

src/services/cosmosDb/schema.graphql

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ type azureCosmosDbVirtualNetworkRule
9898
ignoreMissingVNetServiceEndpoint: Boolean @search
9999
}
100100

101-
type azureCosmosDbPrivateLinkServiceConnectionStateProperty
101+
type azureCosmosDbPrivateLinkState
102102
@generate(
103103
query: { get: false, query: true, aggregate: false }
104104
mutation: { add: false, delete: false }
@@ -109,7 +109,7 @@ type azureCosmosDbPrivateLinkServiceConnectionStateProperty
109109
actionsRequired: String @search(by: [hash, regexp])
110110
}
111111

112-
type azureCosmosDbPrivateEndpointConnection
112+
type azureCosmosDbPrivateEndpointConn
113113
@generate(
114114
query: { get: false, query: true, aggregate: false }
115115
mutation: { add: false, delete: false }
@@ -119,7 +119,7 @@ type azureCosmosDbPrivateEndpointConnection
119119
name: String @search(by: [hash, regexp])
120120
type: String @search(by: [hash, regexp])
121121
privateEndpointId: String @search(by: [hash, regexp])
122-
privateLinkServiceConnectionState: azureCosmosDbPrivateLinkServiceConnectionStateProperty
122+
privateLinkServiceConnectionState: azureCosmosDbPrivateLinkState
123123
groupId: String @search(by: [hash, regexp])
124124
provisioningState: String @search(by: [hash, regexp])
125125
}
@@ -279,7 +279,7 @@ type azureCosmosDb implements azureResource
279279
locations: [azureCosmosDbLocation]
280280
failoverPolicies: [azureCosmosDbFailoverPolicy]
281281
virtualNetworkRules: [azureCosmosDbVirtualNetworkRule]
282-
privateEndpointConnections: [azureCosmosDbPrivateEndpointConnection]
282+
privateEndpointConnections: [azureCosmosDbPrivateEndpointConn]
283283
enableMultipleWriteLocations: Boolean @search
284284
enableCassandraConnector: Boolean @search
285285
connectorOffer: String @search(by: [hash, regexp])

src/services/dataCollectionRule/schema.graphql

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
type azureDataCollectionRuleDataSourcesSpec {
1+
type azureDataCollectionRuleDataSources {
22
performanceCounters: [azureDataCollectionRulePerfCounterDataSource]
33
windowsEventLogs: [azureDataCollectionRuleWindowsEventLogDataSource]
44
syslog: [azureDataCollectionRuleSyslogDataSource]
@@ -56,7 +56,7 @@ type azureDataCollectionRuleExtensionDataSource
5656
name: String @search(by: [hash, regexp])
5757
}
5858

59-
type azureDataCollectionRuleDestinationsSpec {
59+
type azureDataCollectionRuleDestinations {
6060
logAnalyticsDestinations: [azureDataCollectionRuleLogAnalyticsDestination]
6161
azureMonitorMetricsName: String @search(by: [hash, regexp])
6262
}
@@ -99,8 +99,8 @@ type azureDataCollectionRule implements azureResource
9999
lastModifiedAt: String @search(by: [hash, regexp])
100100
description: String @search(by: [hash, regexp])
101101
immutableId: String @search(by: [hash, regexp])
102-
dataSources: azureDataCollectionRuleDataSourcesSpec
103-
destinations: azureDataCollectionRuleDestinationsSpec
102+
dataSources: azureDataCollectionRuleDataSources
103+
destinations: azureDataCollectionRuleDestinations
104104
dataFlows: [azureDataCollectionRuleDataFlow]
105105
provisioningState: String @search(by: [hash, regexp])
106106
resourceGroup: [azureResourceGroup] @hasInverse(field: dataCollectionRules)

src/services/databaseManagedSqlInstance/format.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import cuid from 'cuid'
2-
import { AzureDatabaseManagedSqlInstance } from '../../types/generated'
2+
import { AzureDbManagedSqlInstance } from '../../types/generated'
33
import { formatTagsFromMap } from '../../utils/format'
44
import { RawAzureDatabaseManagedSqlInstance } from './data'
55

@@ -11,7 +11,7 @@ export default ({
1111
service: RawAzureDatabaseManagedSqlInstance
1212
account: string
1313
region: string
14-
}): AzureDatabaseManagedSqlInstance => {
14+
}): AzureDbManagedSqlInstance => {
1515
const {
1616
id,
1717
name,

0 commit comments

Comments
 (0)