From 4bb66f09c81a5df3bea28c0e44297e21fab6b5df Mon Sep 17 00:00:00 2001 From: Preslav Gerchev Date: Wed, 11 Oct 2023 18:08:53 +0300 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Add=20new=20azure=20network=20resou?= =?UTF-8?q?rces=20(#2162)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * ✨ Add new azure network resources - virtual networks - virtual network gateways - load balancers - subnets - nat gateways * Update metadata check-spelling run (pull_request) for preslav/azure-soc2 Signed-off-by: check-spelling-bot on-behalf-of: @check-spelling * add firewall impl + partial firewall policy. * fix typo. * Add basePolicy, childPolicies and firewalls to firewallPolicy. * Add app sec groups. * set proper mondoo min version for new resources. * Add ad for app sec group. --------- Signed-off-by: check-spelling-bot Co-authored-by: Preslav Gerchev --- .github/actions/spelling/expect.txt | 1 + providers/azure/resources/azure.lr | 458 ++ providers/azure/resources/azure.lr.go | 6816 +++++++++++++---- .../azure/resources/azure.lr.manifest.yaml | 343 + providers/azure/resources/monitor.go | 11 - providers/azure/resources/network.go | 1292 +++- 6 files changed, 7269 insertions(+), 1652 deletions(-) diff --git a/.github/actions/spelling/expect.txt b/.github/actions/spelling/expect.txt index 46782905de..83627de3f3 100644 --- a/.github/actions/spelling/expect.txt +++ b/.github/actions/spelling/expect.txt @@ -1,4 +1,5 @@ aks +asn Auths autoaccept autoscaler diff --git a/providers/azure/resources/azure.lr b/providers/azure/resources/azure.lr index 0a7f77a794..82bd702b99 100644 --- a/providers/azure/resources/azure.lr +++ b/providers/azure/resources/azure.lr @@ -180,6 +180,464 @@ private azure.subscription.networkService { publicIpAddresses() []azure.subscription.networkService.ipAddress // List of Bastion hosts bastionHosts() []azure.subscription.networkService.bastionHost + // List of load balancers + loadBalancers() []azure.subscription.networkService.loadBalancer + // List of NAT gateways + natGateways() []azure.subscription.networkService.natGateway + // List of virtual networks + virtualNetworks() []azure.subscription.networkService.virtualNetwork + // List of virtual network gateways + virtualNetworkGateways() []azure.subscription.networkService.virtualNetworkGateway + // List of network firewalls + firewalls() []azure.subscription.networkService.firewall + // List of firewall policies + firewallPolicies() []azure.subscription.networkService.firewallPolicy + // List of application security groups + applicationSecurityGroups() []azure.subscription.networkService.appSecurityGroup +} + +// Azure Network Virtual Network Gateway +azure.subscription.networkService.virtualNetworkGateway @defaults("id name location") { + // Virtual Network Gateway ID + id string + // Virtual Network Gateway name + name string + // Virtual Network Gateway location + location string + // Virtual Network Gateway tags + tags map[string]string + // Virtual Network Gateway resource type + type string + // Virtual Network Gateway etag + etag string + // Virtual Network Gateway properties + properties dict + // Whether the virtual network gateway is active + active bool + // Whether BGP is enabled for this virtual network gateway + enableBgp bool + // Whether BGP route translation is enabled for this virtual network gateway + enableBgpRouteTranslationForNat bool + // Whether DNS forwarding is enabled for this virtual network gateway + enableDNSForwarding bool + // Whether private IP needs to be enabled on this gateway for connections + enablePrivateIPAddress bool + // Whether IP sec replay protection is disabled for this virtual network gateway + disableIPSecReplayProtection bool + // Virtual Network Gateway provisioning state + provisioningState string + // The IP address allocated by the gateway to which DNS requests can be sent + inboundDNSForwardingEndpoint string + // Virtual Network Gateway SKU name + skuName string + // Virtual Network Gateway SKU capacity + skuCapacity int + // A list of address blocks reserved for this virtual network in CIDR notation + addressPrefixes []string + // Virtual Network Gateway type + gatewayType string + // Virtual Network Gateway generation + vpnGatewayGeneration string + // Virtual Network Gateway VPN type + vpnType string + // Virtual Network Gateway IP configurations + ipConfigurations []azure.subscription.networkService.virtualNetworkGateway.ipConfig + // Virtual Network Gateway BGP settings + bgpSettings azure.subscription.networkService.bgpSettings + // Virtual Network Gateway NAT rules + natRules []azure.subscription.networkService.virtualNetworkGateway.natRule + // applicable connections the gateway + connections() []azure.subscription.networkService.virtualNetworkGateway.connection + // The VPN client configuration. Only set if P2S for the gateway is configured + vpnClientConfiguration dict +} + +// Azure Network Application Security Group +azure.subscription.networkService.appSecurityGroup @defaults("id name location") { + // Application Security Group ID + id string + // Application Security Group name + name string + // Application Security Group location + location string + // Application Security Group tags + tags map[string]string + // Application Security Group type + type string + // Application Security Group etag + etag string + // Application Security Group properties + properties dict +} + +// Azure Network Firewall +azure.subscription.networkService.firewall @defaults("id name location") { + // Firewall ID + id string + // Firewall name + name string + // Firewall location + location string + // Firewall tags + tags map[string]string + // Firewall type + type string + // Firewall etag + etag string + // Firewall properties + properties dict + // Firewall provisioning state + provisioningState string + // Firewall SKU name + skuName string + // Firewall SKU tier + skuTier string + // Firewall threat intel mode + threatIntelMode string + // The policy, associated with this firewall + policy() azure.subscription.networkService.firewallPolicy + // List of IP configurations for the firewall + ipConfigurations []azure.subscription.networkService.firewall.ipConfig + // The IP configuration for the firewall, used for management traffic + managementIpConfiguration azure.subscription.networkService.firewall.ipConfig + // List of network rules for the firewall + networkRules []azure.subscription.networkService.firewall.networkRule + // List of NAT rules for the firewall + natRules []azure.subscription.networkService.firewall.natRule + // List of application rules for the firewall + applicationRules []azure.subscription.networkService.firewall.applicationRule +} + +// Azure Network Firewall IP Configuration +private azure.subscription.networkService.firewall.ipConfig @defaults("id name") { + // Firewall IP Configuration id + id string + // Firewall IP Configuration name + name string + // Firewall IP Configuration etag + etag string + // Firewall IP Configuration private IP address + privateIpAddress string + // Firewall IP Configuration properties + properties dict + // The public IP address, associated with this IP configuration + publicIpAddress() azure.subscription.networkService.ipAddress + // The subnet, associated with this IP configuration + subnet() azure.subscription.networkService.subnet +} + +// Azure Network Firewall Network Rule +private azure.subscription.networkService.firewall.networkRule @defaults("id name") { + // Firewall Network Rule id + id string + // Firewall Network Rule name + name string + // Firewall Network Rule etag + etag string + // Firewall Network Rule properties + properties dict +} + +// Azure Network Firewall Application Rule +private azure.subscription.networkService.firewall.applicationRule @defaults("id name") { + // Firewall Application Rule id + id string + // Firewall Application Rule name + name string + // Firewall Application Rule etag + etag string + // Firewall Application Rule properties + properties dict +} + +// Azure Network Firewall NAT Rule +private azure.subscription.networkService.firewall.natRule @defaults("id name") { + // Firewall NAT Rule id + id string + // Firewall NAT Rule name + name string + // Firewall NAT Rule etag + etag string + // Firewall NAT Rule properties + properties dict +} + +// Azure Network Firewall Policy +azure.subscription.networkService.firewallPolicy @defaults("id name location") { + // Firewall Policy ID + id string + // Firewall Policy name + name string + // Firewall Policy location + location string + // Firewall Policy tags + tags map[string]string + // Firewall Policy type + type string + // Firewall Policy etag + etag string + // Firewall Policy properties + properties dict + // Firewall Policy provisioning state + provisioningState string + // The parent firewall policy from which rules are inherited + basePolicy() azure.subscription.networkService.firewallPolicy + // List of child policies this policy is associated with + childPolicies() []azure.subscription.networkService.firewallPolicy + // List of firewalls the policy is associated with + firewalls() []azure.subscription.networkService.firewall +} + +// Azure Network Virtual Network Gateway IP Configuration +private azure.subscription.networkService.virtualNetworkGateway.ipConfig @defaults("id name") { + // Virtual Network Gateway IP Configuration id + id string + // Virtual Network Gateway IP Configuration name + name string + // Virtual Network Gateway IP Configuration etag + etag string + // Virtual Network Gateway IP Configuration private IP address + privateIpAddress string + // Virtual Network Gateway IP Configuration properties + properties dict +} + +// Azure Network Virtual Network Gateway Connection +private azure.subscription.networkService.virtualNetworkGateway.connection @defaults("id name") { + // Virtual Network Gateway Connection id + id string + // Virtual Network Gateway Connection name + name string + // Virtual Network Gateway Connection type + type string + // Virtual Network Gateway Connection etag + etag string + // Virtual Network Gateway Connection properties + properties dict +} + +// Azure Network BGP Settings +private azure.subscription.networkService.bgpSettings @defaults("asn bgpPeeringAddress") { + // BGP Settings id + id string + // BGP Settings speaker ASN + asn int + // The BGP peering address and BGP identifier of this BGP speaker + bgpPeeringAddress string + // The weight added to routes learned from this BGP speaker + peerWeight int + // The BGP peering addresses with IP configuration + bgpPeeringAddressesConfig []azure.subscription.networkService.bgpSettings.ipConfigurationBgpPeeringAddress +} + +// Azure BGP Settings IP Configuration +private azure.subscription.networkService.bgpSettings.ipConfigurationBgpPeeringAddress @defaults("defaultBgpIpAddresses") { + // BGP Settings IP Configuration id + id string + // BGP Settings IP Configuration custom BGP IP addresses + customBgpIpAddresses []string + // BGP Settings IP Configuration id + ipConfigurationId string + // BGP Settings IP Configuration default BGP IP addresses + defaultBgpIpAddresses []string + // BGP Settings IP Configuration tunnel public BGP IP addresses + tunnelIpAddresses []string +} + +// Azure Network NAT gateway +azure.subscription.networkService.natGateway @defaults("id name location") { + // NAT Gateway ID + id string + // NAT Gateway name + name string + // NAT Gateway location + location string + // NAT Gateway tags + tags map[string]string + // NAT Gateway type + type string + // NAT Gateway etag + etag string + // NAT Gateway properties + properties dict + // NAT Gateway availability zones + zones []string + // List of public IP addresses the NAT Gateway is associated with + publicIpAddresses() []azure.subscription.networkService.ipAddress + // List of subnets the NAT Gateway is associated with + subnets() []azure.subscription.networkService.subnet +} + +// Azure Network Subnet +azure.subscription.networkService.subnet @defaults("id name addressPrefix") { + // Subnet id + id string + // Subnet name + name string + // Subnet type + type string + // Subnet etag + etag string + // Subnet address prefix + addressPrefix string + // Subnet properties + properties dict + // The NAT gateway this subnet is associated with, if any + natGateway() azure.subscription.networkService.natGateway +} + +// Azure Network Virtual Network +azure.subscription.networkService.virtualNetwork @defaults("id name location") { + // Virtual Network id + id string + // Virtual Network name + name string + // Virtual Network location + location string + // Virtual Network tags + tags map[string]string + // Virtual Network type + type string + // Virtual Network etag + etag string + // Virtual Network properties + properties dict + // List of subnets within the virtual network + subnets []azure.subscription.networkService.subnet +} + +// Azure Network Load Balancer +azure.subscription.networkService.loadBalancer @defaults("id name location") { + // Load Balancer id + id string + // Load Balancer name + name string + // Load Balancer location + location string + // Load Balancer tags + tags map[string]string + // Load Balancer type + type string + // Load Balancer properties + properties dict + // Load Balancer etag + etag string + // Load Balancer SKU + sku string + // List of Load Balancer probes + probes []azure.subscription.networkService.probe + // List of Load Balancer backend address pools + backendPools []azure.subscription.networkService.backendAddressPool + // List of Load Balancer frontend IP configurations + frontendIpConfigs []azure.subscription.networkService.frontendIpConfig + // List of Load Balancer inbound NAT pools + inboundNatPools []azure.subscription.networkService.inboundNatPool + // List of Load Balancer inbound NAT rules + inboundNatRules []azure.subscription.networkService.inboundNatRule + // List of Load Balancer outbound rules + outboundRules []azure.subscription.networkService.outboundRule + // List of Load Balancer rules + loadBalancerRules []azure.subscription.networkService.loadBalancerRule +} + +// Azure Network Probe +private azure.subscription.networkService.probe @defaults("id name"){ + // Probe id + id string + // Probe name + name string + // Probe type + type string + // Probe etag + etag string + // Probe properties + properties dict +} + +// Azure Network Backend Address Pool +private azure.subscription.networkService.backendAddressPool @defaults("id name") { + // Backend Address Pool id + id string + // Backend Address Pool name + name string + // Backend Address Pool type + type string + // Backend Address Pool etag + etag string + // Backend Address Pool properties + properties dict +} + +// Azure Network Inbound NAT Pool +private azure.subscription.networkService.inboundNatPool @defaults("id name") { + // Inbound NAT Pool id + id string + // Inbound NAT Pool name + name string + // Inbound NAT Pool type + type string + // Inbound NAT Pool etag + etag string + // Inbound NAT Pool properties + properties dict +} + +// Azure Network Inbound NAT Rule +private azure.subscription.networkService.inboundNatRule @defaults("id name") { + // Inbound NAT Rule id + id string + // Inbound NAT Rule name + name string + // Inbound NAT Rule type + type string + // Inbound NAT Rule etag + etag string + // Inbound NAT Rule properties + properties dict +} + +// Azure Network Frontend IP Configuration +private azure.subscription.networkService.frontendIpConfig @defaults("id name") { + // Frontend IP Configuration id + id string + // Frontend IP Configuration name + name string + // Frontend IP Configuration type + type string + // Frontend IP Configuration etag + etag string + // Frontend IP Configuration properties + properties dict + // Frontend IP Configuration zones + zones []string +} + +// Azure Network Load Balancer Rule +private azure.subscription.networkService.loadBalancerRule @defaults("id name") { + // Load Balancer Rule id + id string + // Load Balancer Rule name + name string + // Load Balancer Rule type + type string + // Load Balancer Rule etag + etag string + // Load Balancer Rule properties + properties dict +} + +// Azure Network Outbound Rule +private azure.subscription.networkService.outboundRule @defaults("id name") { + // Outbound Rule id + id string + // Outbound Rule name + name string + // Outbound Rule type + type string + // Outbound Rule etag + etag string + // Outbound Rule properties + properties dict } // Azure Network Interface diff --git a/providers/azure/resources/azure.lr.go b/providers/azure/resources/azure.lr.go index 87a5cebd98..35b1f50ec7 100644 --- a/providers/azure/resources/azure.lr.go +++ b/providers/azure/resources/azure.lr.go @@ -50,6 +50,98 @@ func init() { Init: initAzureSubscriptionNetworkService, Create: createAzureSubscriptionNetworkService, }, + "azure.subscription.networkService.virtualNetworkGateway": { + // to override args, implement: initAzureSubscriptionNetworkServiceVirtualNetworkGateway(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) + Create: createAzureSubscriptionNetworkServiceVirtualNetworkGateway, + }, + "azure.subscription.networkService.appSecurityGroup": { + // to override args, implement: initAzureSubscriptionNetworkServiceAppSecurityGroup(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) + Create: createAzureSubscriptionNetworkServiceAppSecurityGroup, + }, + "azure.subscription.networkService.firewall": { + // to override args, implement: initAzureSubscriptionNetworkServiceFirewall(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) + Create: createAzureSubscriptionNetworkServiceFirewall, + }, + "azure.subscription.networkService.firewall.ipConfig": { + // to override args, implement: initAzureSubscriptionNetworkServiceFirewallIpConfig(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) + Create: createAzureSubscriptionNetworkServiceFirewallIpConfig, + }, + "azure.subscription.networkService.firewall.networkRule": { + // to override args, implement: initAzureSubscriptionNetworkServiceFirewallNetworkRule(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) + Create: createAzureSubscriptionNetworkServiceFirewallNetworkRule, + }, + "azure.subscription.networkService.firewall.applicationRule": { + // to override args, implement: initAzureSubscriptionNetworkServiceFirewallApplicationRule(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) + Create: createAzureSubscriptionNetworkServiceFirewallApplicationRule, + }, + "azure.subscription.networkService.firewall.natRule": { + // to override args, implement: initAzureSubscriptionNetworkServiceFirewallNatRule(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) + Create: createAzureSubscriptionNetworkServiceFirewallNatRule, + }, + "azure.subscription.networkService.firewallPolicy": { + // to override args, implement: initAzureSubscriptionNetworkServiceFirewallPolicy(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) + Create: createAzureSubscriptionNetworkServiceFirewallPolicy, + }, + "azure.subscription.networkService.virtualNetworkGateway.ipConfig": { + // to override args, implement: initAzureSubscriptionNetworkServiceVirtualNetworkGatewayIpConfig(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) + Create: createAzureSubscriptionNetworkServiceVirtualNetworkGatewayIpConfig, + }, + "azure.subscription.networkService.virtualNetworkGateway.connection": { + // to override args, implement: initAzureSubscriptionNetworkServiceVirtualNetworkGatewayConnection(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) + Create: createAzureSubscriptionNetworkServiceVirtualNetworkGatewayConnection, + }, + "azure.subscription.networkService.bgpSettings": { + // to override args, implement: initAzureSubscriptionNetworkServiceBgpSettings(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) + Create: createAzureSubscriptionNetworkServiceBgpSettings, + }, + "azure.subscription.networkService.bgpSettings.ipConfigurationBgpPeeringAddress": { + // to override args, implement: initAzureSubscriptionNetworkServiceBgpSettingsIpConfigurationBgpPeeringAddress(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) + Create: createAzureSubscriptionNetworkServiceBgpSettingsIpConfigurationBgpPeeringAddress, + }, + "azure.subscription.networkService.natGateway": { + // to override args, implement: initAzureSubscriptionNetworkServiceNatGateway(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) + Create: createAzureSubscriptionNetworkServiceNatGateway, + }, + "azure.subscription.networkService.subnet": { + // to override args, implement: initAzureSubscriptionNetworkServiceSubnet(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) + Create: createAzureSubscriptionNetworkServiceSubnet, + }, + "azure.subscription.networkService.virtualNetwork": { + // to override args, implement: initAzureSubscriptionNetworkServiceVirtualNetwork(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) + Create: createAzureSubscriptionNetworkServiceVirtualNetwork, + }, + "azure.subscription.networkService.loadBalancer": { + // to override args, implement: initAzureSubscriptionNetworkServiceLoadBalancer(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) + Create: createAzureSubscriptionNetworkServiceLoadBalancer, + }, + "azure.subscription.networkService.probe": { + // to override args, implement: initAzureSubscriptionNetworkServiceProbe(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) + Create: createAzureSubscriptionNetworkServiceProbe, + }, + "azure.subscription.networkService.backendAddressPool": { + // to override args, implement: initAzureSubscriptionNetworkServiceBackendAddressPool(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) + Create: createAzureSubscriptionNetworkServiceBackendAddressPool, + }, + "azure.subscription.networkService.inboundNatPool": { + // to override args, implement: initAzureSubscriptionNetworkServiceInboundNatPool(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) + Create: createAzureSubscriptionNetworkServiceInboundNatPool, + }, + "azure.subscription.networkService.inboundNatRule": { + // to override args, implement: initAzureSubscriptionNetworkServiceInboundNatRule(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) + Create: createAzureSubscriptionNetworkServiceInboundNatRule, + }, + "azure.subscription.networkService.frontendIpConfig": { + // to override args, implement: initAzureSubscriptionNetworkServiceFrontendIpConfig(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) + Create: createAzureSubscriptionNetworkServiceFrontendIpConfig, + }, + "azure.subscription.networkService.loadBalancerRule": { + // to override args, implement: initAzureSubscriptionNetworkServiceLoadBalancerRule(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) + Create: createAzureSubscriptionNetworkServiceLoadBalancerRule, + }, + "azure.subscription.networkService.outboundRule": { + // to override args, implement: initAzureSubscriptionNetworkServiceOutboundRule(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) + Create: createAzureSubscriptionNetworkServiceOutboundRule, + }, "azure.subscription.networkService.interface": { // to override args, implement: initAzureSubscriptionNetworkServiceInterface(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) Create: createAzureSubscriptionNetworkServiceInterface, @@ -572,6 +664,555 @@ var getDataFields = map[string]func(r plugin.Resource) *plugin.DataRes{ "azure.subscription.networkService.bastionHosts": func(r plugin.Resource) *plugin.DataRes { return (r.(*mqlAzureSubscriptionNetworkService).GetBastionHosts()).ToDataRes(types.Array(types.Resource("azure.subscription.networkService.bastionHost"))) }, + "azure.subscription.networkService.loadBalancers": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkService).GetLoadBalancers()).ToDataRes(types.Array(types.Resource("azure.subscription.networkService.loadBalancer"))) + }, + "azure.subscription.networkService.natGateways": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkService).GetNatGateways()).ToDataRes(types.Array(types.Resource("azure.subscription.networkService.natGateway"))) + }, + "azure.subscription.networkService.virtualNetworks": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkService).GetVirtualNetworks()).ToDataRes(types.Array(types.Resource("azure.subscription.networkService.virtualNetwork"))) + }, + "azure.subscription.networkService.virtualNetworkGateways": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkService).GetVirtualNetworkGateways()).ToDataRes(types.Array(types.Resource("azure.subscription.networkService.virtualNetworkGateway"))) + }, + "azure.subscription.networkService.firewalls": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkService).GetFirewalls()).ToDataRes(types.Array(types.Resource("azure.subscription.networkService.firewall"))) + }, + "azure.subscription.networkService.firewallPolicies": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkService).GetFirewallPolicies()).ToDataRes(types.Array(types.Resource("azure.subscription.networkService.firewallPolicy"))) + }, + "azure.subscription.networkService.applicationSecurityGroups": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkService).GetApplicationSecurityGroups()).ToDataRes(types.Array(types.Resource("azure.subscription.networkService.appSecurityGroup"))) + }, + "azure.subscription.networkService.virtualNetworkGateway.id": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway).GetId()).ToDataRes(types.String) + }, + "azure.subscription.networkService.virtualNetworkGateway.name": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway).GetName()).ToDataRes(types.String) + }, + "azure.subscription.networkService.virtualNetworkGateway.location": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway).GetLocation()).ToDataRes(types.String) + }, + "azure.subscription.networkService.virtualNetworkGateway.tags": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway).GetTags()).ToDataRes(types.Map(types.String, types.String)) + }, + "azure.subscription.networkService.virtualNetworkGateway.type": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway).GetType()).ToDataRes(types.String) + }, + "azure.subscription.networkService.virtualNetworkGateway.etag": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway).GetEtag()).ToDataRes(types.String) + }, + "azure.subscription.networkService.virtualNetworkGateway.properties": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway).GetProperties()).ToDataRes(types.Dict) + }, + "azure.subscription.networkService.virtualNetworkGateway.active": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway).GetActive()).ToDataRes(types.Bool) + }, + "azure.subscription.networkService.virtualNetworkGateway.enableBgp": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway).GetEnableBgp()).ToDataRes(types.Bool) + }, + "azure.subscription.networkService.virtualNetworkGateway.enableBgpRouteTranslationForNat": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway).GetEnableBgpRouteTranslationForNat()).ToDataRes(types.Bool) + }, + "azure.subscription.networkService.virtualNetworkGateway.enableDNSForwarding": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway).GetEnableDNSForwarding()).ToDataRes(types.Bool) + }, + "azure.subscription.networkService.virtualNetworkGateway.enablePrivateIPAddress": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway).GetEnablePrivateIPAddress()).ToDataRes(types.Bool) + }, + "azure.subscription.networkService.virtualNetworkGateway.disableIPSecReplayProtection": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway).GetDisableIPSecReplayProtection()).ToDataRes(types.Bool) + }, + "azure.subscription.networkService.virtualNetworkGateway.provisioningState": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway).GetProvisioningState()).ToDataRes(types.String) + }, + "azure.subscription.networkService.virtualNetworkGateway.inboundDNSForwardingEndpoint": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway).GetInboundDNSForwardingEndpoint()).ToDataRes(types.String) + }, + "azure.subscription.networkService.virtualNetworkGateway.skuName": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway).GetSkuName()).ToDataRes(types.String) + }, + "azure.subscription.networkService.virtualNetworkGateway.skuCapacity": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway).GetSkuCapacity()).ToDataRes(types.Int) + }, + "azure.subscription.networkService.virtualNetworkGateway.addressPrefixes": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway).GetAddressPrefixes()).ToDataRes(types.Array(types.String)) + }, + "azure.subscription.networkService.virtualNetworkGateway.gatewayType": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway).GetGatewayType()).ToDataRes(types.String) + }, + "azure.subscription.networkService.virtualNetworkGateway.vpnGatewayGeneration": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway).GetVpnGatewayGeneration()).ToDataRes(types.String) + }, + "azure.subscription.networkService.virtualNetworkGateway.vpnType": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway).GetVpnType()).ToDataRes(types.String) + }, + "azure.subscription.networkService.virtualNetworkGateway.ipConfigurations": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway).GetIpConfigurations()).ToDataRes(types.Array(types.Resource("azure.subscription.networkService.virtualNetworkGateway.ipConfig"))) + }, + "azure.subscription.networkService.virtualNetworkGateway.bgpSettings": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway).GetBgpSettings()).ToDataRes(types.Resource("azure.subscription.networkService.bgpSettings")) + }, + "azure.subscription.networkService.virtualNetworkGateway.natRules": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway).GetNatRules()).ToDataRes(types.Array(types.Resource("azure.subscription.networkService.virtualNetworkGateway.natRule"))) + }, + "azure.subscription.networkService.virtualNetworkGateway.connections": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway).GetConnections()).ToDataRes(types.Array(types.Resource("azure.subscription.networkService.virtualNetworkGateway.connection"))) + }, + "azure.subscription.networkService.virtualNetworkGateway.vpnClientConfiguration": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway).GetVpnClientConfiguration()).ToDataRes(types.Dict) + }, + "azure.subscription.networkService.appSecurityGroup.id": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceAppSecurityGroup).GetId()).ToDataRes(types.String) + }, + "azure.subscription.networkService.appSecurityGroup.name": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceAppSecurityGroup).GetName()).ToDataRes(types.String) + }, + "azure.subscription.networkService.appSecurityGroup.location": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceAppSecurityGroup).GetLocation()).ToDataRes(types.String) + }, + "azure.subscription.networkService.appSecurityGroup.tags": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceAppSecurityGroup).GetTags()).ToDataRes(types.Map(types.String, types.String)) + }, + "azure.subscription.networkService.appSecurityGroup.type": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceAppSecurityGroup).GetType()).ToDataRes(types.String) + }, + "azure.subscription.networkService.appSecurityGroup.etag": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceAppSecurityGroup).GetEtag()).ToDataRes(types.String) + }, + "azure.subscription.networkService.appSecurityGroup.properties": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceAppSecurityGroup).GetProperties()).ToDataRes(types.Dict) + }, + "azure.subscription.networkService.firewall.id": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceFirewall).GetId()).ToDataRes(types.String) + }, + "azure.subscription.networkService.firewall.name": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceFirewall).GetName()).ToDataRes(types.String) + }, + "azure.subscription.networkService.firewall.location": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceFirewall).GetLocation()).ToDataRes(types.String) + }, + "azure.subscription.networkService.firewall.tags": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceFirewall).GetTags()).ToDataRes(types.Map(types.String, types.String)) + }, + "azure.subscription.networkService.firewall.type": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceFirewall).GetType()).ToDataRes(types.String) + }, + "azure.subscription.networkService.firewall.etag": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceFirewall).GetEtag()).ToDataRes(types.String) + }, + "azure.subscription.networkService.firewall.properties": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceFirewall).GetProperties()).ToDataRes(types.Dict) + }, + "azure.subscription.networkService.firewall.provisioningState": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceFirewall).GetProvisioningState()).ToDataRes(types.String) + }, + "azure.subscription.networkService.firewall.skuName": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceFirewall).GetSkuName()).ToDataRes(types.String) + }, + "azure.subscription.networkService.firewall.skuTier": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceFirewall).GetSkuTier()).ToDataRes(types.String) + }, + "azure.subscription.networkService.firewall.threatIntelMode": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceFirewall).GetThreatIntelMode()).ToDataRes(types.String) + }, + "azure.subscription.networkService.firewall.policy": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceFirewall).GetPolicy()).ToDataRes(types.Resource("azure.subscription.networkService.firewallPolicy")) + }, + "azure.subscription.networkService.firewall.ipConfigurations": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceFirewall).GetIpConfigurations()).ToDataRes(types.Array(types.Resource("azure.subscription.networkService.firewall.ipConfig"))) + }, + "azure.subscription.networkService.firewall.managementIpConfiguration": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceFirewall).GetManagementIpConfiguration()).ToDataRes(types.Resource("azure.subscription.networkService.firewall.ipConfig")) + }, + "azure.subscription.networkService.firewall.networkRules": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceFirewall).GetNetworkRules()).ToDataRes(types.Array(types.Resource("azure.subscription.networkService.firewall.networkRule"))) + }, + "azure.subscription.networkService.firewall.natRules": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceFirewall).GetNatRules()).ToDataRes(types.Array(types.Resource("azure.subscription.networkService.firewall.natRule"))) + }, + "azure.subscription.networkService.firewall.applicationRules": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceFirewall).GetApplicationRules()).ToDataRes(types.Array(types.Resource("azure.subscription.networkService.firewall.applicationRule"))) + }, + "azure.subscription.networkService.firewall.ipConfig.id": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceFirewallIpConfig).GetId()).ToDataRes(types.String) + }, + "azure.subscription.networkService.firewall.ipConfig.name": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceFirewallIpConfig).GetName()).ToDataRes(types.String) + }, + "azure.subscription.networkService.firewall.ipConfig.etag": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceFirewallIpConfig).GetEtag()).ToDataRes(types.String) + }, + "azure.subscription.networkService.firewall.ipConfig.privateIpAddress": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceFirewallIpConfig).GetPrivateIpAddress()).ToDataRes(types.String) + }, + "azure.subscription.networkService.firewall.ipConfig.properties": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceFirewallIpConfig).GetProperties()).ToDataRes(types.Dict) + }, + "azure.subscription.networkService.firewall.ipConfig.publicIpAddress": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceFirewallIpConfig).GetPublicIpAddress()).ToDataRes(types.Resource("azure.subscription.networkService.ipAddress")) + }, + "azure.subscription.networkService.firewall.ipConfig.subnet": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceFirewallIpConfig).GetSubnet()).ToDataRes(types.Resource("azure.subscription.networkService.subnet")) + }, + "azure.subscription.networkService.firewall.networkRule.id": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceFirewallNetworkRule).GetId()).ToDataRes(types.String) + }, + "azure.subscription.networkService.firewall.networkRule.name": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceFirewallNetworkRule).GetName()).ToDataRes(types.String) + }, + "azure.subscription.networkService.firewall.networkRule.etag": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceFirewallNetworkRule).GetEtag()).ToDataRes(types.String) + }, + "azure.subscription.networkService.firewall.networkRule.properties": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceFirewallNetworkRule).GetProperties()).ToDataRes(types.Dict) + }, + "azure.subscription.networkService.firewall.applicationRule.id": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceFirewallApplicationRule).GetId()).ToDataRes(types.String) + }, + "azure.subscription.networkService.firewall.applicationRule.name": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceFirewallApplicationRule).GetName()).ToDataRes(types.String) + }, + "azure.subscription.networkService.firewall.applicationRule.etag": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceFirewallApplicationRule).GetEtag()).ToDataRes(types.String) + }, + "azure.subscription.networkService.firewall.applicationRule.properties": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceFirewallApplicationRule).GetProperties()).ToDataRes(types.Dict) + }, + "azure.subscription.networkService.firewall.natRule.id": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceFirewallNatRule).GetId()).ToDataRes(types.String) + }, + "azure.subscription.networkService.firewall.natRule.name": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceFirewallNatRule).GetName()).ToDataRes(types.String) + }, + "azure.subscription.networkService.firewall.natRule.etag": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceFirewallNatRule).GetEtag()).ToDataRes(types.String) + }, + "azure.subscription.networkService.firewall.natRule.properties": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceFirewallNatRule).GetProperties()).ToDataRes(types.Dict) + }, + "azure.subscription.networkService.firewallPolicy.id": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceFirewallPolicy).GetId()).ToDataRes(types.String) + }, + "azure.subscription.networkService.firewallPolicy.name": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceFirewallPolicy).GetName()).ToDataRes(types.String) + }, + "azure.subscription.networkService.firewallPolicy.location": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceFirewallPolicy).GetLocation()).ToDataRes(types.String) + }, + "azure.subscription.networkService.firewallPolicy.tags": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceFirewallPolicy).GetTags()).ToDataRes(types.Map(types.String, types.String)) + }, + "azure.subscription.networkService.firewallPolicy.type": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceFirewallPolicy).GetType()).ToDataRes(types.String) + }, + "azure.subscription.networkService.firewallPolicy.etag": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceFirewallPolicy).GetEtag()).ToDataRes(types.String) + }, + "azure.subscription.networkService.firewallPolicy.properties": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceFirewallPolicy).GetProperties()).ToDataRes(types.Dict) + }, + "azure.subscription.networkService.firewallPolicy.provisioningState": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceFirewallPolicy).GetProvisioningState()).ToDataRes(types.String) + }, + "azure.subscription.networkService.firewallPolicy.basePolicy": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceFirewallPolicy).GetBasePolicy()).ToDataRes(types.Resource("azure.subscription.networkService.firewallPolicy")) + }, + "azure.subscription.networkService.firewallPolicy.childPolicies": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceFirewallPolicy).GetChildPolicies()).ToDataRes(types.Array(types.Resource("azure.subscription.networkService.firewallPolicy"))) + }, + "azure.subscription.networkService.firewallPolicy.firewalls": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceFirewallPolicy).GetFirewalls()).ToDataRes(types.Array(types.Resource("azure.subscription.networkService.firewall"))) + }, + "azure.subscription.networkService.virtualNetworkGateway.ipConfig.id": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceVirtualNetworkGatewayIpConfig).GetId()).ToDataRes(types.String) + }, + "azure.subscription.networkService.virtualNetworkGateway.ipConfig.name": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceVirtualNetworkGatewayIpConfig).GetName()).ToDataRes(types.String) + }, + "azure.subscription.networkService.virtualNetworkGateway.ipConfig.etag": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceVirtualNetworkGatewayIpConfig).GetEtag()).ToDataRes(types.String) + }, + "azure.subscription.networkService.virtualNetworkGateway.ipConfig.privateIpAddress": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceVirtualNetworkGatewayIpConfig).GetPrivateIpAddress()).ToDataRes(types.String) + }, + "azure.subscription.networkService.virtualNetworkGateway.ipConfig.properties": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceVirtualNetworkGatewayIpConfig).GetProperties()).ToDataRes(types.Dict) + }, + "azure.subscription.networkService.virtualNetworkGateway.connection.id": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceVirtualNetworkGatewayConnection).GetId()).ToDataRes(types.String) + }, + "azure.subscription.networkService.virtualNetworkGateway.connection.name": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceVirtualNetworkGatewayConnection).GetName()).ToDataRes(types.String) + }, + "azure.subscription.networkService.virtualNetworkGateway.connection.type": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceVirtualNetworkGatewayConnection).GetType()).ToDataRes(types.String) + }, + "azure.subscription.networkService.virtualNetworkGateway.connection.etag": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceVirtualNetworkGatewayConnection).GetEtag()).ToDataRes(types.String) + }, + "azure.subscription.networkService.virtualNetworkGateway.connection.properties": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceVirtualNetworkGatewayConnection).GetProperties()).ToDataRes(types.Dict) + }, + "azure.subscription.networkService.bgpSettings.id": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceBgpSettings).GetId()).ToDataRes(types.String) + }, + "azure.subscription.networkService.bgpSettings.asn": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceBgpSettings).GetAsn()).ToDataRes(types.Int) + }, + "azure.subscription.networkService.bgpSettings.bgpPeeringAddress": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceBgpSettings).GetBgpPeeringAddress()).ToDataRes(types.String) + }, + "azure.subscription.networkService.bgpSettings.peerWeight": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceBgpSettings).GetPeerWeight()).ToDataRes(types.Int) + }, + "azure.subscription.networkService.bgpSettings.bgpPeeringAddressesConfig": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceBgpSettings).GetBgpPeeringAddressesConfig()).ToDataRes(types.Array(types.Resource("azure.subscription.networkService.bgpSettings.ipConfigurationBgpPeeringAddress"))) + }, + "azure.subscription.networkService.bgpSettings.ipConfigurationBgpPeeringAddress.id": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceBgpSettingsIpConfigurationBgpPeeringAddress).GetId()).ToDataRes(types.String) + }, + "azure.subscription.networkService.bgpSettings.ipConfigurationBgpPeeringAddress.customBgpIpAddresses": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceBgpSettingsIpConfigurationBgpPeeringAddress).GetCustomBgpIpAddresses()).ToDataRes(types.Array(types.String)) + }, + "azure.subscription.networkService.bgpSettings.ipConfigurationBgpPeeringAddress.ipConfigurationId": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceBgpSettingsIpConfigurationBgpPeeringAddress).GetIpConfigurationId()).ToDataRes(types.String) + }, + "azure.subscription.networkService.bgpSettings.ipConfigurationBgpPeeringAddress.defaultBgpIpAddresses": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceBgpSettingsIpConfigurationBgpPeeringAddress).GetDefaultBgpIpAddresses()).ToDataRes(types.Array(types.String)) + }, + "azure.subscription.networkService.bgpSettings.ipConfigurationBgpPeeringAddress.tunnelIpAddresses": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceBgpSettingsIpConfigurationBgpPeeringAddress).GetTunnelIpAddresses()).ToDataRes(types.Array(types.String)) + }, + "azure.subscription.networkService.natGateway.id": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceNatGateway).GetId()).ToDataRes(types.String) + }, + "azure.subscription.networkService.natGateway.name": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceNatGateway).GetName()).ToDataRes(types.String) + }, + "azure.subscription.networkService.natGateway.location": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceNatGateway).GetLocation()).ToDataRes(types.String) + }, + "azure.subscription.networkService.natGateway.tags": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceNatGateway).GetTags()).ToDataRes(types.Map(types.String, types.String)) + }, + "azure.subscription.networkService.natGateway.type": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceNatGateway).GetType()).ToDataRes(types.String) + }, + "azure.subscription.networkService.natGateway.etag": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceNatGateway).GetEtag()).ToDataRes(types.String) + }, + "azure.subscription.networkService.natGateway.properties": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceNatGateway).GetProperties()).ToDataRes(types.Dict) + }, + "azure.subscription.networkService.natGateway.zones": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceNatGateway).GetZones()).ToDataRes(types.Array(types.String)) + }, + "azure.subscription.networkService.natGateway.publicIpAddresses": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceNatGateway).GetPublicIpAddresses()).ToDataRes(types.Array(types.Resource("azure.subscription.networkService.ipAddress"))) + }, + "azure.subscription.networkService.natGateway.subnets": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceNatGateway).GetSubnets()).ToDataRes(types.Array(types.Resource("azure.subscription.networkService.subnet"))) + }, + "azure.subscription.networkService.subnet.id": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceSubnet).GetId()).ToDataRes(types.String) + }, + "azure.subscription.networkService.subnet.name": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceSubnet).GetName()).ToDataRes(types.String) + }, + "azure.subscription.networkService.subnet.type": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceSubnet).GetType()).ToDataRes(types.String) + }, + "azure.subscription.networkService.subnet.etag": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceSubnet).GetEtag()).ToDataRes(types.String) + }, + "azure.subscription.networkService.subnet.addressPrefix": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceSubnet).GetAddressPrefix()).ToDataRes(types.String) + }, + "azure.subscription.networkService.subnet.properties": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceSubnet).GetProperties()).ToDataRes(types.Dict) + }, + "azure.subscription.networkService.subnet.natGateway": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceSubnet).GetNatGateway()).ToDataRes(types.Resource("azure.subscription.networkService.natGateway")) + }, + "azure.subscription.networkService.virtualNetwork.id": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceVirtualNetwork).GetId()).ToDataRes(types.String) + }, + "azure.subscription.networkService.virtualNetwork.name": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceVirtualNetwork).GetName()).ToDataRes(types.String) + }, + "azure.subscription.networkService.virtualNetwork.location": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceVirtualNetwork).GetLocation()).ToDataRes(types.String) + }, + "azure.subscription.networkService.virtualNetwork.tags": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceVirtualNetwork).GetTags()).ToDataRes(types.Map(types.String, types.String)) + }, + "azure.subscription.networkService.virtualNetwork.type": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceVirtualNetwork).GetType()).ToDataRes(types.String) + }, + "azure.subscription.networkService.virtualNetwork.etag": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceVirtualNetwork).GetEtag()).ToDataRes(types.String) + }, + "azure.subscription.networkService.virtualNetwork.properties": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceVirtualNetwork).GetProperties()).ToDataRes(types.Dict) + }, + "azure.subscription.networkService.virtualNetwork.subnets": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceVirtualNetwork).GetSubnets()).ToDataRes(types.Array(types.Resource("azure.subscription.networkService.subnet"))) + }, + "azure.subscription.networkService.loadBalancer.id": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceLoadBalancer).GetId()).ToDataRes(types.String) + }, + "azure.subscription.networkService.loadBalancer.name": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceLoadBalancer).GetName()).ToDataRes(types.String) + }, + "azure.subscription.networkService.loadBalancer.location": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceLoadBalancer).GetLocation()).ToDataRes(types.String) + }, + "azure.subscription.networkService.loadBalancer.tags": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceLoadBalancer).GetTags()).ToDataRes(types.Map(types.String, types.String)) + }, + "azure.subscription.networkService.loadBalancer.type": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceLoadBalancer).GetType()).ToDataRes(types.String) + }, + "azure.subscription.networkService.loadBalancer.properties": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceLoadBalancer).GetProperties()).ToDataRes(types.Dict) + }, + "azure.subscription.networkService.loadBalancer.etag": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceLoadBalancer).GetEtag()).ToDataRes(types.String) + }, + "azure.subscription.networkService.loadBalancer.sku": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceLoadBalancer).GetSku()).ToDataRes(types.String) + }, + "azure.subscription.networkService.loadBalancer.probes": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceLoadBalancer).GetProbes()).ToDataRes(types.Array(types.Resource("azure.subscription.networkService.probe"))) + }, + "azure.subscription.networkService.loadBalancer.backendPools": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceLoadBalancer).GetBackendPools()).ToDataRes(types.Array(types.Resource("azure.subscription.networkService.backendAddressPool"))) + }, + "azure.subscription.networkService.loadBalancer.frontendIpConfigs": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceLoadBalancer).GetFrontendIpConfigs()).ToDataRes(types.Array(types.Resource("azure.subscription.networkService.frontendIpConfig"))) + }, + "azure.subscription.networkService.loadBalancer.inboundNatPools": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceLoadBalancer).GetInboundNatPools()).ToDataRes(types.Array(types.Resource("azure.subscription.networkService.inboundNatPool"))) + }, + "azure.subscription.networkService.loadBalancer.inboundNatRules": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceLoadBalancer).GetInboundNatRules()).ToDataRes(types.Array(types.Resource("azure.subscription.networkService.inboundNatRule"))) + }, + "azure.subscription.networkService.loadBalancer.outboundRules": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceLoadBalancer).GetOutboundRules()).ToDataRes(types.Array(types.Resource("azure.subscription.networkService.outboundRule"))) + }, + "azure.subscription.networkService.loadBalancer.loadBalancerRules": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceLoadBalancer).GetLoadBalancerRules()).ToDataRes(types.Array(types.Resource("azure.subscription.networkService.loadBalancerRule"))) + }, + "azure.subscription.networkService.probe.id": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceProbe).GetId()).ToDataRes(types.String) + }, + "azure.subscription.networkService.probe.name": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceProbe).GetName()).ToDataRes(types.String) + }, + "azure.subscription.networkService.probe.type": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceProbe).GetType()).ToDataRes(types.String) + }, + "azure.subscription.networkService.probe.etag": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceProbe).GetEtag()).ToDataRes(types.String) + }, + "azure.subscription.networkService.probe.properties": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceProbe).GetProperties()).ToDataRes(types.Dict) + }, + "azure.subscription.networkService.backendAddressPool.id": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceBackendAddressPool).GetId()).ToDataRes(types.String) + }, + "azure.subscription.networkService.backendAddressPool.name": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceBackendAddressPool).GetName()).ToDataRes(types.String) + }, + "azure.subscription.networkService.backendAddressPool.type": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceBackendAddressPool).GetType()).ToDataRes(types.String) + }, + "azure.subscription.networkService.backendAddressPool.etag": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceBackendAddressPool).GetEtag()).ToDataRes(types.String) + }, + "azure.subscription.networkService.backendAddressPool.properties": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceBackendAddressPool).GetProperties()).ToDataRes(types.Dict) + }, + "azure.subscription.networkService.inboundNatPool.id": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceInboundNatPool).GetId()).ToDataRes(types.String) + }, + "azure.subscription.networkService.inboundNatPool.name": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceInboundNatPool).GetName()).ToDataRes(types.String) + }, + "azure.subscription.networkService.inboundNatPool.type": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceInboundNatPool).GetType()).ToDataRes(types.String) + }, + "azure.subscription.networkService.inboundNatPool.etag": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceInboundNatPool).GetEtag()).ToDataRes(types.String) + }, + "azure.subscription.networkService.inboundNatPool.properties": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceInboundNatPool).GetProperties()).ToDataRes(types.Dict) + }, + "azure.subscription.networkService.inboundNatRule.id": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceInboundNatRule).GetId()).ToDataRes(types.String) + }, + "azure.subscription.networkService.inboundNatRule.name": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceInboundNatRule).GetName()).ToDataRes(types.String) + }, + "azure.subscription.networkService.inboundNatRule.type": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceInboundNatRule).GetType()).ToDataRes(types.String) + }, + "azure.subscription.networkService.inboundNatRule.etag": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceInboundNatRule).GetEtag()).ToDataRes(types.String) + }, + "azure.subscription.networkService.inboundNatRule.properties": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceInboundNatRule).GetProperties()).ToDataRes(types.Dict) + }, + "azure.subscription.networkService.frontendIpConfig.id": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceFrontendIpConfig).GetId()).ToDataRes(types.String) + }, + "azure.subscription.networkService.frontendIpConfig.name": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceFrontendIpConfig).GetName()).ToDataRes(types.String) + }, + "azure.subscription.networkService.frontendIpConfig.type": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceFrontendIpConfig).GetType()).ToDataRes(types.String) + }, + "azure.subscription.networkService.frontendIpConfig.etag": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceFrontendIpConfig).GetEtag()).ToDataRes(types.String) + }, + "azure.subscription.networkService.frontendIpConfig.properties": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceFrontendIpConfig).GetProperties()).ToDataRes(types.Dict) + }, + "azure.subscription.networkService.frontendIpConfig.zones": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceFrontendIpConfig).GetZones()).ToDataRes(types.Array(types.String)) + }, + "azure.subscription.networkService.loadBalancerRule.id": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceLoadBalancerRule).GetId()).ToDataRes(types.String) + }, + "azure.subscription.networkService.loadBalancerRule.name": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceLoadBalancerRule).GetName()).ToDataRes(types.String) + }, + "azure.subscription.networkService.loadBalancerRule.type": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceLoadBalancerRule).GetType()).ToDataRes(types.String) + }, + "azure.subscription.networkService.loadBalancerRule.etag": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceLoadBalancerRule).GetEtag()).ToDataRes(types.String) + }, + "azure.subscription.networkService.loadBalancerRule.properties": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceLoadBalancerRule).GetProperties()).ToDataRes(types.Dict) + }, + "azure.subscription.networkService.outboundRule.id": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceOutboundRule).GetId()).ToDataRes(types.String) + }, + "azure.subscription.networkService.outboundRule.name": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceOutboundRule).GetName()).ToDataRes(types.String) + }, + "azure.subscription.networkService.outboundRule.type": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceOutboundRule).GetType()).ToDataRes(types.String) + }, + "azure.subscription.networkService.outboundRule.etag": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceOutboundRule).GetEtag()).ToDataRes(types.String) + }, + "azure.subscription.networkService.outboundRule.properties": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAzureSubscriptionNetworkServiceOutboundRule).GetProperties()).ToDataRes(types.Dict) + }, "azure.subscription.networkService.interface.id": func(r plugin.Resource) *plugin.DataRes { return (r.(*mqlAzureSubscriptionNetworkServiceInterface).GetId()).ToDataRes(types.String) }, @@ -2166,1944 +2807,4897 @@ var setDataFields = map[string]func(r plugin.Resource, v *llx.RawData) bool { r.(*mqlAzureSubscriptionNetworkService).BastionHosts, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) return }, - "azure.subscription.networkService.interface.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionNetworkServiceInterface).__id, ok = v.Value.(string) - return - }, - "azure.subscription.networkService.interface.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionNetworkServiceInterface).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) - return - }, - "azure.subscription.networkService.interface.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionNetworkServiceInterface).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.loadBalancers": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkService).LoadBalancers, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) return }, - "azure.subscription.networkService.interface.location": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionNetworkServiceInterface).Location, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.natGateways": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkService).NatGateways, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) return }, - "azure.subscription.networkService.interface.tags": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionNetworkServiceInterface).Tags, ok = plugin.RawToTValue[map[string]interface{}](v.Value, v.Error) + "azure.subscription.networkService.virtualNetworks": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkService).VirtualNetworks, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) return }, - "azure.subscription.networkService.interface.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionNetworkServiceInterface).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.virtualNetworkGateways": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkService).VirtualNetworkGateways, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) return }, - "azure.subscription.networkService.interface.etag": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionNetworkServiceInterface).Etag, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.firewalls": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkService).Firewalls, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) return }, - "azure.subscription.networkService.interface.properties": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionNetworkServiceInterface).Properties, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) + "azure.subscription.networkService.firewallPolicies": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkService).FirewallPolicies, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) return }, - "azure.subscription.networkService.interface.vm": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionNetworkServiceInterface).Vm, ok = plugin.RawToTValue[*mqlAzureSubscriptionComputeServiceVm](v.Value, v.Error) + "azure.subscription.networkService.applicationSecurityGroups": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkService).ApplicationSecurityGroups, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) return }, - "azure.subscription.networkService.ipAddress.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionNetworkServiceIpAddress).__id, ok = v.Value.(string) + "azure.subscription.networkService.virtualNetworkGateway.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway).__id, ok = v.Value.(string) return }, - "azure.subscription.networkService.ipAddress.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionNetworkServiceIpAddress).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.virtualNetworkGateway.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.networkService.ipAddress.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionNetworkServiceIpAddress).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.virtualNetworkGateway.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.networkService.ipAddress.location": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionNetworkServiceIpAddress).Location, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.virtualNetworkGateway.location": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway).Location, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.networkService.ipAddress.tags": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionNetworkServiceIpAddress).Tags, ok = plugin.RawToTValue[map[string]interface{}](v.Value, v.Error) + "azure.subscription.networkService.virtualNetworkGateway.tags": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway).Tags, ok = plugin.RawToTValue[map[string]interface{}](v.Value, v.Error) return }, - "azure.subscription.networkService.ipAddress.ipAddress": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionNetworkServiceIpAddress).IpAddress, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.virtualNetworkGateway.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.networkService.ipAddress.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionNetworkServiceIpAddress).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.virtualNetworkGateway.etag": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway).Etag, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.networkService.bastionHost.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionNetworkServiceBastionHost).__id, ok = v.Value.(string) - return - }, - "azure.subscription.networkService.bastionHost.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionNetworkServiceBastionHost).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.virtualNetworkGateway.properties": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway).Properties, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) return }, - "azure.subscription.networkService.bastionHost.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionNetworkServiceBastionHost).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.virtualNetworkGateway.active": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway).Active, ok = plugin.RawToTValue[bool](v.Value, v.Error) return }, - "azure.subscription.networkService.bastionHost.location": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionNetworkServiceBastionHost).Location, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.virtualNetworkGateway.enableBgp": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway).EnableBgp, ok = plugin.RawToTValue[bool](v.Value, v.Error) return }, - "azure.subscription.networkService.bastionHost.tags": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionNetworkServiceBastionHost).Tags, ok = plugin.RawToTValue[map[string]interface{}](v.Value, v.Error) + "azure.subscription.networkService.virtualNetworkGateway.enableBgpRouteTranslationForNat": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway).EnableBgpRouteTranslationForNat, ok = plugin.RawToTValue[bool](v.Value, v.Error) return }, - "azure.subscription.networkService.bastionHost.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionNetworkServiceBastionHost).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.virtualNetworkGateway.enableDNSForwarding": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway).EnableDNSForwarding, ok = plugin.RawToTValue[bool](v.Value, v.Error) return }, - "azure.subscription.networkService.bastionHost.properties": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionNetworkServiceBastionHost).Properties, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) + "azure.subscription.networkService.virtualNetworkGateway.enablePrivateIPAddress": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway).EnablePrivateIPAddress, ok = plugin.RawToTValue[bool](v.Value, v.Error) return }, - "azure.subscription.networkService.bastionHost.sku": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionNetworkServiceBastionHost).Sku, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) + "azure.subscription.networkService.virtualNetworkGateway.disableIPSecReplayProtection": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway).DisableIPSecReplayProtection, ok = plugin.RawToTValue[bool](v.Value, v.Error) return }, - "azure.subscription.networkService.securityGroup.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionNetworkServiceSecurityGroup).__id, ok = v.Value.(string) - return - }, - "azure.subscription.networkService.securityGroup.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionNetworkServiceSecurityGroup).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.virtualNetworkGateway.provisioningState": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway).ProvisioningState, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.networkService.securityGroup.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionNetworkServiceSecurityGroup).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.virtualNetworkGateway.inboundDNSForwardingEndpoint": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway).InboundDNSForwardingEndpoint, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.networkService.securityGroup.location": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionNetworkServiceSecurityGroup).Location, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.virtualNetworkGateway.skuName": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway).SkuName, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.networkService.securityGroup.tags": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionNetworkServiceSecurityGroup).Tags, ok = plugin.RawToTValue[map[string]interface{}](v.Value, v.Error) + "azure.subscription.networkService.virtualNetworkGateway.skuCapacity": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway).SkuCapacity, ok = plugin.RawToTValue[int64](v.Value, v.Error) return }, - "azure.subscription.networkService.securityGroup.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionNetworkServiceSecurityGroup).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.virtualNetworkGateway.addressPrefixes": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway).AddressPrefixes, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) return }, - "azure.subscription.networkService.securityGroup.etag": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionNetworkServiceSecurityGroup).Etag, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.virtualNetworkGateway.gatewayType": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway).GatewayType, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.networkService.securityGroup.properties": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionNetworkServiceSecurityGroup).Properties, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) + "azure.subscription.networkService.virtualNetworkGateway.vpnGatewayGeneration": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway).VpnGatewayGeneration, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.networkService.securityGroup.interfaces": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionNetworkServiceSecurityGroup).Interfaces, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + "azure.subscription.networkService.virtualNetworkGateway.vpnType": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway).VpnType, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.networkService.securityGroup.securityRules": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionNetworkServiceSecurityGroup).SecurityRules, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + "azure.subscription.networkService.virtualNetworkGateway.ipConfigurations": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway).IpConfigurations, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) return }, - "azure.subscription.networkService.securityGroup.defaultSecurityRules": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionNetworkServiceSecurityGroup).DefaultSecurityRules, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + "azure.subscription.networkService.virtualNetworkGateway.bgpSettings": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway).BgpSettings, ok = plugin.RawToTValue[*mqlAzureSubscriptionNetworkServiceBgpSettings](v.Value, v.Error) return }, - "azure.subscription.networkService.securityrule.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionNetworkServiceSecurityrule).__id, ok = v.Value.(string) + "azure.subscription.networkService.virtualNetworkGateway.natRules": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway).NatRules, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + return + }, + "azure.subscription.networkService.virtualNetworkGateway.connections": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway).Connections, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + return + }, + "azure.subscription.networkService.virtualNetworkGateway.vpnClientConfiguration": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway).VpnClientConfiguration, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) + return + }, + "azure.subscription.networkService.appSecurityGroup.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceAppSecurityGroup).__id, ok = v.Value.(string) return }, - "azure.subscription.networkService.securityrule.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionNetworkServiceSecurityrule).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.appSecurityGroup.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceAppSecurityGroup).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.networkService.securityrule.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionNetworkServiceSecurityrule).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.appSecurityGroup.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceAppSecurityGroup).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.networkService.securityrule.etag": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionNetworkServiceSecurityrule).Etag, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.appSecurityGroup.location": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceAppSecurityGroup).Location, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.networkService.securityrule.properties": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionNetworkServiceSecurityrule).Properties, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) + "azure.subscription.networkService.appSecurityGroup.tags": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceAppSecurityGroup).Tags, ok = plugin.RawToTValue[map[string]interface{}](v.Value, v.Error) return }, - "azure.subscription.networkService.securityrule.destinationPortRange": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionNetworkServiceSecurityrule).DestinationPortRange, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + "azure.subscription.networkService.appSecurityGroup.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceAppSecurityGroup).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.networkService.watcher.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionNetworkServiceWatcher).__id, ok = v.Value.(string) + "azure.subscription.networkService.appSecurityGroup.etag": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceAppSecurityGroup).Etag, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.networkService.appSecurityGroup.properties": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceAppSecurityGroup).Properties, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) + return + }, + "azure.subscription.networkService.firewall.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceFirewall).__id, ok = v.Value.(string) return }, - "azure.subscription.networkService.watcher.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionNetworkServiceWatcher).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.firewall.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceFirewall).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.networkService.watcher.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionNetworkServiceWatcher).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.firewall.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceFirewall).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.networkService.watcher.location": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionNetworkServiceWatcher).Location, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.firewall.location": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceFirewall).Location, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.networkService.watcher.tags": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionNetworkServiceWatcher).Tags, ok = plugin.RawToTValue[map[string]interface{}](v.Value, v.Error) + "azure.subscription.networkService.firewall.tags": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceFirewall).Tags, ok = plugin.RawToTValue[map[string]interface{}](v.Value, v.Error) return }, - "azure.subscription.networkService.watcher.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionNetworkServiceWatcher).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.firewall.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceFirewall).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.networkService.watcher.etag": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionNetworkServiceWatcher).Etag, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.firewall.etag": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceFirewall).Etag, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.networkService.watcher.properties": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionNetworkServiceWatcher).Properties, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) + "azure.subscription.networkService.firewall.properties": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceFirewall).Properties, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) return }, - "azure.subscription.networkService.watcher.flowLogs": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionNetworkServiceWatcher).FlowLogs, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + "azure.subscription.networkService.firewall.provisioningState": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceFirewall).ProvisioningState, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.networkService.watcher.provisioningState": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionNetworkServiceWatcher).ProvisioningState, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.firewall.skuName": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceFirewall).SkuName, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.networkService.watcher.flowlog.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionNetworkServiceWatcherFlowlog).__id, ok = v.Value.(string) - return - }, - "azure.subscription.networkService.watcher.flowlog.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionNetworkServiceWatcherFlowlog).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.firewall.skuTier": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceFirewall).SkuTier, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.networkService.watcher.flowlog.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionNetworkServiceWatcherFlowlog).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.firewall.threatIntelMode": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceFirewall).ThreatIntelMode, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.networkService.watcher.flowlog.location": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionNetworkServiceWatcherFlowlog).Location, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.firewall.policy": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceFirewall).Policy, ok = plugin.RawToTValue[*mqlAzureSubscriptionNetworkServiceFirewallPolicy](v.Value, v.Error) return }, - "azure.subscription.networkService.watcher.flowlog.tags": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionNetworkServiceWatcherFlowlog).Tags, ok = plugin.RawToTValue[map[string]interface{}](v.Value, v.Error) + "azure.subscription.networkService.firewall.ipConfigurations": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceFirewall).IpConfigurations, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) return }, - "azure.subscription.networkService.watcher.flowlog.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionNetworkServiceWatcherFlowlog).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.firewall.managementIpConfiguration": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceFirewall).ManagementIpConfiguration, ok = plugin.RawToTValue[*mqlAzureSubscriptionNetworkServiceFirewallIpConfig](v.Value, v.Error) return }, - "azure.subscription.networkService.watcher.flowlog.etag": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionNetworkServiceWatcherFlowlog).Etag, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.firewall.networkRules": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceFirewall).NetworkRules, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) return }, - "azure.subscription.networkService.watcher.flowlog.provisioningState": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionNetworkServiceWatcherFlowlog).ProvisioningState, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.firewall.natRules": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceFirewall).NatRules, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) return }, - "azure.subscription.networkService.watcher.flowlog.enabled": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionNetworkServiceWatcherFlowlog).Enabled, ok = plugin.RawToTValue[bool](v.Value, v.Error) + "azure.subscription.networkService.firewall.applicationRules": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceFirewall).ApplicationRules, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) return }, - "azure.subscription.networkService.watcher.flowlog.storageAccountId": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionNetworkServiceWatcherFlowlog).StorageAccountId, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.firewall.ipConfig.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceFirewallIpConfig).__id, ok = v.Value.(string) + return + }, + "azure.subscription.networkService.firewall.ipConfig.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceFirewallIpConfig).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.networkService.watcher.flowlog.targetResourceId": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionNetworkServiceWatcherFlowlog).TargetResourceId, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.firewall.ipConfig.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceFirewallIpConfig).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.networkService.watcher.flowlog.targetResourceGuid": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionNetworkServiceWatcherFlowlog).TargetResourceGuid, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.firewall.ipConfig.etag": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceFirewallIpConfig).Etag, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.networkService.watcher.flowlog.version": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionNetworkServiceWatcherFlowlog).Version, ok = plugin.RawToTValue[int64](v.Value, v.Error) + "azure.subscription.networkService.firewall.ipConfig.privateIpAddress": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceFirewallIpConfig).PrivateIpAddress, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.networkService.watcher.flowlog.format": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionNetworkServiceWatcherFlowlog).Format, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.firewall.ipConfig.properties": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceFirewallIpConfig).Properties, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) return }, - "azure.subscription.networkService.watcher.flowlog.retentionPolicy": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionNetworkServiceWatcherFlowlog).RetentionPolicy, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) + "azure.subscription.networkService.firewall.ipConfig.publicIpAddress": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceFirewallIpConfig).PublicIpAddress, ok = plugin.RawToTValue[*mqlAzureSubscriptionNetworkServiceIpAddress](v.Value, v.Error) return }, - "azure.subscription.networkService.watcher.flowlog.analytics": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionNetworkServiceWatcherFlowlog).Analytics, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) + "azure.subscription.networkService.firewall.ipConfig.subnet": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceFirewallIpConfig).Subnet, ok = plugin.RawToTValue[*mqlAzureSubscriptionNetworkServiceSubnet](v.Value, v.Error) return }, - "azure.subscription.storageService.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionStorageService).__id, ok = v.Value.(string) + "azure.subscription.networkService.firewall.networkRule.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceFirewallNetworkRule).__id, ok = v.Value.(string) return }, - "azure.subscription.storageService.subscriptionId": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionStorageService).SubscriptionId, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.firewall.networkRule.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceFirewallNetworkRule).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.storageService.accounts": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionStorageService).Accounts, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + "azure.subscription.networkService.firewall.networkRule.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceFirewallNetworkRule).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.storageService.account.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionStorageServiceAccount).__id, ok = v.Value.(string) + "azure.subscription.networkService.firewall.networkRule.etag": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceFirewallNetworkRule).Etag, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.networkService.firewall.networkRule.properties": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceFirewallNetworkRule).Properties, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) + return + }, + "azure.subscription.networkService.firewall.applicationRule.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceFirewallApplicationRule).__id, ok = v.Value.(string) return }, - "azure.subscription.storageService.account.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionStorageServiceAccount).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.firewall.applicationRule.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceFirewallApplicationRule).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.storageService.account.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionStorageServiceAccount).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.firewall.applicationRule.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceFirewallApplicationRule).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.storageService.account.location": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionStorageServiceAccount).Location, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.firewall.applicationRule.etag": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceFirewallApplicationRule).Etag, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.storageService.account.tags": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionStorageServiceAccount).Tags, ok = plugin.RawToTValue[map[string]interface{}](v.Value, v.Error) + "azure.subscription.networkService.firewall.applicationRule.properties": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceFirewallApplicationRule).Properties, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) return }, - "azure.subscription.storageService.account.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionStorageServiceAccount).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.firewall.natRule.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceFirewallNatRule).__id, ok = v.Value.(string) + return + }, + "azure.subscription.networkService.firewall.natRule.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceFirewallNatRule).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.storageService.account.properties": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionStorageServiceAccount).Properties, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) + "azure.subscription.networkService.firewall.natRule.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceFirewallNatRule).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.storageService.account.identity": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionStorageServiceAccount).Identity, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) + "azure.subscription.networkService.firewall.natRule.etag": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceFirewallNatRule).Etag, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.storageService.account.sku": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionStorageServiceAccount).Sku, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) + "azure.subscription.networkService.firewall.natRule.properties": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceFirewallNatRule).Properties, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) return }, - "azure.subscription.storageService.account.kind": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionStorageServiceAccount).Kind, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.firewallPolicy.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceFirewallPolicy).__id, ok = v.Value.(string) + return + }, + "azure.subscription.networkService.firewallPolicy.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceFirewallPolicy).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.storageService.account.containers": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionStorageServiceAccount).Containers, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + "azure.subscription.networkService.firewallPolicy.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceFirewallPolicy).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.storageService.account.queueProperties": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionStorageServiceAccount).QueueProperties, ok = plugin.RawToTValue[*mqlAzureSubscriptionStorageServiceAccountServiceProperties](v.Value, v.Error) + "azure.subscription.networkService.firewallPolicy.location": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceFirewallPolicy).Location, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.storageService.account.tableProperties": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionStorageServiceAccount).TableProperties, ok = plugin.RawToTValue[*mqlAzureSubscriptionStorageServiceAccountServiceProperties](v.Value, v.Error) + "azure.subscription.networkService.firewallPolicy.tags": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceFirewallPolicy).Tags, ok = plugin.RawToTValue[map[string]interface{}](v.Value, v.Error) return }, - "azure.subscription.storageService.account.blobProperties": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionStorageServiceAccount).BlobProperties, ok = plugin.RawToTValue[*mqlAzureSubscriptionStorageServiceAccountServiceProperties](v.Value, v.Error) + "azure.subscription.networkService.firewallPolicy.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceFirewallPolicy).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.storageService.account.dataProtection": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionStorageServiceAccount).DataProtection, ok = plugin.RawToTValue[*mqlAzureSubscriptionStorageServiceAccountDataProtection](v.Value, v.Error) + "azure.subscription.networkService.firewallPolicy.etag": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceFirewallPolicy).Etag, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.storageService.account.dataProtection.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionStorageServiceAccountDataProtection).__id, ok = v.Value.(string) - return - }, - "azure.subscription.storageService.account.dataProtection.storageAccountId": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionStorageServiceAccountDataProtection).StorageAccountId, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.firewallPolicy.properties": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceFirewallPolicy).Properties, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) return }, - "azure.subscription.storageService.account.dataProtection.blobSoftDeletionEnabled": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionStorageServiceAccountDataProtection).BlobSoftDeletionEnabled, ok = plugin.RawToTValue[bool](v.Value, v.Error) + "azure.subscription.networkService.firewallPolicy.provisioningState": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceFirewallPolicy).ProvisioningState, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.storageService.account.dataProtection.blobRetentionDays": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionStorageServiceAccountDataProtection).BlobRetentionDays, ok = plugin.RawToTValue[int64](v.Value, v.Error) + "azure.subscription.networkService.firewallPolicy.basePolicy": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceFirewallPolicy).BasePolicy, ok = plugin.RawToTValue[*mqlAzureSubscriptionNetworkServiceFirewallPolicy](v.Value, v.Error) return }, - "azure.subscription.storageService.account.dataProtection.containerSoftDeletionEnabled": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionStorageServiceAccountDataProtection).ContainerSoftDeletionEnabled, ok = plugin.RawToTValue[bool](v.Value, v.Error) + "azure.subscription.networkService.firewallPolicy.childPolicies": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceFirewallPolicy).ChildPolicies, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) return }, - "azure.subscription.storageService.account.dataProtection.containerRetentionDays": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionStorageServiceAccountDataProtection).ContainerRetentionDays, ok = plugin.RawToTValue[int64](v.Value, v.Error) + "azure.subscription.networkService.firewallPolicy.firewalls": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceFirewallPolicy).Firewalls, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) return }, - "azure.subscription.storageService.account.service.properties.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionStorageServiceAccountServiceProperties).__id, ok = v.Value.(string) + "azure.subscription.networkService.virtualNetworkGateway.ipConfig.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceVirtualNetworkGatewayIpConfig).__id, ok = v.Value.(string) return }, - "azure.subscription.storageService.account.service.properties.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionStorageServiceAccountServiceProperties).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.virtualNetworkGateway.ipConfig.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceVirtualNetworkGatewayIpConfig).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.storageService.account.service.properties.hourMetrics": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionStorageServiceAccountServiceProperties).HourMetrics, ok = plugin.RawToTValue[*mqlAzureSubscriptionStorageServiceAccountServicePropertiesMetrics](v.Value, v.Error) + "azure.subscription.networkService.virtualNetworkGateway.ipConfig.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceVirtualNetworkGatewayIpConfig).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.storageService.account.service.properties.minuteMetrics": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionStorageServiceAccountServiceProperties).MinuteMetrics, ok = plugin.RawToTValue[*mqlAzureSubscriptionStorageServiceAccountServicePropertiesMetrics](v.Value, v.Error) + "azure.subscription.networkService.virtualNetworkGateway.ipConfig.etag": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceVirtualNetworkGatewayIpConfig).Etag, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.storageService.account.service.properties.logging": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionStorageServiceAccountServiceProperties).Logging, ok = plugin.RawToTValue[*mqlAzureSubscriptionStorageServiceAccountServicePropertiesLogging](v.Value, v.Error) + "azure.subscription.networkService.virtualNetworkGateway.ipConfig.privateIpAddress": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceVirtualNetworkGatewayIpConfig).PrivateIpAddress, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.storageService.account.service.properties.metrics.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionStorageServiceAccountServicePropertiesMetrics).__id, ok = v.Value.(string) + "azure.subscription.networkService.virtualNetworkGateway.ipConfig.properties": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceVirtualNetworkGatewayIpConfig).Properties, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) + return + }, + "azure.subscription.networkService.virtualNetworkGateway.connection.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceVirtualNetworkGatewayConnection).__id, ok = v.Value.(string) return }, - "azure.subscription.storageService.account.service.properties.metrics.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionStorageServiceAccountServicePropertiesMetrics).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.virtualNetworkGateway.connection.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceVirtualNetworkGatewayConnection).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.storageService.account.service.properties.metrics.includeAPIs": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionStorageServiceAccountServicePropertiesMetrics).IncludeAPIs, ok = plugin.RawToTValue[bool](v.Value, v.Error) + "azure.subscription.networkService.virtualNetworkGateway.connection.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceVirtualNetworkGatewayConnection).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.storageService.account.service.properties.metrics.retentionPolicy": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionStorageServiceAccountServicePropertiesMetrics).RetentionPolicy, ok = plugin.RawToTValue[*mqlAzureSubscriptionStorageServiceAccountServicePropertiesRetentionPolicy](v.Value, v.Error) + "azure.subscription.networkService.virtualNetworkGateway.connection.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceVirtualNetworkGatewayConnection).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.storageService.account.service.properties.metrics.enabled": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionStorageServiceAccountServicePropertiesMetrics).Enabled, ok = plugin.RawToTValue[bool](v.Value, v.Error) + "azure.subscription.networkService.virtualNetworkGateway.connection.etag": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceVirtualNetworkGatewayConnection).Etag, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.storageService.account.service.properties.metrics.version": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionStorageServiceAccountServicePropertiesMetrics).Version, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.virtualNetworkGateway.connection.properties": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceVirtualNetworkGatewayConnection).Properties, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) return }, - "azure.subscription.storageService.account.service.properties.retentionPolicy.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionStorageServiceAccountServicePropertiesRetentionPolicy).__id, ok = v.Value.(string) + "azure.subscription.networkService.bgpSettings.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceBgpSettings).__id, ok = v.Value.(string) return }, - "azure.subscription.storageService.account.service.properties.retentionPolicy.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionStorageServiceAccountServicePropertiesRetentionPolicy).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.bgpSettings.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceBgpSettings).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.storageService.account.service.properties.retentionPolicy.retentionDays": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionStorageServiceAccountServicePropertiesRetentionPolicy).RetentionDays, ok = plugin.RawToTValue[int64](v.Value, v.Error) + "azure.subscription.networkService.bgpSettings.asn": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceBgpSettings).Asn, ok = plugin.RawToTValue[int64](v.Value, v.Error) return }, - "azure.subscription.storageService.account.service.properties.retentionPolicy.enabled": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionStorageServiceAccountServicePropertiesRetentionPolicy).Enabled, ok = plugin.RawToTValue[bool](v.Value, v.Error) + "azure.subscription.networkService.bgpSettings.bgpPeeringAddress": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceBgpSettings).BgpPeeringAddress, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.storageService.account.service.properties.logging.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionStorageServiceAccountServicePropertiesLogging).__id, ok = v.Value.(string) - return - }, - "azure.subscription.storageService.account.service.properties.logging.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionStorageServiceAccountServicePropertiesLogging).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.bgpSettings.peerWeight": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceBgpSettings).PeerWeight, ok = plugin.RawToTValue[int64](v.Value, v.Error) return }, - "azure.subscription.storageService.account.service.properties.logging.delete": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionStorageServiceAccountServicePropertiesLogging).Delete, ok = plugin.RawToTValue[bool](v.Value, v.Error) + "azure.subscription.networkService.bgpSettings.bgpPeeringAddressesConfig": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceBgpSettings).BgpPeeringAddressesConfig, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) return }, - "azure.subscription.storageService.account.service.properties.logging.read": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionStorageServiceAccountServicePropertiesLogging).Read, ok = plugin.RawToTValue[bool](v.Value, v.Error) + "azure.subscription.networkService.bgpSettings.ipConfigurationBgpPeeringAddress.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceBgpSettingsIpConfigurationBgpPeeringAddress).__id, ok = v.Value.(string) + return + }, + "azure.subscription.networkService.bgpSettings.ipConfigurationBgpPeeringAddress.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceBgpSettingsIpConfigurationBgpPeeringAddress).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.storageService.account.service.properties.logging.write": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionStorageServiceAccountServicePropertiesLogging).Write, ok = plugin.RawToTValue[bool](v.Value, v.Error) + "azure.subscription.networkService.bgpSettings.ipConfigurationBgpPeeringAddress.customBgpIpAddresses": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceBgpSettingsIpConfigurationBgpPeeringAddress).CustomBgpIpAddresses, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) return }, - "azure.subscription.storageService.account.service.properties.logging.version": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionStorageServiceAccountServicePropertiesLogging).Version, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.bgpSettings.ipConfigurationBgpPeeringAddress.ipConfigurationId": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceBgpSettingsIpConfigurationBgpPeeringAddress).IpConfigurationId, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.storageService.account.service.properties.logging.retentionPolicy": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionStorageServiceAccountServicePropertiesLogging).RetentionPolicy, ok = plugin.RawToTValue[*mqlAzureSubscriptionStorageServiceAccountServicePropertiesRetentionPolicy](v.Value, v.Error) + "azure.subscription.networkService.bgpSettings.ipConfigurationBgpPeeringAddress.defaultBgpIpAddresses": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceBgpSettingsIpConfigurationBgpPeeringAddress).DefaultBgpIpAddresses, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) return }, - "azure.subscription.storageService.account.container.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionStorageServiceAccountContainer).__id, ok = v.Value.(string) + "azure.subscription.networkService.bgpSettings.ipConfigurationBgpPeeringAddress.tunnelIpAddresses": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceBgpSettingsIpConfigurationBgpPeeringAddress).TunnelIpAddresses, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + return + }, + "azure.subscription.networkService.natGateway.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceNatGateway).__id, ok = v.Value.(string) return }, - "azure.subscription.storageService.account.container.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionStorageServiceAccountContainer).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.natGateway.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceNatGateway).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.storageService.account.container.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionStorageServiceAccountContainer).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.natGateway.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceNatGateway).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.storageService.account.container.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionStorageServiceAccountContainer).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.natGateway.location": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceNatGateway).Location, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.storageService.account.container.etag": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionStorageServiceAccountContainer).Etag, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.natGateway.tags": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceNatGateway).Tags, ok = plugin.RawToTValue[map[string]interface{}](v.Value, v.Error) return }, - "azure.subscription.storageService.account.container.properties": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionStorageServiceAccountContainer).Properties, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) + "azure.subscription.networkService.natGateway.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceNatGateway).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.webService.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionWebService).__id, ok = v.Value.(string) - return - }, - "azure.subscription.webService.subscriptionId": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionWebService).SubscriptionId, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.natGateway.etag": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceNatGateway).Etag, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.webService.apps": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionWebService).Apps, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + "azure.subscription.networkService.natGateway.properties": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceNatGateway).Properties, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) return }, - "azure.subscription.webService.availableRuntimes": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionWebService).AvailableRuntimes, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + "azure.subscription.networkService.natGateway.zones": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceNatGateway).Zones, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) return }, - "azure.subscription.webService.appsite.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionWebServiceAppsite).__id, ok = v.Value.(string) + "azure.subscription.networkService.natGateway.publicIpAddresses": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceNatGateway).PublicIpAddresses, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + return + }, + "azure.subscription.networkService.natGateway.subnets": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceNatGateway).Subnets, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + return + }, + "azure.subscription.networkService.subnet.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceSubnet).__id, ok = v.Value.(string) return }, - "azure.subscription.webService.appsite.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionWebServiceAppsite).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.subnet.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceSubnet).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.webService.appsite.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionWebServiceAppsite).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.subnet.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceSubnet).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.webService.appsite.kind": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionWebServiceAppsite).Kind, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.subnet.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceSubnet).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.webService.appsite.location": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionWebServiceAppsite).Location, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.subnet.etag": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceSubnet).Etag, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.webService.appsite.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionWebServiceAppsite).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.subnet.addressPrefix": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceSubnet).AddressPrefix, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.webService.appsite.tags": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionWebServiceAppsite).Tags, ok = plugin.RawToTValue[map[string]interface{}](v.Value, v.Error) + "azure.subscription.networkService.subnet.properties": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceSubnet).Properties, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) return }, - "azure.subscription.webService.appsite.properties": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionWebServiceAppsite).Properties, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) - return - }, - "azure.subscription.webService.appsite.identity": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionWebServiceAppsite).Identity, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) - return - }, - "azure.subscription.webService.appsite.configuration": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionWebServiceAppsite).Configuration, ok = plugin.RawToTValue[*mqlAzureSubscriptionWebServiceAppsiteconfig](v.Value, v.Error) + "azure.subscription.networkService.subnet.natGateway": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceSubnet).NatGateway, ok = plugin.RawToTValue[*mqlAzureSubscriptionNetworkServiceNatGateway](v.Value, v.Error) return }, - "azure.subscription.webService.appsite.authenticationSettings": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionWebServiceAppsite).AuthenticationSettings, ok = plugin.RawToTValue[*mqlAzureSubscriptionWebServiceAppsiteauthsettings](v.Value, v.Error) + "azure.subscription.networkService.virtualNetwork.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceVirtualNetwork).__id, ok = v.Value.(string) + return + }, + "azure.subscription.networkService.virtualNetwork.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceVirtualNetwork).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.webService.appsite.metadata": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionWebServiceAppsite).Metadata, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) + "azure.subscription.networkService.virtualNetwork.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceVirtualNetwork).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.webService.appsite.applicationSettings": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionWebServiceAppsite).ApplicationSettings, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) + "azure.subscription.networkService.virtualNetwork.location": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceVirtualNetwork).Location, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.webService.appsite.connectionSettings": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionWebServiceAppsite).ConnectionSettings, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) + "azure.subscription.networkService.virtualNetwork.tags": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceVirtualNetwork).Tags, ok = plugin.RawToTValue[map[string]interface{}](v.Value, v.Error) return }, - "azure.subscription.webService.appsite.stack": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionWebServiceAppsite).Stack, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) + "azure.subscription.networkService.virtualNetwork.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceVirtualNetwork).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.webService.appsiteauthsettings.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionWebServiceAppsiteauthsettings).__id, ok = v.Value.(string) - return - }, - "azure.subscription.webService.appsiteauthsettings.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionWebServiceAppsiteauthsettings).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.virtualNetwork.etag": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceVirtualNetwork).Etag, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.webService.appsiteauthsettings.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionWebServiceAppsiteauthsettings).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.virtualNetwork.properties": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceVirtualNetwork).Properties, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) return }, - "azure.subscription.webService.appsiteauthsettings.kind": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionWebServiceAppsiteauthsettings).Kind, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.virtualNetwork.subnets": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceVirtualNetwork).Subnets, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) return }, - "azure.subscription.webService.appsiteauthsettings.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionWebServiceAppsiteauthsettings).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.loadBalancer.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceLoadBalancer).__id, ok = v.Value.(string) + return + }, + "azure.subscription.networkService.loadBalancer.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceLoadBalancer).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.webService.appsiteauthsettings.properties": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionWebServiceAppsiteauthsettings).Properties, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) + "azure.subscription.networkService.loadBalancer.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceLoadBalancer).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.webService.appsiteconfig.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionWebServiceAppsiteconfig).__id, ok = v.Value.(string) - return - }, - "azure.subscription.webService.appsiteconfig.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionWebServiceAppsiteconfig).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.loadBalancer.location": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceLoadBalancer).Location, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.webService.appsiteconfig.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionWebServiceAppsiteconfig).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.loadBalancer.tags": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceLoadBalancer).Tags, ok = plugin.RawToTValue[map[string]interface{}](v.Value, v.Error) return }, - "azure.subscription.webService.appsiteconfig.kind": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionWebServiceAppsiteconfig).Kind, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.loadBalancer.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceLoadBalancer).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.webService.appsiteconfig.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionWebServiceAppsiteconfig).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.loadBalancer.properties": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceLoadBalancer).Properties, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) return }, - "azure.subscription.webService.appsiteconfig.properties": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionWebServiceAppsiteconfig).Properties, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) + "azure.subscription.networkService.loadBalancer.etag": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceLoadBalancer).Etag, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.sqlService.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlService).__id, ok = v.Value.(string) - return - }, - "azure.subscription.sqlService.subscriptionId": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlService).SubscriptionId, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.loadBalancer.sku": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceLoadBalancer).Sku, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.sqlService.servers": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlService).Servers, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + "azure.subscription.networkService.loadBalancer.probes": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceLoadBalancer).Probes, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) return }, - "azure.subscription.sqlService.server.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceServer).__id, ok = v.Value.(string) - return - }, - "azure.subscription.sqlService.server.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceServer).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.loadBalancer.backendPools": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceLoadBalancer).BackendPools, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) return }, - "azure.subscription.sqlService.server.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceServer).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.loadBalancer.frontendIpConfigs": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceLoadBalancer).FrontendIpConfigs, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) return }, - "azure.subscription.sqlService.server.location": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceServer).Location, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.loadBalancer.inboundNatPools": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceLoadBalancer).InboundNatPools, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) return }, - "azure.subscription.sqlService.server.tags": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceServer).Tags, ok = plugin.RawToTValue[map[string]interface{}](v.Value, v.Error) + "azure.subscription.networkService.loadBalancer.inboundNatRules": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceLoadBalancer).InboundNatRules, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) return }, - "azure.subscription.sqlService.server.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceServer).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.loadBalancer.outboundRules": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceLoadBalancer).OutboundRules, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) return }, - "azure.subscription.sqlService.server.properties": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceServer).Properties, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) + "azure.subscription.networkService.loadBalancer.loadBalancerRules": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceLoadBalancer).LoadBalancerRules, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) return }, - "azure.subscription.sqlService.server.databases": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceServer).Databases, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + "azure.subscription.networkService.probe.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceProbe).__id, ok = v.Value.(string) + return + }, + "azure.subscription.networkService.probe.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceProbe).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.sqlService.server.firewallRules": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceServer).FirewallRules, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + "azure.subscription.networkService.probe.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceProbe).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.sqlService.server.azureAdAdministrators": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceServer).AzureAdAdministrators, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + "azure.subscription.networkService.probe.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceProbe).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.sqlService.server.connectionPolicy": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceServer).ConnectionPolicy, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) + "azure.subscription.networkService.probe.etag": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceProbe).Etag, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.sqlService.server.auditingPolicy": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceServer).AuditingPolicy, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) + "azure.subscription.networkService.probe.properties": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceProbe).Properties, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) return }, - "azure.subscription.sqlService.server.securityAlertPolicy": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceServer).SecurityAlertPolicy, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) + "azure.subscription.networkService.backendAddressPool.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceBackendAddressPool).__id, ok = v.Value.(string) + return + }, + "azure.subscription.networkService.backendAddressPool.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceBackendAddressPool).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.sqlService.server.encryptionProtector": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceServer).EncryptionProtector, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) + "azure.subscription.networkService.backendAddressPool.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceBackendAddressPool).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.sqlService.server.threatDetectionPolicy": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceServer).ThreatDetectionPolicy, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) + "azure.subscription.networkService.backendAddressPool.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceBackendAddressPool).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.sqlService.server.vulnerabilityAssessmentSettings": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceServer).VulnerabilityAssessmentSettings, ok = plugin.RawToTValue[*mqlAzureSubscriptionSqlServiceServerVulnerabilityassessmentsettings](v.Value, v.Error) + "azure.subscription.networkService.backendAddressPool.etag": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceBackendAddressPool).Etag, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.sqlService.server.virtualNetworkRules": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceServer).VirtualNetworkRules, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + "azure.subscription.networkService.backendAddressPool.properties": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceBackendAddressPool).Properties, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) return }, - "azure.subscription.sqlService.server.vulnerabilityassessmentsettings.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceServerVulnerabilityassessmentsettings).__id, ok = v.Value.(string) + "azure.subscription.networkService.inboundNatPool.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceInboundNatPool).__id, ok = v.Value.(string) return }, - "azure.subscription.sqlService.server.vulnerabilityassessmentsettings.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceServerVulnerabilityassessmentsettings).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.inboundNatPool.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceInboundNatPool).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.sqlService.server.vulnerabilityassessmentsettings.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceServerVulnerabilityassessmentsettings).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.inboundNatPool.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceInboundNatPool).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.sqlService.server.vulnerabilityassessmentsettings.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceServerVulnerabilityassessmentsettings).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.inboundNatPool.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceInboundNatPool).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.sqlService.server.vulnerabilityassessmentsettings.storageContainerPath": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceServerVulnerabilityassessmentsettings).StorageContainerPath, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.inboundNatPool.etag": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceInboundNatPool).Etag, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.sqlService.server.vulnerabilityassessmentsettings.storageAccountAccessKey": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceServerVulnerabilityassessmentsettings).StorageAccountAccessKey, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.inboundNatPool.properties": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceInboundNatPool).Properties, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) return }, - "azure.subscription.sqlService.server.vulnerabilityassessmentsettings.storageContainerSasKey": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceServerVulnerabilityassessmentsettings).StorageContainerSasKey, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.inboundNatRule.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceInboundNatRule).__id, ok = v.Value.(string) + return + }, + "azure.subscription.networkService.inboundNatRule.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceInboundNatRule).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.sqlService.server.vulnerabilityassessmentsettings.recurringScanEnabled": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceServerVulnerabilityassessmentsettings).RecurringScanEnabled, ok = plugin.RawToTValue[bool](v.Value, v.Error) + "azure.subscription.networkService.inboundNatRule.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceInboundNatRule).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.sqlService.server.vulnerabilityassessmentsettings.recurringScanEmails": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceServerVulnerabilityassessmentsettings).RecurringScanEmails, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + "azure.subscription.networkService.inboundNatRule.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceInboundNatRule).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.sqlService.server.vulnerabilityassessmentsettings.mailSubscriptionAdmins": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceServerVulnerabilityassessmentsettings).MailSubscriptionAdmins, ok = plugin.RawToTValue[bool](v.Value, v.Error) + "azure.subscription.networkService.inboundNatRule.etag": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceInboundNatRule).Etag, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.sqlService.server.administrator.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceServerAdministrator).__id, ok = v.Value.(string) - return - }, - "azure.subscription.sqlService.server.administrator.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceServerAdministrator).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.inboundNatRule.properties": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceInboundNatRule).Properties, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) return }, - "azure.subscription.sqlService.server.administrator.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceServerAdministrator).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.frontendIpConfig.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceFrontendIpConfig).__id, ok = v.Value.(string) + return + }, + "azure.subscription.networkService.frontendIpConfig.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceFrontendIpConfig).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.sqlService.server.administrator.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceServerAdministrator).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.frontendIpConfig.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceFrontendIpConfig).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.sqlService.server.administrator.administratorType": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceServerAdministrator).AdministratorType, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.frontendIpConfig.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceFrontendIpConfig).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.sqlService.server.administrator.login": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceServerAdministrator).Login, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.frontendIpConfig.etag": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceFrontendIpConfig).Etag, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.sqlService.server.administrator.sid": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceServerAdministrator).Sid, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.frontendIpConfig.properties": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceFrontendIpConfig).Properties, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) return }, - "azure.subscription.sqlService.server.administrator.tenantId": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceServerAdministrator).TenantId, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.frontendIpConfig.zones": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceFrontendIpConfig).Zones, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) return }, - "azure.subscription.sqlService.database.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceDatabase).__id, ok = v.Value.(string) + "azure.subscription.networkService.loadBalancerRule.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceLoadBalancerRule).__id, ok = v.Value.(string) return }, - "azure.subscription.sqlService.database.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceDatabase).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.loadBalancerRule.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceLoadBalancerRule).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.sqlService.database.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceDatabase).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.loadBalancerRule.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceLoadBalancerRule).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.sqlService.database.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceDatabase).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.loadBalancerRule.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceLoadBalancerRule).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.sqlService.database.collation": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceDatabase).Collation, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.loadBalancerRule.etag": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceLoadBalancerRule).Etag, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.sqlService.database.creationDate": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceDatabase).CreationDate, ok = plugin.RawToTValue[*time.Time](v.Value, v.Error) + "azure.subscription.networkService.loadBalancerRule.properties": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceLoadBalancerRule).Properties, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) return }, - "azure.subscription.sqlService.database.databaseId": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceDatabase).DatabaseId, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.outboundRule.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceOutboundRule).__id, ok = v.Value.(string) + return + }, + "azure.subscription.networkService.outboundRule.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceOutboundRule).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.sqlService.database.earliestRestoreDate": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceDatabase).EarliestRestoreDate, ok = plugin.RawToTValue[*time.Time](v.Value, v.Error) + "azure.subscription.networkService.outboundRule.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceOutboundRule).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.sqlService.database.createMode": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceDatabase).CreateMode, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.outboundRule.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceOutboundRule).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.sqlService.database.sourceDatabaseId": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceDatabase).SourceDatabaseId, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.outboundRule.etag": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceOutboundRule).Etag, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.sqlService.database.sourceDatabaseDeletionDate": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceDatabase).SourceDatabaseDeletionDate, ok = plugin.RawToTValue[*time.Time](v.Value, v.Error) + "azure.subscription.networkService.outboundRule.properties": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceOutboundRule).Properties, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) return }, - "azure.subscription.sqlService.database.restorePointInTime": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceDatabase).RestorePointInTime, ok = plugin.RawToTValue[*time.Time](v.Value, v.Error) + "azure.subscription.networkService.interface.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceInterface).__id, ok = v.Value.(string) + return + }, + "azure.subscription.networkService.interface.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceInterface).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.sqlService.database.recoveryServicesRecoveryPointResourceId": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceDatabase).RecoveryServicesRecoveryPointResourceId, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.interface.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceInterface).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.sqlService.database.edition": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceDatabase).Edition, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.interface.location": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceInterface).Location, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.sqlService.database.maxSizeBytes": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceDatabase).MaxSizeBytes, ok = plugin.RawToTValue[int64](v.Value, v.Error) + "azure.subscription.networkService.interface.tags": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceInterface).Tags, ok = plugin.RawToTValue[map[string]interface{}](v.Value, v.Error) return }, - "azure.subscription.sqlService.database.requestedServiceObjectiveName": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceDatabase).RequestedServiceObjectiveName, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.interface.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceInterface).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.sqlService.database.serviceLevelObjective": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceDatabase).ServiceLevelObjective, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.interface.etag": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceInterface).Etag, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.sqlService.database.status": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceDatabase).Status, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.interface.properties": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceInterface).Properties, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) return }, - "azure.subscription.sqlService.database.elasticPoolName": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceDatabase).ElasticPoolName, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.interface.vm": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceInterface).Vm, ok = plugin.RawToTValue[*mqlAzureSubscriptionComputeServiceVm](v.Value, v.Error) return }, - "azure.subscription.sqlService.database.defaultSecondaryLocation": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceDatabase).DefaultSecondaryLocation, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.ipAddress.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceIpAddress).__id, ok = v.Value.(string) + return + }, + "azure.subscription.networkService.ipAddress.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceIpAddress).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.sqlService.database.failoverGroupId": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceDatabase).FailoverGroupId, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.ipAddress.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceIpAddress).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.sqlService.database.readScale": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceDatabase).ReadScale, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.ipAddress.location": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceIpAddress).Location, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.sqlService.database.sampleName": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceDatabase).SampleName, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.ipAddress.tags": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceIpAddress).Tags, ok = plugin.RawToTValue[map[string]interface{}](v.Value, v.Error) return }, - "azure.subscription.sqlService.database.zoneRedundant": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceDatabase).ZoneRedundant, ok = plugin.RawToTValue[bool](v.Value, v.Error) + "azure.subscription.networkService.ipAddress.ipAddress": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceIpAddress).IpAddress, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.sqlService.database.transparentDataEncryption": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceDatabase).TransparentDataEncryption, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) + "azure.subscription.networkService.ipAddress.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceIpAddress).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.sqlService.database.advisor": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceDatabase).Advisor, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + "azure.subscription.networkService.bastionHost.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceBastionHost).__id, ok = v.Value.(string) + return + }, + "azure.subscription.networkService.bastionHost.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceBastionHost).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.sqlService.database.threatDetectionPolicy": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceDatabase).ThreatDetectionPolicy, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) + "azure.subscription.networkService.bastionHost.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceBastionHost).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.sqlService.database.connectionPolicy": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceDatabase).ConnectionPolicy, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) + "azure.subscription.networkService.bastionHost.location": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceBastionHost).Location, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.sqlService.database.auditingPolicy": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceDatabase).AuditingPolicy, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) + "azure.subscription.networkService.bastionHost.tags": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceBastionHost).Tags, ok = plugin.RawToTValue[map[string]interface{}](v.Value, v.Error) return }, - "azure.subscription.sqlService.database.usage": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceDatabase).Usage, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + "azure.subscription.networkService.bastionHost.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceBastionHost).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.sqlService.databaseusage.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceDatabaseusage).__id, ok = v.Value.(string) - return - }, - "azure.subscription.sqlService.databaseusage.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceDatabaseusage).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) - return - }, - "azure.subscription.sqlService.databaseusage.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceDatabaseusage).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.bastionHost.properties": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceBastionHost).Properties, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) return }, - "azure.subscription.sqlService.databaseusage.resourceName": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceDatabaseusage).ResourceName, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.bastionHost.sku": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceBastionHost).Sku, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) return }, - "azure.subscription.sqlService.databaseusage.displayName": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceDatabaseusage).DisplayName, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.securityGroup.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceSecurityGroup).__id, ok = v.Value.(string) + return + }, + "azure.subscription.networkService.securityGroup.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceSecurityGroup).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.sqlService.databaseusage.currentValue": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceDatabaseusage).CurrentValue, ok = plugin.RawToTValue[float64](v.Value, v.Error) + "azure.subscription.networkService.securityGroup.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceSecurityGroup).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.sqlService.databaseusage.limit": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceDatabaseusage).Limit, ok = plugin.RawToTValue[float64](v.Value, v.Error) + "azure.subscription.networkService.securityGroup.location": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceSecurityGroup).Location, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.sqlService.databaseusage.unit": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceDatabaseusage).Unit, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.securityGroup.tags": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceSecurityGroup).Tags, ok = plugin.RawToTValue[map[string]interface{}](v.Value, v.Error) return }, - "azure.subscription.postgreSqlService.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionPostgreSqlService).__id, ok = v.Value.(string) - return - }, - "azure.subscription.postgreSqlService.subscriptionId": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionPostgreSqlService).SubscriptionId, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.securityGroup.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceSecurityGroup).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.postgreSqlService.servers": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionPostgreSqlService).Servers, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + "azure.subscription.networkService.securityGroup.etag": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceSecurityGroup).Etag, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.postgreSqlService.server.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionPostgreSqlServiceServer).__id, ok = v.Value.(string) - return - }, - "azure.subscription.postgreSqlService.server.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionPostgreSqlServiceServer).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.securityGroup.properties": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceSecurityGroup).Properties, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) return }, - "azure.subscription.postgreSqlService.server.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionPostgreSqlServiceServer).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.securityGroup.interfaces": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceSecurityGroup).Interfaces, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) return }, - "azure.subscription.postgreSqlService.server.location": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionPostgreSqlServiceServer).Location, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.securityGroup.securityRules": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceSecurityGroup).SecurityRules, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) return }, - "azure.subscription.postgreSqlService.server.tags": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionPostgreSqlServiceServer).Tags, ok = plugin.RawToTValue[map[string]interface{}](v.Value, v.Error) + "azure.subscription.networkService.securityGroup.defaultSecurityRules": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceSecurityGroup).DefaultSecurityRules, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) return }, - "azure.subscription.postgreSqlService.server.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionPostgreSqlServiceServer).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.securityrule.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceSecurityrule).__id, ok = v.Value.(string) + return + }, + "azure.subscription.networkService.securityrule.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceSecurityrule).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.postgreSqlService.server.properties": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionPostgreSqlServiceServer).Properties, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) + "azure.subscription.networkService.securityrule.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceSecurityrule).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.postgreSqlService.server.configuration": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionPostgreSqlServiceServer).Configuration, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + "azure.subscription.networkService.securityrule.etag": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceSecurityrule).Etag, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.postgreSqlService.server.databases": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionPostgreSqlServiceServer).Databases, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + "azure.subscription.networkService.securityrule.properties": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceSecurityrule).Properties, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) return }, - "azure.subscription.postgreSqlService.server.firewallRules": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionPostgreSqlServiceServer).FirewallRules, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + "azure.subscription.networkService.securityrule.destinationPortRange": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceSecurityrule).DestinationPortRange, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) return }, - "azure.subscription.postgreSqlService.database.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionPostgreSqlServiceDatabase).__id, ok = v.Value.(string) + "azure.subscription.networkService.watcher.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceWatcher).__id, ok = v.Value.(string) return }, - "azure.subscription.postgreSqlService.database.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionPostgreSqlServiceDatabase).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.watcher.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceWatcher).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.postgreSqlService.database.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionPostgreSqlServiceDatabase).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.watcher.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceWatcher).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.postgreSqlService.database.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionPostgreSqlServiceDatabase).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.watcher.location": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceWatcher).Location, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.postgreSqlService.database.charset": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionPostgreSqlServiceDatabase).Charset, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.watcher.tags": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceWatcher).Tags, ok = plugin.RawToTValue[map[string]interface{}](v.Value, v.Error) return }, - "azure.subscription.postgreSqlService.database.collation": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionPostgreSqlServiceDatabase).Collation, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.watcher.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceWatcher).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.sqlService.configuration.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceConfiguration).__id, ok = v.Value.(string) - return - }, - "azure.subscription.sqlService.configuration.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceConfiguration).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.watcher.etag": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceWatcher).Etag, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.sqlService.configuration.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceConfiguration).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.watcher.properties": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceWatcher).Properties, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) return }, - "azure.subscription.sqlService.configuration.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceConfiguration).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.watcher.flowLogs": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceWatcher).FlowLogs, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) return }, - "azure.subscription.sqlService.configuration.value": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceConfiguration).Value, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.watcher.provisioningState": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceWatcher).ProvisioningState, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.sqlService.configuration.description": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceConfiguration).Description, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.watcher.flowlog.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceWatcherFlowlog).__id, ok = v.Value.(string) + return + }, + "azure.subscription.networkService.watcher.flowlog.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceWatcherFlowlog).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.sqlService.configuration.defaultValue": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceConfiguration).DefaultValue, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.watcher.flowlog.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceWatcherFlowlog).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.sqlService.configuration.dataType": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceConfiguration).DataType, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.watcher.flowlog.location": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceWatcherFlowlog).Location, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.sqlService.configuration.allowedValues": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceConfiguration).AllowedValues, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.watcher.flowlog.tags": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceWatcherFlowlog).Tags, ok = plugin.RawToTValue[map[string]interface{}](v.Value, v.Error) return }, - "azure.subscription.sqlService.configuration.source": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceConfiguration).Source, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.watcher.flowlog.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceWatcherFlowlog).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.sqlService.firewallrule.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceFirewallrule).__id, ok = v.Value.(string) - return - }, - "azure.subscription.sqlService.firewallrule.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceFirewallrule).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.watcher.flowlog.etag": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceWatcherFlowlog).Etag, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.sqlService.firewallrule.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceFirewallrule).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.watcher.flowlog.provisioningState": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceWatcherFlowlog).ProvisioningState, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.sqlService.firewallrule.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceFirewallrule).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.watcher.flowlog.enabled": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceWatcherFlowlog).Enabled, ok = plugin.RawToTValue[bool](v.Value, v.Error) return }, - "azure.subscription.sqlService.firewallrule.startIpAddress": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceFirewallrule).StartIpAddress, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.watcher.flowlog.storageAccountId": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceWatcherFlowlog).StorageAccountId, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.sqlService.firewallrule.endIpAddress": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceFirewallrule).EndIpAddress, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.watcher.flowlog.targetResourceId": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceWatcherFlowlog).TargetResourceId, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.sqlService.virtualNetworkRule.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceVirtualNetworkRule).__id, ok = v.Value.(string) - return - }, - "azure.subscription.sqlService.virtualNetworkRule.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceVirtualNetworkRule).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.watcher.flowlog.targetResourceGuid": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceWatcherFlowlog).TargetResourceGuid, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.sqlService.virtualNetworkRule.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceVirtualNetworkRule).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.watcher.flowlog.version": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceWatcherFlowlog).Version, ok = plugin.RawToTValue[int64](v.Value, v.Error) return }, - "azure.subscription.sqlService.virtualNetworkRule.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceVirtualNetworkRule).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.watcher.flowlog.format": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceWatcherFlowlog).Format, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.sqlService.virtualNetworkRule.properties": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceVirtualNetworkRule).Properties, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) + "azure.subscription.networkService.watcher.flowlog.retentionPolicy": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceWatcherFlowlog).RetentionPolicy, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) return }, - "azure.subscription.sqlService.virtualNetworkRule.virtualNetworkSubnetId": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionSqlServiceVirtualNetworkRule).VirtualNetworkSubnetId, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.networkService.watcher.flowlog.analytics": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionNetworkServiceWatcherFlowlog).Analytics, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) return }, - "azure.subscription.mySqlService.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMySqlService).__id, ok = v.Value.(string) + "azure.subscription.storageService.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionStorageService).__id, ok = v.Value.(string) return }, - "azure.subscription.mySqlService.subscriptionId": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMySqlService).SubscriptionId, ok = plugin.RawToTValue[string](v.Value, v.Error) - return - }, - "azure.subscription.mySqlService.servers": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMySqlService).Servers, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + "azure.subscription.storageService.subscriptionId": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionStorageService).SubscriptionId, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.mySqlService.flexibleServers": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMySqlService).FlexibleServers, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + "azure.subscription.storageService.accounts": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionStorageService).Accounts, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) return }, - "azure.subscription.mySqlService.server.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMySqlServiceServer).__id, ok = v.Value.(string) + "azure.subscription.storageService.account.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionStorageServiceAccount).__id, ok = v.Value.(string) return }, - "azure.subscription.mySqlService.server.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMySqlServiceServer).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.storageService.account.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionStorageServiceAccount).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.mySqlService.server.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMySqlServiceServer).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.storageService.account.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionStorageServiceAccount).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.mySqlService.server.location": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMySqlServiceServer).Location, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.storageService.account.location": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionStorageServiceAccount).Location, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.mySqlService.server.tags": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMySqlServiceServer).Tags, ok = plugin.RawToTValue[map[string]interface{}](v.Value, v.Error) + "azure.subscription.storageService.account.tags": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionStorageServiceAccount).Tags, ok = plugin.RawToTValue[map[string]interface{}](v.Value, v.Error) return }, - "azure.subscription.mySqlService.server.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMySqlServiceServer).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.storageService.account.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionStorageServiceAccount).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.mySqlService.server.properties": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMySqlServiceServer).Properties, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) + "azure.subscription.storageService.account.properties": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionStorageServiceAccount).Properties, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) return }, - "azure.subscription.mySqlService.server.configuration": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMySqlServiceServer).Configuration, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + "azure.subscription.storageService.account.identity": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionStorageServiceAccount).Identity, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) return }, - "azure.subscription.mySqlService.server.databases": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMySqlServiceServer).Databases, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + "azure.subscription.storageService.account.sku": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionStorageServiceAccount).Sku, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) return }, - "azure.subscription.mySqlService.server.firewallRules": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMySqlServiceServer).FirewallRules, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + "azure.subscription.storageService.account.kind": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionStorageServiceAccount).Kind, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.mySqlService.database.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMySqlServiceDatabase).__id, ok = v.Value.(string) - return - }, - "azure.subscription.mySqlService.database.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMySqlServiceDatabase).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.storageService.account.containers": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionStorageServiceAccount).Containers, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) return }, - "azure.subscription.mySqlService.database.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMySqlServiceDatabase).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.storageService.account.queueProperties": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionStorageServiceAccount).QueueProperties, ok = plugin.RawToTValue[*mqlAzureSubscriptionStorageServiceAccountServiceProperties](v.Value, v.Error) return }, - "azure.subscription.mySqlService.database.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMySqlServiceDatabase).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.storageService.account.tableProperties": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionStorageServiceAccount).TableProperties, ok = plugin.RawToTValue[*mqlAzureSubscriptionStorageServiceAccountServiceProperties](v.Value, v.Error) return }, - "azure.subscription.mySqlService.database.charset": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMySqlServiceDatabase).Charset, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.storageService.account.blobProperties": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionStorageServiceAccount).BlobProperties, ok = plugin.RawToTValue[*mqlAzureSubscriptionStorageServiceAccountServiceProperties](v.Value, v.Error) return }, - "azure.subscription.mySqlService.database.collation": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMySqlServiceDatabase).Collation, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.storageService.account.dataProtection": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionStorageServiceAccount).DataProtection, ok = plugin.RawToTValue[*mqlAzureSubscriptionStorageServiceAccountDataProtection](v.Value, v.Error) return }, - "azure.subscription.mySqlService.flexibleServer.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMySqlServiceFlexibleServer).__id, ok = v.Value.(string) + "azure.subscription.storageService.account.dataProtection.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionStorageServiceAccountDataProtection).__id, ok = v.Value.(string) return }, - "azure.subscription.mySqlService.flexibleServer.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMySqlServiceFlexibleServer).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.storageService.account.dataProtection.storageAccountId": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionStorageServiceAccountDataProtection).StorageAccountId, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.mySqlService.flexibleServer.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMySqlServiceFlexibleServer).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.storageService.account.dataProtection.blobSoftDeletionEnabled": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionStorageServiceAccountDataProtection).BlobSoftDeletionEnabled, ok = plugin.RawToTValue[bool](v.Value, v.Error) return }, - "azure.subscription.mySqlService.flexibleServer.location": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMySqlServiceFlexibleServer).Location, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.storageService.account.dataProtection.blobRetentionDays": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionStorageServiceAccountDataProtection).BlobRetentionDays, ok = plugin.RawToTValue[int64](v.Value, v.Error) return }, - "azure.subscription.mySqlService.flexibleServer.tags": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMySqlServiceFlexibleServer).Tags, ok = plugin.RawToTValue[map[string]interface{}](v.Value, v.Error) + "azure.subscription.storageService.account.dataProtection.containerSoftDeletionEnabled": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionStorageServiceAccountDataProtection).ContainerSoftDeletionEnabled, ok = plugin.RawToTValue[bool](v.Value, v.Error) return }, - "azure.subscription.mySqlService.flexibleServer.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMySqlServiceFlexibleServer).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.storageService.account.dataProtection.containerRetentionDays": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionStorageServiceAccountDataProtection).ContainerRetentionDays, ok = plugin.RawToTValue[int64](v.Value, v.Error) return }, - "azure.subscription.mySqlService.flexibleServer.properties": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMySqlServiceFlexibleServer).Properties, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) + "azure.subscription.storageService.account.service.properties.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionStorageServiceAccountServiceProperties).__id, ok = v.Value.(string) + return + }, + "azure.subscription.storageService.account.service.properties.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionStorageServiceAccountServiceProperties).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.mySqlService.flexibleServer.configuration": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMySqlServiceFlexibleServer).Configuration, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + "azure.subscription.storageService.account.service.properties.hourMetrics": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionStorageServiceAccountServiceProperties).HourMetrics, ok = plugin.RawToTValue[*mqlAzureSubscriptionStorageServiceAccountServicePropertiesMetrics](v.Value, v.Error) return }, - "azure.subscription.mySqlService.flexibleServer.databases": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMySqlServiceFlexibleServer).Databases, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + "azure.subscription.storageService.account.service.properties.minuteMetrics": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionStorageServiceAccountServiceProperties).MinuteMetrics, ok = plugin.RawToTValue[*mqlAzureSubscriptionStorageServiceAccountServicePropertiesMetrics](v.Value, v.Error) return }, - "azure.subscription.mySqlService.flexibleServer.firewallRules": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMySqlServiceFlexibleServer).FirewallRules, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + "azure.subscription.storageService.account.service.properties.logging": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionStorageServiceAccountServiceProperties).Logging, ok = plugin.RawToTValue[*mqlAzureSubscriptionStorageServiceAccountServicePropertiesLogging](v.Value, v.Error) return }, - "azure.subscription.mariaDbService.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMariaDbService).__id, ok = v.Value.(string) + "azure.subscription.storageService.account.service.properties.metrics.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionStorageServiceAccountServicePropertiesMetrics).__id, ok = v.Value.(string) return }, - "azure.subscription.mariaDbService.subscriptionId": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMariaDbService).SubscriptionId, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.storageService.account.service.properties.metrics.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionStorageServiceAccountServicePropertiesMetrics).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.mariaDbService.servers": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMariaDbService).Servers, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + "azure.subscription.storageService.account.service.properties.metrics.includeAPIs": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionStorageServiceAccountServicePropertiesMetrics).IncludeAPIs, ok = plugin.RawToTValue[bool](v.Value, v.Error) return }, - "azure.subscription.mariaDbService.server.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMariaDbServiceServer).__id, ok = v.Value.(string) + "azure.subscription.storageService.account.service.properties.metrics.retentionPolicy": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionStorageServiceAccountServicePropertiesMetrics).RetentionPolicy, ok = plugin.RawToTValue[*mqlAzureSubscriptionStorageServiceAccountServicePropertiesRetentionPolicy](v.Value, v.Error) + return + }, + "azure.subscription.storageService.account.service.properties.metrics.enabled": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionStorageServiceAccountServicePropertiesMetrics).Enabled, ok = plugin.RawToTValue[bool](v.Value, v.Error) + return + }, + "azure.subscription.storageService.account.service.properties.metrics.version": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionStorageServiceAccountServicePropertiesMetrics).Version, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.storageService.account.service.properties.retentionPolicy.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionStorageServiceAccountServicePropertiesRetentionPolicy).__id, ok = v.Value.(string) return }, - "azure.subscription.mariaDbService.server.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMariaDbServiceServer).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.storageService.account.service.properties.retentionPolicy.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionStorageServiceAccountServicePropertiesRetentionPolicy).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.mariaDbService.server.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMariaDbServiceServer).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.storageService.account.service.properties.retentionPolicy.retentionDays": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionStorageServiceAccountServicePropertiesRetentionPolicy).RetentionDays, ok = plugin.RawToTValue[int64](v.Value, v.Error) return }, - "azure.subscription.mariaDbService.server.location": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMariaDbServiceServer).Location, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.storageService.account.service.properties.retentionPolicy.enabled": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionStorageServiceAccountServicePropertiesRetentionPolicy).Enabled, ok = plugin.RawToTValue[bool](v.Value, v.Error) return }, - "azure.subscription.mariaDbService.server.tags": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMariaDbServiceServer).Tags, ok = plugin.RawToTValue[map[string]interface{}](v.Value, v.Error) + "azure.subscription.storageService.account.service.properties.logging.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionStorageServiceAccountServicePropertiesLogging).__id, ok = v.Value.(string) + return + }, + "azure.subscription.storageService.account.service.properties.logging.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionStorageServiceAccountServicePropertiesLogging).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.mariaDbService.server.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMariaDbServiceServer).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.storageService.account.service.properties.logging.delete": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionStorageServiceAccountServicePropertiesLogging).Delete, ok = plugin.RawToTValue[bool](v.Value, v.Error) return }, - "azure.subscription.mariaDbService.server.properties": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMariaDbServiceServer).Properties, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) + "azure.subscription.storageService.account.service.properties.logging.read": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionStorageServiceAccountServicePropertiesLogging).Read, ok = plugin.RawToTValue[bool](v.Value, v.Error) return }, - "azure.subscription.mariaDbService.server.configuration": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMariaDbServiceServer).Configuration, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + "azure.subscription.storageService.account.service.properties.logging.write": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionStorageServiceAccountServicePropertiesLogging).Write, ok = plugin.RawToTValue[bool](v.Value, v.Error) return }, - "azure.subscription.mariaDbService.server.databases": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMariaDbServiceServer).Databases, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + "azure.subscription.storageService.account.service.properties.logging.version": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionStorageServiceAccountServicePropertiesLogging).Version, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.mariaDbService.server.firewallRules": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMariaDbServiceServer).FirewallRules, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + "azure.subscription.storageService.account.service.properties.logging.retentionPolicy": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionStorageServiceAccountServicePropertiesLogging).RetentionPolicy, ok = plugin.RawToTValue[*mqlAzureSubscriptionStorageServiceAccountServicePropertiesRetentionPolicy](v.Value, v.Error) return }, - "azure.subscription.mariaDbService.database.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMariaDbServiceDatabase).__id, ok = v.Value.(string) + "azure.subscription.storageService.account.container.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionStorageServiceAccountContainer).__id, ok = v.Value.(string) return }, - "azure.subscription.mariaDbService.database.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMariaDbServiceDatabase).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.storageService.account.container.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionStorageServiceAccountContainer).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.mariaDbService.database.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMariaDbServiceDatabase).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.storageService.account.container.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionStorageServiceAccountContainer).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.mariaDbService.database.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMariaDbServiceDatabase).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.storageService.account.container.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionStorageServiceAccountContainer).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.mariaDbService.database.charset": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMariaDbServiceDatabase).Charset, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.storageService.account.container.etag": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionStorageServiceAccountContainer).Etag, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.mariaDbService.database.collation": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMariaDbServiceDatabase).Collation, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.storageService.account.container.properties": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionStorageServiceAccountContainer).Properties, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) return }, - "azure.subscription.cosmosDbService.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionCosmosDbService).__id, ok = v.Value.(string) + "azure.subscription.webService.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionWebService).__id, ok = v.Value.(string) return }, - "azure.subscription.cosmosDbService.subscriptionId": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionCosmosDbService).SubscriptionId, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.webService.subscriptionId": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionWebService).SubscriptionId, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.cosmosDbService.accounts": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionCosmosDbService).Accounts, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + "azure.subscription.webService.apps": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionWebService).Apps, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) return }, - "azure.subscription.cosmosDbService.account.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionCosmosDbServiceAccount).__id, ok = v.Value.(string) - return - }, - "azure.subscription.cosmosDbService.account.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionCosmosDbServiceAccount).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.webService.availableRuntimes": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionWebService).AvailableRuntimes, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) return }, - "azure.subscription.cosmosDbService.account.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionCosmosDbServiceAccount).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.webService.appsite.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionWebServiceAppsite).__id, ok = v.Value.(string) + return + }, + "azure.subscription.webService.appsite.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionWebServiceAppsite).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.cosmosDbService.account.properties": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionCosmosDbServiceAccount).Properties, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) + "azure.subscription.webService.appsite.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionWebServiceAppsite).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.cosmosDbService.account.location": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionCosmosDbServiceAccount).Location, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.webService.appsite.kind": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionWebServiceAppsite).Kind, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.cosmosDbService.account.tags": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionCosmosDbServiceAccount).Tags, ok = plugin.RawToTValue[map[string]interface{}](v.Value, v.Error) + "azure.subscription.webService.appsite.location": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionWebServiceAppsite).Location, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.cosmosDbService.account.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionCosmosDbServiceAccount).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.webService.appsite.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionWebServiceAppsite).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.cosmosDbService.account.kind": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionCosmosDbServiceAccount).Kind, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.webService.appsite.tags": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionWebServiceAppsite).Tags, ok = plugin.RawToTValue[map[string]interface{}](v.Value, v.Error) return }, - "azure.subscription.keyVaultService.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionKeyVaultService).__id, ok = v.Value.(string) - return - }, - "azure.subscription.keyVaultService.subscriptionId": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionKeyVaultService).SubscriptionId, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.webService.appsite.properties": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionWebServiceAppsite).Properties, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) return }, - "azure.subscription.keyVaultService.vaults": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionKeyVaultService).Vaults, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + "azure.subscription.webService.appsite.identity": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionWebServiceAppsite).Identity, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) return }, - "azure.subscription.keyVaultService.vault.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionKeyVaultServiceVault).__id, ok = v.Value.(string) - return - }, - "azure.subscription.keyVaultService.vault.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionKeyVaultServiceVault).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.webService.appsite.configuration": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionWebServiceAppsite).Configuration, ok = plugin.RawToTValue[*mqlAzureSubscriptionWebServiceAppsiteconfig](v.Value, v.Error) return }, - "azure.subscription.keyVaultService.vault.vaultName": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionKeyVaultServiceVault).VaultName, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.webService.appsite.authenticationSettings": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionWebServiceAppsite).AuthenticationSettings, ok = plugin.RawToTValue[*mqlAzureSubscriptionWebServiceAppsiteauthsettings](v.Value, v.Error) return }, - "azure.subscription.keyVaultService.vault.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionKeyVaultServiceVault).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.webService.appsite.metadata": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionWebServiceAppsite).Metadata, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) return }, - "azure.subscription.keyVaultService.vault.location": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionKeyVaultServiceVault).Location, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.webService.appsite.applicationSettings": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionWebServiceAppsite).ApplicationSettings, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) return }, - "azure.subscription.keyVaultService.vault.tags": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionKeyVaultServiceVault).Tags, ok = plugin.RawToTValue[map[string]interface{}](v.Value, v.Error) + "azure.subscription.webService.appsite.connectionSettings": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionWebServiceAppsite).ConnectionSettings, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) return }, - "azure.subscription.keyVaultService.vault.vaultUri": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionKeyVaultServiceVault).VaultUri, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.webService.appsite.stack": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionWebServiceAppsite).Stack, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) return }, - "azure.subscription.keyVaultService.vault.properties": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionKeyVaultServiceVault).Properties, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) + "azure.subscription.webService.appsiteauthsettings.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionWebServiceAppsiteauthsettings).__id, ok = v.Value.(string) + return + }, + "azure.subscription.webService.appsiteauthsettings.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionWebServiceAppsiteauthsettings).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.keyVaultService.vault.keys": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionKeyVaultServiceVault).Keys, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + "azure.subscription.webService.appsiteauthsettings.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionWebServiceAppsiteauthsettings).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.keyVaultService.vault.certificates": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionKeyVaultServiceVault).Certificates, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + "azure.subscription.webService.appsiteauthsettings.kind": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionWebServiceAppsiteauthsettings).Kind, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.keyVaultService.vault.secrets": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionKeyVaultServiceVault).Secrets, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + "azure.subscription.webService.appsiteauthsettings.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionWebServiceAppsiteauthsettings).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.keyVaultService.vault.diagnosticSettings": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionKeyVaultServiceVault).DiagnosticSettings, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + "azure.subscription.webService.appsiteauthsettings.properties": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionWebServiceAppsiteauthsettings).Properties, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) return }, - "azure.subscription.keyVaultService.key.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionKeyVaultServiceKey).__id, ok = v.Value.(string) + "azure.subscription.webService.appsiteconfig.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionWebServiceAppsiteconfig).__id, ok = v.Value.(string) return }, - "azure.subscription.keyVaultService.key.kid": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionKeyVaultServiceKey).Kid, ok = plugin.RawToTValue[string](v.Value, v.Error) - return - }, - "azure.subscription.keyVaultService.key.tags": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionKeyVaultServiceKey).Tags, ok = plugin.RawToTValue[map[string]interface{}](v.Value, v.Error) + "azure.subscription.webService.appsiteconfig.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionWebServiceAppsiteconfig).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.keyVaultService.key.managed": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionKeyVaultServiceKey).Managed, ok = plugin.RawToTValue[bool](v.Value, v.Error) + "azure.subscription.webService.appsiteconfig.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionWebServiceAppsiteconfig).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.keyVaultService.key.enabled": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionKeyVaultServiceKey).Enabled, ok = plugin.RawToTValue[bool](v.Value, v.Error) + "azure.subscription.webService.appsiteconfig.kind": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionWebServiceAppsiteconfig).Kind, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.keyVaultService.key.notBefore": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionKeyVaultServiceKey).NotBefore, ok = plugin.RawToTValue[*time.Time](v.Value, v.Error) + "azure.subscription.webService.appsiteconfig.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionWebServiceAppsiteconfig).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.keyVaultService.key.expires": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionKeyVaultServiceKey).Expires, ok = plugin.RawToTValue[*time.Time](v.Value, v.Error) + "azure.subscription.webService.appsiteconfig.properties": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionWebServiceAppsiteconfig).Properties, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) return }, - "azure.subscription.keyVaultService.key.created": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionKeyVaultServiceKey).Created, ok = plugin.RawToTValue[*time.Time](v.Value, v.Error) + "azure.subscription.sqlService.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlService).__id, ok = v.Value.(string) + return + }, + "azure.subscription.sqlService.subscriptionId": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlService).SubscriptionId, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.keyVaultService.key.updated": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionKeyVaultServiceKey).Updated, ok = plugin.RawToTValue[*time.Time](v.Value, v.Error) + "azure.subscription.sqlService.servers": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlService).Servers, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) return }, - "azure.subscription.keyVaultService.key.recoveryLevel": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionKeyVaultServiceKey).RecoveryLevel, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.sqlService.server.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceServer).__id, ok = v.Value.(string) + return + }, + "azure.subscription.sqlService.server.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceServer).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.keyVaultService.key.keyName": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionKeyVaultServiceKey).KeyName, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.sqlService.server.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceServer).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.keyVaultService.key.version": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionKeyVaultServiceKey).Version, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.sqlService.server.location": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceServer).Location, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.keyVaultService.key.versions": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionKeyVaultServiceKey).Versions, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + "azure.subscription.sqlService.server.tags": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceServer).Tags, ok = plugin.RawToTValue[map[string]interface{}](v.Value, v.Error) return }, - "azure.subscription.keyVaultService.certificate.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionKeyVaultServiceCertificate).__id, ok = v.Value.(string) - return - }, - "azure.subscription.keyVaultService.certificate.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionKeyVaultServiceCertificate).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.sqlService.server.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceServer).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.keyVaultService.certificate.tags": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionKeyVaultServiceCertificate).Tags, ok = plugin.RawToTValue[map[string]interface{}](v.Value, v.Error) + "azure.subscription.sqlService.server.properties": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceServer).Properties, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) return }, - "azure.subscription.keyVaultService.certificate.x5t": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionKeyVaultServiceCertificate).X5t, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.sqlService.server.databases": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceServer).Databases, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) return }, - "azure.subscription.keyVaultService.certificate.enabled": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionKeyVaultServiceCertificate).Enabled, ok = plugin.RawToTValue[bool](v.Value, v.Error) + "azure.subscription.sqlService.server.firewallRules": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceServer).FirewallRules, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) return }, - "azure.subscription.keyVaultService.certificate.notBefore": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionKeyVaultServiceCertificate).NotBefore, ok = plugin.RawToTValue[*time.Time](v.Value, v.Error) + "azure.subscription.sqlService.server.azureAdAdministrators": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceServer).AzureAdAdministrators, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) return }, - "azure.subscription.keyVaultService.certificate.expires": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionKeyVaultServiceCertificate).Expires, ok = plugin.RawToTValue[*time.Time](v.Value, v.Error) + "azure.subscription.sqlService.server.connectionPolicy": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceServer).ConnectionPolicy, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) return }, - "azure.subscription.keyVaultService.certificate.created": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionKeyVaultServiceCertificate).Created, ok = plugin.RawToTValue[*time.Time](v.Value, v.Error) + "azure.subscription.sqlService.server.auditingPolicy": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceServer).AuditingPolicy, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) return }, - "azure.subscription.keyVaultService.certificate.updated": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionKeyVaultServiceCertificate).Updated, ok = plugin.RawToTValue[*time.Time](v.Value, v.Error) + "azure.subscription.sqlService.server.securityAlertPolicy": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceServer).SecurityAlertPolicy, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) return }, - "azure.subscription.keyVaultService.certificate.recoveryLevel": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionKeyVaultServiceCertificate).RecoveryLevel, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.sqlService.server.encryptionProtector": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceServer).EncryptionProtector, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) return }, - "azure.subscription.keyVaultService.certificate.certName": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionKeyVaultServiceCertificate).CertName, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.sqlService.server.threatDetectionPolicy": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceServer).ThreatDetectionPolicy, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) return }, - "azure.subscription.keyVaultService.certificate.version": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionKeyVaultServiceCertificate).Version, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.sqlService.server.vulnerabilityAssessmentSettings": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceServer).VulnerabilityAssessmentSettings, ok = plugin.RawToTValue[*mqlAzureSubscriptionSqlServiceServerVulnerabilityassessmentsettings](v.Value, v.Error) return }, - "azure.subscription.keyVaultService.certificate.versions": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionKeyVaultServiceCertificate).Versions, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + "azure.subscription.sqlService.server.virtualNetworkRules": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceServer).VirtualNetworkRules, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) return }, - "azure.subscription.keyVaultService.secret.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionKeyVaultServiceSecret).__id, ok = v.Value.(string) + "azure.subscription.sqlService.server.vulnerabilityassessmentsettings.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceServerVulnerabilityassessmentsettings).__id, ok = v.Value.(string) return }, - "azure.subscription.keyVaultService.secret.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionKeyVaultServiceSecret).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) - return - }, - "azure.subscription.keyVaultService.secret.tags": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionKeyVaultServiceSecret).Tags, ok = plugin.RawToTValue[map[string]interface{}](v.Value, v.Error) - return - }, - "azure.subscription.keyVaultService.secret.contentType": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionKeyVaultServiceSecret).ContentType, ok = plugin.RawToTValue[string](v.Value, v.Error) - return - }, - "azure.subscription.keyVaultService.secret.managed": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionKeyVaultServiceSecret).Managed, ok = plugin.RawToTValue[bool](v.Value, v.Error) + "azure.subscription.sqlService.server.vulnerabilityassessmentsettings.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceServerVulnerabilityassessmentsettings).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.keyVaultService.secret.enabled": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionKeyVaultServiceSecret).Enabled, ok = plugin.RawToTValue[bool](v.Value, v.Error) + "azure.subscription.sqlService.server.vulnerabilityassessmentsettings.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceServerVulnerabilityassessmentsettings).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.keyVaultService.secret.notBefore": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionKeyVaultServiceSecret).NotBefore, ok = plugin.RawToTValue[*time.Time](v.Value, v.Error) + "azure.subscription.sqlService.server.vulnerabilityassessmentsettings.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceServerVulnerabilityassessmentsettings).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.keyVaultService.secret.expires": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionKeyVaultServiceSecret).Expires, ok = plugin.RawToTValue[*time.Time](v.Value, v.Error) + "azure.subscription.sqlService.server.vulnerabilityassessmentsettings.storageContainerPath": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceServerVulnerabilityassessmentsettings).StorageContainerPath, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.keyVaultService.secret.created": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionKeyVaultServiceSecret).Created, ok = plugin.RawToTValue[*time.Time](v.Value, v.Error) + "azure.subscription.sqlService.server.vulnerabilityassessmentsettings.storageAccountAccessKey": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceServerVulnerabilityassessmentsettings).StorageAccountAccessKey, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.keyVaultService.secret.updated": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionKeyVaultServiceSecret).Updated, ok = plugin.RawToTValue[*time.Time](v.Value, v.Error) + "azure.subscription.sqlService.server.vulnerabilityassessmentsettings.storageContainerSasKey": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceServerVulnerabilityassessmentsettings).StorageContainerSasKey, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.keyVaultService.secret.secretName": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionKeyVaultServiceSecret).SecretName, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.sqlService.server.vulnerabilityassessmentsettings.recurringScanEnabled": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceServerVulnerabilityassessmentsettings).RecurringScanEnabled, ok = plugin.RawToTValue[bool](v.Value, v.Error) return }, - "azure.subscription.keyVaultService.secret.version": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionKeyVaultServiceSecret).Version, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.sqlService.server.vulnerabilityassessmentsettings.recurringScanEmails": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceServerVulnerabilityassessmentsettings).RecurringScanEmails, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) return }, - "azure.subscription.keyVaultService.secret.versions": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionKeyVaultServiceSecret).Versions, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + "azure.subscription.sqlService.server.vulnerabilityassessmentsettings.mailSubscriptionAdmins": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceServerVulnerabilityassessmentsettings).MailSubscriptionAdmins, ok = plugin.RawToTValue[bool](v.Value, v.Error) return }, - "azure.subscription.monitorService.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMonitorService).__id, ok = v.Value.(string) + "azure.subscription.sqlService.server.administrator.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceServerAdministrator).__id, ok = v.Value.(string) return }, - "azure.subscription.monitorService.subscriptionId": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMonitorService).SubscriptionId, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.sqlService.server.administrator.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceServerAdministrator).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.monitorService.logProfiles": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMonitorService).LogProfiles, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + "azure.subscription.sqlService.server.administrator.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceServerAdministrator).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.monitorService.diagnosticSettings": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMonitorService).DiagnosticSettings, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + "azure.subscription.sqlService.server.administrator.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceServerAdministrator).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.monitorService.applicationInsights": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMonitorService).ApplicationInsights, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + "azure.subscription.sqlService.server.administrator.administratorType": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceServerAdministrator).AdministratorType, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.monitorService.activityLog": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMonitorService).ActivityLog, ok = plugin.RawToTValue[*mqlAzureSubscriptionMonitorServiceActivityLog](v.Value, v.Error) + "azure.subscription.sqlService.server.administrator.login": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceServerAdministrator).Login, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.monitorService.activityLog.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMonitorServiceActivityLog).__id, ok = v.Value.(string) - return - }, - "azure.subscription.monitorService.activityLog.subscriptionId": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMonitorServiceActivityLog).SubscriptionId, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.sqlService.server.administrator.sid": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceServerAdministrator).Sid, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.monitorService.activityLog.alerts": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMonitorServiceActivityLog).Alerts, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + "azure.subscription.sqlService.server.administrator.tenantId": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceServerAdministrator).TenantId, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.monitorService.applicationInsight.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMonitorServiceApplicationInsight).__id, ok = v.Value.(string) + "azure.subscription.sqlService.database.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceDatabase).__id, ok = v.Value.(string) return }, - "azure.subscription.monitorService.applicationInsight.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMonitorServiceApplicationInsight).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.sqlService.database.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceDatabase).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.monitorService.applicationInsight.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMonitorServiceApplicationInsight).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.sqlService.database.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceDatabase).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.monitorService.applicationInsight.properties": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMonitorServiceApplicationInsight).Properties, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) + "azure.subscription.sqlService.database.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceDatabase).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.monitorService.applicationInsight.tags": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMonitorServiceApplicationInsight).Tags, ok = plugin.RawToTValue[map[string]interface{}](v.Value, v.Error) + "azure.subscription.sqlService.database.collation": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceDatabase).Collation, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.monitorService.applicationInsight.location": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMonitorServiceApplicationInsight).Location, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.sqlService.database.creationDate": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceDatabase).CreationDate, ok = plugin.RawToTValue[*time.Time](v.Value, v.Error) return }, - "azure.subscription.monitorService.applicationInsight.kind": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMonitorServiceApplicationInsight).Kind, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.sqlService.database.databaseId": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceDatabase).DatabaseId, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.monitorService.applicationInsight.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMonitorServiceApplicationInsight).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.sqlService.database.earliestRestoreDate": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceDatabase).EarliestRestoreDate, ok = plugin.RawToTValue[*time.Time](v.Value, v.Error) return }, - "azure.subscription.monitorService.activityLog.alert.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMonitorServiceActivityLogAlert).__id, ok = v.Value.(string) - return - }, - "azure.subscription.monitorService.activityLog.alert.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMonitorServiceActivityLogAlert).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) - return - }, - "azure.subscription.monitorService.activityLog.alert.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMonitorServiceActivityLogAlert).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.sqlService.database.createMode": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceDatabase).CreateMode, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.monitorService.activityLog.alert.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMonitorServiceActivityLogAlert).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.sqlService.database.sourceDatabaseId": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceDatabase).SourceDatabaseId, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.monitorService.activityLog.alert.description": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMonitorServiceActivityLogAlert).Description, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.sqlService.database.sourceDatabaseDeletionDate": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceDatabase).SourceDatabaseDeletionDate, ok = plugin.RawToTValue[*time.Time](v.Value, v.Error) return }, - "azure.subscription.monitorService.activityLog.alert.conditions": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMonitorServiceActivityLogAlert).Conditions, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + "azure.subscription.sqlService.database.restorePointInTime": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceDatabase).RestorePointInTime, ok = plugin.RawToTValue[*time.Time](v.Value, v.Error) return }, - "azure.subscription.monitorService.activityLog.alert.location": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMonitorServiceActivityLogAlert).Location, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.sqlService.database.recoveryServicesRecoveryPointResourceId": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceDatabase).RecoveryServicesRecoveryPointResourceId, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.monitorService.activityLog.alert.tags": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMonitorServiceActivityLogAlert).Tags, ok = plugin.RawToTValue[map[string]interface{}](v.Value, v.Error) + "azure.subscription.sqlService.database.edition": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceDatabase).Edition, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.monitorService.activityLog.alert.actions": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMonitorServiceActivityLogAlert).Actions, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + "azure.subscription.sqlService.database.maxSizeBytes": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceDatabase).MaxSizeBytes, ok = plugin.RawToTValue[int64](v.Value, v.Error) return }, - "azure.subscription.monitorService.activityLog.alert.scopes": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMonitorServiceActivityLogAlert).Scopes, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + "azure.subscription.sqlService.database.requestedServiceObjectiveName": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceDatabase).RequestedServiceObjectiveName, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.monitorService.logprofile.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMonitorServiceLogprofile).__id, ok = v.Value.(string) - return - }, - "azure.subscription.monitorService.logprofile.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMonitorServiceLogprofile).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.sqlService.database.serviceLevelObjective": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceDatabase).ServiceLevelObjective, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.monitorService.logprofile.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMonitorServiceLogprofile).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.sqlService.database.status": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceDatabase).Status, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.monitorService.logprofile.location": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMonitorServiceLogprofile).Location, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.sqlService.database.elasticPoolName": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceDatabase).ElasticPoolName, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.monitorService.logprofile.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMonitorServiceLogprofile).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.sqlService.database.defaultSecondaryLocation": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceDatabase).DefaultSecondaryLocation, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.monitorService.logprofile.tags": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMonitorServiceLogprofile).Tags, ok = plugin.RawToTValue[map[string]interface{}](v.Value, v.Error) + "azure.subscription.sqlService.database.failoverGroupId": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceDatabase).FailoverGroupId, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.monitorService.logprofile.properties": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMonitorServiceLogprofile).Properties, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) + "azure.subscription.sqlService.database.readScale": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceDatabase).ReadScale, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.monitorService.logprofile.storageAccountId": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMonitorServiceLogprofile).StorageAccountId, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.sqlService.database.sampleName": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceDatabase).SampleName, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.monitorService.logprofile.storageAccount": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMonitorServiceLogprofile).StorageAccount, ok = plugin.RawToTValue[*mqlAzureSubscriptionStorageServiceAccount](v.Value, v.Error) + "azure.subscription.sqlService.database.zoneRedundant": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceDatabase).ZoneRedundant, ok = plugin.RawToTValue[bool](v.Value, v.Error) return }, - "azure.subscription.monitorService.diagnosticsetting.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMonitorServiceDiagnosticsetting).__id, ok = v.Value.(string) - return - }, - "azure.subscription.monitorService.diagnosticsetting.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMonitorServiceDiagnosticsetting).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.sqlService.database.transparentDataEncryption": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceDatabase).TransparentDataEncryption, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) return }, - "azure.subscription.monitorService.diagnosticsetting.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMonitorServiceDiagnosticsetting).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.sqlService.database.advisor": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceDatabase).Advisor, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) return }, - "azure.subscription.monitorService.diagnosticsetting.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMonitorServiceDiagnosticsetting).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.sqlService.database.threatDetectionPolicy": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceDatabase).ThreatDetectionPolicy, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) return }, - "azure.subscription.monitorService.diagnosticsetting.properties": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMonitorServiceDiagnosticsetting).Properties, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) + "azure.subscription.sqlService.database.connectionPolicy": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceDatabase).ConnectionPolicy, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) return }, - "azure.subscription.monitorService.diagnosticsetting.storageAccountId": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMonitorServiceDiagnosticsetting).StorageAccountId, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.sqlService.database.auditingPolicy": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceDatabase).AuditingPolicy, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) return }, - "azure.subscription.monitorService.diagnosticsetting.storageAccount": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionMonitorServiceDiagnosticsetting).StorageAccount, ok = plugin.RawToTValue[*mqlAzureSubscriptionStorageServiceAccount](v.Value, v.Error) + "azure.subscription.sqlService.database.usage": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceDatabase).Usage, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) return }, - "azure.subscription.cloudDefenderService.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionCloudDefenderService).__id, ok = v.Value.(string) + "azure.subscription.sqlService.databaseusage.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceDatabaseusage).__id, ok = v.Value.(string) return }, - "azure.subscription.cloudDefenderService.subscriptionId": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionCloudDefenderService).SubscriptionId, ok = plugin.RawToTValue[string](v.Value, v.Error) - return - }, - "azure.subscription.cloudDefenderService.monitoringAgentAutoProvision": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionCloudDefenderService).MonitoringAgentAutoProvision, ok = plugin.RawToTValue[bool](v.Value, v.Error) + "azure.subscription.sqlService.databaseusage.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceDatabaseusage).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.cloudDefenderService.defenderForServers": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionCloudDefenderService).DefenderForServers, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) + "azure.subscription.sqlService.databaseusage.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceDatabaseusage).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.cloudDefenderService.defenderForContainers": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionCloudDefenderService).DefenderForContainers, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) + "azure.subscription.sqlService.databaseusage.resourceName": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceDatabaseusage).ResourceName, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.cloudDefenderService.securityContacts": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionCloudDefenderService).SecurityContacts, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + "azure.subscription.sqlService.databaseusage.displayName": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceDatabaseusage).DisplayName, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.cloudDefenderService.securityContact.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionCloudDefenderServiceSecurityContact).__id, ok = v.Value.(string) - return - }, - "azure.subscription.cloudDefenderService.securityContact.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionCloudDefenderServiceSecurityContact).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.sqlService.databaseusage.currentValue": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceDatabaseusage).CurrentValue, ok = plugin.RawToTValue[float64](v.Value, v.Error) return }, - "azure.subscription.cloudDefenderService.securityContact.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionCloudDefenderServiceSecurityContact).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.sqlService.databaseusage.limit": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceDatabaseusage).Limit, ok = plugin.RawToTValue[float64](v.Value, v.Error) return }, - "azure.subscription.cloudDefenderService.securityContact.emails": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionCloudDefenderServiceSecurityContact).Emails, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + "azure.subscription.sqlService.databaseusage.unit": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceDatabaseusage).Unit, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.cloudDefenderService.securityContact.alertNotifications": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionCloudDefenderServiceSecurityContact).AlertNotifications, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) + "azure.subscription.postgreSqlService.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionPostgreSqlService).__id, ok = v.Value.(string) + return + }, + "azure.subscription.postgreSqlService.subscriptionId": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionPostgreSqlService).SubscriptionId, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.cloudDefenderService.securityContact.notificationsByRole": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionCloudDefenderServiceSecurityContact).NotificationsByRole, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) + "azure.subscription.postgreSqlService.servers": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionPostgreSqlService).Servers, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) return }, - "azure.subscription.authorizationService.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionAuthorizationService).__id, ok = v.Value.(string) + "azure.subscription.postgreSqlService.server.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionPostgreSqlServiceServer).__id, ok = v.Value.(string) return }, - "azure.subscription.authorizationService.subscriptionId": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionAuthorizationService).SubscriptionId, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.postgreSqlService.server.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionPostgreSqlServiceServer).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.authorizationService.roleDefinitions": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionAuthorizationService).RoleDefinitions, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + "azure.subscription.postgreSqlService.server.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionPostgreSqlServiceServer).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.authorizationService.roleDefinition.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionAuthorizationServiceRoleDefinition).__id, ok = v.Value.(string) - return - }, - "azure.subscription.authorizationService.roleDefinition.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionAuthorizationServiceRoleDefinition).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.postgreSqlService.server.location": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionPostgreSqlServiceServer).Location, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.authorizationService.roleDefinition.description": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionAuthorizationServiceRoleDefinition).Description, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.postgreSqlService.server.tags": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionPostgreSqlServiceServer).Tags, ok = plugin.RawToTValue[map[string]interface{}](v.Value, v.Error) return }, - "azure.subscription.authorizationService.roleDefinition.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionAuthorizationServiceRoleDefinition).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.postgreSqlService.server.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionPostgreSqlServiceServer).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.authorizationService.roleDefinition.isCustom": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionAuthorizationServiceRoleDefinition).IsCustom, ok = plugin.RawToTValue[bool](v.Value, v.Error) + "azure.subscription.postgreSqlService.server.properties": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionPostgreSqlServiceServer).Properties, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) return }, - "azure.subscription.authorizationService.roleDefinition.scopes": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionAuthorizationServiceRoleDefinition).Scopes, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + "azure.subscription.postgreSqlService.server.configuration": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionPostgreSqlServiceServer).Configuration, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) return }, - "azure.subscription.authorizationService.roleDefinition.permissions": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionAuthorizationServiceRoleDefinition).Permissions, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + "azure.subscription.postgreSqlService.server.databases": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionPostgreSqlServiceServer).Databases, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) return }, - "azure.subscription.authorizationService.roleDefinition.permission.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionAuthorizationServiceRoleDefinitionPermission).__id, ok = v.Value.(string) + "azure.subscription.postgreSqlService.server.firewallRules": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionPostgreSqlServiceServer).FirewallRules, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + return + }, + "azure.subscription.postgreSqlService.database.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionPostgreSqlServiceDatabase).__id, ok = v.Value.(string) return }, - "azure.subscription.authorizationService.roleDefinition.permission.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionAuthorizationServiceRoleDefinitionPermission).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.postgreSqlService.database.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionPostgreSqlServiceDatabase).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.authorizationService.roleDefinition.permission.allowedActions": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionAuthorizationServiceRoleDefinitionPermission).AllowedActions, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + "azure.subscription.postgreSqlService.database.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionPostgreSqlServiceDatabase).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.authorizationService.roleDefinition.permission.deniedActions": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionAuthorizationServiceRoleDefinitionPermission).DeniedActions, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + "azure.subscription.postgreSqlService.database.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionPostgreSqlServiceDatabase).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.authorizationService.roleDefinition.permission.allowedDataActions": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionAuthorizationServiceRoleDefinitionPermission).AllowedDataActions, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + "azure.subscription.postgreSqlService.database.charset": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionPostgreSqlServiceDatabase).Charset, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.authorizationService.roleDefinition.permission.deniedDataActions": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionAuthorizationServiceRoleDefinitionPermission).DeniedDataActions, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + "azure.subscription.postgreSqlService.database.collation": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionPostgreSqlServiceDatabase).Collation, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.aksService.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionAksService).__id, ok = v.Value.(string) + "azure.subscription.sqlService.configuration.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceConfiguration).__id, ok = v.Value.(string) return }, - "azure.subscription.aksService.subscriptionId": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionAksService).SubscriptionId, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.sqlService.configuration.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceConfiguration).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.aksService.clusters": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionAksService).Clusters, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + "azure.subscription.sqlService.configuration.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceConfiguration).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.aksService.cluster.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionAksServiceCluster).__id, ok = v.Value.(string) - return - }, - "azure.subscription.aksService.cluster.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionAksServiceCluster).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.sqlService.configuration.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceConfiguration).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.aksService.cluster.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionAksServiceCluster).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.sqlService.configuration.value": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceConfiguration).Value, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.aksService.cluster.location": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionAksServiceCluster).Location, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.sqlService.configuration.description": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceConfiguration).Description, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.aksService.cluster.kubernetesVersion": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionAksServiceCluster).KubernetesVersion, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.sqlService.configuration.defaultValue": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceConfiguration).DefaultValue, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.aksService.cluster.provisioningState": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionAksServiceCluster).ProvisioningState, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.sqlService.configuration.dataType": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceConfiguration).DataType, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.aksService.cluster.powerState": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionAksServiceCluster).PowerState, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.sqlService.configuration.allowedValues": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceConfiguration).AllowedValues, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.aksService.cluster.tags": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionAksServiceCluster).Tags, ok = plugin.RawToTValue[map[string]interface{}](v.Value, v.Error) + "azure.subscription.sqlService.configuration.source": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceConfiguration).Source, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.aksService.cluster.nodeResourceGroup": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionAksServiceCluster).NodeResourceGroup, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.sqlService.firewallrule.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceFirewallrule).__id, ok = v.Value.(string) + return + }, + "azure.subscription.sqlService.firewallrule.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceFirewallrule).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.aksService.cluster.createdAt": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionAksServiceCluster).CreatedAt, ok = plugin.RawToTValue[*time.Time](v.Value, v.Error) + "azure.subscription.sqlService.firewallrule.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceFirewallrule).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.aksService.cluster.rbacEnabled": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionAksServiceCluster).RbacEnabled, ok = plugin.RawToTValue[bool](v.Value, v.Error) + "azure.subscription.sqlService.firewallrule.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceFirewallrule).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.aksService.cluster.fqdn": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionAksServiceCluster).Fqdn, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.sqlService.firewallrule.startIpAddress": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceFirewallrule).StartIpAddress, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.aksService.cluster.dnsPrefix": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionAksServiceCluster).DnsPrefix, ok = plugin.RawToTValue[string](v.Value, v.Error) + "azure.subscription.sqlService.firewallrule.endIpAddress": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceFirewallrule).EndIpAddress, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.aksService.cluster.storageProfile": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionAksServiceCluster).StorageProfile, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) + "azure.subscription.sqlService.virtualNetworkRule.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceVirtualNetworkRule).__id, ok = v.Value.(string) + return + }, + "azure.subscription.sqlService.virtualNetworkRule.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceVirtualNetworkRule).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.aksService.cluster.workloadAutoScalerProfile": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionAksServiceCluster).WorkloadAutoScalerProfile, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) + "azure.subscription.sqlService.virtualNetworkRule.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceVirtualNetworkRule).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.aksService.cluster.securityProfile": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionAksServiceCluster).SecurityProfile, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) + "azure.subscription.sqlService.virtualNetworkRule.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceVirtualNetworkRule).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.aksService.cluster.podIdentityProfile": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionAksServiceCluster).PodIdentityProfile, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) + "azure.subscription.sqlService.virtualNetworkRule.properties": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceVirtualNetworkRule).Properties, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) return }, - "azure.subscription.aksService.cluster.networkProfile": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionAksServiceCluster).NetworkProfile, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) + "azure.subscription.sqlService.virtualNetworkRule.virtualNetworkSubnetId": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionSqlServiceVirtualNetworkRule).VirtualNetworkSubnetId, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.aksService.cluster.httpProxyConfig": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionAksServiceCluster).HttpProxyConfig, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) + "azure.subscription.mySqlService.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMySqlService).__id, ok = v.Value.(string) + return + }, + "azure.subscription.mySqlService.subscriptionId": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMySqlService).SubscriptionId, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, - "azure.subscription.aksService.cluster.addonProfiles": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionAksServiceCluster).AddonProfiles, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + "azure.subscription.mySqlService.servers": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMySqlService).Servers, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) return }, - "azure.subscription.aksService.cluster.agentPoolProfiles": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlAzureSubscriptionAksServiceCluster).AgentPoolProfiles, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + "azure.subscription.mySqlService.flexibleServers": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMySqlService).FlexibleServers, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + return + }, + "azure.subscription.mySqlService.server.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMySqlServiceServer).__id, ok = v.Value.(string) + return + }, + "azure.subscription.mySqlService.server.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMySqlServiceServer).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.mySqlService.server.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMySqlServiceServer).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.mySqlService.server.location": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMySqlServiceServer).Location, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.mySqlService.server.tags": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMySqlServiceServer).Tags, ok = plugin.RawToTValue[map[string]interface{}](v.Value, v.Error) + return + }, + "azure.subscription.mySqlService.server.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMySqlServiceServer).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.mySqlService.server.properties": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMySqlServiceServer).Properties, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) + return + }, + "azure.subscription.mySqlService.server.configuration": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMySqlServiceServer).Configuration, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + return + }, + "azure.subscription.mySqlService.server.databases": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMySqlServiceServer).Databases, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + return + }, + "azure.subscription.mySqlService.server.firewallRules": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMySqlServiceServer).FirewallRules, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + return + }, + "azure.subscription.mySqlService.database.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMySqlServiceDatabase).__id, ok = v.Value.(string) + return + }, + "azure.subscription.mySqlService.database.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMySqlServiceDatabase).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.mySqlService.database.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMySqlServiceDatabase).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.mySqlService.database.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMySqlServiceDatabase).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.mySqlService.database.charset": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMySqlServiceDatabase).Charset, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.mySqlService.database.collation": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMySqlServiceDatabase).Collation, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.mySqlService.flexibleServer.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMySqlServiceFlexibleServer).__id, ok = v.Value.(string) + return + }, + "azure.subscription.mySqlService.flexibleServer.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMySqlServiceFlexibleServer).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.mySqlService.flexibleServer.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMySqlServiceFlexibleServer).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.mySqlService.flexibleServer.location": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMySqlServiceFlexibleServer).Location, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.mySqlService.flexibleServer.tags": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMySqlServiceFlexibleServer).Tags, ok = plugin.RawToTValue[map[string]interface{}](v.Value, v.Error) + return + }, + "azure.subscription.mySqlService.flexibleServer.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMySqlServiceFlexibleServer).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.mySqlService.flexibleServer.properties": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMySqlServiceFlexibleServer).Properties, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) + return + }, + "azure.subscription.mySqlService.flexibleServer.configuration": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMySqlServiceFlexibleServer).Configuration, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + return + }, + "azure.subscription.mySqlService.flexibleServer.databases": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMySqlServiceFlexibleServer).Databases, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + return + }, + "azure.subscription.mySqlService.flexibleServer.firewallRules": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMySqlServiceFlexibleServer).FirewallRules, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + return + }, + "azure.subscription.mariaDbService.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMariaDbService).__id, ok = v.Value.(string) + return + }, + "azure.subscription.mariaDbService.subscriptionId": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMariaDbService).SubscriptionId, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.mariaDbService.servers": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMariaDbService).Servers, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + return + }, + "azure.subscription.mariaDbService.server.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMariaDbServiceServer).__id, ok = v.Value.(string) + return + }, + "azure.subscription.mariaDbService.server.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMariaDbServiceServer).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.mariaDbService.server.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMariaDbServiceServer).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.mariaDbService.server.location": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMariaDbServiceServer).Location, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.mariaDbService.server.tags": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMariaDbServiceServer).Tags, ok = plugin.RawToTValue[map[string]interface{}](v.Value, v.Error) + return + }, + "azure.subscription.mariaDbService.server.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMariaDbServiceServer).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.mariaDbService.server.properties": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMariaDbServiceServer).Properties, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) + return + }, + "azure.subscription.mariaDbService.server.configuration": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMariaDbServiceServer).Configuration, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + return + }, + "azure.subscription.mariaDbService.server.databases": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMariaDbServiceServer).Databases, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + return + }, + "azure.subscription.mariaDbService.server.firewallRules": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMariaDbServiceServer).FirewallRules, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + return + }, + "azure.subscription.mariaDbService.database.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMariaDbServiceDatabase).__id, ok = v.Value.(string) + return + }, + "azure.subscription.mariaDbService.database.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMariaDbServiceDatabase).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.mariaDbService.database.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMariaDbServiceDatabase).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.mariaDbService.database.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMariaDbServiceDatabase).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.mariaDbService.database.charset": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMariaDbServiceDatabase).Charset, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.mariaDbService.database.collation": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMariaDbServiceDatabase).Collation, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, + "azure.subscription.cosmosDbService.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionCosmosDbService).__id, ok = v.Value.(string) + return + }, + "azure.subscription.cosmosDbService.subscriptionId": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionCosmosDbService).SubscriptionId, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.cosmosDbService.accounts": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionCosmosDbService).Accounts, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + return + }, + "azure.subscription.cosmosDbService.account.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionCosmosDbServiceAccount).__id, ok = v.Value.(string) + return + }, + "azure.subscription.cosmosDbService.account.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionCosmosDbServiceAccount).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.cosmosDbService.account.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionCosmosDbServiceAccount).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.cosmosDbService.account.properties": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionCosmosDbServiceAccount).Properties, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) + return + }, + "azure.subscription.cosmosDbService.account.location": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionCosmosDbServiceAccount).Location, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.cosmosDbService.account.tags": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionCosmosDbServiceAccount).Tags, ok = plugin.RawToTValue[map[string]interface{}](v.Value, v.Error) + return + }, + "azure.subscription.cosmosDbService.account.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionCosmosDbServiceAccount).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.cosmosDbService.account.kind": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionCosmosDbServiceAccount).Kind, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.keyVaultService.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionKeyVaultService).__id, ok = v.Value.(string) + return + }, + "azure.subscription.keyVaultService.subscriptionId": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionKeyVaultService).SubscriptionId, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.keyVaultService.vaults": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionKeyVaultService).Vaults, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + return + }, + "azure.subscription.keyVaultService.vault.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionKeyVaultServiceVault).__id, ok = v.Value.(string) + return + }, + "azure.subscription.keyVaultService.vault.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionKeyVaultServiceVault).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.keyVaultService.vault.vaultName": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionKeyVaultServiceVault).VaultName, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.keyVaultService.vault.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionKeyVaultServiceVault).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.keyVaultService.vault.location": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionKeyVaultServiceVault).Location, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.keyVaultService.vault.tags": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionKeyVaultServiceVault).Tags, ok = plugin.RawToTValue[map[string]interface{}](v.Value, v.Error) + return + }, + "azure.subscription.keyVaultService.vault.vaultUri": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionKeyVaultServiceVault).VaultUri, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.keyVaultService.vault.properties": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionKeyVaultServiceVault).Properties, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) + return + }, + "azure.subscription.keyVaultService.vault.keys": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionKeyVaultServiceVault).Keys, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + return + }, + "azure.subscription.keyVaultService.vault.certificates": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionKeyVaultServiceVault).Certificates, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + return + }, + "azure.subscription.keyVaultService.vault.secrets": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionKeyVaultServiceVault).Secrets, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + return + }, + "azure.subscription.keyVaultService.vault.diagnosticSettings": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionKeyVaultServiceVault).DiagnosticSettings, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + return + }, + "azure.subscription.keyVaultService.key.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionKeyVaultServiceKey).__id, ok = v.Value.(string) + return + }, + "azure.subscription.keyVaultService.key.kid": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionKeyVaultServiceKey).Kid, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.keyVaultService.key.tags": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionKeyVaultServiceKey).Tags, ok = plugin.RawToTValue[map[string]interface{}](v.Value, v.Error) + return + }, + "azure.subscription.keyVaultService.key.managed": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionKeyVaultServiceKey).Managed, ok = plugin.RawToTValue[bool](v.Value, v.Error) + return + }, + "azure.subscription.keyVaultService.key.enabled": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionKeyVaultServiceKey).Enabled, ok = plugin.RawToTValue[bool](v.Value, v.Error) + return + }, + "azure.subscription.keyVaultService.key.notBefore": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionKeyVaultServiceKey).NotBefore, ok = plugin.RawToTValue[*time.Time](v.Value, v.Error) + return + }, + "azure.subscription.keyVaultService.key.expires": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionKeyVaultServiceKey).Expires, ok = plugin.RawToTValue[*time.Time](v.Value, v.Error) + return + }, + "azure.subscription.keyVaultService.key.created": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionKeyVaultServiceKey).Created, ok = plugin.RawToTValue[*time.Time](v.Value, v.Error) + return + }, + "azure.subscription.keyVaultService.key.updated": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionKeyVaultServiceKey).Updated, ok = plugin.RawToTValue[*time.Time](v.Value, v.Error) + return + }, + "azure.subscription.keyVaultService.key.recoveryLevel": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionKeyVaultServiceKey).RecoveryLevel, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.keyVaultService.key.keyName": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionKeyVaultServiceKey).KeyName, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.keyVaultService.key.version": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionKeyVaultServiceKey).Version, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.keyVaultService.key.versions": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionKeyVaultServiceKey).Versions, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + return + }, + "azure.subscription.keyVaultService.certificate.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionKeyVaultServiceCertificate).__id, ok = v.Value.(string) + return + }, + "azure.subscription.keyVaultService.certificate.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionKeyVaultServiceCertificate).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.keyVaultService.certificate.tags": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionKeyVaultServiceCertificate).Tags, ok = plugin.RawToTValue[map[string]interface{}](v.Value, v.Error) + return + }, + "azure.subscription.keyVaultService.certificate.x5t": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionKeyVaultServiceCertificate).X5t, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.keyVaultService.certificate.enabled": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionKeyVaultServiceCertificate).Enabled, ok = plugin.RawToTValue[bool](v.Value, v.Error) + return + }, + "azure.subscription.keyVaultService.certificate.notBefore": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionKeyVaultServiceCertificate).NotBefore, ok = plugin.RawToTValue[*time.Time](v.Value, v.Error) + return + }, + "azure.subscription.keyVaultService.certificate.expires": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionKeyVaultServiceCertificate).Expires, ok = plugin.RawToTValue[*time.Time](v.Value, v.Error) + return + }, + "azure.subscription.keyVaultService.certificate.created": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionKeyVaultServiceCertificate).Created, ok = plugin.RawToTValue[*time.Time](v.Value, v.Error) + return + }, + "azure.subscription.keyVaultService.certificate.updated": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionKeyVaultServiceCertificate).Updated, ok = plugin.RawToTValue[*time.Time](v.Value, v.Error) + return + }, + "azure.subscription.keyVaultService.certificate.recoveryLevel": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionKeyVaultServiceCertificate).RecoveryLevel, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.keyVaultService.certificate.certName": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionKeyVaultServiceCertificate).CertName, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.keyVaultService.certificate.version": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionKeyVaultServiceCertificate).Version, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.keyVaultService.certificate.versions": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionKeyVaultServiceCertificate).Versions, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + return + }, + "azure.subscription.keyVaultService.secret.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionKeyVaultServiceSecret).__id, ok = v.Value.(string) + return + }, + "azure.subscription.keyVaultService.secret.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionKeyVaultServiceSecret).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.keyVaultService.secret.tags": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionKeyVaultServiceSecret).Tags, ok = plugin.RawToTValue[map[string]interface{}](v.Value, v.Error) + return + }, + "azure.subscription.keyVaultService.secret.contentType": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionKeyVaultServiceSecret).ContentType, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.keyVaultService.secret.managed": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionKeyVaultServiceSecret).Managed, ok = plugin.RawToTValue[bool](v.Value, v.Error) + return + }, + "azure.subscription.keyVaultService.secret.enabled": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionKeyVaultServiceSecret).Enabled, ok = plugin.RawToTValue[bool](v.Value, v.Error) + return + }, + "azure.subscription.keyVaultService.secret.notBefore": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionKeyVaultServiceSecret).NotBefore, ok = plugin.RawToTValue[*time.Time](v.Value, v.Error) + return + }, + "azure.subscription.keyVaultService.secret.expires": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionKeyVaultServiceSecret).Expires, ok = plugin.RawToTValue[*time.Time](v.Value, v.Error) + return + }, + "azure.subscription.keyVaultService.secret.created": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionKeyVaultServiceSecret).Created, ok = plugin.RawToTValue[*time.Time](v.Value, v.Error) + return + }, + "azure.subscription.keyVaultService.secret.updated": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionKeyVaultServiceSecret).Updated, ok = plugin.RawToTValue[*time.Time](v.Value, v.Error) + return + }, + "azure.subscription.keyVaultService.secret.secretName": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionKeyVaultServiceSecret).SecretName, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.keyVaultService.secret.version": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionKeyVaultServiceSecret).Version, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.keyVaultService.secret.versions": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionKeyVaultServiceSecret).Versions, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + return + }, + "azure.subscription.monitorService.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMonitorService).__id, ok = v.Value.(string) + return + }, + "azure.subscription.monitorService.subscriptionId": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMonitorService).SubscriptionId, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.monitorService.logProfiles": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMonitorService).LogProfiles, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + return + }, + "azure.subscription.monitorService.diagnosticSettings": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMonitorService).DiagnosticSettings, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + return + }, + "azure.subscription.monitorService.applicationInsights": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMonitorService).ApplicationInsights, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + return + }, + "azure.subscription.monitorService.activityLog": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMonitorService).ActivityLog, ok = plugin.RawToTValue[*mqlAzureSubscriptionMonitorServiceActivityLog](v.Value, v.Error) + return + }, + "azure.subscription.monitorService.activityLog.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMonitorServiceActivityLog).__id, ok = v.Value.(string) + return + }, + "azure.subscription.monitorService.activityLog.subscriptionId": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMonitorServiceActivityLog).SubscriptionId, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.monitorService.activityLog.alerts": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMonitorServiceActivityLog).Alerts, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + return + }, + "azure.subscription.monitorService.applicationInsight.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMonitorServiceApplicationInsight).__id, ok = v.Value.(string) + return + }, + "azure.subscription.monitorService.applicationInsight.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMonitorServiceApplicationInsight).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.monitorService.applicationInsight.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMonitorServiceApplicationInsight).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.monitorService.applicationInsight.properties": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMonitorServiceApplicationInsight).Properties, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) + return + }, + "azure.subscription.monitorService.applicationInsight.tags": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMonitorServiceApplicationInsight).Tags, ok = plugin.RawToTValue[map[string]interface{}](v.Value, v.Error) + return + }, + "azure.subscription.monitorService.applicationInsight.location": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMonitorServiceApplicationInsight).Location, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.monitorService.applicationInsight.kind": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMonitorServiceApplicationInsight).Kind, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.monitorService.applicationInsight.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMonitorServiceApplicationInsight).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.monitorService.activityLog.alert.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMonitorServiceActivityLogAlert).__id, ok = v.Value.(string) + return + }, + "azure.subscription.monitorService.activityLog.alert.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMonitorServiceActivityLogAlert).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.monitorService.activityLog.alert.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMonitorServiceActivityLogAlert).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.monitorService.activityLog.alert.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMonitorServiceActivityLogAlert).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.monitorService.activityLog.alert.description": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMonitorServiceActivityLogAlert).Description, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.monitorService.activityLog.alert.conditions": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMonitorServiceActivityLogAlert).Conditions, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + return + }, + "azure.subscription.monitorService.activityLog.alert.location": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMonitorServiceActivityLogAlert).Location, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.monitorService.activityLog.alert.tags": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMonitorServiceActivityLogAlert).Tags, ok = plugin.RawToTValue[map[string]interface{}](v.Value, v.Error) + return + }, + "azure.subscription.monitorService.activityLog.alert.actions": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMonitorServiceActivityLogAlert).Actions, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + return + }, + "azure.subscription.monitorService.activityLog.alert.scopes": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMonitorServiceActivityLogAlert).Scopes, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + return + }, + "azure.subscription.monitorService.logprofile.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMonitorServiceLogprofile).__id, ok = v.Value.(string) + return + }, + "azure.subscription.monitorService.logprofile.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMonitorServiceLogprofile).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.monitorService.logprofile.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMonitorServiceLogprofile).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.monitorService.logprofile.location": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMonitorServiceLogprofile).Location, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.monitorService.logprofile.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMonitorServiceLogprofile).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.monitorService.logprofile.tags": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMonitorServiceLogprofile).Tags, ok = plugin.RawToTValue[map[string]interface{}](v.Value, v.Error) + return + }, + "azure.subscription.monitorService.logprofile.properties": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMonitorServiceLogprofile).Properties, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) + return + }, + "azure.subscription.monitorService.logprofile.storageAccountId": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMonitorServiceLogprofile).StorageAccountId, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.monitorService.logprofile.storageAccount": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMonitorServiceLogprofile).StorageAccount, ok = plugin.RawToTValue[*mqlAzureSubscriptionStorageServiceAccount](v.Value, v.Error) + return + }, + "azure.subscription.monitorService.diagnosticsetting.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMonitorServiceDiagnosticsetting).__id, ok = v.Value.(string) + return + }, + "azure.subscription.monitorService.diagnosticsetting.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMonitorServiceDiagnosticsetting).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.monitorService.diagnosticsetting.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMonitorServiceDiagnosticsetting).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.monitorService.diagnosticsetting.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMonitorServiceDiagnosticsetting).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.monitorService.diagnosticsetting.properties": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMonitorServiceDiagnosticsetting).Properties, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) + return + }, + "azure.subscription.monitorService.diagnosticsetting.storageAccountId": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMonitorServiceDiagnosticsetting).StorageAccountId, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.monitorService.diagnosticsetting.storageAccount": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionMonitorServiceDiagnosticsetting).StorageAccount, ok = plugin.RawToTValue[*mqlAzureSubscriptionStorageServiceAccount](v.Value, v.Error) + return + }, + "azure.subscription.cloudDefenderService.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionCloudDefenderService).__id, ok = v.Value.(string) + return + }, + "azure.subscription.cloudDefenderService.subscriptionId": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionCloudDefenderService).SubscriptionId, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.cloudDefenderService.monitoringAgentAutoProvision": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionCloudDefenderService).MonitoringAgentAutoProvision, ok = plugin.RawToTValue[bool](v.Value, v.Error) + return + }, + "azure.subscription.cloudDefenderService.defenderForServers": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionCloudDefenderService).DefenderForServers, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) + return + }, + "azure.subscription.cloudDefenderService.defenderForContainers": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionCloudDefenderService).DefenderForContainers, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) + return + }, + "azure.subscription.cloudDefenderService.securityContacts": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionCloudDefenderService).SecurityContacts, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + return + }, + "azure.subscription.cloudDefenderService.securityContact.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionCloudDefenderServiceSecurityContact).__id, ok = v.Value.(string) + return + }, + "azure.subscription.cloudDefenderService.securityContact.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionCloudDefenderServiceSecurityContact).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.cloudDefenderService.securityContact.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionCloudDefenderServiceSecurityContact).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.cloudDefenderService.securityContact.emails": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionCloudDefenderServiceSecurityContact).Emails, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + return + }, + "azure.subscription.cloudDefenderService.securityContact.alertNotifications": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionCloudDefenderServiceSecurityContact).AlertNotifications, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) + return + }, + "azure.subscription.cloudDefenderService.securityContact.notificationsByRole": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionCloudDefenderServiceSecurityContact).NotificationsByRole, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) + return + }, + "azure.subscription.authorizationService.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionAuthorizationService).__id, ok = v.Value.(string) + return + }, + "azure.subscription.authorizationService.subscriptionId": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionAuthorizationService).SubscriptionId, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.authorizationService.roleDefinitions": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionAuthorizationService).RoleDefinitions, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + return + }, + "azure.subscription.authorizationService.roleDefinition.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionAuthorizationServiceRoleDefinition).__id, ok = v.Value.(string) + return + }, + "azure.subscription.authorizationService.roleDefinition.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionAuthorizationServiceRoleDefinition).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.authorizationService.roleDefinition.description": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionAuthorizationServiceRoleDefinition).Description, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.authorizationService.roleDefinition.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionAuthorizationServiceRoleDefinition).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.authorizationService.roleDefinition.isCustom": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionAuthorizationServiceRoleDefinition).IsCustom, ok = plugin.RawToTValue[bool](v.Value, v.Error) + return + }, + "azure.subscription.authorizationService.roleDefinition.scopes": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionAuthorizationServiceRoleDefinition).Scopes, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + return + }, + "azure.subscription.authorizationService.roleDefinition.permissions": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionAuthorizationServiceRoleDefinition).Permissions, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + return + }, + "azure.subscription.authorizationService.roleDefinition.permission.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionAuthorizationServiceRoleDefinitionPermission).__id, ok = v.Value.(string) + return + }, + "azure.subscription.authorizationService.roleDefinition.permission.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionAuthorizationServiceRoleDefinitionPermission).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.authorizationService.roleDefinition.permission.allowedActions": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionAuthorizationServiceRoleDefinitionPermission).AllowedActions, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + return + }, + "azure.subscription.authorizationService.roleDefinition.permission.deniedActions": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionAuthorizationServiceRoleDefinitionPermission).DeniedActions, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + return + }, + "azure.subscription.authorizationService.roleDefinition.permission.allowedDataActions": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionAuthorizationServiceRoleDefinitionPermission).AllowedDataActions, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + return + }, + "azure.subscription.authorizationService.roleDefinition.permission.deniedDataActions": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionAuthorizationServiceRoleDefinitionPermission).DeniedDataActions, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + return + }, + "azure.subscription.aksService.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionAksService).__id, ok = v.Value.(string) + return + }, + "azure.subscription.aksService.subscriptionId": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionAksService).SubscriptionId, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.aksService.clusters": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionAksService).Clusters, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + return + }, + "azure.subscription.aksService.cluster.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionAksServiceCluster).__id, ok = v.Value.(string) + return + }, + "azure.subscription.aksService.cluster.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionAksServiceCluster).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.aksService.cluster.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionAksServiceCluster).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.aksService.cluster.location": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionAksServiceCluster).Location, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.aksService.cluster.kubernetesVersion": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionAksServiceCluster).KubernetesVersion, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.aksService.cluster.provisioningState": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionAksServiceCluster).ProvisioningState, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.aksService.cluster.powerState": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionAksServiceCluster).PowerState, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.aksService.cluster.tags": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionAksServiceCluster).Tags, ok = plugin.RawToTValue[map[string]interface{}](v.Value, v.Error) + return + }, + "azure.subscription.aksService.cluster.nodeResourceGroup": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionAksServiceCluster).NodeResourceGroup, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.aksService.cluster.createdAt": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionAksServiceCluster).CreatedAt, ok = plugin.RawToTValue[*time.Time](v.Value, v.Error) + return + }, + "azure.subscription.aksService.cluster.rbacEnabled": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionAksServiceCluster).RbacEnabled, ok = plugin.RawToTValue[bool](v.Value, v.Error) + return + }, + "azure.subscription.aksService.cluster.fqdn": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionAksServiceCluster).Fqdn, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.aksService.cluster.dnsPrefix": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionAksServiceCluster).DnsPrefix, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "azure.subscription.aksService.cluster.storageProfile": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionAksServiceCluster).StorageProfile, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) + return + }, + "azure.subscription.aksService.cluster.workloadAutoScalerProfile": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionAksServiceCluster).WorkloadAutoScalerProfile, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) + return + }, + "azure.subscription.aksService.cluster.securityProfile": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionAksServiceCluster).SecurityProfile, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) + return + }, + "azure.subscription.aksService.cluster.podIdentityProfile": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionAksServiceCluster).PodIdentityProfile, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) + return + }, + "azure.subscription.aksService.cluster.networkProfile": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionAksServiceCluster).NetworkProfile, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) + return + }, + "azure.subscription.aksService.cluster.httpProxyConfig": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionAksServiceCluster).HttpProxyConfig, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) + return + }, + "azure.subscription.aksService.cluster.addonProfiles": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionAksServiceCluster).AddonProfiles, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + return + }, + "azure.subscription.aksService.cluster.agentPoolProfiles": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAzureSubscriptionAksServiceCluster).AgentPoolProfiles, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + return + }, +} + +func SetData(resource plugin.Resource, field string, val *llx.RawData) error { + f, ok := setDataFields[resource.MqlName() + "." + field] + if !ok { + return errors.New("[azure] cannot set '"+field+"' in resource '"+resource.MqlName()+"', field not found") + } + + if ok := f(resource, val); !ok { + return errors.New("[azure] cannot set '"+field+"' in resource '"+resource.MqlName()+"', type does not match") + } + return nil +} + +func SetAllData(resource plugin.Resource, args map[string]*llx.RawData) error { + var err error + for k, v := range args { + if err = SetData(resource, k, v); err != nil { + return err + } + } + return nil +} + +// mqlAzure for the azure resource +type mqlAzure struct { + MqlRuntime *plugin.Runtime + __id string + // optional: if you define mqlAzureInternal it will be used here +} + +// createAzure creates a new instance of this resource +func createAzure(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { + res := &mqlAzure{ + MqlRuntime: runtime, + } + + err := SetAllData(res, args) + if err != nil { + return res, err + } + + // to override __id implement: id() (string, error) + + if runtime.HasRecording { + args, err = runtime.ResourceFromRecording("azure", res.__id) + if err != nil || args == nil { + return res, err + } + return res, SetAllData(res, args) + } + + return res, nil +} + +func (c *mqlAzure) MqlName() string { + return "azure" +} + +func (c *mqlAzure) MqlID() string { + return c.__id +} + +// mqlAzureSubscription for the azure.subscription resource +type mqlAzureSubscription struct { + MqlRuntime *plugin.Runtime + __id string + // optional: if you define mqlAzureSubscriptionInternal it will be used here + Id plugin.TValue[string] + Name plugin.TValue[string] + SubscriptionId plugin.TValue[string] + TenantId plugin.TValue[string] + ManagedByTenants plugin.TValue[[]interface{}] + Tags plugin.TValue[map[string]interface{}] + State plugin.TValue[string] + AuthorizationSource plugin.TValue[string] + SubscriptionsPolicies plugin.TValue[interface{}] + Resources plugin.TValue[[]interface{}] + ResourceGroups plugin.TValue[[]interface{}] + Compute plugin.TValue[*mqlAzureSubscriptionComputeService] + Network plugin.TValue[*mqlAzureSubscriptionNetworkService] + Storage plugin.TValue[*mqlAzureSubscriptionStorageService] + Web plugin.TValue[*mqlAzureSubscriptionWebService] + Sql plugin.TValue[*mqlAzureSubscriptionSqlService] + MySql plugin.TValue[*mqlAzureSubscriptionMySqlService] + PostgreSql plugin.TValue[*mqlAzureSubscriptionPostgreSqlService] + MariaDb plugin.TValue[*mqlAzureSubscriptionMariaDbService] + CosmosDb plugin.TValue[*mqlAzureSubscriptionCosmosDbService] + KeyVault plugin.TValue[*mqlAzureSubscriptionKeyVaultService] + Authorization plugin.TValue[*mqlAzureSubscriptionAuthorizationService] + Monitor plugin.TValue[*mqlAzureSubscriptionMonitorService] + CloudDefender plugin.TValue[*mqlAzureSubscriptionCloudDefenderService] + Aks plugin.TValue[*mqlAzureSubscriptionAksService] +} + +// createAzureSubscription creates a new instance of this resource +func createAzureSubscription(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { + res := &mqlAzureSubscription{ + MqlRuntime: runtime, + } + + err := SetAllData(res, args) + if err != nil { + return res, err + } + + if res.__id == "" { + res.__id, err = res.id() + if err != nil { + return nil, err + } + } + + if runtime.HasRecording { + args, err = runtime.ResourceFromRecording("azure.subscription", res.__id) + if err != nil || args == nil { + return res, err + } + return res, SetAllData(res, args) + } + + return res, nil +} + +func (c *mqlAzureSubscription) MqlName() string { + return "azure.subscription" +} + +func (c *mqlAzureSubscription) MqlID() string { + return c.__id +} + +func (c *mqlAzureSubscription) GetId() *plugin.TValue[string] { + return &c.Id +} + +func (c *mqlAzureSubscription) GetName() *plugin.TValue[string] { + return &c.Name +} + +func (c *mqlAzureSubscription) GetSubscriptionId() *plugin.TValue[string] { + return &c.SubscriptionId +} + +func (c *mqlAzureSubscription) GetTenantId() *plugin.TValue[string] { + return &c.TenantId +} + +func (c *mqlAzureSubscription) GetManagedByTenants() *plugin.TValue[[]interface{}] { + return &c.ManagedByTenants +} + +func (c *mqlAzureSubscription) GetTags() *plugin.TValue[map[string]interface{}] { + return &c.Tags +} + +func (c *mqlAzureSubscription) GetState() *plugin.TValue[string] { + return &c.State +} + +func (c *mqlAzureSubscription) GetAuthorizationSource() *plugin.TValue[string] { + return &c.AuthorizationSource +} + +func (c *mqlAzureSubscription) GetSubscriptionsPolicies() *plugin.TValue[interface{}] { + return &c.SubscriptionsPolicies +} + +func (c *mqlAzureSubscription) GetResources() *plugin.TValue[[]interface{}] { + return plugin.GetOrCompute[[]interface{}](&c.Resources, func() ([]interface{}, error) { + if c.MqlRuntime.HasRecording { + d, err := c.MqlRuntime.FieldResourceFromRecording("azure.subscription", c.__id, "resources") + if err != nil { + return nil, err + } + if d != nil { + return d.Value.([]interface{}), nil + } + } + + return c.resources() + }) +} + +func (c *mqlAzureSubscription) GetResourceGroups() *plugin.TValue[[]interface{}] { + return plugin.GetOrCompute[[]interface{}](&c.ResourceGroups, func() ([]interface{}, error) { + if c.MqlRuntime.HasRecording { + d, err := c.MqlRuntime.FieldResourceFromRecording("azure.subscription", c.__id, "resourceGroups") + if err != nil { + return nil, err + } + if d != nil { + return d.Value.([]interface{}), nil + } + } + + return c.resourceGroups() + }) +} + +func (c *mqlAzureSubscription) GetCompute() *plugin.TValue[*mqlAzureSubscriptionComputeService] { + return plugin.GetOrCompute[*mqlAzureSubscriptionComputeService](&c.Compute, func() (*mqlAzureSubscriptionComputeService, error) { + if c.MqlRuntime.HasRecording { + d, err := c.MqlRuntime.FieldResourceFromRecording("azure.subscription", c.__id, "compute") + if err != nil { + return nil, err + } + if d != nil { + return d.Value.(*mqlAzureSubscriptionComputeService), nil + } + } + + return c.compute() + }) +} + +func (c *mqlAzureSubscription) GetNetwork() *plugin.TValue[*mqlAzureSubscriptionNetworkService] { + return plugin.GetOrCompute[*mqlAzureSubscriptionNetworkService](&c.Network, func() (*mqlAzureSubscriptionNetworkService, error) { + if c.MqlRuntime.HasRecording { + d, err := c.MqlRuntime.FieldResourceFromRecording("azure.subscription", c.__id, "network") + if err != nil { + return nil, err + } + if d != nil { + return d.Value.(*mqlAzureSubscriptionNetworkService), nil + } + } + + return c.network() + }) +} + +func (c *mqlAzureSubscription) GetStorage() *plugin.TValue[*mqlAzureSubscriptionStorageService] { + return plugin.GetOrCompute[*mqlAzureSubscriptionStorageService](&c.Storage, func() (*mqlAzureSubscriptionStorageService, error) { + if c.MqlRuntime.HasRecording { + d, err := c.MqlRuntime.FieldResourceFromRecording("azure.subscription", c.__id, "storage") + if err != nil { + return nil, err + } + if d != nil { + return d.Value.(*mqlAzureSubscriptionStorageService), nil + } + } + + return c.storage() + }) +} + +func (c *mqlAzureSubscription) GetWeb() *plugin.TValue[*mqlAzureSubscriptionWebService] { + return plugin.GetOrCompute[*mqlAzureSubscriptionWebService](&c.Web, func() (*mqlAzureSubscriptionWebService, error) { + if c.MqlRuntime.HasRecording { + d, err := c.MqlRuntime.FieldResourceFromRecording("azure.subscription", c.__id, "web") + if err != nil { + return nil, err + } + if d != nil { + return d.Value.(*mqlAzureSubscriptionWebService), nil + } + } + + return c.web() + }) +} + +func (c *mqlAzureSubscription) GetSql() *plugin.TValue[*mqlAzureSubscriptionSqlService] { + return plugin.GetOrCompute[*mqlAzureSubscriptionSqlService](&c.Sql, func() (*mqlAzureSubscriptionSqlService, error) { + if c.MqlRuntime.HasRecording { + d, err := c.MqlRuntime.FieldResourceFromRecording("azure.subscription", c.__id, "sql") + if err != nil { + return nil, err + } + if d != nil { + return d.Value.(*mqlAzureSubscriptionSqlService), nil + } + } + + return c.sql() + }) +} + +func (c *mqlAzureSubscription) GetMySql() *plugin.TValue[*mqlAzureSubscriptionMySqlService] { + return plugin.GetOrCompute[*mqlAzureSubscriptionMySqlService](&c.MySql, func() (*mqlAzureSubscriptionMySqlService, error) { + if c.MqlRuntime.HasRecording { + d, err := c.MqlRuntime.FieldResourceFromRecording("azure.subscription", c.__id, "mySql") + if err != nil { + return nil, err + } + if d != nil { + return d.Value.(*mqlAzureSubscriptionMySqlService), nil + } + } + + return c.mySql() + }) +} + +func (c *mqlAzureSubscription) GetPostgreSql() *plugin.TValue[*mqlAzureSubscriptionPostgreSqlService] { + return plugin.GetOrCompute[*mqlAzureSubscriptionPostgreSqlService](&c.PostgreSql, func() (*mqlAzureSubscriptionPostgreSqlService, error) { + if c.MqlRuntime.HasRecording { + d, err := c.MqlRuntime.FieldResourceFromRecording("azure.subscription", c.__id, "postgreSql") + if err != nil { + return nil, err + } + if d != nil { + return d.Value.(*mqlAzureSubscriptionPostgreSqlService), nil + } + } + + return c.postgreSql() + }) +} + +func (c *mqlAzureSubscription) GetMariaDb() *plugin.TValue[*mqlAzureSubscriptionMariaDbService] { + return plugin.GetOrCompute[*mqlAzureSubscriptionMariaDbService](&c.MariaDb, func() (*mqlAzureSubscriptionMariaDbService, error) { + if c.MqlRuntime.HasRecording { + d, err := c.MqlRuntime.FieldResourceFromRecording("azure.subscription", c.__id, "mariaDb") + if err != nil { + return nil, err + } + if d != nil { + return d.Value.(*mqlAzureSubscriptionMariaDbService), nil + } + } + + return c.mariaDb() + }) +} + +func (c *mqlAzureSubscription) GetCosmosDb() *plugin.TValue[*mqlAzureSubscriptionCosmosDbService] { + return plugin.GetOrCompute[*mqlAzureSubscriptionCosmosDbService](&c.CosmosDb, func() (*mqlAzureSubscriptionCosmosDbService, error) { + if c.MqlRuntime.HasRecording { + d, err := c.MqlRuntime.FieldResourceFromRecording("azure.subscription", c.__id, "cosmosDb") + if err != nil { + return nil, err + } + if d != nil { + return d.Value.(*mqlAzureSubscriptionCosmosDbService), nil + } + } + + return c.cosmosDb() + }) +} + +func (c *mqlAzureSubscription) GetKeyVault() *plugin.TValue[*mqlAzureSubscriptionKeyVaultService] { + return plugin.GetOrCompute[*mqlAzureSubscriptionKeyVaultService](&c.KeyVault, func() (*mqlAzureSubscriptionKeyVaultService, error) { + if c.MqlRuntime.HasRecording { + d, err := c.MqlRuntime.FieldResourceFromRecording("azure.subscription", c.__id, "keyVault") + if err != nil { + return nil, err + } + if d != nil { + return d.Value.(*mqlAzureSubscriptionKeyVaultService), nil + } + } + + return c.keyVault() + }) +} + +func (c *mqlAzureSubscription) GetAuthorization() *plugin.TValue[*mqlAzureSubscriptionAuthorizationService] { + return plugin.GetOrCompute[*mqlAzureSubscriptionAuthorizationService](&c.Authorization, func() (*mqlAzureSubscriptionAuthorizationService, error) { + if c.MqlRuntime.HasRecording { + d, err := c.MqlRuntime.FieldResourceFromRecording("azure.subscription", c.__id, "authorization") + if err != nil { + return nil, err + } + if d != nil { + return d.Value.(*mqlAzureSubscriptionAuthorizationService), nil + } + } + + return c.authorization() + }) +} + +func (c *mqlAzureSubscription) GetMonitor() *plugin.TValue[*mqlAzureSubscriptionMonitorService] { + return plugin.GetOrCompute[*mqlAzureSubscriptionMonitorService](&c.Monitor, func() (*mqlAzureSubscriptionMonitorService, error) { + if c.MqlRuntime.HasRecording { + d, err := c.MqlRuntime.FieldResourceFromRecording("azure.subscription", c.__id, "monitor") + if err != nil { + return nil, err + } + if d != nil { + return d.Value.(*mqlAzureSubscriptionMonitorService), nil + } + } + + return c.monitor() + }) +} + +func (c *mqlAzureSubscription) GetCloudDefender() *plugin.TValue[*mqlAzureSubscriptionCloudDefenderService] { + return plugin.GetOrCompute[*mqlAzureSubscriptionCloudDefenderService](&c.CloudDefender, func() (*mqlAzureSubscriptionCloudDefenderService, error) { + if c.MqlRuntime.HasRecording { + d, err := c.MqlRuntime.FieldResourceFromRecording("azure.subscription", c.__id, "cloudDefender") + if err != nil { + return nil, err + } + if d != nil { + return d.Value.(*mqlAzureSubscriptionCloudDefenderService), nil + } + } + + return c.cloudDefender() + }) +} + +func (c *mqlAzureSubscription) GetAks() *plugin.TValue[*mqlAzureSubscriptionAksService] { + return plugin.GetOrCompute[*mqlAzureSubscriptionAksService](&c.Aks, func() (*mqlAzureSubscriptionAksService, error) { + if c.MqlRuntime.HasRecording { + d, err := c.MqlRuntime.FieldResourceFromRecording("azure.subscription", c.__id, "aks") + if err != nil { + return nil, err + } + if d != nil { + return d.Value.(*mqlAzureSubscriptionAksService), nil + } + } + + return c.aks() + }) +} + +// mqlAzureSubscriptionResourcegroup for the azure.subscription.resourcegroup resource +type mqlAzureSubscriptionResourcegroup struct { + MqlRuntime *plugin.Runtime + __id string + // optional: if you define mqlAzureSubscriptionResourcegroupInternal it will be used here + Id plugin.TValue[string] + Name plugin.TValue[string] + Location plugin.TValue[string] + Tags plugin.TValue[map[string]interface{}] + Type plugin.TValue[string] + ManagedBy plugin.TValue[string] + ProvisioningState plugin.TValue[string] +} + +// createAzureSubscriptionResourcegroup creates a new instance of this resource +func createAzureSubscriptionResourcegroup(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { + res := &mqlAzureSubscriptionResourcegroup{ + MqlRuntime: runtime, + } + + err := SetAllData(res, args) + if err != nil { + return res, err + } + + if res.__id == "" { + res.__id, err = res.id() + if err != nil { + return nil, err + } + } + + if runtime.HasRecording { + args, err = runtime.ResourceFromRecording("azure.subscription.resourcegroup", res.__id) + if err != nil || args == nil { + return res, err + } + return res, SetAllData(res, args) + } + + return res, nil +} + +func (c *mqlAzureSubscriptionResourcegroup) MqlName() string { + return "azure.subscription.resourcegroup" +} + +func (c *mqlAzureSubscriptionResourcegroup) MqlID() string { + return c.__id +} + +func (c *mqlAzureSubscriptionResourcegroup) GetId() *plugin.TValue[string] { + return &c.Id +} + +func (c *mqlAzureSubscriptionResourcegroup) GetName() *plugin.TValue[string] { + return &c.Name +} + +func (c *mqlAzureSubscriptionResourcegroup) GetLocation() *plugin.TValue[string] { + return &c.Location +} + +func (c *mqlAzureSubscriptionResourcegroup) GetTags() *plugin.TValue[map[string]interface{}] { + return &c.Tags +} + +func (c *mqlAzureSubscriptionResourcegroup) GetType() *plugin.TValue[string] { + return &c.Type +} + +func (c *mqlAzureSubscriptionResourcegroup) GetManagedBy() *plugin.TValue[string] { + return &c.ManagedBy +} + +func (c *mqlAzureSubscriptionResourcegroup) GetProvisioningState() *plugin.TValue[string] { + return &c.ProvisioningState +} + +// mqlAzureSubscriptionResource for the azure.subscription.resource resource +type mqlAzureSubscriptionResource struct { + MqlRuntime *plugin.Runtime + __id string + // optional: if you define mqlAzureSubscriptionResourceInternal it will be used here + Id plugin.TValue[string] + Name plugin.TValue[string] + Kind plugin.TValue[string] + Location plugin.TValue[string] + Tags plugin.TValue[map[string]interface{}] + Type plugin.TValue[string] + ManagedBy plugin.TValue[string] + Sku plugin.TValue[interface{}] + Plan plugin.TValue[interface{}] + Identity plugin.TValue[interface{}] + ProvisioningState plugin.TValue[string] + CreatedTime plugin.TValue[*time.Time] + ChangedTime plugin.TValue[*time.Time] +} + +// createAzureSubscriptionResource creates a new instance of this resource +func createAzureSubscriptionResource(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { + res := &mqlAzureSubscriptionResource{ + MqlRuntime: runtime, + } + + err := SetAllData(res, args) + if err != nil { + return res, err + } + + if res.__id == "" { + res.__id, err = res.id() + if err != nil { + return nil, err + } + } + + if runtime.HasRecording { + args, err = runtime.ResourceFromRecording("azure.subscription.resource", res.__id) + if err != nil || args == nil { + return res, err + } + return res, SetAllData(res, args) + } + + return res, nil +} + +func (c *mqlAzureSubscriptionResource) MqlName() string { + return "azure.subscription.resource" +} + +func (c *mqlAzureSubscriptionResource) MqlID() string { + return c.__id +} + +func (c *mqlAzureSubscriptionResource) GetId() *plugin.TValue[string] { + return &c.Id +} + +func (c *mqlAzureSubscriptionResource) GetName() *plugin.TValue[string] { + return &c.Name +} + +func (c *mqlAzureSubscriptionResource) GetKind() *plugin.TValue[string] { + return &c.Kind +} + +func (c *mqlAzureSubscriptionResource) GetLocation() *plugin.TValue[string] { + return &c.Location +} + +func (c *mqlAzureSubscriptionResource) GetTags() *plugin.TValue[map[string]interface{}] { + return &c.Tags +} + +func (c *mqlAzureSubscriptionResource) GetType() *plugin.TValue[string] { + return &c.Type +} + +func (c *mqlAzureSubscriptionResource) GetManagedBy() *plugin.TValue[string] { + return &c.ManagedBy +} + +func (c *mqlAzureSubscriptionResource) GetSku() *plugin.TValue[interface{}] { + return &c.Sku +} + +func (c *mqlAzureSubscriptionResource) GetPlan() *plugin.TValue[interface{}] { + return &c.Plan +} + +func (c *mqlAzureSubscriptionResource) GetIdentity() *plugin.TValue[interface{}] { + return &c.Identity +} + +func (c *mqlAzureSubscriptionResource) GetProvisioningState() *plugin.TValue[string] { + return &c.ProvisioningState +} + +func (c *mqlAzureSubscriptionResource) GetCreatedTime() *plugin.TValue[*time.Time] { + return &c.CreatedTime +} + +func (c *mqlAzureSubscriptionResource) GetChangedTime() *plugin.TValue[*time.Time] { + return &c.ChangedTime +} + +// mqlAzureSubscriptionComputeService for the azure.subscription.computeService resource +type mqlAzureSubscriptionComputeService struct { + MqlRuntime *plugin.Runtime + __id string + // optional: if you define mqlAzureSubscriptionComputeServiceInternal it will be used here + SubscriptionId plugin.TValue[string] + Vms plugin.TValue[[]interface{}] + Disks plugin.TValue[[]interface{}] +} + +// createAzureSubscriptionComputeService creates a new instance of this resource +func createAzureSubscriptionComputeService(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { + res := &mqlAzureSubscriptionComputeService{ + MqlRuntime: runtime, + } + + err := SetAllData(res, args) + if err != nil { + return res, err + } + + if res.__id == "" { + res.__id, err = res.id() + if err != nil { + return nil, err + } + } + + if runtime.HasRecording { + args, err = runtime.ResourceFromRecording("azure.subscription.computeService", res.__id) + if err != nil || args == nil { + return res, err + } + return res, SetAllData(res, args) + } + + return res, nil +} + +func (c *mqlAzureSubscriptionComputeService) MqlName() string { + return "azure.subscription.computeService" +} + +func (c *mqlAzureSubscriptionComputeService) MqlID() string { + return c.__id +} + +func (c *mqlAzureSubscriptionComputeService) GetSubscriptionId() *plugin.TValue[string] { + return &c.SubscriptionId +} + +func (c *mqlAzureSubscriptionComputeService) GetVms() *plugin.TValue[[]interface{}] { + return plugin.GetOrCompute[[]interface{}](&c.Vms, func() ([]interface{}, error) { + if c.MqlRuntime.HasRecording { + d, err := c.MqlRuntime.FieldResourceFromRecording("azure.subscription.computeService", c.__id, "vms") + if err != nil { + return nil, err + } + if d != nil { + return d.Value.([]interface{}), nil + } + } + + return c.vms() + }) +} + +func (c *mqlAzureSubscriptionComputeService) GetDisks() *plugin.TValue[[]interface{}] { + return plugin.GetOrCompute[[]interface{}](&c.Disks, func() ([]interface{}, error) { + if c.MqlRuntime.HasRecording { + d, err := c.MqlRuntime.FieldResourceFromRecording("azure.subscription.computeService", c.__id, "disks") + if err != nil { + return nil, err + } + if d != nil { + return d.Value.([]interface{}), nil + } + } + + return c.disks() + }) +} + +// mqlAzureSubscriptionComputeServiceVm for the azure.subscription.computeService.vm resource +type mqlAzureSubscriptionComputeServiceVm struct { + MqlRuntime *plugin.Runtime + __id string + // optional: if you define mqlAzureSubscriptionComputeServiceVmInternal it will be used here + Id plugin.TValue[string] + Name plugin.TValue[string] + Location plugin.TValue[string] + Tags plugin.TValue[map[string]interface{}] + Type plugin.TValue[string] + Properties plugin.TValue[interface{}] + Extensions plugin.TValue[[]interface{}] + OsDisk plugin.TValue[*mqlAzureSubscriptionComputeServiceDisk] + DataDisks plugin.TValue[[]interface{}] + PublicIpAddresses plugin.TValue[[]interface{}] +} + +// createAzureSubscriptionComputeServiceVm creates a new instance of this resource +func createAzureSubscriptionComputeServiceVm(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { + res := &mqlAzureSubscriptionComputeServiceVm{ + MqlRuntime: runtime, + } + + err := SetAllData(res, args) + if err != nil { + return res, err + } + + if res.__id == "" { + res.__id, err = res.id() + if err != nil { + return nil, err + } + } + + if runtime.HasRecording { + args, err = runtime.ResourceFromRecording("azure.subscription.computeService.vm", res.__id) + if err != nil || args == nil { + return res, err + } + return res, SetAllData(res, args) + } + + return res, nil +} + +func (c *mqlAzureSubscriptionComputeServiceVm) MqlName() string { + return "azure.subscription.computeService.vm" +} + +func (c *mqlAzureSubscriptionComputeServiceVm) MqlID() string { + return c.__id +} + +func (c *mqlAzureSubscriptionComputeServiceVm) GetId() *plugin.TValue[string] { + return &c.Id +} + +func (c *mqlAzureSubscriptionComputeServiceVm) GetName() *plugin.TValue[string] { + return &c.Name +} + +func (c *mqlAzureSubscriptionComputeServiceVm) GetLocation() *plugin.TValue[string] { + return &c.Location +} + +func (c *mqlAzureSubscriptionComputeServiceVm) GetTags() *plugin.TValue[map[string]interface{}] { + return &c.Tags +} + +func (c *mqlAzureSubscriptionComputeServiceVm) GetType() *plugin.TValue[string] { + return &c.Type +} + +func (c *mqlAzureSubscriptionComputeServiceVm) GetProperties() *plugin.TValue[interface{}] { + return &c.Properties +} + +func (c *mqlAzureSubscriptionComputeServiceVm) GetExtensions() *plugin.TValue[[]interface{}] { + return plugin.GetOrCompute[[]interface{}](&c.Extensions, func() ([]interface{}, error) { + return c.extensions() + }) +} + +func (c *mqlAzureSubscriptionComputeServiceVm) GetOsDisk() *plugin.TValue[*mqlAzureSubscriptionComputeServiceDisk] { + return plugin.GetOrCompute[*mqlAzureSubscriptionComputeServiceDisk](&c.OsDisk, func() (*mqlAzureSubscriptionComputeServiceDisk, error) { + if c.MqlRuntime.HasRecording { + d, err := c.MqlRuntime.FieldResourceFromRecording("azure.subscription.computeService.vm", c.__id, "osDisk") + if err != nil { + return nil, err + } + if d != nil { + return d.Value.(*mqlAzureSubscriptionComputeServiceDisk), nil + } + } + + return c.osDisk() + }) +} + +func (c *mqlAzureSubscriptionComputeServiceVm) GetDataDisks() *plugin.TValue[[]interface{}] { + return plugin.GetOrCompute[[]interface{}](&c.DataDisks, func() ([]interface{}, error) { + if c.MqlRuntime.HasRecording { + d, err := c.MqlRuntime.FieldResourceFromRecording("azure.subscription.computeService.vm", c.__id, "dataDisks") + if err != nil { + return nil, err + } + if d != nil { + return d.Value.([]interface{}), nil + } + } + + return c.dataDisks() + }) +} + +func (c *mqlAzureSubscriptionComputeServiceVm) GetPublicIpAddresses() *plugin.TValue[[]interface{}] { + return plugin.GetOrCompute[[]interface{}](&c.PublicIpAddresses, func() ([]interface{}, error) { + if c.MqlRuntime.HasRecording { + d, err := c.MqlRuntime.FieldResourceFromRecording("azure.subscription.computeService.vm", c.__id, "publicIpAddresses") + if err != nil { + return nil, err + } + if d != nil { + return d.Value.([]interface{}), nil + } + } + + return c.publicIpAddresses() + }) +} + +// mqlAzureSubscriptionComputeServiceDisk for the azure.subscription.computeService.disk resource +type mqlAzureSubscriptionComputeServiceDisk struct { + MqlRuntime *plugin.Runtime + __id string + // optional: if you define mqlAzureSubscriptionComputeServiceDiskInternal it will be used here + Id plugin.TValue[string] + Name plugin.TValue[string] + Location plugin.TValue[string] + Tags plugin.TValue[map[string]interface{}] + Type plugin.TValue[string] + ManagedBy plugin.TValue[string] + ManagedByExtended plugin.TValue[[]interface{}] + Zones plugin.TValue[[]interface{}] + Sku plugin.TValue[interface{}] + Properties plugin.TValue[interface{}] +} + +// createAzureSubscriptionComputeServiceDisk creates a new instance of this resource +func createAzureSubscriptionComputeServiceDisk(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { + res := &mqlAzureSubscriptionComputeServiceDisk{ + MqlRuntime: runtime, + } + + err := SetAllData(res, args) + if err != nil { + return res, err + } + + if res.__id == "" { + res.__id, err = res.id() + if err != nil { + return nil, err + } + } + + if runtime.HasRecording { + args, err = runtime.ResourceFromRecording("azure.subscription.computeService.disk", res.__id) + if err != nil || args == nil { + return res, err + } + return res, SetAllData(res, args) + } + + return res, nil +} + +func (c *mqlAzureSubscriptionComputeServiceDisk) MqlName() string { + return "azure.subscription.computeService.disk" +} + +func (c *mqlAzureSubscriptionComputeServiceDisk) MqlID() string { + return c.__id +} + +func (c *mqlAzureSubscriptionComputeServiceDisk) GetId() *plugin.TValue[string] { + return &c.Id +} + +func (c *mqlAzureSubscriptionComputeServiceDisk) GetName() *plugin.TValue[string] { + return &c.Name +} + +func (c *mqlAzureSubscriptionComputeServiceDisk) GetLocation() *plugin.TValue[string] { + return &c.Location +} + +func (c *mqlAzureSubscriptionComputeServiceDisk) GetTags() *plugin.TValue[map[string]interface{}] { + return &c.Tags +} + +func (c *mqlAzureSubscriptionComputeServiceDisk) GetType() *plugin.TValue[string] { + return &c.Type +} + +func (c *mqlAzureSubscriptionComputeServiceDisk) GetManagedBy() *plugin.TValue[string] { + return &c.ManagedBy +} + +func (c *mqlAzureSubscriptionComputeServiceDisk) GetManagedByExtended() *plugin.TValue[[]interface{}] { + return &c.ManagedByExtended +} + +func (c *mqlAzureSubscriptionComputeServiceDisk) GetZones() *plugin.TValue[[]interface{}] { + return &c.Zones +} + +func (c *mqlAzureSubscriptionComputeServiceDisk) GetSku() *plugin.TValue[interface{}] { + return &c.Sku +} + +func (c *mqlAzureSubscriptionComputeServiceDisk) GetProperties() *plugin.TValue[interface{}] { + return &c.Properties +} + +// mqlAzureSubscriptionNetworkService for the azure.subscription.networkService resource +type mqlAzureSubscriptionNetworkService struct { + MqlRuntime *plugin.Runtime + __id string + // optional: if you define mqlAzureSubscriptionNetworkServiceInternal it will be used here + SubscriptionId plugin.TValue[string] + Interfaces plugin.TValue[[]interface{}] + SecurityGroups plugin.TValue[[]interface{}] + Watchers plugin.TValue[[]interface{}] + PublicIpAddresses plugin.TValue[[]interface{}] + BastionHosts plugin.TValue[[]interface{}] + LoadBalancers plugin.TValue[[]interface{}] + NatGateways plugin.TValue[[]interface{}] + VirtualNetworks plugin.TValue[[]interface{}] + VirtualNetworkGateways plugin.TValue[[]interface{}] + Firewalls plugin.TValue[[]interface{}] + FirewallPolicies plugin.TValue[[]interface{}] + ApplicationSecurityGroups plugin.TValue[[]interface{}] +} + +// createAzureSubscriptionNetworkService creates a new instance of this resource +func createAzureSubscriptionNetworkService(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { + res := &mqlAzureSubscriptionNetworkService{ + MqlRuntime: runtime, + } + + err := SetAllData(res, args) + if err != nil { + return res, err + } + + if res.__id == "" { + res.__id, err = res.id() + if err != nil { + return nil, err + } + } + + if runtime.HasRecording { + args, err = runtime.ResourceFromRecording("azure.subscription.networkService", res.__id) + if err != nil || args == nil { + return res, err + } + return res, SetAllData(res, args) + } + + return res, nil +} + +func (c *mqlAzureSubscriptionNetworkService) MqlName() string { + return "azure.subscription.networkService" +} + +func (c *mqlAzureSubscriptionNetworkService) MqlID() string { + return c.__id +} + +func (c *mqlAzureSubscriptionNetworkService) GetSubscriptionId() *plugin.TValue[string] { + return &c.SubscriptionId +} + +func (c *mqlAzureSubscriptionNetworkService) GetInterfaces() *plugin.TValue[[]interface{}] { + return plugin.GetOrCompute[[]interface{}](&c.Interfaces, func() ([]interface{}, error) { + if c.MqlRuntime.HasRecording { + d, err := c.MqlRuntime.FieldResourceFromRecording("azure.subscription.networkService", c.__id, "interfaces") + if err != nil { + return nil, err + } + if d != nil { + return d.Value.([]interface{}), nil + } + } + + return c.interfaces() + }) +} + +func (c *mqlAzureSubscriptionNetworkService) GetSecurityGroups() *plugin.TValue[[]interface{}] { + return plugin.GetOrCompute[[]interface{}](&c.SecurityGroups, func() ([]interface{}, error) { + if c.MqlRuntime.HasRecording { + d, err := c.MqlRuntime.FieldResourceFromRecording("azure.subscription.networkService", c.__id, "securityGroups") + if err != nil { + return nil, err + } + if d != nil { + return d.Value.([]interface{}), nil + } + } + + return c.securityGroups() + }) +} + +func (c *mqlAzureSubscriptionNetworkService) GetWatchers() *plugin.TValue[[]interface{}] { + return plugin.GetOrCompute[[]interface{}](&c.Watchers, func() ([]interface{}, error) { + if c.MqlRuntime.HasRecording { + d, err := c.MqlRuntime.FieldResourceFromRecording("azure.subscription.networkService", c.__id, "watchers") + if err != nil { + return nil, err + } + if d != nil { + return d.Value.([]interface{}), nil + } + } + + return c.watchers() + }) +} + +func (c *mqlAzureSubscriptionNetworkService) GetPublicIpAddresses() *plugin.TValue[[]interface{}] { + return plugin.GetOrCompute[[]interface{}](&c.PublicIpAddresses, func() ([]interface{}, error) { + if c.MqlRuntime.HasRecording { + d, err := c.MqlRuntime.FieldResourceFromRecording("azure.subscription.networkService", c.__id, "publicIpAddresses") + if err != nil { + return nil, err + } + if d != nil { + return d.Value.([]interface{}), nil + } + } + + return c.publicIpAddresses() + }) +} + +func (c *mqlAzureSubscriptionNetworkService) GetBastionHosts() *plugin.TValue[[]interface{}] { + return plugin.GetOrCompute[[]interface{}](&c.BastionHosts, func() ([]interface{}, error) { + if c.MqlRuntime.HasRecording { + d, err := c.MqlRuntime.FieldResourceFromRecording("azure.subscription.networkService", c.__id, "bastionHosts") + if err != nil { + return nil, err + } + if d != nil { + return d.Value.([]interface{}), nil + } + } + + return c.bastionHosts() + }) +} + +func (c *mqlAzureSubscriptionNetworkService) GetLoadBalancers() *plugin.TValue[[]interface{}] { + return plugin.GetOrCompute[[]interface{}](&c.LoadBalancers, func() ([]interface{}, error) { + if c.MqlRuntime.HasRecording { + d, err := c.MqlRuntime.FieldResourceFromRecording("azure.subscription.networkService", c.__id, "loadBalancers") + if err != nil { + return nil, err + } + if d != nil { + return d.Value.([]interface{}), nil + } + } + + return c.loadBalancers() + }) +} + +func (c *mqlAzureSubscriptionNetworkService) GetNatGateways() *plugin.TValue[[]interface{}] { + return plugin.GetOrCompute[[]interface{}](&c.NatGateways, func() ([]interface{}, error) { + if c.MqlRuntime.HasRecording { + d, err := c.MqlRuntime.FieldResourceFromRecording("azure.subscription.networkService", c.__id, "natGateways") + if err != nil { + return nil, err + } + if d != nil { + return d.Value.([]interface{}), nil + } + } + + return c.natGateways() + }) +} + +func (c *mqlAzureSubscriptionNetworkService) GetVirtualNetworks() *plugin.TValue[[]interface{}] { + return plugin.GetOrCompute[[]interface{}](&c.VirtualNetworks, func() ([]interface{}, error) { + if c.MqlRuntime.HasRecording { + d, err := c.MqlRuntime.FieldResourceFromRecording("azure.subscription.networkService", c.__id, "virtualNetworks") + if err != nil { + return nil, err + } + if d != nil { + return d.Value.([]interface{}), nil + } + } + + return c.virtualNetworks() + }) +} + +func (c *mqlAzureSubscriptionNetworkService) GetVirtualNetworkGateways() *plugin.TValue[[]interface{}] { + return plugin.GetOrCompute[[]interface{}](&c.VirtualNetworkGateways, func() ([]interface{}, error) { + if c.MqlRuntime.HasRecording { + d, err := c.MqlRuntime.FieldResourceFromRecording("azure.subscription.networkService", c.__id, "virtualNetworkGateways") + if err != nil { + return nil, err + } + if d != nil { + return d.Value.([]interface{}), nil + } + } + + return c.virtualNetworkGateways() + }) +} + +func (c *mqlAzureSubscriptionNetworkService) GetFirewalls() *plugin.TValue[[]interface{}] { + return plugin.GetOrCompute[[]interface{}](&c.Firewalls, func() ([]interface{}, error) { + if c.MqlRuntime.HasRecording { + d, err := c.MqlRuntime.FieldResourceFromRecording("azure.subscription.networkService", c.__id, "firewalls") + if err != nil { + return nil, err + } + if d != nil { + return d.Value.([]interface{}), nil + } + } + + return c.firewalls() + }) +} + +func (c *mqlAzureSubscriptionNetworkService) GetFirewallPolicies() *plugin.TValue[[]interface{}] { + return plugin.GetOrCompute[[]interface{}](&c.FirewallPolicies, func() ([]interface{}, error) { + if c.MqlRuntime.HasRecording { + d, err := c.MqlRuntime.FieldResourceFromRecording("azure.subscription.networkService", c.__id, "firewallPolicies") + if err != nil { + return nil, err + } + if d != nil { + return d.Value.([]interface{}), nil + } + } + + return c.firewallPolicies() + }) +} + +func (c *mqlAzureSubscriptionNetworkService) GetApplicationSecurityGroups() *plugin.TValue[[]interface{}] { + return plugin.GetOrCompute[[]interface{}](&c.ApplicationSecurityGroups, func() ([]interface{}, error) { + if c.MqlRuntime.HasRecording { + d, err := c.MqlRuntime.FieldResourceFromRecording("azure.subscription.networkService", c.__id, "applicationSecurityGroups") + if err != nil { + return nil, err + } + if d != nil { + return d.Value.([]interface{}), nil + } + } + + return c.applicationSecurityGroups() + }) +} + +// mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway for the azure.subscription.networkService.virtualNetworkGateway resource +type mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway struct { + MqlRuntime *plugin.Runtime + __id string + // optional: if you define mqlAzureSubscriptionNetworkServiceVirtualNetworkGatewayInternal it will be used here + Id plugin.TValue[string] + Name plugin.TValue[string] + Location plugin.TValue[string] + Tags plugin.TValue[map[string]interface{}] + Type plugin.TValue[string] + Etag plugin.TValue[string] + Properties plugin.TValue[interface{}] + Active plugin.TValue[bool] + EnableBgp plugin.TValue[bool] + EnableBgpRouteTranslationForNat plugin.TValue[bool] + EnableDNSForwarding plugin.TValue[bool] + EnablePrivateIPAddress plugin.TValue[bool] + DisableIPSecReplayProtection plugin.TValue[bool] + ProvisioningState plugin.TValue[string] + InboundDNSForwardingEndpoint plugin.TValue[string] + SkuName plugin.TValue[string] + SkuCapacity plugin.TValue[int64] + AddressPrefixes plugin.TValue[[]interface{}] + GatewayType plugin.TValue[string] + VpnGatewayGeneration plugin.TValue[string] + VpnType plugin.TValue[string] + IpConfigurations plugin.TValue[[]interface{}] + BgpSettings plugin.TValue[*mqlAzureSubscriptionNetworkServiceBgpSettings] + NatRules plugin.TValue[[]interface{}] + Connections plugin.TValue[[]interface{}] + VpnClientConfiguration plugin.TValue[interface{}] +} + +// createAzureSubscriptionNetworkServiceVirtualNetworkGateway creates a new instance of this resource +func createAzureSubscriptionNetworkServiceVirtualNetworkGateway(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { + res := &mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway{ + MqlRuntime: runtime, + } + + err := SetAllData(res, args) + if err != nil { + return res, err + } + + if res.__id == "" { + res.__id, err = res.id() + if err != nil { + return nil, err + } + } + + if runtime.HasRecording { + args, err = runtime.ResourceFromRecording("azure.subscription.networkService.virtualNetworkGateway", res.__id) + if err != nil || args == nil { + return res, err + } + return res, SetAllData(res, args) + } + + return res, nil +} + +func (c *mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway) MqlName() string { + return "azure.subscription.networkService.virtualNetworkGateway" +} + +func (c *mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway) MqlID() string { + return c.__id +} + +func (c *mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway) GetId() *plugin.TValue[string] { + return &c.Id +} + +func (c *mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway) GetName() *plugin.TValue[string] { + return &c.Name +} + +func (c *mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway) GetLocation() *plugin.TValue[string] { + return &c.Location +} + +func (c *mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway) GetTags() *plugin.TValue[map[string]interface{}] { + return &c.Tags +} + +func (c *mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway) GetType() *plugin.TValue[string] { + return &c.Type +} + +func (c *mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway) GetEtag() *plugin.TValue[string] { + return &c.Etag +} + +func (c *mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway) GetProperties() *plugin.TValue[interface{}] { + return &c.Properties +} + +func (c *mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway) GetActive() *plugin.TValue[bool] { + return &c.Active +} + +func (c *mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway) GetEnableBgp() *plugin.TValue[bool] { + return &c.EnableBgp +} + +func (c *mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway) GetEnableBgpRouteTranslationForNat() *plugin.TValue[bool] { + return &c.EnableBgpRouteTranslationForNat +} + +func (c *mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway) GetEnableDNSForwarding() *plugin.TValue[bool] { + return &c.EnableDNSForwarding +} + +func (c *mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway) GetEnablePrivateIPAddress() *plugin.TValue[bool] { + return &c.EnablePrivateIPAddress +} + +func (c *mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway) GetDisableIPSecReplayProtection() *plugin.TValue[bool] { + return &c.DisableIPSecReplayProtection +} + +func (c *mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway) GetProvisioningState() *plugin.TValue[string] { + return &c.ProvisioningState +} + +func (c *mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway) GetInboundDNSForwardingEndpoint() *plugin.TValue[string] { + return &c.InboundDNSForwardingEndpoint +} + +func (c *mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway) GetSkuName() *plugin.TValue[string] { + return &c.SkuName +} + +func (c *mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway) GetSkuCapacity() *plugin.TValue[int64] { + return &c.SkuCapacity +} + +func (c *mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway) GetAddressPrefixes() *plugin.TValue[[]interface{}] { + return &c.AddressPrefixes +} + +func (c *mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway) GetGatewayType() *plugin.TValue[string] { + return &c.GatewayType +} + +func (c *mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway) GetVpnGatewayGeneration() *plugin.TValue[string] { + return &c.VpnGatewayGeneration +} + +func (c *mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway) GetVpnType() *plugin.TValue[string] { + return &c.VpnType +} + +func (c *mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway) GetIpConfigurations() *plugin.TValue[[]interface{}] { + return &c.IpConfigurations +} + +func (c *mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway) GetBgpSettings() *plugin.TValue[*mqlAzureSubscriptionNetworkServiceBgpSettings] { + return &c.BgpSettings +} + +func (c *mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway) GetNatRules() *plugin.TValue[[]interface{}] { + return &c.NatRules +} + +func (c *mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway) GetConnections() *plugin.TValue[[]interface{}] { + return plugin.GetOrCompute[[]interface{}](&c.Connections, func() ([]interface{}, error) { + if c.MqlRuntime.HasRecording { + d, err := c.MqlRuntime.FieldResourceFromRecording("azure.subscription.networkService.virtualNetworkGateway", c.__id, "connections") + if err != nil { + return nil, err + } + if d != nil { + return d.Value.([]interface{}), nil + } + } + + return c.connections() + }) +} + +func (c *mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway) GetVpnClientConfiguration() *plugin.TValue[interface{}] { + return &c.VpnClientConfiguration +} + +// mqlAzureSubscriptionNetworkServiceAppSecurityGroup for the azure.subscription.networkService.appSecurityGroup resource +type mqlAzureSubscriptionNetworkServiceAppSecurityGroup struct { + MqlRuntime *plugin.Runtime + __id string + // optional: if you define mqlAzureSubscriptionNetworkServiceAppSecurityGroupInternal it will be used here + Id plugin.TValue[string] + Name plugin.TValue[string] + Location plugin.TValue[string] + Tags plugin.TValue[map[string]interface{}] + Type plugin.TValue[string] + Etag plugin.TValue[string] + Properties plugin.TValue[interface{}] +} + +// createAzureSubscriptionNetworkServiceAppSecurityGroup creates a new instance of this resource +func createAzureSubscriptionNetworkServiceAppSecurityGroup(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { + res := &mqlAzureSubscriptionNetworkServiceAppSecurityGroup{ + MqlRuntime: runtime, + } + + err := SetAllData(res, args) + if err != nil { + return res, err + } + + if res.__id == "" { + res.__id, err = res.id() + if err != nil { + return nil, err + } + } + + if runtime.HasRecording { + args, err = runtime.ResourceFromRecording("azure.subscription.networkService.appSecurityGroup", res.__id) + if err != nil || args == nil { + return res, err + } + return res, SetAllData(res, args) + } + + return res, nil +} + +func (c *mqlAzureSubscriptionNetworkServiceAppSecurityGroup) MqlName() string { + return "azure.subscription.networkService.appSecurityGroup" +} + +func (c *mqlAzureSubscriptionNetworkServiceAppSecurityGroup) MqlID() string { + return c.__id +} + +func (c *mqlAzureSubscriptionNetworkServiceAppSecurityGroup) GetId() *plugin.TValue[string] { + return &c.Id +} + +func (c *mqlAzureSubscriptionNetworkServiceAppSecurityGroup) GetName() *plugin.TValue[string] { + return &c.Name +} + +func (c *mqlAzureSubscriptionNetworkServiceAppSecurityGroup) GetLocation() *plugin.TValue[string] { + return &c.Location +} + +func (c *mqlAzureSubscriptionNetworkServiceAppSecurityGroup) GetTags() *plugin.TValue[map[string]interface{}] { + return &c.Tags +} + +func (c *mqlAzureSubscriptionNetworkServiceAppSecurityGroup) GetType() *plugin.TValue[string] { + return &c.Type +} + +func (c *mqlAzureSubscriptionNetworkServiceAppSecurityGroup) GetEtag() *plugin.TValue[string] { + return &c.Etag +} + +func (c *mqlAzureSubscriptionNetworkServiceAppSecurityGroup) GetProperties() *plugin.TValue[interface{}] { + return &c.Properties +} + +// mqlAzureSubscriptionNetworkServiceFirewall for the azure.subscription.networkService.firewall resource +type mqlAzureSubscriptionNetworkServiceFirewall struct { + MqlRuntime *plugin.Runtime + __id string + // optional: if you define mqlAzureSubscriptionNetworkServiceFirewallInternal it will be used here + Id plugin.TValue[string] + Name plugin.TValue[string] + Location plugin.TValue[string] + Tags plugin.TValue[map[string]interface{}] + Type plugin.TValue[string] + Etag plugin.TValue[string] + Properties plugin.TValue[interface{}] + ProvisioningState plugin.TValue[string] + SkuName plugin.TValue[string] + SkuTier plugin.TValue[string] + ThreatIntelMode plugin.TValue[string] + Policy plugin.TValue[*mqlAzureSubscriptionNetworkServiceFirewallPolicy] + IpConfigurations plugin.TValue[[]interface{}] + ManagementIpConfiguration plugin.TValue[*mqlAzureSubscriptionNetworkServiceFirewallIpConfig] + NetworkRules plugin.TValue[[]interface{}] + NatRules plugin.TValue[[]interface{}] + ApplicationRules plugin.TValue[[]interface{}] +} + +// createAzureSubscriptionNetworkServiceFirewall creates a new instance of this resource +func createAzureSubscriptionNetworkServiceFirewall(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { + res := &mqlAzureSubscriptionNetworkServiceFirewall{ + MqlRuntime: runtime, + } + + err := SetAllData(res, args) + if err != nil { + return res, err + } + + if res.__id == "" { + res.__id, err = res.id() + if err != nil { + return nil, err + } + } + + if runtime.HasRecording { + args, err = runtime.ResourceFromRecording("azure.subscription.networkService.firewall", res.__id) + if err != nil || args == nil { + return res, err + } + return res, SetAllData(res, args) + } + + return res, nil +} + +func (c *mqlAzureSubscriptionNetworkServiceFirewall) MqlName() string { + return "azure.subscription.networkService.firewall" +} + +func (c *mqlAzureSubscriptionNetworkServiceFirewall) MqlID() string { + return c.__id +} + +func (c *mqlAzureSubscriptionNetworkServiceFirewall) GetId() *plugin.TValue[string] { + return &c.Id +} + +func (c *mqlAzureSubscriptionNetworkServiceFirewall) GetName() *plugin.TValue[string] { + return &c.Name +} + +func (c *mqlAzureSubscriptionNetworkServiceFirewall) GetLocation() *plugin.TValue[string] { + return &c.Location +} + +func (c *mqlAzureSubscriptionNetworkServiceFirewall) GetTags() *plugin.TValue[map[string]interface{}] { + return &c.Tags +} + +func (c *mqlAzureSubscriptionNetworkServiceFirewall) GetType() *plugin.TValue[string] { + return &c.Type +} + +func (c *mqlAzureSubscriptionNetworkServiceFirewall) GetEtag() *plugin.TValue[string] { + return &c.Etag +} + +func (c *mqlAzureSubscriptionNetworkServiceFirewall) GetProperties() *plugin.TValue[interface{}] { + return &c.Properties +} + +func (c *mqlAzureSubscriptionNetworkServiceFirewall) GetProvisioningState() *plugin.TValue[string] { + return &c.ProvisioningState +} + +func (c *mqlAzureSubscriptionNetworkServiceFirewall) GetSkuName() *plugin.TValue[string] { + return &c.SkuName +} + +func (c *mqlAzureSubscriptionNetworkServiceFirewall) GetSkuTier() *plugin.TValue[string] { + return &c.SkuTier +} + +func (c *mqlAzureSubscriptionNetworkServiceFirewall) GetThreatIntelMode() *plugin.TValue[string] { + return &c.ThreatIntelMode +} + +func (c *mqlAzureSubscriptionNetworkServiceFirewall) GetPolicy() *plugin.TValue[*mqlAzureSubscriptionNetworkServiceFirewallPolicy] { + return plugin.GetOrCompute[*mqlAzureSubscriptionNetworkServiceFirewallPolicy](&c.Policy, func() (*mqlAzureSubscriptionNetworkServiceFirewallPolicy, error) { + if c.MqlRuntime.HasRecording { + d, err := c.MqlRuntime.FieldResourceFromRecording("azure.subscription.networkService.firewall", c.__id, "policy") + if err != nil { + return nil, err + } + if d != nil { + return d.Value.(*mqlAzureSubscriptionNetworkServiceFirewallPolicy), nil + } + } + + return c.policy() + }) +} + +func (c *mqlAzureSubscriptionNetworkServiceFirewall) GetIpConfigurations() *plugin.TValue[[]interface{}] { + return &c.IpConfigurations +} + +func (c *mqlAzureSubscriptionNetworkServiceFirewall) GetManagementIpConfiguration() *plugin.TValue[*mqlAzureSubscriptionNetworkServiceFirewallIpConfig] { + return &c.ManagementIpConfiguration +} + +func (c *mqlAzureSubscriptionNetworkServiceFirewall) GetNetworkRules() *plugin.TValue[[]interface{}] { + return &c.NetworkRules +} + +func (c *mqlAzureSubscriptionNetworkServiceFirewall) GetNatRules() *plugin.TValue[[]interface{}] { + return &c.NatRules +} + +func (c *mqlAzureSubscriptionNetworkServiceFirewall) GetApplicationRules() *plugin.TValue[[]interface{}] { + return &c.ApplicationRules +} + +// mqlAzureSubscriptionNetworkServiceFirewallIpConfig for the azure.subscription.networkService.firewall.ipConfig resource +type mqlAzureSubscriptionNetworkServiceFirewallIpConfig struct { + MqlRuntime *plugin.Runtime + __id string + // optional: if you define mqlAzureSubscriptionNetworkServiceFirewallIpConfigInternal it will be used here + Id plugin.TValue[string] + Name plugin.TValue[string] + Etag plugin.TValue[string] + PrivateIpAddress plugin.TValue[string] + Properties plugin.TValue[interface{}] + PublicIpAddress plugin.TValue[*mqlAzureSubscriptionNetworkServiceIpAddress] + Subnet plugin.TValue[*mqlAzureSubscriptionNetworkServiceSubnet] +} + +// createAzureSubscriptionNetworkServiceFirewallIpConfig creates a new instance of this resource +func createAzureSubscriptionNetworkServiceFirewallIpConfig(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { + res := &mqlAzureSubscriptionNetworkServiceFirewallIpConfig{ + MqlRuntime: runtime, + } + + err := SetAllData(res, args) + if err != nil { + return res, err + } + + if res.__id == "" { + res.__id, err = res.id() + if err != nil { + return nil, err + } + } + + if runtime.HasRecording { + args, err = runtime.ResourceFromRecording("azure.subscription.networkService.firewall.ipConfig", res.__id) + if err != nil || args == nil { + return res, err + } + return res, SetAllData(res, args) + } + + return res, nil +} + +func (c *mqlAzureSubscriptionNetworkServiceFirewallIpConfig) MqlName() string { + return "azure.subscription.networkService.firewall.ipConfig" +} + +func (c *mqlAzureSubscriptionNetworkServiceFirewallIpConfig) MqlID() string { + return c.__id +} + +func (c *mqlAzureSubscriptionNetworkServiceFirewallIpConfig) GetId() *plugin.TValue[string] { + return &c.Id +} + +func (c *mqlAzureSubscriptionNetworkServiceFirewallIpConfig) GetName() *plugin.TValue[string] { + return &c.Name +} + +func (c *mqlAzureSubscriptionNetworkServiceFirewallIpConfig) GetEtag() *plugin.TValue[string] { + return &c.Etag +} + +func (c *mqlAzureSubscriptionNetworkServiceFirewallIpConfig) GetPrivateIpAddress() *plugin.TValue[string] { + return &c.PrivateIpAddress +} + +func (c *mqlAzureSubscriptionNetworkServiceFirewallIpConfig) GetProperties() *plugin.TValue[interface{}] { + return &c.Properties +} + +func (c *mqlAzureSubscriptionNetworkServiceFirewallIpConfig) GetPublicIpAddress() *plugin.TValue[*mqlAzureSubscriptionNetworkServiceIpAddress] { + return plugin.GetOrCompute[*mqlAzureSubscriptionNetworkServiceIpAddress](&c.PublicIpAddress, func() (*mqlAzureSubscriptionNetworkServiceIpAddress, error) { + if c.MqlRuntime.HasRecording { + d, err := c.MqlRuntime.FieldResourceFromRecording("azure.subscription.networkService.firewall.ipConfig", c.__id, "publicIpAddress") + if err != nil { + return nil, err + } + if d != nil { + return d.Value.(*mqlAzureSubscriptionNetworkServiceIpAddress), nil + } + } + + return c.publicIpAddress() + }) +} + +func (c *mqlAzureSubscriptionNetworkServiceFirewallIpConfig) GetSubnet() *plugin.TValue[*mqlAzureSubscriptionNetworkServiceSubnet] { + return plugin.GetOrCompute[*mqlAzureSubscriptionNetworkServiceSubnet](&c.Subnet, func() (*mqlAzureSubscriptionNetworkServiceSubnet, error) { + if c.MqlRuntime.HasRecording { + d, err := c.MqlRuntime.FieldResourceFromRecording("azure.subscription.networkService.firewall.ipConfig", c.__id, "subnet") + if err != nil { + return nil, err + } + if d != nil { + return d.Value.(*mqlAzureSubscriptionNetworkServiceSubnet), nil + } + } + + return c.subnet() + }) +} + +// mqlAzureSubscriptionNetworkServiceFirewallNetworkRule for the azure.subscription.networkService.firewall.networkRule resource +type mqlAzureSubscriptionNetworkServiceFirewallNetworkRule struct { + MqlRuntime *plugin.Runtime + __id string + // optional: if you define mqlAzureSubscriptionNetworkServiceFirewallNetworkRuleInternal it will be used here + Id plugin.TValue[string] + Name plugin.TValue[string] + Etag plugin.TValue[string] + Properties plugin.TValue[interface{}] +} + +// createAzureSubscriptionNetworkServiceFirewallNetworkRule creates a new instance of this resource +func createAzureSubscriptionNetworkServiceFirewallNetworkRule(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { + res := &mqlAzureSubscriptionNetworkServiceFirewallNetworkRule{ + MqlRuntime: runtime, + } + + err := SetAllData(res, args) + if err != nil { + return res, err + } + + if res.__id == "" { + res.__id, err = res.id() + if err != nil { + return nil, err + } + } + + if runtime.HasRecording { + args, err = runtime.ResourceFromRecording("azure.subscription.networkService.firewall.networkRule", res.__id) + if err != nil || args == nil { + return res, err + } + return res, SetAllData(res, args) + } + + return res, nil +} + +func (c *mqlAzureSubscriptionNetworkServiceFirewallNetworkRule) MqlName() string { + return "azure.subscription.networkService.firewall.networkRule" +} + +func (c *mqlAzureSubscriptionNetworkServiceFirewallNetworkRule) MqlID() string { + return c.__id +} + +func (c *mqlAzureSubscriptionNetworkServiceFirewallNetworkRule) GetId() *plugin.TValue[string] { + return &c.Id +} + +func (c *mqlAzureSubscriptionNetworkServiceFirewallNetworkRule) GetName() *plugin.TValue[string] { + return &c.Name +} + +func (c *mqlAzureSubscriptionNetworkServiceFirewallNetworkRule) GetEtag() *plugin.TValue[string] { + return &c.Etag +} + +func (c *mqlAzureSubscriptionNetworkServiceFirewallNetworkRule) GetProperties() *plugin.TValue[interface{}] { + return &c.Properties +} + +// mqlAzureSubscriptionNetworkServiceFirewallApplicationRule for the azure.subscription.networkService.firewall.applicationRule resource +type mqlAzureSubscriptionNetworkServiceFirewallApplicationRule struct { + MqlRuntime *plugin.Runtime + __id string + // optional: if you define mqlAzureSubscriptionNetworkServiceFirewallApplicationRuleInternal it will be used here + Id plugin.TValue[string] + Name plugin.TValue[string] + Etag plugin.TValue[string] + Properties plugin.TValue[interface{}] +} + +// createAzureSubscriptionNetworkServiceFirewallApplicationRule creates a new instance of this resource +func createAzureSubscriptionNetworkServiceFirewallApplicationRule(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { + res := &mqlAzureSubscriptionNetworkServiceFirewallApplicationRule{ + MqlRuntime: runtime, + } + + err := SetAllData(res, args) + if err != nil { + return res, err + } + + if res.__id == "" { + res.__id, err = res.id() + if err != nil { + return nil, err + } + } + + if runtime.HasRecording { + args, err = runtime.ResourceFromRecording("azure.subscription.networkService.firewall.applicationRule", res.__id) + if err != nil || args == nil { + return res, err + } + return res, SetAllData(res, args) + } + + return res, nil +} + +func (c *mqlAzureSubscriptionNetworkServiceFirewallApplicationRule) MqlName() string { + return "azure.subscription.networkService.firewall.applicationRule" +} + +func (c *mqlAzureSubscriptionNetworkServiceFirewallApplicationRule) MqlID() string { + return c.__id +} + +func (c *mqlAzureSubscriptionNetworkServiceFirewallApplicationRule) GetId() *plugin.TValue[string] { + return &c.Id +} + +func (c *mqlAzureSubscriptionNetworkServiceFirewallApplicationRule) GetName() *plugin.TValue[string] { + return &c.Name +} + +func (c *mqlAzureSubscriptionNetworkServiceFirewallApplicationRule) GetEtag() *plugin.TValue[string] { + return &c.Etag +} + +func (c *mqlAzureSubscriptionNetworkServiceFirewallApplicationRule) GetProperties() *plugin.TValue[interface{}] { + return &c.Properties +} + +// mqlAzureSubscriptionNetworkServiceFirewallNatRule for the azure.subscription.networkService.firewall.natRule resource +type mqlAzureSubscriptionNetworkServiceFirewallNatRule struct { + MqlRuntime *plugin.Runtime + __id string + // optional: if you define mqlAzureSubscriptionNetworkServiceFirewallNatRuleInternal it will be used here + Id plugin.TValue[string] + Name plugin.TValue[string] + Etag plugin.TValue[string] + Properties plugin.TValue[interface{}] +} + +// createAzureSubscriptionNetworkServiceFirewallNatRule creates a new instance of this resource +func createAzureSubscriptionNetworkServiceFirewallNatRule(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { + res := &mqlAzureSubscriptionNetworkServiceFirewallNatRule{ + MqlRuntime: runtime, + } + + err := SetAllData(res, args) + if err != nil { + return res, err + } + + if res.__id == "" { + res.__id, err = res.id() + if err != nil { + return nil, err + } + } + + if runtime.HasRecording { + args, err = runtime.ResourceFromRecording("azure.subscription.networkService.firewall.natRule", res.__id) + if err != nil || args == nil { + return res, err + } + return res, SetAllData(res, args) + } + + return res, nil +} + +func (c *mqlAzureSubscriptionNetworkServiceFirewallNatRule) MqlName() string { + return "azure.subscription.networkService.firewall.natRule" +} + +func (c *mqlAzureSubscriptionNetworkServiceFirewallNatRule) MqlID() string { + return c.__id +} + +func (c *mqlAzureSubscriptionNetworkServiceFirewallNatRule) GetId() *plugin.TValue[string] { + return &c.Id +} + +func (c *mqlAzureSubscriptionNetworkServiceFirewallNatRule) GetName() *plugin.TValue[string] { + return &c.Name +} + +func (c *mqlAzureSubscriptionNetworkServiceFirewallNatRule) GetEtag() *plugin.TValue[string] { + return &c.Etag +} + +func (c *mqlAzureSubscriptionNetworkServiceFirewallNatRule) GetProperties() *plugin.TValue[interface{}] { + return &c.Properties +} + +// mqlAzureSubscriptionNetworkServiceFirewallPolicy for the azure.subscription.networkService.firewallPolicy resource +type mqlAzureSubscriptionNetworkServiceFirewallPolicy struct { + MqlRuntime *plugin.Runtime + __id string + // optional: if you define mqlAzureSubscriptionNetworkServiceFirewallPolicyInternal it will be used here + Id plugin.TValue[string] + Name plugin.TValue[string] + Location plugin.TValue[string] + Tags plugin.TValue[map[string]interface{}] + Type plugin.TValue[string] + Etag plugin.TValue[string] + Properties plugin.TValue[interface{}] + ProvisioningState plugin.TValue[string] + BasePolicy plugin.TValue[*mqlAzureSubscriptionNetworkServiceFirewallPolicy] + ChildPolicies plugin.TValue[[]interface{}] + Firewalls plugin.TValue[[]interface{}] +} + +// createAzureSubscriptionNetworkServiceFirewallPolicy creates a new instance of this resource +func createAzureSubscriptionNetworkServiceFirewallPolicy(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { + res := &mqlAzureSubscriptionNetworkServiceFirewallPolicy{ + MqlRuntime: runtime, + } + + err := SetAllData(res, args) + if err != nil { + return res, err + } + + if res.__id == "" { + res.__id, err = res.id() + if err != nil { + return nil, err + } + } + + if runtime.HasRecording { + args, err = runtime.ResourceFromRecording("azure.subscription.networkService.firewallPolicy", res.__id) + if err != nil || args == nil { + return res, err + } + return res, SetAllData(res, args) + } + + return res, nil +} + +func (c *mqlAzureSubscriptionNetworkServiceFirewallPolicy) MqlName() string { + return "azure.subscription.networkService.firewallPolicy" +} + +func (c *mqlAzureSubscriptionNetworkServiceFirewallPolicy) MqlID() string { + return c.__id +} + +func (c *mqlAzureSubscriptionNetworkServiceFirewallPolicy) GetId() *plugin.TValue[string] { + return &c.Id +} + +func (c *mqlAzureSubscriptionNetworkServiceFirewallPolicy) GetName() *plugin.TValue[string] { + return &c.Name +} + +func (c *mqlAzureSubscriptionNetworkServiceFirewallPolicy) GetLocation() *plugin.TValue[string] { + return &c.Location +} + +func (c *mqlAzureSubscriptionNetworkServiceFirewallPolicy) GetTags() *plugin.TValue[map[string]interface{}] { + return &c.Tags +} + +func (c *mqlAzureSubscriptionNetworkServiceFirewallPolicy) GetType() *plugin.TValue[string] { + return &c.Type } -func SetData(resource plugin.Resource, field string, val *llx.RawData) error { - f, ok := setDataFields[resource.MqlName() + "." + field] - if !ok { - return errors.New("[azure] cannot set '"+field+"' in resource '"+resource.MqlName()+"', field not found") +func (c *mqlAzureSubscriptionNetworkServiceFirewallPolicy) GetEtag() *plugin.TValue[string] { + return &c.Etag +} + +func (c *mqlAzureSubscriptionNetworkServiceFirewallPolicy) GetProperties() *plugin.TValue[interface{}] { + return &c.Properties +} + +func (c *mqlAzureSubscriptionNetworkServiceFirewallPolicy) GetProvisioningState() *plugin.TValue[string] { + return &c.ProvisioningState +} + +func (c *mqlAzureSubscriptionNetworkServiceFirewallPolicy) GetBasePolicy() *plugin.TValue[*mqlAzureSubscriptionNetworkServiceFirewallPolicy] { + return plugin.GetOrCompute[*mqlAzureSubscriptionNetworkServiceFirewallPolicy](&c.BasePolicy, func() (*mqlAzureSubscriptionNetworkServiceFirewallPolicy, error) { + if c.MqlRuntime.HasRecording { + d, err := c.MqlRuntime.FieldResourceFromRecording("azure.subscription.networkService.firewallPolicy", c.__id, "basePolicy") + if err != nil { + return nil, err + } + if d != nil { + return d.Value.(*mqlAzureSubscriptionNetworkServiceFirewallPolicy), nil + } + } + + return c.basePolicy() + }) +} + +func (c *mqlAzureSubscriptionNetworkServiceFirewallPolicy) GetChildPolicies() *plugin.TValue[[]interface{}] { + return plugin.GetOrCompute[[]interface{}](&c.ChildPolicies, func() ([]interface{}, error) { + if c.MqlRuntime.HasRecording { + d, err := c.MqlRuntime.FieldResourceFromRecording("azure.subscription.networkService.firewallPolicy", c.__id, "childPolicies") + if err != nil { + return nil, err + } + if d != nil { + return d.Value.([]interface{}), nil + } + } + + return c.childPolicies() + }) +} + +func (c *mqlAzureSubscriptionNetworkServiceFirewallPolicy) GetFirewalls() *plugin.TValue[[]interface{}] { + return plugin.GetOrCompute[[]interface{}](&c.Firewalls, func() ([]interface{}, error) { + if c.MqlRuntime.HasRecording { + d, err := c.MqlRuntime.FieldResourceFromRecording("azure.subscription.networkService.firewallPolicy", c.__id, "firewalls") + if err != nil { + return nil, err + } + if d != nil { + return d.Value.([]interface{}), nil + } + } + + return c.firewalls() + }) +} + +// mqlAzureSubscriptionNetworkServiceVirtualNetworkGatewayIpConfig for the azure.subscription.networkService.virtualNetworkGateway.ipConfig resource +type mqlAzureSubscriptionNetworkServiceVirtualNetworkGatewayIpConfig struct { + MqlRuntime *plugin.Runtime + __id string + // optional: if you define mqlAzureSubscriptionNetworkServiceVirtualNetworkGatewayIpConfigInternal it will be used here + Id plugin.TValue[string] + Name plugin.TValue[string] + Etag plugin.TValue[string] + PrivateIpAddress plugin.TValue[string] + Properties plugin.TValue[interface{}] +} + +// createAzureSubscriptionNetworkServiceVirtualNetworkGatewayIpConfig creates a new instance of this resource +func createAzureSubscriptionNetworkServiceVirtualNetworkGatewayIpConfig(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { + res := &mqlAzureSubscriptionNetworkServiceVirtualNetworkGatewayIpConfig{ + MqlRuntime: runtime, } - if ok := f(resource, val); !ok { - return errors.New("[azure] cannot set '"+field+"' in resource '"+resource.MqlName()+"', type does not match") + err := SetAllData(res, args) + if err != nil { + return res, err } - return nil + + if res.__id == "" { + res.__id, err = res.id() + if err != nil { + return nil, err + } + } + + if runtime.HasRecording { + args, err = runtime.ResourceFromRecording("azure.subscription.networkService.virtualNetworkGateway.ipConfig", res.__id) + if err != nil || args == nil { + return res, err + } + return res, SetAllData(res, args) + } + + return res, nil } -func SetAllData(resource plugin.Resource, args map[string]*llx.RawData) error { - var err error - for k, v := range args { - if err = SetData(resource, k, v); err != nil { - return err +func (c *mqlAzureSubscriptionNetworkServiceVirtualNetworkGatewayIpConfig) MqlName() string { + return "azure.subscription.networkService.virtualNetworkGateway.ipConfig" +} + +func (c *mqlAzureSubscriptionNetworkServiceVirtualNetworkGatewayIpConfig) MqlID() string { + return c.__id +} + +func (c *mqlAzureSubscriptionNetworkServiceVirtualNetworkGatewayIpConfig) GetId() *plugin.TValue[string] { + return &c.Id +} + +func (c *mqlAzureSubscriptionNetworkServiceVirtualNetworkGatewayIpConfig) GetName() *plugin.TValue[string] { + return &c.Name +} + +func (c *mqlAzureSubscriptionNetworkServiceVirtualNetworkGatewayIpConfig) GetEtag() *plugin.TValue[string] { + return &c.Etag +} + +func (c *mqlAzureSubscriptionNetworkServiceVirtualNetworkGatewayIpConfig) GetPrivateIpAddress() *plugin.TValue[string] { + return &c.PrivateIpAddress +} + +func (c *mqlAzureSubscriptionNetworkServiceVirtualNetworkGatewayIpConfig) GetProperties() *plugin.TValue[interface{}] { + return &c.Properties +} + +// mqlAzureSubscriptionNetworkServiceVirtualNetworkGatewayConnection for the azure.subscription.networkService.virtualNetworkGateway.connection resource +type mqlAzureSubscriptionNetworkServiceVirtualNetworkGatewayConnection struct { + MqlRuntime *plugin.Runtime + __id string + // optional: if you define mqlAzureSubscriptionNetworkServiceVirtualNetworkGatewayConnectionInternal it will be used here + Id plugin.TValue[string] + Name plugin.TValue[string] + Type plugin.TValue[string] + Etag plugin.TValue[string] + Properties plugin.TValue[interface{}] +} + +// createAzureSubscriptionNetworkServiceVirtualNetworkGatewayConnection creates a new instance of this resource +func createAzureSubscriptionNetworkServiceVirtualNetworkGatewayConnection(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { + res := &mqlAzureSubscriptionNetworkServiceVirtualNetworkGatewayConnection{ + MqlRuntime: runtime, + } + + err := SetAllData(res, args) + if err != nil { + return res, err + } + + if res.__id == "" { + res.__id, err = res.id() + if err != nil { + return nil, err } } - return nil + + if runtime.HasRecording { + args, err = runtime.ResourceFromRecording("azure.subscription.networkService.virtualNetworkGateway.connection", res.__id) + if err != nil || args == nil { + return res, err + } + return res, SetAllData(res, args) + } + + return res, nil } -// mqlAzure for the azure resource -type mqlAzure struct { +func (c *mqlAzureSubscriptionNetworkServiceVirtualNetworkGatewayConnection) MqlName() string { + return "azure.subscription.networkService.virtualNetworkGateway.connection" +} + +func (c *mqlAzureSubscriptionNetworkServiceVirtualNetworkGatewayConnection) MqlID() string { + return c.__id +} + +func (c *mqlAzureSubscriptionNetworkServiceVirtualNetworkGatewayConnection) GetId() *plugin.TValue[string] { + return &c.Id +} + +func (c *mqlAzureSubscriptionNetworkServiceVirtualNetworkGatewayConnection) GetName() *plugin.TValue[string] { + return &c.Name +} + +func (c *mqlAzureSubscriptionNetworkServiceVirtualNetworkGatewayConnection) GetType() *plugin.TValue[string] { + return &c.Type +} + +func (c *mqlAzureSubscriptionNetworkServiceVirtualNetworkGatewayConnection) GetEtag() *plugin.TValue[string] { + return &c.Etag +} + +func (c *mqlAzureSubscriptionNetworkServiceVirtualNetworkGatewayConnection) GetProperties() *plugin.TValue[interface{}] { + return &c.Properties +} + +// mqlAzureSubscriptionNetworkServiceBgpSettings for the azure.subscription.networkService.bgpSettings resource +type mqlAzureSubscriptionNetworkServiceBgpSettings struct { MqlRuntime *plugin.Runtime __id string - // optional: if you define mqlAzureInternal it will be used here + // optional: if you define mqlAzureSubscriptionNetworkServiceBgpSettingsInternal it will be used here + Id plugin.TValue[string] + Asn plugin.TValue[int64] + BgpPeeringAddress plugin.TValue[string] + PeerWeight plugin.TValue[int64] + BgpPeeringAddressesConfig plugin.TValue[[]interface{}] } -// createAzure creates a new instance of this resource -func createAzure(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { - res := &mqlAzure{ +// createAzureSubscriptionNetworkServiceBgpSettings creates a new instance of this resource +func createAzureSubscriptionNetworkServiceBgpSettings(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { + res := &mqlAzureSubscriptionNetworkServiceBgpSettings{ MqlRuntime: runtime, } @@ -4112,10 +7706,15 @@ func createAzure(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin. return res, err } - // to override __id implement: id() (string, error) + if res.__id == "" { + res.__id, err = res.id() + if err != nil { + return nil, err + } + } if runtime.HasRecording { - args, err = runtime.ResourceFromRecording("azure", res.__id) + args, err = runtime.ResourceFromRecording("azure.subscription.networkService.bgpSettings", res.__id) if err != nil || args == nil { return res, err } @@ -4125,49 +7724,123 @@ func createAzure(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin. return res, nil } -func (c *mqlAzure) MqlName() string { - return "azure" +func (c *mqlAzureSubscriptionNetworkServiceBgpSettings) MqlName() string { + return "azure.subscription.networkService.bgpSettings" } -func (c *mqlAzure) MqlID() string { +func (c *mqlAzureSubscriptionNetworkServiceBgpSettings) MqlID() string { return c.__id } -// mqlAzureSubscription for the azure.subscription resource -type mqlAzureSubscription struct { +func (c *mqlAzureSubscriptionNetworkServiceBgpSettings) GetId() *plugin.TValue[string] { + return &c.Id +} + +func (c *mqlAzureSubscriptionNetworkServiceBgpSettings) GetAsn() *plugin.TValue[int64] { + return &c.Asn +} + +func (c *mqlAzureSubscriptionNetworkServiceBgpSettings) GetBgpPeeringAddress() *plugin.TValue[string] { + return &c.BgpPeeringAddress +} + +func (c *mqlAzureSubscriptionNetworkServiceBgpSettings) GetPeerWeight() *plugin.TValue[int64] { + return &c.PeerWeight +} + +func (c *mqlAzureSubscriptionNetworkServiceBgpSettings) GetBgpPeeringAddressesConfig() *plugin.TValue[[]interface{}] { + return &c.BgpPeeringAddressesConfig +} + +// mqlAzureSubscriptionNetworkServiceBgpSettingsIpConfigurationBgpPeeringAddress for the azure.subscription.networkService.bgpSettings.ipConfigurationBgpPeeringAddress resource +type mqlAzureSubscriptionNetworkServiceBgpSettingsIpConfigurationBgpPeeringAddress struct { MqlRuntime *plugin.Runtime __id string - // optional: if you define mqlAzureSubscriptionInternal it will be used here + // optional: if you define mqlAzureSubscriptionNetworkServiceBgpSettingsIpConfigurationBgpPeeringAddressInternal it will be used here + Id plugin.TValue[string] + CustomBgpIpAddresses plugin.TValue[[]interface{}] + IpConfigurationId plugin.TValue[string] + DefaultBgpIpAddresses plugin.TValue[[]interface{}] + TunnelIpAddresses plugin.TValue[[]interface{}] +} + +// createAzureSubscriptionNetworkServiceBgpSettingsIpConfigurationBgpPeeringAddress creates a new instance of this resource +func createAzureSubscriptionNetworkServiceBgpSettingsIpConfigurationBgpPeeringAddress(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { + res := &mqlAzureSubscriptionNetworkServiceBgpSettingsIpConfigurationBgpPeeringAddress{ + MqlRuntime: runtime, + } + + err := SetAllData(res, args) + if err != nil { + return res, err + } + + if res.__id == "" { + res.__id, err = res.id() + if err != nil { + return nil, err + } + } + + if runtime.HasRecording { + args, err = runtime.ResourceFromRecording("azure.subscription.networkService.bgpSettings.ipConfigurationBgpPeeringAddress", res.__id) + if err != nil || args == nil { + return res, err + } + return res, SetAllData(res, args) + } + + return res, nil +} + +func (c *mqlAzureSubscriptionNetworkServiceBgpSettingsIpConfigurationBgpPeeringAddress) MqlName() string { + return "azure.subscription.networkService.bgpSettings.ipConfigurationBgpPeeringAddress" +} + +func (c *mqlAzureSubscriptionNetworkServiceBgpSettingsIpConfigurationBgpPeeringAddress) MqlID() string { + return c.__id +} + +func (c *mqlAzureSubscriptionNetworkServiceBgpSettingsIpConfigurationBgpPeeringAddress) GetId() *plugin.TValue[string] { + return &c.Id +} + +func (c *mqlAzureSubscriptionNetworkServiceBgpSettingsIpConfigurationBgpPeeringAddress) GetCustomBgpIpAddresses() *plugin.TValue[[]interface{}] { + return &c.CustomBgpIpAddresses +} + +func (c *mqlAzureSubscriptionNetworkServiceBgpSettingsIpConfigurationBgpPeeringAddress) GetIpConfigurationId() *plugin.TValue[string] { + return &c.IpConfigurationId +} + +func (c *mqlAzureSubscriptionNetworkServiceBgpSettingsIpConfigurationBgpPeeringAddress) GetDefaultBgpIpAddresses() *plugin.TValue[[]interface{}] { + return &c.DefaultBgpIpAddresses +} + +func (c *mqlAzureSubscriptionNetworkServiceBgpSettingsIpConfigurationBgpPeeringAddress) GetTunnelIpAddresses() *plugin.TValue[[]interface{}] { + return &c.TunnelIpAddresses +} + +// mqlAzureSubscriptionNetworkServiceNatGateway for the azure.subscription.networkService.natGateway resource +type mqlAzureSubscriptionNetworkServiceNatGateway struct { + MqlRuntime *plugin.Runtime + __id string + // optional: if you define mqlAzureSubscriptionNetworkServiceNatGatewayInternal it will be used here Id plugin.TValue[string] Name plugin.TValue[string] - SubscriptionId plugin.TValue[string] - TenantId plugin.TValue[string] - ManagedByTenants plugin.TValue[[]interface{}] + Location plugin.TValue[string] Tags plugin.TValue[map[string]interface{}] - State plugin.TValue[string] - AuthorizationSource plugin.TValue[string] - SubscriptionsPolicies plugin.TValue[interface{}] - Resources plugin.TValue[[]interface{}] - ResourceGroups plugin.TValue[[]interface{}] - Compute plugin.TValue[*mqlAzureSubscriptionComputeService] - Network plugin.TValue[*mqlAzureSubscriptionNetworkService] - Storage plugin.TValue[*mqlAzureSubscriptionStorageService] - Web plugin.TValue[*mqlAzureSubscriptionWebService] - Sql plugin.TValue[*mqlAzureSubscriptionSqlService] - MySql plugin.TValue[*mqlAzureSubscriptionMySqlService] - PostgreSql plugin.TValue[*mqlAzureSubscriptionPostgreSqlService] - MariaDb plugin.TValue[*mqlAzureSubscriptionMariaDbService] - CosmosDb plugin.TValue[*mqlAzureSubscriptionCosmosDbService] - KeyVault plugin.TValue[*mqlAzureSubscriptionKeyVaultService] - Authorization plugin.TValue[*mqlAzureSubscriptionAuthorizationService] - Monitor plugin.TValue[*mqlAzureSubscriptionMonitorService] - CloudDefender plugin.TValue[*mqlAzureSubscriptionCloudDefenderService] - Aks plugin.TValue[*mqlAzureSubscriptionAksService] + Type plugin.TValue[string] + Etag plugin.TValue[string] + Properties plugin.TValue[interface{}] + Zones plugin.TValue[[]interface{}] + PublicIpAddresses plugin.TValue[[]interface{}] + Subnets plugin.TValue[[]interface{}] } -// createAzureSubscription creates a new instance of this resource -func createAzureSubscription(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { - res := &mqlAzureSubscription{ +// createAzureSubscriptionNetworkServiceNatGateway creates a new instance of this resource +func createAzureSubscriptionNetworkServiceNatGateway(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { + res := &mqlAzureSubscriptionNetworkServiceNatGateway{ MqlRuntime: runtime, } @@ -4184,7 +7857,7 @@ func createAzureSubscription(runtime *plugin.Runtime, args map[string]*llx.RawDa } if runtime.HasRecording { - args, err = runtime.ResourceFromRecording("azure.subscription", res.__id) + args, err = runtime.ResourceFromRecording("azure.subscription.networkService.natGateway", res.__id) if err != nil || args == nil { return res, err } @@ -4194,70 +7867,50 @@ func createAzureSubscription(runtime *plugin.Runtime, args map[string]*llx.RawDa return res, nil } -func (c *mqlAzureSubscription) MqlName() string { - return "azure.subscription" +func (c *mqlAzureSubscriptionNetworkServiceNatGateway) MqlName() string { + return "azure.subscription.networkService.natGateway" } -func (c *mqlAzureSubscription) MqlID() string { +func (c *mqlAzureSubscriptionNetworkServiceNatGateway) MqlID() string { return c.__id } -func (c *mqlAzureSubscription) GetId() *plugin.TValue[string] { +func (c *mqlAzureSubscriptionNetworkServiceNatGateway) GetId() *plugin.TValue[string] { return &c.Id } -func (c *mqlAzureSubscription) GetName() *plugin.TValue[string] { +func (c *mqlAzureSubscriptionNetworkServiceNatGateway) GetName() *plugin.TValue[string] { return &c.Name } -func (c *mqlAzureSubscription) GetSubscriptionId() *plugin.TValue[string] { - return &c.SubscriptionId -} - -func (c *mqlAzureSubscription) GetTenantId() *plugin.TValue[string] { - return &c.TenantId -} - -func (c *mqlAzureSubscription) GetManagedByTenants() *plugin.TValue[[]interface{}] { - return &c.ManagedByTenants +func (c *mqlAzureSubscriptionNetworkServiceNatGateway) GetLocation() *plugin.TValue[string] { + return &c.Location } -func (c *mqlAzureSubscription) GetTags() *plugin.TValue[map[string]interface{}] { +func (c *mqlAzureSubscriptionNetworkServiceNatGateway) GetTags() *plugin.TValue[map[string]interface{}] { return &c.Tags } -func (c *mqlAzureSubscription) GetState() *plugin.TValue[string] { - return &c.State +func (c *mqlAzureSubscriptionNetworkServiceNatGateway) GetType() *plugin.TValue[string] { + return &c.Type } -func (c *mqlAzureSubscription) GetAuthorizationSource() *plugin.TValue[string] { - return &c.AuthorizationSource +func (c *mqlAzureSubscriptionNetworkServiceNatGateway) GetEtag() *plugin.TValue[string] { + return &c.Etag } -func (c *mqlAzureSubscription) GetSubscriptionsPolicies() *plugin.TValue[interface{}] { - return &c.SubscriptionsPolicies +func (c *mqlAzureSubscriptionNetworkServiceNatGateway) GetProperties() *plugin.TValue[interface{}] { + return &c.Properties } -func (c *mqlAzureSubscription) GetResources() *plugin.TValue[[]interface{}] { - return plugin.GetOrCompute[[]interface{}](&c.Resources, func() ([]interface{}, error) { - if c.MqlRuntime.HasRecording { - d, err := c.MqlRuntime.FieldResourceFromRecording("azure.subscription", c.__id, "resources") - if err != nil { - return nil, err - } - if d != nil { - return d.Value.([]interface{}), nil - } - } - - return c.resources() - }) +func (c *mqlAzureSubscriptionNetworkServiceNatGateway) GetZones() *plugin.TValue[[]interface{}] { + return &c.Zones } -func (c *mqlAzureSubscription) GetResourceGroups() *plugin.TValue[[]interface{}] { - return plugin.GetOrCompute[[]interface{}](&c.ResourceGroups, func() ([]interface{}, error) { +func (c *mqlAzureSubscriptionNetworkServiceNatGateway) GetPublicIpAddresses() *plugin.TValue[[]interface{}] { + return plugin.GetOrCompute[[]interface{}](&c.PublicIpAddresses, func() ([]interface{}, error) { if c.MqlRuntime.HasRecording { - d, err := c.MqlRuntime.FieldResourceFromRecording("azure.subscription", c.__id, "resourceGroups") + d, err := c.MqlRuntime.FieldResourceFromRecording("azure.subscription.networkService.natGateway", c.__id, "publicIpAddresses") if err != nil { return nil, err } @@ -4266,251 +7919,135 @@ func (c *mqlAzureSubscription) GetResourceGroups() *plugin.TValue[[]interface{}] } } - return c.resourceGroups() + return c.publicIpAddresses() }) } -func (c *mqlAzureSubscription) GetCompute() *plugin.TValue[*mqlAzureSubscriptionComputeService] { - return plugin.GetOrCompute[*mqlAzureSubscriptionComputeService](&c.Compute, func() (*mqlAzureSubscriptionComputeService, error) { +func (c *mqlAzureSubscriptionNetworkServiceNatGateway) GetSubnets() *plugin.TValue[[]interface{}] { + return plugin.GetOrCompute[[]interface{}](&c.Subnets, func() ([]interface{}, error) { if c.MqlRuntime.HasRecording { - d, err := c.MqlRuntime.FieldResourceFromRecording("azure.subscription", c.__id, "compute") + d, err := c.MqlRuntime.FieldResourceFromRecording("azure.subscription.networkService.natGateway", c.__id, "subnets") if err != nil { return nil, err } if d != nil { - return d.Value.(*mqlAzureSubscriptionComputeService), nil + return d.Value.([]interface{}), nil } } - return c.compute() + return c.subnets() }) } -func (c *mqlAzureSubscription) GetNetwork() *plugin.TValue[*mqlAzureSubscriptionNetworkService] { - return plugin.GetOrCompute[*mqlAzureSubscriptionNetworkService](&c.Network, func() (*mqlAzureSubscriptionNetworkService, error) { - if c.MqlRuntime.HasRecording { - d, err := c.MqlRuntime.FieldResourceFromRecording("azure.subscription", c.__id, "network") - if err != nil { - return nil, err - } - if d != nil { - return d.Value.(*mqlAzureSubscriptionNetworkService), nil - } - } - - return c.network() - }) +// mqlAzureSubscriptionNetworkServiceSubnet for the azure.subscription.networkService.subnet resource +type mqlAzureSubscriptionNetworkServiceSubnet struct { + MqlRuntime *plugin.Runtime + __id string + // optional: if you define mqlAzureSubscriptionNetworkServiceSubnetInternal it will be used here + Id plugin.TValue[string] + Name plugin.TValue[string] + Type plugin.TValue[string] + Etag plugin.TValue[string] + AddressPrefix plugin.TValue[string] + Properties plugin.TValue[interface{}] + NatGateway plugin.TValue[*mqlAzureSubscriptionNetworkServiceNatGateway] } -func (c *mqlAzureSubscription) GetStorage() *plugin.TValue[*mqlAzureSubscriptionStorageService] { - return plugin.GetOrCompute[*mqlAzureSubscriptionStorageService](&c.Storage, func() (*mqlAzureSubscriptionStorageService, error) { - if c.MqlRuntime.HasRecording { - d, err := c.MqlRuntime.FieldResourceFromRecording("azure.subscription", c.__id, "storage") - if err != nil { - return nil, err - } - if d != nil { - return d.Value.(*mqlAzureSubscriptionStorageService), nil - } - } +// createAzureSubscriptionNetworkServiceSubnet creates a new instance of this resource +func createAzureSubscriptionNetworkServiceSubnet(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { + res := &mqlAzureSubscriptionNetworkServiceSubnet{ + MqlRuntime: runtime, + } - return c.storage() - }) -} + err := SetAllData(res, args) + if err != nil { + return res, err + } -func (c *mqlAzureSubscription) GetWeb() *plugin.TValue[*mqlAzureSubscriptionWebService] { - return plugin.GetOrCompute[*mqlAzureSubscriptionWebService](&c.Web, func() (*mqlAzureSubscriptionWebService, error) { - if c.MqlRuntime.HasRecording { - d, err := c.MqlRuntime.FieldResourceFromRecording("azure.subscription", c.__id, "web") - if err != nil { - return nil, err - } - if d != nil { - return d.Value.(*mqlAzureSubscriptionWebService), nil - } + if res.__id == "" { + res.__id, err = res.id() + if err != nil { + return nil, err } + } - return c.web() - }) -} - -func (c *mqlAzureSubscription) GetSql() *plugin.TValue[*mqlAzureSubscriptionSqlService] { - return plugin.GetOrCompute[*mqlAzureSubscriptionSqlService](&c.Sql, func() (*mqlAzureSubscriptionSqlService, error) { - if c.MqlRuntime.HasRecording { - d, err := c.MqlRuntime.FieldResourceFromRecording("azure.subscription", c.__id, "sql") - if err != nil { - return nil, err - } - if d != nil { - return d.Value.(*mqlAzureSubscriptionSqlService), nil - } + if runtime.HasRecording { + args, err = runtime.ResourceFromRecording("azure.subscription.networkService.subnet", res.__id) + if err != nil || args == nil { + return res, err } + return res, SetAllData(res, args) + } - return c.sql() - }) + return res, nil } -func (c *mqlAzureSubscription) GetMySql() *plugin.TValue[*mqlAzureSubscriptionMySqlService] { - return plugin.GetOrCompute[*mqlAzureSubscriptionMySqlService](&c.MySql, func() (*mqlAzureSubscriptionMySqlService, error) { - if c.MqlRuntime.HasRecording { - d, err := c.MqlRuntime.FieldResourceFromRecording("azure.subscription", c.__id, "mySql") - if err != nil { - return nil, err - } - if d != nil { - return d.Value.(*mqlAzureSubscriptionMySqlService), nil - } - } - - return c.mySql() - }) +func (c *mqlAzureSubscriptionNetworkServiceSubnet) MqlName() string { + return "azure.subscription.networkService.subnet" } -func (c *mqlAzureSubscription) GetPostgreSql() *plugin.TValue[*mqlAzureSubscriptionPostgreSqlService] { - return plugin.GetOrCompute[*mqlAzureSubscriptionPostgreSqlService](&c.PostgreSql, func() (*mqlAzureSubscriptionPostgreSqlService, error) { - if c.MqlRuntime.HasRecording { - d, err := c.MqlRuntime.FieldResourceFromRecording("azure.subscription", c.__id, "postgreSql") - if err != nil { - return nil, err - } - if d != nil { - return d.Value.(*mqlAzureSubscriptionPostgreSqlService), nil - } - } - - return c.postgreSql() - }) +func (c *mqlAzureSubscriptionNetworkServiceSubnet) MqlID() string { + return c.__id } -func (c *mqlAzureSubscription) GetMariaDb() *plugin.TValue[*mqlAzureSubscriptionMariaDbService] { - return plugin.GetOrCompute[*mqlAzureSubscriptionMariaDbService](&c.MariaDb, func() (*mqlAzureSubscriptionMariaDbService, error) { - if c.MqlRuntime.HasRecording { - d, err := c.MqlRuntime.FieldResourceFromRecording("azure.subscription", c.__id, "mariaDb") - if err != nil { - return nil, err - } - if d != nil { - return d.Value.(*mqlAzureSubscriptionMariaDbService), nil - } - } - - return c.mariaDb() - }) +func (c *mqlAzureSubscriptionNetworkServiceSubnet) GetId() *plugin.TValue[string] { + return &c.Id } -func (c *mqlAzureSubscription) GetCosmosDb() *plugin.TValue[*mqlAzureSubscriptionCosmosDbService] { - return plugin.GetOrCompute[*mqlAzureSubscriptionCosmosDbService](&c.CosmosDb, func() (*mqlAzureSubscriptionCosmosDbService, error) { - if c.MqlRuntime.HasRecording { - d, err := c.MqlRuntime.FieldResourceFromRecording("azure.subscription", c.__id, "cosmosDb") - if err != nil { - return nil, err - } - if d != nil { - return d.Value.(*mqlAzureSubscriptionCosmosDbService), nil - } - } - - return c.cosmosDb() - }) +func (c *mqlAzureSubscriptionNetworkServiceSubnet) GetName() *plugin.TValue[string] { + return &c.Name } -func (c *mqlAzureSubscription) GetKeyVault() *plugin.TValue[*mqlAzureSubscriptionKeyVaultService] { - return plugin.GetOrCompute[*mqlAzureSubscriptionKeyVaultService](&c.KeyVault, func() (*mqlAzureSubscriptionKeyVaultService, error) { - if c.MqlRuntime.HasRecording { - d, err := c.MqlRuntime.FieldResourceFromRecording("azure.subscription", c.__id, "keyVault") - if err != nil { - return nil, err - } - if d != nil { - return d.Value.(*mqlAzureSubscriptionKeyVaultService), nil - } - } - - return c.keyVault() - }) +func (c *mqlAzureSubscriptionNetworkServiceSubnet) GetType() *plugin.TValue[string] { + return &c.Type } -func (c *mqlAzureSubscription) GetAuthorization() *plugin.TValue[*mqlAzureSubscriptionAuthorizationService] { - return plugin.GetOrCompute[*mqlAzureSubscriptionAuthorizationService](&c.Authorization, func() (*mqlAzureSubscriptionAuthorizationService, error) { - if c.MqlRuntime.HasRecording { - d, err := c.MqlRuntime.FieldResourceFromRecording("azure.subscription", c.__id, "authorization") - if err != nil { - return nil, err - } - if d != nil { - return d.Value.(*mqlAzureSubscriptionAuthorizationService), nil - } - } - - return c.authorization() - }) +func (c *mqlAzureSubscriptionNetworkServiceSubnet) GetEtag() *plugin.TValue[string] { + return &c.Etag } -func (c *mqlAzureSubscription) GetMonitor() *plugin.TValue[*mqlAzureSubscriptionMonitorService] { - return plugin.GetOrCompute[*mqlAzureSubscriptionMonitorService](&c.Monitor, func() (*mqlAzureSubscriptionMonitorService, error) { - if c.MqlRuntime.HasRecording { - d, err := c.MqlRuntime.FieldResourceFromRecording("azure.subscription", c.__id, "monitor") - if err != nil { - return nil, err - } - if d != nil { - return d.Value.(*mqlAzureSubscriptionMonitorService), nil - } - } - - return c.monitor() - }) +func (c *mqlAzureSubscriptionNetworkServiceSubnet) GetAddressPrefix() *plugin.TValue[string] { + return &c.AddressPrefix } -func (c *mqlAzureSubscription) GetCloudDefender() *plugin.TValue[*mqlAzureSubscriptionCloudDefenderService] { - return plugin.GetOrCompute[*mqlAzureSubscriptionCloudDefenderService](&c.CloudDefender, func() (*mqlAzureSubscriptionCloudDefenderService, error) { - if c.MqlRuntime.HasRecording { - d, err := c.MqlRuntime.FieldResourceFromRecording("azure.subscription", c.__id, "cloudDefender") - if err != nil { - return nil, err - } - if d != nil { - return d.Value.(*mqlAzureSubscriptionCloudDefenderService), nil - } - } - - return c.cloudDefender() - }) +func (c *mqlAzureSubscriptionNetworkServiceSubnet) GetProperties() *plugin.TValue[interface{}] { + return &c.Properties } -func (c *mqlAzureSubscription) GetAks() *plugin.TValue[*mqlAzureSubscriptionAksService] { - return plugin.GetOrCompute[*mqlAzureSubscriptionAksService](&c.Aks, func() (*mqlAzureSubscriptionAksService, error) { +func (c *mqlAzureSubscriptionNetworkServiceSubnet) GetNatGateway() *plugin.TValue[*mqlAzureSubscriptionNetworkServiceNatGateway] { + return plugin.GetOrCompute[*mqlAzureSubscriptionNetworkServiceNatGateway](&c.NatGateway, func() (*mqlAzureSubscriptionNetworkServiceNatGateway, error) { if c.MqlRuntime.HasRecording { - d, err := c.MqlRuntime.FieldResourceFromRecording("azure.subscription", c.__id, "aks") + d, err := c.MqlRuntime.FieldResourceFromRecording("azure.subscription.networkService.subnet", c.__id, "natGateway") if err != nil { return nil, err } if d != nil { - return d.Value.(*mqlAzureSubscriptionAksService), nil + return d.Value.(*mqlAzureSubscriptionNetworkServiceNatGateway), nil } } - return c.aks() + return c.natGateway() }) } -// mqlAzureSubscriptionResourcegroup for the azure.subscription.resourcegroup resource -type mqlAzureSubscriptionResourcegroup struct { +// mqlAzureSubscriptionNetworkServiceVirtualNetwork for the azure.subscription.networkService.virtualNetwork resource +type mqlAzureSubscriptionNetworkServiceVirtualNetwork struct { MqlRuntime *plugin.Runtime __id string - // optional: if you define mqlAzureSubscriptionResourcegroupInternal it will be used here + // optional: if you define mqlAzureSubscriptionNetworkServiceVirtualNetworkInternal it will be used here Id plugin.TValue[string] Name plugin.TValue[string] Location plugin.TValue[string] Tags plugin.TValue[map[string]interface{}] Type plugin.TValue[string] - ManagedBy plugin.TValue[string] - ProvisioningState plugin.TValue[string] + Etag plugin.TValue[string] + Properties plugin.TValue[interface{}] + Subnets plugin.TValue[[]interface{}] } -// createAzureSubscriptionResourcegroup creates a new instance of this resource -func createAzureSubscriptionResourcegroup(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { - res := &mqlAzureSubscriptionResourcegroup{ +// createAzureSubscriptionNetworkServiceVirtualNetwork creates a new instance of this resource +func createAzureSubscriptionNetworkServiceVirtualNetwork(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { + res := &mqlAzureSubscriptionNetworkServiceVirtualNetwork{ MqlRuntime: runtime, } @@ -4527,7 +8064,7 @@ func createAzureSubscriptionResourcegroup(runtime *plugin.Runtime, args map[stri } if runtime.HasRecording { - args, err = runtime.ResourceFromRecording("azure.subscription.resourcegroup", res.__id) + args, err = runtime.ResourceFromRecording("azure.subscription.networkService.virtualNetwork", res.__id) if err != nil || args == nil { return res, err } @@ -4537,65 +8074,71 @@ func createAzureSubscriptionResourcegroup(runtime *plugin.Runtime, args map[stri return res, nil } -func (c *mqlAzureSubscriptionResourcegroup) MqlName() string { - return "azure.subscription.resourcegroup" +func (c *mqlAzureSubscriptionNetworkServiceVirtualNetwork) MqlName() string { + return "azure.subscription.networkService.virtualNetwork" } -func (c *mqlAzureSubscriptionResourcegroup) MqlID() string { +func (c *mqlAzureSubscriptionNetworkServiceVirtualNetwork) MqlID() string { return c.__id } -func (c *mqlAzureSubscriptionResourcegroup) GetId() *plugin.TValue[string] { +func (c *mqlAzureSubscriptionNetworkServiceVirtualNetwork) GetId() *plugin.TValue[string] { return &c.Id } -func (c *mqlAzureSubscriptionResourcegroup) GetName() *plugin.TValue[string] { +func (c *mqlAzureSubscriptionNetworkServiceVirtualNetwork) GetName() *plugin.TValue[string] { return &c.Name } -func (c *mqlAzureSubscriptionResourcegroup) GetLocation() *plugin.TValue[string] { +func (c *mqlAzureSubscriptionNetworkServiceVirtualNetwork) GetLocation() *plugin.TValue[string] { return &c.Location } -func (c *mqlAzureSubscriptionResourcegroup) GetTags() *plugin.TValue[map[string]interface{}] { +func (c *mqlAzureSubscriptionNetworkServiceVirtualNetwork) GetTags() *plugin.TValue[map[string]interface{}] { return &c.Tags } -func (c *mqlAzureSubscriptionResourcegroup) GetType() *plugin.TValue[string] { +func (c *mqlAzureSubscriptionNetworkServiceVirtualNetwork) GetType() *plugin.TValue[string] { return &c.Type } -func (c *mqlAzureSubscriptionResourcegroup) GetManagedBy() *plugin.TValue[string] { - return &c.ManagedBy +func (c *mqlAzureSubscriptionNetworkServiceVirtualNetwork) GetEtag() *plugin.TValue[string] { + return &c.Etag } -func (c *mqlAzureSubscriptionResourcegroup) GetProvisioningState() *plugin.TValue[string] { - return &c.ProvisioningState +func (c *mqlAzureSubscriptionNetworkServiceVirtualNetwork) GetProperties() *plugin.TValue[interface{}] { + return &c.Properties } -// mqlAzureSubscriptionResource for the azure.subscription.resource resource -type mqlAzureSubscriptionResource struct { +func (c *mqlAzureSubscriptionNetworkServiceVirtualNetwork) GetSubnets() *plugin.TValue[[]interface{}] { + return &c.Subnets +} + +// mqlAzureSubscriptionNetworkServiceLoadBalancer for the azure.subscription.networkService.loadBalancer resource +type mqlAzureSubscriptionNetworkServiceLoadBalancer struct { MqlRuntime *plugin.Runtime __id string - // optional: if you define mqlAzureSubscriptionResourceInternal it will be used here + // optional: if you define mqlAzureSubscriptionNetworkServiceLoadBalancerInternal it will be used here Id plugin.TValue[string] Name plugin.TValue[string] - Kind plugin.TValue[string] Location plugin.TValue[string] Tags plugin.TValue[map[string]interface{}] Type plugin.TValue[string] - ManagedBy plugin.TValue[string] - Sku plugin.TValue[interface{}] - Plan plugin.TValue[interface{}] - Identity plugin.TValue[interface{}] - ProvisioningState plugin.TValue[string] - CreatedTime plugin.TValue[*time.Time] - ChangedTime plugin.TValue[*time.Time] -} - -// createAzureSubscriptionResource creates a new instance of this resource -func createAzureSubscriptionResource(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { - res := &mqlAzureSubscriptionResource{ + Properties plugin.TValue[interface{}] + Etag plugin.TValue[string] + Sku plugin.TValue[string] + Probes plugin.TValue[[]interface{}] + BackendPools plugin.TValue[[]interface{}] + FrontendIpConfigs plugin.TValue[[]interface{}] + InboundNatPools plugin.TValue[[]interface{}] + InboundNatRules plugin.TValue[[]interface{}] + OutboundRules plugin.TValue[[]interface{}] + LoadBalancerRules plugin.TValue[[]interface{}] +} + +// createAzureSubscriptionNetworkServiceLoadBalancer creates a new instance of this resource +func createAzureSubscriptionNetworkServiceLoadBalancer(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { + res := &mqlAzureSubscriptionNetworkServiceLoadBalancer{ MqlRuntime: runtime, } @@ -4612,7 +8155,7 @@ func createAzureSubscriptionResource(runtime *plugin.Runtime, args map[string]*l } if runtime.HasRecording { - args, err = runtime.ResourceFromRecording("azure.subscription.resource", res.__id) + args, err = runtime.ResourceFromRecording("azure.subscription.networkService.loadBalancer", res.__id) if err != nil || args == nil { return res, err } @@ -4622,79 +8165,89 @@ func createAzureSubscriptionResource(runtime *plugin.Runtime, args map[string]*l return res, nil } -func (c *mqlAzureSubscriptionResource) MqlName() string { - return "azure.subscription.resource" +func (c *mqlAzureSubscriptionNetworkServiceLoadBalancer) MqlName() string { + return "azure.subscription.networkService.loadBalancer" } -func (c *mqlAzureSubscriptionResource) MqlID() string { +func (c *mqlAzureSubscriptionNetworkServiceLoadBalancer) MqlID() string { return c.__id } -func (c *mqlAzureSubscriptionResource) GetId() *plugin.TValue[string] { +func (c *mqlAzureSubscriptionNetworkServiceLoadBalancer) GetId() *plugin.TValue[string] { return &c.Id } -func (c *mqlAzureSubscriptionResource) GetName() *plugin.TValue[string] { +func (c *mqlAzureSubscriptionNetworkServiceLoadBalancer) GetName() *plugin.TValue[string] { return &c.Name } -func (c *mqlAzureSubscriptionResource) GetKind() *plugin.TValue[string] { - return &c.Kind -} - -func (c *mqlAzureSubscriptionResource) GetLocation() *plugin.TValue[string] { +func (c *mqlAzureSubscriptionNetworkServiceLoadBalancer) GetLocation() *plugin.TValue[string] { return &c.Location } -func (c *mqlAzureSubscriptionResource) GetTags() *plugin.TValue[map[string]interface{}] { +func (c *mqlAzureSubscriptionNetworkServiceLoadBalancer) GetTags() *plugin.TValue[map[string]interface{}] { return &c.Tags } -func (c *mqlAzureSubscriptionResource) GetType() *plugin.TValue[string] { +func (c *mqlAzureSubscriptionNetworkServiceLoadBalancer) GetType() *plugin.TValue[string] { return &c.Type } -func (c *mqlAzureSubscriptionResource) GetManagedBy() *plugin.TValue[string] { - return &c.ManagedBy +func (c *mqlAzureSubscriptionNetworkServiceLoadBalancer) GetProperties() *plugin.TValue[interface{}] { + return &c.Properties } -func (c *mqlAzureSubscriptionResource) GetSku() *plugin.TValue[interface{}] { +func (c *mqlAzureSubscriptionNetworkServiceLoadBalancer) GetEtag() *plugin.TValue[string] { + return &c.Etag +} + +func (c *mqlAzureSubscriptionNetworkServiceLoadBalancer) GetSku() *plugin.TValue[string] { return &c.Sku } -func (c *mqlAzureSubscriptionResource) GetPlan() *plugin.TValue[interface{}] { - return &c.Plan +func (c *mqlAzureSubscriptionNetworkServiceLoadBalancer) GetProbes() *plugin.TValue[[]interface{}] { + return &c.Probes } -func (c *mqlAzureSubscriptionResource) GetIdentity() *plugin.TValue[interface{}] { - return &c.Identity +func (c *mqlAzureSubscriptionNetworkServiceLoadBalancer) GetBackendPools() *plugin.TValue[[]interface{}] { + return &c.BackendPools } -func (c *mqlAzureSubscriptionResource) GetProvisioningState() *plugin.TValue[string] { - return &c.ProvisioningState +func (c *mqlAzureSubscriptionNetworkServiceLoadBalancer) GetFrontendIpConfigs() *plugin.TValue[[]interface{}] { + return &c.FrontendIpConfigs } -func (c *mqlAzureSubscriptionResource) GetCreatedTime() *plugin.TValue[*time.Time] { - return &c.CreatedTime +func (c *mqlAzureSubscriptionNetworkServiceLoadBalancer) GetInboundNatPools() *plugin.TValue[[]interface{}] { + return &c.InboundNatPools } -func (c *mqlAzureSubscriptionResource) GetChangedTime() *plugin.TValue[*time.Time] { - return &c.ChangedTime +func (c *mqlAzureSubscriptionNetworkServiceLoadBalancer) GetInboundNatRules() *plugin.TValue[[]interface{}] { + return &c.InboundNatRules } -// mqlAzureSubscriptionComputeService for the azure.subscription.computeService resource -type mqlAzureSubscriptionComputeService struct { +func (c *mqlAzureSubscriptionNetworkServiceLoadBalancer) GetOutboundRules() *plugin.TValue[[]interface{}] { + return &c.OutboundRules +} + +func (c *mqlAzureSubscriptionNetworkServiceLoadBalancer) GetLoadBalancerRules() *plugin.TValue[[]interface{}] { + return &c.LoadBalancerRules +} + +// mqlAzureSubscriptionNetworkServiceProbe for the azure.subscription.networkService.probe resource +type mqlAzureSubscriptionNetworkServiceProbe struct { MqlRuntime *plugin.Runtime __id string - // optional: if you define mqlAzureSubscriptionComputeServiceInternal it will be used here - SubscriptionId plugin.TValue[string] - Vms plugin.TValue[[]interface{}] - Disks plugin.TValue[[]interface{}] + // optional: if you define mqlAzureSubscriptionNetworkServiceProbeInternal it will be used here + Id plugin.TValue[string] + Name plugin.TValue[string] + Type plugin.TValue[string] + Etag plugin.TValue[string] + Properties plugin.TValue[interface{}] } -// createAzureSubscriptionComputeService creates a new instance of this resource -func createAzureSubscriptionComputeService(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { - res := &mqlAzureSubscriptionComputeService{ +// createAzureSubscriptionNetworkServiceProbe creates a new instance of this resource +func createAzureSubscriptionNetworkServiceProbe(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { + res := &mqlAzureSubscriptionNetworkServiceProbe{ MqlRuntime: runtime, } @@ -4711,7 +8264,7 @@ func createAzureSubscriptionComputeService(runtime *plugin.Runtime, args map[str } if runtime.HasRecording { - args, err = runtime.ResourceFromRecording("azure.subscription.computeService", res.__id) + args, err = runtime.ResourceFromRecording("azure.subscription.networkService.probe", res.__id) if err != nil || args == nil { return res, err } @@ -4721,70 +8274,187 @@ func createAzureSubscriptionComputeService(runtime *plugin.Runtime, args map[str return res, nil } -func (c *mqlAzureSubscriptionComputeService) MqlName() string { - return "azure.subscription.computeService" +func (c *mqlAzureSubscriptionNetworkServiceProbe) MqlName() string { + return "azure.subscription.networkService.probe" } -func (c *mqlAzureSubscriptionComputeService) MqlID() string { +func (c *mqlAzureSubscriptionNetworkServiceProbe) MqlID() string { return c.__id } -func (c *mqlAzureSubscriptionComputeService) GetSubscriptionId() *plugin.TValue[string] { - return &c.SubscriptionId +func (c *mqlAzureSubscriptionNetworkServiceProbe) GetId() *plugin.TValue[string] { + return &c.Id } -func (c *mqlAzureSubscriptionComputeService) GetVms() *plugin.TValue[[]interface{}] { - return plugin.GetOrCompute[[]interface{}](&c.Vms, func() ([]interface{}, error) { - if c.MqlRuntime.HasRecording { - d, err := c.MqlRuntime.FieldResourceFromRecording("azure.subscription.computeService", c.__id, "vms") - if err != nil { - return nil, err - } - if d != nil { - return d.Value.([]interface{}), nil - } - } +func (c *mqlAzureSubscriptionNetworkServiceProbe) GetName() *plugin.TValue[string] { + return &c.Name +} - return c.vms() - }) +func (c *mqlAzureSubscriptionNetworkServiceProbe) GetType() *plugin.TValue[string] { + return &c.Type } -func (c *mqlAzureSubscriptionComputeService) GetDisks() *plugin.TValue[[]interface{}] { - return plugin.GetOrCompute[[]interface{}](&c.Disks, func() ([]interface{}, error) { - if c.MqlRuntime.HasRecording { - d, err := c.MqlRuntime.FieldResourceFromRecording("azure.subscription.computeService", c.__id, "disks") - if err != nil { - return nil, err - } - if d != nil { - return d.Value.([]interface{}), nil - } +func (c *mqlAzureSubscriptionNetworkServiceProbe) GetEtag() *plugin.TValue[string] { + return &c.Etag +} + +func (c *mqlAzureSubscriptionNetworkServiceProbe) GetProperties() *plugin.TValue[interface{}] { + return &c.Properties +} + +// mqlAzureSubscriptionNetworkServiceBackendAddressPool for the azure.subscription.networkService.backendAddressPool resource +type mqlAzureSubscriptionNetworkServiceBackendAddressPool struct { + MqlRuntime *plugin.Runtime + __id string + // optional: if you define mqlAzureSubscriptionNetworkServiceBackendAddressPoolInternal it will be used here + Id plugin.TValue[string] + Name plugin.TValue[string] + Type plugin.TValue[string] + Etag plugin.TValue[string] + Properties plugin.TValue[interface{}] +} + +// createAzureSubscriptionNetworkServiceBackendAddressPool creates a new instance of this resource +func createAzureSubscriptionNetworkServiceBackendAddressPool(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { + res := &mqlAzureSubscriptionNetworkServiceBackendAddressPool{ + MqlRuntime: runtime, + } + + err := SetAllData(res, args) + if err != nil { + return res, err + } + + if res.__id == "" { + res.__id, err = res.id() + if err != nil { + return nil, err + } + } + + if runtime.HasRecording { + args, err = runtime.ResourceFromRecording("azure.subscription.networkService.backendAddressPool", res.__id) + if err != nil || args == nil { + return res, err } + return res, SetAllData(res, args) + } - return c.disks() - }) + return res, nil } -// mqlAzureSubscriptionComputeServiceVm for the azure.subscription.computeService.vm resource -type mqlAzureSubscriptionComputeServiceVm struct { +func (c *mqlAzureSubscriptionNetworkServiceBackendAddressPool) MqlName() string { + return "azure.subscription.networkService.backendAddressPool" +} + +func (c *mqlAzureSubscriptionNetworkServiceBackendAddressPool) MqlID() string { + return c.__id +} + +func (c *mqlAzureSubscriptionNetworkServiceBackendAddressPool) GetId() *plugin.TValue[string] { + return &c.Id +} + +func (c *mqlAzureSubscriptionNetworkServiceBackendAddressPool) GetName() *plugin.TValue[string] { + return &c.Name +} + +func (c *mqlAzureSubscriptionNetworkServiceBackendAddressPool) GetType() *plugin.TValue[string] { + return &c.Type +} + +func (c *mqlAzureSubscriptionNetworkServiceBackendAddressPool) GetEtag() *plugin.TValue[string] { + return &c.Etag +} + +func (c *mqlAzureSubscriptionNetworkServiceBackendAddressPool) GetProperties() *plugin.TValue[interface{}] { + return &c.Properties +} + +// mqlAzureSubscriptionNetworkServiceInboundNatPool for the azure.subscription.networkService.inboundNatPool resource +type mqlAzureSubscriptionNetworkServiceInboundNatPool struct { MqlRuntime *plugin.Runtime __id string - // optional: if you define mqlAzureSubscriptionComputeServiceVmInternal it will be used here + // optional: if you define mqlAzureSubscriptionNetworkServiceInboundNatPoolInternal it will be used here Id plugin.TValue[string] Name plugin.TValue[string] - Location plugin.TValue[string] - Tags plugin.TValue[map[string]interface{}] Type plugin.TValue[string] + Etag plugin.TValue[string] Properties plugin.TValue[interface{}] - Extensions plugin.TValue[[]interface{}] - OsDisk plugin.TValue[*mqlAzureSubscriptionComputeServiceDisk] - DataDisks plugin.TValue[[]interface{}] - PublicIpAddresses plugin.TValue[[]interface{}] } -// createAzureSubscriptionComputeServiceVm creates a new instance of this resource -func createAzureSubscriptionComputeServiceVm(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { - res := &mqlAzureSubscriptionComputeServiceVm{ +// createAzureSubscriptionNetworkServiceInboundNatPool creates a new instance of this resource +func createAzureSubscriptionNetworkServiceInboundNatPool(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { + res := &mqlAzureSubscriptionNetworkServiceInboundNatPool{ + MqlRuntime: runtime, + } + + err := SetAllData(res, args) + if err != nil { + return res, err + } + + if res.__id == "" { + res.__id, err = res.id() + if err != nil { + return nil, err + } + } + + if runtime.HasRecording { + args, err = runtime.ResourceFromRecording("azure.subscription.networkService.inboundNatPool", res.__id) + if err != nil || args == nil { + return res, err + } + return res, SetAllData(res, args) + } + + return res, nil +} + +func (c *mqlAzureSubscriptionNetworkServiceInboundNatPool) MqlName() string { + return "azure.subscription.networkService.inboundNatPool" +} + +func (c *mqlAzureSubscriptionNetworkServiceInboundNatPool) MqlID() string { + return c.__id +} + +func (c *mqlAzureSubscriptionNetworkServiceInboundNatPool) GetId() *plugin.TValue[string] { + return &c.Id +} + +func (c *mqlAzureSubscriptionNetworkServiceInboundNatPool) GetName() *plugin.TValue[string] { + return &c.Name +} + +func (c *mqlAzureSubscriptionNetworkServiceInboundNatPool) GetType() *plugin.TValue[string] { + return &c.Type +} + +func (c *mqlAzureSubscriptionNetworkServiceInboundNatPool) GetEtag() *plugin.TValue[string] { + return &c.Etag +} + +func (c *mqlAzureSubscriptionNetworkServiceInboundNatPool) GetProperties() *plugin.TValue[interface{}] { + return &c.Properties +} + +// mqlAzureSubscriptionNetworkServiceInboundNatRule for the azure.subscription.networkService.inboundNatRule resource +type mqlAzureSubscriptionNetworkServiceInboundNatRule struct { + MqlRuntime *plugin.Runtime + __id string + // optional: if you define mqlAzureSubscriptionNetworkServiceInboundNatRuleInternal it will be used here + Id plugin.TValue[string] + Name plugin.TValue[string] + Type plugin.TValue[string] + Etag plugin.TValue[string] + Properties plugin.TValue[interface{}] +} + +// createAzureSubscriptionNetworkServiceInboundNatRule creates a new instance of this resource +func createAzureSubscriptionNetworkServiceInboundNatRule(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { + res := &mqlAzureSubscriptionNetworkServiceInboundNatRule{ MqlRuntime: runtime, } @@ -4801,7 +8471,7 @@ func createAzureSubscriptionComputeServiceVm(runtime *plugin.Runtime, args map[s } if runtime.HasRecording { - args, err = runtime.ResourceFromRecording("azure.subscription.computeService.vm", res.__id) + args, err = runtime.ResourceFromRecording("azure.subscription.networkService.inboundNatRule", res.__id) if err != nil || args == nil { return res, err } @@ -4811,112 +8481,50 @@ func createAzureSubscriptionComputeServiceVm(runtime *plugin.Runtime, args map[s return res, nil } -func (c *mqlAzureSubscriptionComputeServiceVm) MqlName() string { - return "azure.subscription.computeService.vm" +func (c *mqlAzureSubscriptionNetworkServiceInboundNatRule) MqlName() string { + return "azure.subscription.networkService.inboundNatRule" } -func (c *mqlAzureSubscriptionComputeServiceVm) MqlID() string { +func (c *mqlAzureSubscriptionNetworkServiceInboundNatRule) MqlID() string { return c.__id } -func (c *mqlAzureSubscriptionComputeServiceVm) GetId() *plugin.TValue[string] { +func (c *mqlAzureSubscriptionNetworkServiceInboundNatRule) GetId() *plugin.TValue[string] { return &c.Id } -func (c *mqlAzureSubscriptionComputeServiceVm) GetName() *plugin.TValue[string] { +func (c *mqlAzureSubscriptionNetworkServiceInboundNatRule) GetName() *plugin.TValue[string] { return &c.Name } -func (c *mqlAzureSubscriptionComputeServiceVm) GetLocation() *plugin.TValue[string] { - return &c.Location -} - -func (c *mqlAzureSubscriptionComputeServiceVm) GetTags() *plugin.TValue[map[string]interface{}] { - return &c.Tags -} - -func (c *mqlAzureSubscriptionComputeServiceVm) GetType() *plugin.TValue[string] { +func (c *mqlAzureSubscriptionNetworkServiceInboundNatRule) GetType() *plugin.TValue[string] { return &c.Type } -func (c *mqlAzureSubscriptionComputeServiceVm) GetProperties() *plugin.TValue[interface{}] { - return &c.Properties -} - -func (c *mqlAzureSubscriptionComputeServiceVm) GetExtensions() *plugin.TValue[[]interface{}] { - return plugin.GetOrCompute[[]interface{}](&c.Extensions, func() ([]interface{}, error) { - return c.extensions() - }) -} - -func (c *mqlAzureSubscriptionComputeServiceVm) GetOsDisk() *plugin.TValue[*mqlAzureSubscriptionComputeServiceDisk] { - return plugin.GetOrCompute[*mqlAzureSubscriptionComputeServiceDisk](&c.OsDisk, func() (*mqlAzureSubscriptionComputeServiceDisk, error) { - if c.MqlRuntime.HasRecording { - d, err := c.MqlRuntime.FieldResourceFromRecording("azure.subscription.computeService.vm", c.__id, "osDisk") - if err != nil { - return nil, err - } - if d != nil { - return d.Value.(*mqlAzureSubscriptionComputeServiceDisk), nil - } - } - - return c.osDisk() - }) -} - -func (c *mqlAzureSubscriptionComputeServiceVm) GetDataDisks() *plugin.TValue[[]interface{}] { - return plugin.GetOrCompute[[]interface{}](&c.DataDisks, func() ([]interface{}, error) { - if c.MqlRuntime.HasRecording { - d, err := c.MqlRuntime.FieldResourceFromRecording("azure.subscription.computeService.vm", c.__id, "dataDisks") - if err != nil { - return nil, err - } - if d != nil { - return d.Value.([]interface{}), nil - } - } - - return c.dataDisks() - }) +func (c *mqlAzureSubscriptionNetworkServiceInboundNatRule) GetEtag() *plugin.TValue[string] { + return &c.Etag } -func (c *mqlAzureSubscriptionComputeServiceVm) GetPublicIpAddresses() *plugin.TValue[[]interface{}] { - return plugin.GetOrCompute[[]interface{}](&c.PublicIpAddresses, func() ([]interface{}, error) { - if c.MqlRuntime.HasRecording { - d, err := c.MqlRuntime.FieldResourceFromRecording("azure.subscription.computeService.vm", c.__id, "publicIpAddresses") - if err != nil { - return nil, err - } - if d != nil { - return d.Value.([]interface{}), nil - } - } - - return c.publicIpAddresses() - }) +func (c *mqlAzureSubscriptionNetworkServiceInboundNatRule) GetProperties() *plugin.TValue[interface{}] { + return &c.Properties } -// mqlAzureSubscriptionComputeServiceDisk for the azure.subscription.computeService.disk resource -type mqlAzureSubscriptionComputeServiceDisk struct { +// mqlAzureSubscriptionNetworkServiceFrontendIpConfig for the azure.subscription.networkService.frontendIpConfig resource +type mqlAzureSubscriptionNetworkServiceFrontendIpConfig struct { MqlRuntime *plugin.Runtime __id string - // optional: if you define mqlAzureSubscriptionComputeServiceDiskInternal it will be used here + // optional: if you define mqlAzureSubscriptionNetworkServiceFrontendIpConfigInternal it will be used here Id plugin.TValue[string] Name plugin.TValue[string] - Location plugin.TValue[string] - Tags plugin.TValue[map[string]interface{}] Type plugin.TValue[string] - ManagedBy plugin.TValue[string] - ManagedByExtended plugin.TValue[[]interface{}] - Zones plugin.TValue[[]interface{}] - Sku plugin.TValue[interface{}] + Etag plugin.TValue[string] Properties plugin.TValue[interface{}] + Zones plugin.TValue[[]interface{}] } -// createAzureSubscriptionComputeServiceDisk creates a new instance of this resource -func createAzureSubscriptionComputeServiceDisk(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { - res := &mqlAzureSubscriptionComputeServiceDisk{ +// createAzureSubscriptionNetworkServiceFrontendIpConfig creates a new instance of this resource +func createAzureSubscriptionNetworkServiceFrontendIpConfig(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { + res := &mqlAzureSubscriptionNetworkServiceFrontendIpConfig{ MqlRuntime: runtime, } @@ -4933,7 +8541,7 @@ func createAzureSubscriptionComputeServiceDisk(runtime *plugin.Runtime, args map } if runtime.HasRecording { - args, err = runtime.ResourceFromRecording("azure.subscription.computeService.disk", res.__id) + args, err = runtime.ResourceFromRecording("azure.subscription.networkService.frontendIpConfig", res.__id) if err != nil || args == nil { return res, err } @@ -4943,70 +8551,53 @@ func createAzureSubscriptionComputeServiceDisk(runtime *plugin.Runtime, args map return res, nil } -func (c *mqlAzureSubscriptionComputeServiceDisk) MqlName() string { - return "azure.subscription.computeService.disk" +func (c *mqlAzureSubscriptionNetworkServiceFrontendIpConfig) MqlName() string { + return "azure.subscription.networkService.frontendIpConfig" } -func (c *mqlAzureSubscriptionComputeServiceDisk) MqlID() string { +func (c *mqlAzureSubscriptionNetworkServiceFrontendIpConfig) MqlID() string { return c.__id } -func (c *mqlAzureSubscriptionComputeServiceDisk) GetId() *plugin.TValue[string] { +func (c *mqlAzureSubscriptionNetworkServiceFrontendIpConfig) GetId() *plugin.TValue[string] { return &c.Id } -func (c *mqlAzureSubscriptionComputeServiceDisk) GetName() *plugin.TValue[string] { +func (c *mqlAzureSubscriptionNetworkServiceFrontendIpConfig) GetName() *plugin.TValue[string] { return &c.Name } -func (c *mqlAzureSubscriptionComputeServiceDisk) GetLocation() *plugin.TValue[string] { - return &c.Location -} - -func (c *mqlAzureSubscriptionComputeServiceDisk) GetTags() *plugin.TValue[map[string]interface{}] { - return &c.Tags -} - -func (c *mqlAzureSubscriptionComputeServiceDisk) GetType() *plugin.TValue[string] { +func (c *mqlAzureSubscriptionNetworkServiceFrontendIpConfig) GetType() *plugin.TValue[string] { return &c.Type } -func (c *mqlAzureSubscriptionComputeServiceDisk) GetManagedBy() *plugin.TValue[string] { - return &c.ManagedBy +func (c *mqlAzureSubscriptionNetworkServiceFrontendIpConfig) GetEtag() *plugin.TValue[string] { + return &c.Etag } -func (c *mqlAzureSubscriptionComputeServiceDisk) GetManagedByExtended() *plugin.TValue[[]interface{}] { - return &c.ManagedByExtended +func (c *mqlAzureSubscriptionNetworkServiceFrontendIpConfig) GetProperties() *plugin.TValue[interface{}] { + return &c.Properties } -func (c *mqlAzureSubscriptionComputeServiceDisk) GetZones() *plugin.TValue[[]interface{}] { +func (c *mqlAzureSubscriptionNetworkServiceFrontendIpConfig) GetZones() *plugin.TValue[[]interface{}] { return &c.Zones } -func (c *mqlAzureSubscriptionComputeServiceDisk) GetSku() *plugin.TValue[interface{}] { - return &c.Sku -} - -func (c *mqlAzureSubscriptionComputeServiceDisk) GetProperties() *plugin.TValue[interface{}] { - return &c.Properties -} - -// mqlAzureSubscriptionNetworkService for the azure.subscription.networkService resource -type mqlAzureSubscriptionNetworkService struct { +// mqlAzureSubscriptionNetworkServiceLoadBalancerRule for the azure.subscription.networkService.loadBalancerRule resource +type mqlAzureSubscriptionNetworkServiceLoadBalancerRule struct { MqlRuntime *plugin.Runtime __id string - // optional: if you define mqlAzureSubscriptionNetworkServiceInternal it will be used here - SubscriptionId plugin.TValue[string] - Interfaces plugin.TValue[[]interface{}] - SecurityGroups plugin.TValue[[]interface{}] - Watchers plugin.TValue[[]interface{}] - PublicIpAddresses plugin.TValue[[]interface{}] - BastionHosts plugin.TValue[[]interface{}] + // optional: if you define mqlAzureSubscriptionNetworkServiceLoadBalancerRuleInternal it will be used here + Id plugin.TValue[string] + Name plugin.TValue[string] + Type plugin.TValue[string] + Etag plugin.TValue[string] + Properties plugin.TValue[interface{}] } -// createAzureSubscriptionNetworkService creates a new instance of this resource -func createAzureSubscriptionNetworkService(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { - res := &mqlAzureSubscriptionNetworkService{ +// createAzureSubscriptionNetworkServiceLoadBalancerRule creates a new instance of this resource +func createAzureSubscriptionNetworkServiceLoadBalancerRule(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { + res := &mqlAzureSubscriptionNetworkServiceLoadBalancerRule{ MqlRuntime: runtime, } @@ -5015,15 +8606,10 @@ func createAzureSubscriptionNetworkService(runtime *plugin.Runtime, args map[str return res, err } - if res.__id == "" { - res.__id, err = res.id() - if err != nil { - return nil, err - } - } + // to override __id implement: id() (string, error) if runtime.HasRecording { - args, err = runtime.ResourceFromRecording("azure.subscription.networkService", res.__id) + args, err = runtime.ResourceFromRecording("azure.subscription.networkService.loadBalancerRule", res.__id) if err != nil || args == nil { return res, err } @@ -5033,96 +8619,96 @@ func createAzureSubscriptionNetworkService(runtime *plugin.Runtime, args map[str return res, nil } -func (c *mqlAzureSubscriptionNetworkService) MqlName() string { - return "azure.subscription.networkService" +func (c *mqlAzureSubscriptionNetworkServiceLoadBalancerRule) MqlName() string { + return "azure.subscription.networkService.loadBalancerRule" } -func (c *mqlAzureSubscriptionNetworkService) MqlID() string { +func (c *mqlAzureSubscriptionNetworkServiceLoadBalancerRule) MqlID() string { return c.__id } -func (c *mqlAzureSubscriptionNetworkService) GetSubscriptionId() *plugin.TValue[string] { - return &c.SubscriptionId +func (c *mqlAzureSubscriptionNetworkServiceLoadBalancerRule) GetId() *plugin.TValue[string] { + return &c.Id } -func (c *mqlAzureSubscriptionNetworkService) GetInterfaces() *plugin.TValue[[]interface{}] { - return plugin.GetOrCompute[[]interface{}](&c.Interfaces, func() ([]interface{}, error) { - if c.MqlRuntime.HasRecording { - d, err := c.MqlRuntime.FieldResourceFromRecording("azure.subscription.networkService", c.__id, "interfaces") - if err != nil { - return nil, err - } - if d != nil { - return d.Value.([]interface{}), nil - } - } +func (c *mqlAzureSubscriptionNetworkServiceLoadBalancerRule) GetName() *plugin.TValue[string] { + return &c.Name +} - return c.interfaces() - }) +func (c *mqlAzureSubscriptionNetworkServiceLoadBalancerRule) GetType() *plugin.TValue[string] { + return &c.Type } -func (c *mqlAzureSubscriptionNetworkService) GetSecurityGroups() *plugin.TValue[[]interface{}] { - return plugin.GetOrCompute[[]interface{}](&c.SecurityGroups, func() ([]interface{}, error) { - if c.MqlRuntime.HasRecording { - d, err := c.MqlRuntime.FieldResourceFromRecording("azure.subscription.networkService", c.__id, "securityGroups") - if err != nil { - return nil, err - } - if d != nil { - return d.Value.([]interface{}), nil - } - } +func (c *mqlAzureSubscriptionNetworkServiceLoadBalancerRule) GetEtag() *plugin.TValue[string] { + return &c.Etag +} - return c.securityGroups() - }) +func (c *mqlAzureSubscriptionNetworkServiceLoadBalancerRule) GetProperties() *plugin.TValue[interface{}] { + return &c.Properties } -func (c *mqlAzureSubscriptionNetworkService) GetWatchers() *plugin.TValue[[]interface{}] { - return plugin.GetOrCompute[[]interface{}](&c.Watchers, func() ([]interface{}, error) { - if c.MqlRuntime.HasRecording { - d, err := c.MqlRuntime.FieldResourceFromRecording("azure.subscription.networkService", c.__id, "watchers") - if err != nil { - return nil, err - } - if d != nil { - return d.Value.([]interface{}), nil - } +// mqlAzureSubscriptionNetworkServiceOutboundRule for the azure.subscription.networkService.outboundRule resource +type mqlAzureSubscriptionNetworkServiceOutboundRule struct { + MqlRuntime *plugin.Runtime + __id string + // optional: if you define mqlAzureSubscriptionNetworkServiceOutboundRuleInternal it will be used here + Id plugin.TValue[string] + Name plugin.TValue[string] + Type plugin.TValue[string] + Etag plugin.TValue[string] + Properties plugin.TValue[interface{}] +} + +// createAzureSubscriptionNetworkServiceOutboundRule creates a new instance of this resource +func createAzureSubscriptionNetworkServiceOutboundRule(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { + res := &mqlAzureSubscriptionNetworkServiceOutboundRule{ + MqlRuntime: runtime, + } + + err := SetAllData(res, args) + if err != nil { + return res, err + } + + // to override __id implement: id() (string, error) + + if runtime.HasRecording { + args, err = runtime.ResourceFromRecording("azure.subscription.networkService.outboundRule", res.__id) + if err != nil || args == nil { + return res, err } + return res, SetAllData(res, args) + } - return c.watchers() - }) + return res, nil } -func (c *mqlAzureSubscriptionNetworkService) GetPublicIpAddresses() *plugin.TValue[[]interface{}] { - return plugin.GetOrCompute[[]interface{}](&c.PublicIpAddresses, func() ([]interface{}, error) { - if c.MqlRuntime.HasRecording { - d, err := c.MqlRuntime.FieldResourceFromRecording("azure.subscription.networkService", c.__id, "publicIpAddresses") - if err != nil { - return nil, err - } - if d != nil { - return d.Value.([]interface{}), nil - } - } +func (c *mqlAzureSubscriptionNetworkServiceOutboundRule) MqlName() string { + return "azure.subscription.networkService.outboundRule" +} - return c.publicIpAddresses() - }) +func (c *mqlAzureSubscriptionNetworkServiceOutboundRule) MqlID() string { + return c.__id } -func (c *mqlAzureSubscriptionNetworkService) GetBastionHosts() *plugin.TValue[[]interface{}] { - return plugin.GetOrCompute[[]interface{}](&c.BastionHosts, func() ([]interface{}, error) { - if c.MqlRuntime.HasRecording { - d, err := c.MqlRuntime.FieldResourceFromRecording("azure.subscription.networkService", c.__id, "bastionHosts") - if err != nil { - return nil, err - } - if d != nil { - return d.Value.([]interface{}), nil - } - } +func (c *mqlAzureSubscriptionNetworkServiceOutboundRule) GetId() *plugin.TValue[string] { + return &c.Id +} - return c.bastionHosts() - }) +func (c *mqlAzureSubscriptionNetworkServiceOutboundRule) GetName() *plugin.TValue[string] { + return &c.Name +} + +func (c *mqlAzureSubscriptionNetworkServiceOutboundRule) GetType() *plugin.TValue[string] { + return &c.Type +} + +func (c *mqlAzureSubscriptionNetworkServiceOutboundRule) GetEtag() *plugin.TValue[string] { + return &c.Etag +} + +func (c *mqlAzureSubscriptionNetworkServiceOutboundRule) GetProperties() *plugin.TValue[interface{}] { + return &c.Properties } // mqlAzureSubscriptionNetworkServiceInterface for the azure.subscription.networkService.interface resource diff --git a/providers/azure/resources/azure.lr.manifest.yaml b/providers/azure/resources/azure.lr.manifest.yaml index 2138e3f438..aa19a94f6f 100644 --- a/providers/azure/resources/azure.lr.manifest.yaml +++ b/providers/azure/resources/azure.lr.manifest.yaml @@ -952,17 +952,56 @@ resources: - azure azure.subscription.networkService: fields: + applicationSecurityGroups: + min_mondoo_version: 9.0.4 bastionHosts: {} + firewallPolicies: + min_mondoo_version: 9.0.4 + firewalls: + min_mondoo_version: 9.0.4 interfaces: {} + loadBalancers: + min_mondoo_version: 9.0.4 + natGateways: + min_mondoo_version: 9.0.4 publicIpAddresses: {} securityGroups: {} subscriptionId: {} + virtualNetworkGateways: + min_mondoo_version: 9.0.4 + virtualNetworks: + min_mondoo_version: 9.0.4 watchers: {} is_private: true min_mondoo_version: latest platform: name: - azure + azure.subscription.networkService.appSecurityGroup: + fields: + etag: {} + id: {} + location: {} + name: {} + properties: {} + tags: {} + type: {} + min_mondoo_version: 9.0.4 + platform: + name: + - azure + azure.subscription.networkService.backendAddressPool: + fields: + etag: {} + id: {} + name: {} + properties: {} + type: {} + is_private: true + min_mondoo_version: 9.0.4 + platform: + name: + - azure azure.subscription.networkService.bastionHost: fields: id: {} @@ -977,6 +1016,154 @@ resources: platform: name: - azure + azure.subscription.networkService.bgpSettings: + fields: + asn: {} + bgpPeeringAddress: {} + bgpPeeringAddressesConfig: {} + id: {} + peerWeight: {} + is_private: true + min_mondoo_version: 9.0.4 + platform: + name: + - azure + azure.subscription.networkService.bgpSettings.ipConfigurationBgpPeeringAddress: + fields: + customBgpIpAddresses: {} + defaultBgpIpAddresses: {} + id: {} + ipConfigurationId: {} + tunnelIpAddresses: {} + is_private: true + min_mondoo_version: 9.0.4 + platform: + name: + - azure + azure.subscription.networkService.firewall: + fields: + applicationRules: {} + etag: {} + id: {} + ipConfigurations: {} + location: {} + managementIpConfiguration: {} + name: {} + natRules: {} + networkRules: {} + policy: {} + properties: {} + provisioningState: {} + skuName: {} + skuTier: {} + tags: {} + threatIntelMode: {} + type: {} + min_mondoo_version: 9.0.4 + platform: + name: + - azure + azure.subscription.networkService.firewall.applicationRule: + fields: + etag: {} + id: {} + name: {} + properties: {} + is_private: true + min_mondoo_version: 9.0.4 + platform: + name: + - azure + azure.subscription.networkService.firewall.ipConfig: + fields: + etag: {} + id: {} + name: {} + privateIpAddress: {} + properties: {} + publicIpAddress: {} + subnet: {} + is_private: true + min_mondoo_version: 9.0.4 + platform: + name: + - azure + azure.subscription.networkService.firewall.natRule: + fields: + etag: {} + id: {} + name: {} + properties: {} + is_private: true + min_mondoo_version: 9.0.4 + platform: + name: + - azure + azure.subscription.networkService.firewall.networkRule: + fields: + etag: {} + id: {} + name: {} + properties: {} + is_private: true + min_mondoo_version: 9.0.4 + platform: + name: + - azure + azure.subscription.networkService.firewallPolicy: + fields: + basePolicy: {} + childPolicies: {} + etag: {} + firewalls: {} + id: {} + location: {} + name: {} + properties: {} + provisioningState: {} + tags: {} + type: {} + min_mondoo_version: 9.0.4 + platform: + name: + - azure + azure.subscription.networkService.frontendIpConfig: + fields: + etag: {} + id: {} + name: {} + properties: {} + type: {} + zones: {} + is_private: true + min_mondoo_version: 9.0.4 + platform: + name: + - azure + azure.subscription.networkService.inboundNatPool: + fields: + etag: {} + id: {} + name: {} + properties: {} + type: {} + is_private: true + min_mondoo_version: 9.0.4 + platform: + name: + - azure + azure.subscription.networkService.inboundNatRule: + fields: + etag: {} + id: {} + name: {} + properties: {} + type: {} + is_private: true + min_mondoo_version: 9.0.4 + platform: + name: + - azure azure.subscription.networkService.interface: fields: etag: {} @@ -1004,6 +1191,79 @@ resources: platform: name: - azure + azure.subscription.networkService.loadBalancer: + fields: + backendPools: {} + etag: {} + frontendIpConfigs: {} + id: {} + inboundNatPools: {} + inboundNatRules: {} + loadBalancerRules: {} + location: {} + name: {} + outboundRules: {} + probes: {} + properties: {} + sku: {} + tags: {} + type: {} + min_mondoo_version: 9.0.4 + platform: + name: + - azure + azure.subscription.networkService.loadBalancerRule: + fields: + etag: {} + id: {} + name: {} + properties: {} + type: {} + is_private: true + min_mondoo_version: 9.0.4 + platform: + name: + - azure + azure.subscription.networkService.natGateway: + fields: + etag: {} + id: {} + location: {} + name: {} + properties: {} + publicIpAddresses: {} + subnets: {} + tags: {} + type: {} + zones: {} + min_mondoo_version: 9.0.4 + platform: + name: + - azure + azure.subscription.networkService.outboundRule: + fields: + etag: {} + id: {} + name: {} + properties: {} + type: {} + is_private: true + min_mondoo_version: 9.0.4 + platform: + name: + - azure + azure.subscription.networkService.probe: + fields: + etag: {} + id: {} + name: {} + properties: {} + type: {} + is_private: true + min_mondoo_version: 9.0.4 + platform: + name: + - azure azure.subscription.networkService.securityGroup: fields: defaultSecurityRules: {} @@ -1033,6 +1293,89 @@ resources: platform: name: - azure + azure.subscription.networkService.subnet: + fields: + addressPrefix: {} + etag: {} + id: {} + name: {} + natGateway: {} + properties: {} + type: {} + min_mondoo_version: 9.0.4 + platform: + name: + - azure + azure.subscription.networkService.virtualNetwork: + fields: + etag: {} + id: {} + location: {} + name: {} + properties: {} + subnets: {} + tags: {} + type: {} + min_mondoo_version: 9.0.4 + platform: + name: + - azure + azure.subscription.networkService.virtualNetworkGateway: + fields: + active: {} + addressPrefixes: {} + bgpSettings: {} + connections: {} + disableIPSecReplayProtection: {} + enableBgp: {} + enableBgpRouteTranslationForNat: {} + enableDNSForwarding: {} + enablePrivateIPAddress: {} + etag: {} + gatewayType: {} + id: {} + inboundDNSForwardingEndpoint: {} + ipConfigurations: {} + location: {} + name: {} + natRules: {} + properties: {} + provisioningState: {} + skuCapacity: {} + skuName: {} + tags: {} + type: {} + vpnClientConfiguration: {} + vpnGatewayGeneration: {} + vpnType: {} + min_mondoo_version: 9.0.4 + platform: + name: + - azure + azure.subscription.networkService.virtualNetworkGateway.connection: + fields: + etag: {} + id: {} + name: {} + properties: {} + type: {} + is_private: true + min_mondoo_version: 9.0.4 + platform: + name: + - azure + azure.subscription.networkService.virtualNetworkGateway.ipConfig: + fields: + etag: {} + id: {} + name: {} + privateIpAddress: {} + properties: {} + is_private: true + min_mondoo_version: 9.0.4 + platform: + name: + - azure azure.subscription.networkService.watcher: fields: etag: {} diff --git a/providers/azure/resources/monitor.go b/providers/azure/resources/monitor.go index 5e18e8d032..a65a38cf08 100644 --- a/providers/azure/resources/monitor.go +++ b/providers/azure/resources/monitor.go @@ -256,17 +256,6 @@ func (a *mqlAzureSubscriptionMonitorServiceActivityLog) alerts() ([]interface{}, "tags": llx.MapData(convert.PtrMapStrToInterface(entry.Tags), types.String), "location": llx.StringData(convert.ToString(entry.Location)), }) - // alert, err := a.MotorRuntime.CreateResource("azure.subscription.monitorService.activitylog.alert", - // "conditions", conditionsDict, - // "id", convert.ToString(entry.ID), - // "name", convert.ToString(entry.Name), - // "actions", actionsDict, - // "description", convert.ToString(entry.Properties.Description), - // "scopes", convert.PtrSliceToInterface(entry.Properties.Scopes), - // "type", convert.ToString(entry.Type), - // "tags", convert.PtrMapStrToInterface(entry.Tags), - // "location", convert.ToString(entry.Location), - // ) if err != nil { return nil, err } diff --git a/providers/azure/resources/network.go b/providers/azure/resources/network.go index 24ab099014..16bbb86ab1 100644 --- a/providers/azure/resources/network.go +++ b/providers/azure/resources/network.go @@ -6,6 +6,7 @@ package resources import ( "context" "errors" + "fmt" "strings" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" @@ -14,6 +15,7 @@ import ( "go.mondoo.com/cnquery/v9/providers-sdk/v1/util/convert" "go.mondoo.com/cnquery/v9/providers/azure/connection" "go.mondoo.com/cnquery/v9/types" + "go.mondoo.com/cnquery/v9/utils/stringx" network "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" ) @@ -158,19 +160,13 @@ func (a *mqlAzureSubscriptionNetworkService) publicIpAddresses() ([]interface{}, return nil, err } for _, ip := range page.Value { - mqlAzure, err := CreateResource(a.MqlRuntime, "azure.subscription.networkService.ipAddress", - map[string]*llx.RawData{ - "id": llx.StringData(convert.ToString(ip.ID)), - "name": llx.StringData(convert.ToString(ip.Name)), - "location": llx.StringData(convert.ToString(ip.Location)), - "tags": llx.MapData(convert.PtrMapStrToInterface(ip.Tags), types.String), - "type": llx.StringData(convert.ToString(ip.Type)), - "ipAddress": llx.StringData(convert.ToString(ip.Properties.IPAddress)), - }) - if err != nil { - return nil, err + if ip != nil { + mqlAzure, err := azureIpToMql(a.MqlRuntime, *ip) + if err != nil { + return nil, err + } + res = append(res, mqlAzure) } - res = append(res, mqlAzure) } } return res, nil @@ -307,32 +303,1276 @@ func (a *mqlAzureSubscriptionNetworkServiceWatcher) flowLogs() ([]interface{}, e return res, nil } -func (a *mqlAzureSubscriptionNetworkServiceInterface) id() (string, error) { - return a.Id.Data, nil +func (a *mqlAzureSubscriptionNetworkService) loadBalancers() ([]interface{}, error) { + conn := a.MqlRuntime.Connection.(*connection.AzureConnection) + ctx := context.Background() + token := conn.Token() + subId := a.SubscriptionId.Data + + client, err := network.NewLoadBalancersClient(subId, token, &arm.ClientOptions{}) + if err != nil { + return nil, err + } + + pager := client.NewListAllPager(&network.LoadBalancersClientListAllOptions{}) + res := []interface{}{} + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + return nil, err + } + for _, lb := range page.Value { + probes := []interface{}{} + backendPools := []interface{}{} + frontendIConfigs := []interface{}{} + inboundNatPools := []interface{}{} + inboundNatRules := []interface{}{} + outboundRules := []interface{}{} + loadBalancerRules := []interface{}{} + for _, p := range lb.Properties.Probes { + props, err := convert.JsonToDict(p.Properties) + if err != nil { + return nil, err + } + mqlProbe, err := CreateResource(a.MqlRuntime, "azure.subscription.networkService.probe", + map[string]*llx.RawData{ + "id": llx.StringData(convert.ToString(p.ID)), + "type": llx.StringData(convert.ToString(p.Type)), + "name": llx.StringData(convert.ToString(p.Name)), + "etag": llx.StringData(convert.ToString(p.Etag)), + "properties": llx.DictData(props), + }) + if err != nil { + return nil, err + } + probes = append(probes, mqlProbe) + } + for _, bap := range lb.Properties.BackendAddressPools { + props, err := convert.JsonToDict(bap.Properties) + if err != nil { + return nil, err + } + mqlBap, err := CreateResource(a.MqlRuntime, "azure.subscription.networkService.backendAddressPool", + map[string]*llx.RawData{ + "id": llx.StringData(convert.ToString(bap.ID)), + "type": llx.StringData(convert.ToString(bap.Type)), + "name": llx.StringData(convert.ToString(bap.Name)), + "etag": llx.StringData(convert.ToString(bap.Etag)), + "properties": llx.DictData(props), + }) + if err != nil { + return nil, err + } + backendPools = append(backendPools, mqlBap) + } + + for _, ipConfig := range lb.Properties.FrontendIPConfigurations { + props, err := convert.JsonToDict(ipConfig.Properties) + if err != nil { + return nil, err + } + mqlIpConfig, err := CreateResource(a.MqlRuntime, "azure.subscription.networkService.frontendIpConfig", + map[string]*llx.RawData{ + "id": llx.StringData(convert.ToString(ipConfig.ID)), + "type": llx.StringData(convert.ToString(ipConfig.Type)), + "name": llx.StringData(convert.ToString(ipConfig.Name)), + "etag": llx.StringData(convert.ToString(ipConfig.Etag)), + "zones": llx.ArrayData(convert.SliceStrPtrToInterface(ipConfig.Zones), types.String), + "properties": llx.DictData(props), + }) + if err != nil { + return nil, err + } + frontendIConfigs = append(frontendIConfigs, mqlIpConfig) + } + + for _, natPool := range lb.Properties.InboundNatPools { + props, err := convert.JsonToDict(natPool.Properties) + if err != nil { + return nil, err + } + mqlNatPool, err := CreateResource(a.MqlRuntime, "azure.subscription.networkService.inboundNatPool", + map[string]*llx.RawData{ + "id": llx.StringData(convert.ToString(natPool.ID)), + "type": llx.StringData(convert.ToString(natPool.Type)), + "name": llx.StringData(convert.ToString(natPool.Name)), + "etag": llx.StringData(convert.ToString(natPool.Etag)), + "properties": llx.DictData(props), + }) + if err != nil { + return nil, err + } + inboundNatPools = append(inboundNatPools, mqlNatPool) + } + + for _, natRule := range lb.Properties.InboundNatRules { + props, err := convert.JsonToDict(natRule.Properties) + if err != nil { + return nil, err + } + mqlNatRule, err := CreateResource(a.MqlRuntime, "azure.subscription.networkService.inboundNatRule", + map[string]*llx.RawData{ + "id": llx.StringData(convert.ToString(natRule.ID)), + "type": llx.StringData(convert.ToString(natRule.Type)), + "name": llx.StringData(convert.ToString(natRule.Name)), + "etag": llx.StringData(convert.ToString(natRule.Etag)), + "properties": llx.DictData(props), + }) + if err != nil { + return nil, err + } + inboundNatRules = append(inboundNatRules, mqlNatRule) + } + + for _, outboundRule := range lb.Properties.OutboundRules { + props, err := convert.JsonToDict(outboundRule.Properties) + if err != nil { + return nil, err + } + mqlOutbound, err := CreateResource(a.MqlRuntime, "azure.subscription.networkService.outbundRule", + map[string]*llx.RawData{ + "id": llx.StringData(convert.ToString(outboundRule.ID)), + "type": llx.StringData(convert.ToString(outboundRule.Type)), + "name": llx.StringData(convert.ToString(outboundRule.Name)), + "etag": llx.StringData(convert.ToString(outboundRule.Etag)), + "properties": llx.DictData(props), + }) + if err != nil { + return nil, err + } + outboundRules = append(outboundRules, mqlOutbound) + } + + for _, lbRule := range lb.Properties.LoadBalancingRules { + props, err := convert.JsonToDict(lbRule.Properties) + if err != nil { + return nil, err + } + mqlLbRule, err := CreateResource(a.MqlRuntime, "azure.subscription.networkService.loadBalancerRule", + map[string]*llx.RawData{ + "id": llx.StringData(convert.ToString(lbRule.ID)), + "type": llx.StringData(convert.ToString(lbRule.Type)), + "name": llx.StringData(convert.ToString(lbRule.Name)), + "etag": llx.StringData(convert.ToString(lbRule.Etag)), + "properties": llx.DictData(props), + }) + if err != nil { + return nil, err + } + loadBalancerRules = append(loadBalancerRules, mqlLbRule) + } + + lbProps, err := convert.JsonToDict(lb.Properties) + if err != nil { + return nil, err + } + mqlAzure, err := CreateResource(a.MqlRuntime, "azure.subscription.networkService.loadBalancer", + map[string]*llx.RawData{ + "id": llx.StringData(convert.ToString(lb.ID)), + "name": llx.StringData(convert.ToString(lb.Name)), + "location": llx.StringData(convert.ToString(lb.Location)), + "etag": llx.StringData(convert.ToString(lb.Etag)), + "sku": llx.StringData(convert.ToString((*string)(lb.SKU.Name))), + "tags": llx.MapData(convert.PtrMapStrToInterface(lb.Tags), types.String), + "type": llx.StringData(convert.ToString(lb.Type)), + "probes": llx.ArrayData(probes, types.ResourceLike), + "backendPools": llx.ArrayData(backendPools, types.ResourceLike), + "frontendIpConfigs": llx.ArrayData(frontendIConfigs, types.ResourceLike), + "inboundNatPools": llx.ArrayData(inboundNatPools, types.ResourceLike), + "inboundNatRules": llx.ArrayData(inboundNatRules, types.ResourceLike), + "outboundRules": llx.ArrayData(outboundRules, types.ResourceLike), + "loadBalancerRules": llx.ArrayData(loadBalancerRules, types.ResourceLike), + "properties": llx.DictData(lbProps), + }) + if err != nil { + return nil, err + } + res = append(res, mqlAzure) + } + } + return res, nil } -func (a *mqlAzureSubscriptionNetworkServiceIpAddress) id() (string, error) { - return a.Id.Data, nil +func (a *mqlAzureSubscriptionNetworkService) natGateways() ([]interface{}, error) { + conn := a.MqlRuntime.Connection.(*connection.AzureConnection) + ctx := context.Background() + token := conn.Token() + subId := a.SubscriptionId.Data + + client, err := network.NewNatGatewaysClient(subId, token, &arm.ClientOptions{}) + if err != nil { + return nil, err + } + + pager := client.NewListAllPager(&network.NatGatewaysClientListAllOptions{}) + res := []interface{}{} + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + return nil, err + } + for _, ng := range page.Value { + if ng != nil { + mqlNg, err := azureNatGatewayToMql(a.MqlRuntime, *ng) + if err != nil { + return nil, err + } + res = append(res, mqlNg) + } + } + } + return res, nil } -func (a *mqlAzureSubscriptionNetworkServiceBastionHost) id() (string, error) { - return a.Id.Data, nil +func (a *mqlAzureSubscriptionNetworkService) firewalls() ([]interface{}, error) { + conn := a.MqlRuntime.Connection.(*connection.AzureConnection) + ctx := context.Background() + token := conn.Token() + subId := a.SubscriptionId.Data + client, err := network.NewAzureFirewallsClient(subId, token, &arm.ClientOptions{}) + if err != nil { + return nil, err + } + + pager := client.NewListAllPager(&network.AzureFirewallsClientListAllOptions{}) + res := []interface{}{} + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + return nil, err + } + for _, fw := range page.Value { + if fw != nil { + mqlFw, err := azureFirewallToMql(a.MqlRuntime, *fw) + if err != nil { + return nil, err + } + res = append(res, mqlFw) + } + } + } + return res, nil } -func (a *mqlAzureSubscriptionNetworkServiceSecurityGroup) id() (string, error) { - return a.Id.Data, nil +func (a *mqlAzureSubscriptionNetworkServiceFirewall) policy() (*mqlAzureSubscriptionNetworkServiceFirewallPolicy, error) { + conn := a.MqlRuntime.Connection.(*connection.AzureConnection) + ctx := context.Background() + token := conn.Token() + props := a.Properties.Data + propsDict := props.(map[string]interface{}) + fwp := propsDict["firewallPolicy"] + if fwp == nil { + return nil, errors.New("no firewall policy is associated with the ip configuration") + } + fwpDict := fwp.(map[string]interface{}) + id := fwpDict["id"] + if id != nil { + strId := id.(string) + azureId, err := ParseResourceID(strId) + if err != nil { + return nil, err + } + client, err := network.NewFirewallPoliciesClient(azureId.SubscriptionID, token, &arm.ClientOptions{}) + if err != nil { + return nil, err + } + policyName, err := azureId.Component("firewallPolicies") + if err != nil { + return nil, err + } + fwp, err := client.Get(ctx, azureId.ResourceGroup, policyName, &network.FirewallPoliciesClientGetOptions{}) + if err != nil { + return nil, err + } + + return azureFirewallPolicyToMql(a.MqlRuntime, fwp.FirewallPolicy) + } + return nil, errors.New("no firewall policy is associated with the ip configuration") } -func (a *mqlAzureSubscriptionNetworkServiceWatcher) id() (string, error) { - return a.Id.Data, nil +func (a *mqlAzureSubscriptionNetworkServiceFirewallIpConfig) publicIpAddress() (*mqlAzureSubscriptionNetworkServiceIpAddress, error) { + conn := a.MqlRuntime.Connection.(*connection.AzureConnection) + ctx := context.Background() + token := conn.Token() + props := a.Properties.Data + propsDict := props.(map[string]interface{}) + publicIpAddress := propsDict["publicIPAddress"] + if publicIpAddress == nil { + return nil, errors.New("no public ip address is associated with the ip configuration") + } + ipAddressDict := publicIpAddress.(map[string]interface{}) + id := ipAddressDict["id"] + if id != nil { + strId := id.(string) + azureId, err := ParseResourceID(strId) + if err != nil { + return nil, err + } + client, err := network.NewPublicIPAddressesClient(azureId.SubscriptionID, token, &arm.ClientOptions{}) + if err != nil { + return nil, err + } + ipAddressName, err := azureId.Component("publicIPAddresses") + if err != nil { + return nil, err + } + ipAddress, err := client.Get(ctx, azureId.ResourceGroup, ipAddressName, &network.PublicIPAddressesClientGetOptions{}) + if err != nil { + return nil, err + } + + return azureIpToMql(a.MqlRuntime, ipAddress.PublicIPAddress) + } + return nil, errors.New("no public ip address is associated with the ip configuration") } -func (a *mqlAzureSubscriptionNetworkServiceWatcherFlowlog) id() (string, error) { - return a.Id.Data, nil +func (a *mqlAzureSubscriptionNetworkServiceFirewallIpConfig) subnet() (*mqlAzureSubscriptionNetworkServiceSubnet, error) { + conn := a.MqlRuntime.Connection.(*connection.AzureConnection) + ctx := context.Background() + token := conn.Token() + props := a.Properties.Data + propsDict := props.(map[string]interface{}) + subnet := propsDict["subnet"] + if subnet == nil { + return nil, errors.New("no subnet is associated with the ip configuration") + } + subnetDict := subnet.(map[string]interface{}) + id := subnetDict["id"] + if id != nil { + strId := id.(string) + azureId, err := ParseResourceID(strId) + if err != nil { + return nil, err + } + client, err := network.NewSubnetsClient(azureId.SubscriptionID, token, &arm.ClientOptions{}) + if err != nil { + return nil, err + } + vnName, err := azureId.Component("virtualNetworks") + if err != nil { + return nil, err + } + subnetName, err := azureId.Component("subnets") + if err != nil { + return nil, err + } + subnet, err := client.Get(ctx, azureId.ResourceGroup, vnName, subnetName, &network.SubnetsClientGetOptions{}) + if err != nil { + return nil, err + } + + return azureSubnetToMql(a.MqlRuntime, subnet.Subnet) + } + return nil, errors.New("no subnet is associated with the ip configuration") } -func (a *mqlAzureSubscriptionNetworkServiceSecurityrule) id() (string, error) { - return a.Id.Data, nil +func (a *mqlAzureSubscriptionNetworkService) firewallPolicies() ([]interface{}, error) { + conn := a.MqlRuntime.Connection.(*connection.AzureConnection) + ctx := context.Background() + token := conn.Token() + subId := a.SubscriptionId.Data + client, err := network.NewFirewallPoliciesClient(subId, token, &arm.ClientOptions{}) + if err != nil { + return nil, err + } + + pager := client.NewListAllPager(&network.FirewallPoliciesClientListAllOptions{}) + res := []interface{}{} + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + return nil, err + } + for _, fwp := range page.Value { + if fwp != nil { + mqlFw, err := azureFirewallPolicyToMql(a.MqlRuntime, *fwp) + if err != nil { + return nil, err + } + res = append(res, mqlFw) + } + } + } + return res, nil +} + +func (a *mqlAzureSubscriptionNetworkService) virtualNetworks() ([]interface{}, error) { + conn := a.MqlRuntime.Connection.(*connection.AzureConnection) + ctx := context.Background() + token := conn.Token() + subId := a.SubscriptionId.Data + + client, err := network.NewVirtualNetworksClient(subId, token, &arm.ClientOptions{}) + if err != nil { + return nil, err + } + + pager := client.NewListAllPager(&network.VirtualNetworksClientListAllOptions{}) + res := []interface{}{} + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + return nil, err + } + for _, vn := range page.Value { + props, err := convert.JsonToDict(vn.Properties) + if err != nil { + return nil, err + } + subnets := []interface{}{} + for _, s := range vn.Properties.Subnets { + if s != nil { + mqlSubnet, err := azureSubnetToMql(a.MqlRuntime, *s) + if err != nil { + return nil, err + } + subnets = append(subnets, mqlSubnet) + } + } + mqlVn, err := CreateResource(a.MqlRuntime, "azure.subscription.networkService.virtualNetwork", + map[string]*llx.RawData{ + "id": llx.StringData(convert.ToString(vn.ID)), + "name": llx.StringData(convert.ToString(vn.Name)), + "type": llx.StringData(convert.ToString(vn.Type)), + "location": llx.StringData(convert.ToString(vn.Location)), + "tags": llx.MapData(convert.PtrMapStrToInterface(vn.Tags), types.String), + "etag": llx.StringData(convert.ToString(vn.Etag)), + "properties": llx.DictData(props), + "subnets": llx.ArrayData(subnets, types.ResourceLike), + }) + if err != nil { + return nil, err + } + res = append(res, mqlVn) + } + } + return res, nil +} + +func (a *mqlAzureSubscriptionNetworkService) applicationSecurityGroups() ([]interface{}, error) { + conn := a.MqlRuntime.Connection.(*connection.AzureConnection) + ctx := context.Background() + token := conn.Token() + subId := a.SubscriptionId.Data + + client, err := network.NewApplicationSecurityGroupsClient(subId, token, &arm.ClientOptions{}) + if err != nil { + return nil, err + } + + pager := client.NewListAllPager(&network.ApplicationSecurityGroupsClientListAllOptions{}) + res := []interface{}{} + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + return nil, err + } + for _, asg := range page.Value { + props, err := convert.JsonToDict(asg.Properties) + if err != nil { + return nil, err + } + mqlAppSecGroup, err := CreateResource(a.MqlRuntime, "azure.subscription.networkService.appSecurityGroup", + map[string]*llx.RawData{ + "id": llx.StringData(convert.ToString(asg.ID)), + "name": llx.StringData(convert.ToString(asg.Name)), + "type": llx.StringData(convert.ToString(asg.Type)), + "location": llx.StringData(convert.ToString(asg.Location)), + "tags": llx.MapData(convert.PtrMapStrToInterface(asg.Tags), types.String), + "etag": llx.StringData(convert.ToString(asg.Etag)), + "properties": llx.DictData(props), + }) + if err != nil { + return nil, err + } + res = append(res, mqlAppSecGroup) + } + } + return res, nil +} + +func (a *mqlAzureSubscriptionNetworkService) virtualNetworkGateways() ([]interface{}, error) { + conn := a.MqlRuntime.Connection.(*connection.AzureConnection) + ctx := context.Background() + token := conn.Token() + subId := a.SubscriptionId.Data + + client, err := network.NewVirtualNetworkGatewaysClient(subId, token, &arm.ClientOptions{}) + if err != nil { + return nil, err + } + + // the virtual network gateways API works on resource-group level. therefore, we need to fetch all RGs first + sub, err := CreateResource(a.MqlRuntime, "azure.subscription", map[string]*llx.RawData{ + "subscriptionId": llx.StringData(subId), + }) + if err != nil { + return nil, err + } + azureSub := sub.(*mqlAzureSubscription) + rgs := azureSub.GetResourceGroups() + if rgs.Error != nil { + return nil, err + } + res := []interface{}{} + for _, rg := range rgs.Data { + mqlRg := rg.(*mqlAzureSubscriptionResourcegroup) + pager := client.NewListPager(mqlRg.Name.Data, &network.VirtualNetworkGatewaysClientListOptions{}) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + return nil, err + } + for _, vng := range page.Value { + props, err := convert.JsonToDict(vng.Properties) + if err != nil { + return nil, err + } + bgpPeeringAddresses := []interface{}{} + bgpSettingsId := *vng.ID + "/bgpSettings" + for i, bpa := range vng.Properties.BgpSettings.BgpPeeringAddresses { + bpaId := fmt.Sprintf("%s/%s/%d", bgpSettingsId, "bgpPeeringAddresses", i) + mqlBpa, err := CreateResource(a.MqlRuntime, "azure.subscription.networkService.bgpSettings.ipConfigurationBgpPeeringAddress", + map[string]*llx.RawData{ + "id": llx.StringData(bpaId), + "customBgpIpAddresses": llx.ArrayData(convert.SliceStrPtrToInterface(bpa.CustomBgpIPAddresses), types.String), + "defaultBgpIpAddresses": llx.ArrayData(convert.SliceStrPtrToInterface(bpa.DefaultBgpIPAddresses), types.String), + "tunnelIpAddresses": llx.ArrayData(convert.SliceStrPtrToInterface(bpa.TunnelIPAddresses), types.String), + "ipConfigurationId": llx.StringDataPtr(bpa.IPConfigurationID), + }) + if err != nil { + return nil, err + } + bgpPeeringAddresses = append(bgpPeeringAddresses, mqlBpa) + } + bgpSettings, err := CreateResource(a.MqlRuntime, "azure.subscription.networkService.bgpSettings", + map[string]*llx.RawData{ + "id": llx.StringData(bgpSettingsId), + "asn": llx.IntDataPtr(vng.Properties.BgpSettings.Asn), + "bgpPeeringAddress": llx.StringDataPtr(vng.Properties.BgpSettings.BgpPeeringAddress), + "peerWeight": llx.IntData(convert.ToInt64From32(vng.Properties.BgpSettings.PeerWeight)), + "bgpPeeringAddressesConfig": llx.ArrayData(bgpPeeringAddresses, types.ResourceLike), + }) + if err != nil { + return nil, err + } + + ipConfigs := []interface{}{} + natRules := []interface{}{} + + for _, nr := range vng.Properties.NatRules { + props, err := convert.JsonToDict(nr.Properties) + if err != nil { + return nil, err + } + mqlNr, err := CreateResource(a.MqlRuntime, "azure.subscription.networkService.virtualNetworkGateway.natRule", map[string]*llx.RawData{ + "id": llx.StringDataPtr(nr.ID), + "name": llx.StringDataPtr(nr.Name), + "etag": llx.StringDataPtr(nr.Etag), + "properties": llx.DictData(props), + }) + if err != nil { + return nil, err + } + natRules = append(natRules, mqlNr) + } + for _, ipc := range vng.Properties.IPConfigurations { + props, err := convert.JsonToDict(ipc.Properties) + if err != nil { + return nil, err + } + mqlIpc, err := CreateResource(a.MqlRuntime, "azure.subscription.networkService.virtualNetworkGateway.ipConfig", map[string]*llx.RawData{ + "id": llx.StringDataPtr(ipc.ID), + "name": llx.StringDataPtr(ipc.Name), + "etag": llx.StringDataPtr(ipc.Etag), + "properties": llx.DictData(props), + "privateIpAddress": llx.StringDataPtr(ipc.Properties.PrivateIPAddress), + }) + if err != nil { + return nil, err + } + ipConfigs = append(ipConfigs, mqlIpc) + } + args := map[string]*llx.RawData{ + "id": llx.StringDataPtr(vng.ID), + "name": llx.StringDataPtr(vng.Name), + "type": llx.StringDataPtr(vng.Type), + "location": llx.StringDataPtr(vng.Location), + "tags": llx.MapData(convert.PtrMapStrToInterface(vng.Tags), types.String), + "etag": llx.StringDataPtr(vng.Etag), + "active": llx.BoolDataPtr(vng.Properties.Active), + "enableBgp": llx.BoolDataPtr(vng.Properties.EnableBgp), + "enableBgpRouteTranslationForNat": llx.BoolDataPtr(vng.Properties.EnableBgpRouteTranslationForNat), + "enableDNSForwarding": llx.BoolDataPtr(vng.Properties.EnableDNSForwarding), + "enablePrivateIPAddress": llx.BoolDataPtr(vng.Properties.EnablePrivateIPAddress), + "disableIPSecReplayProtection": llx.BoolDataPtr(vng.Properties.DisableIPSecReplayProtection), + "inboundDNSForwardingEndpoint": llx.StringDataPtr(vng.Properties.InboundDNSForwardingEndpoint), + "skuName": llx.StringDataPtr((*string)(vng.Properties.SKU.Name)), + "skuCapacity": llx.IntData(convert.ToInt64From32(vng.Properties.SKU.Capacity)), + "provisioningState": llx.StringDataPtr((*string)(vng.Properties.ProvisioningState)), + "properties": llx.DictData(props), + "vpnType": llx.StringDataPtr((*string)(vng.Properties.VPNType)), + "vpnGatewayGeneration": llx.StringDataPtr((*string)(vng.Properties.VPNGatewayGeneration)), + "bgpSettings": llx.ResourceData(bgpSettings, "bgpSettings"), + "ipConfigurations": llx.ArrayData(ipConfigs, types.ResourceLike), + "gatewayType": llx.StringDataPtr((*string)(vng.Properties.GatewayType)), + "natRules": llx.ArrayData(natRules, types.ResourceLike), + } + if vng.Properties.CustomRoutes != nil { + args["addressPrefixes"] = llx.ArrayData(convert.SliceStrPtrToInterface(vng.Properties.CustomRoutes.AddressPrefixes), types.String) + } else { + args["addressPrefixes"] = llx.ArrayData([]interface{}{}, types.String) + } + if vng.Properties.VPNClientConfiguration != nil { + vpnClientDict, err := convert.JsonToDict(vng.Properties.VPNClientConfiguration) + if err != nil { + return nil, err + } + args["vpnClientConfiguration"] = llx.DictData(vpnClientDict) + } else { + args["vpnClientConfiguration"] = llx.NilData + } + mqlVn, err := CreateResource(a.MqlRuntime, "azure.subscription.networkService.virtualNetworkGateway", args) + if err != nil { + return nil, err + } + res = append(res, mqlVn) + } + } + } + return res, nil +} + +func (a *mqlAzureSubscriptionNetworkServiceNatGateway) publicIpAddresses() ([]interface{}, error) { + conn := a.MqlRuntime.Connection.(*connection.AzureConnection) + ctx := context.Background() + token := conn.Token() + id := a.Id.Data + azureId, err := ParseResourceID(id) + if err != nil { + return nil, err + } + props := a.Properties.Data + propsDict := props.(map[string]interface{}) + publicIpAddresses := propsDict["publicIpAddresses"] + // if we have no present public ip addresses ids, we can just return nil + if publicIpAddresses == nil { + return nil, nil + } + + res := []interface{}{} + client, err := network.NewPublicIPAddressesClient(azureId.SubscriptionID, token, &arm.ClientOptions{}) + if err != nil { + return nil, err + } + for _, p := range publicIpAddresses.([]interface{}) { + pDict := p.(map[string]interface{}) + pId := pDict["id"].(string) + resourceID, err := ParseResourceID(pId) + if err != nil { + return nil, err + } + publicIpName, err := resourceID.Component("publicIPAddresses") + if err != nil { + return nil, err + } + publicIp, err := client.Get(ctx, resourceID.ResourceGroup, publicIpName, &network.PublicIPAddressesClientGetOptions{}) + if err != nil { + return nil, err + } + mqlPublicIp, err := azureIpToMql(a.MqlRuntime, publicIp.PublicIPAddress) + if err != nil { + return nil, err + } + res = append(res, mqlPublicIp) + } + + return res, nil +} + +func (a *mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway) connections() ([]interface{}, error) { + conn := a.MqlRuntime.Connection.(*connection.AzureConnection) + ctx := context.Background() + token := conn.Token() + id := a.Id.Data + azureId, err := ParseResourceID(id) + if err != nil { + return nil, err + } + client, err := network.NewVirtualNetworkGatewayConnectionsClient(azureId.SubscriptionID, token, &arm.ClientOptions{}) + if err != nil { + return nil, err + } + pager := client.NewListPager(azureId.ResourceGroup, &network.VirtualNetworkGatewayConnectionsClientListOptions{}) + res := []interface{}{} + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + return nil, err + } + for _, c := range page.Value { + // the API does not let us get connections, applicable to a given gateway. + // Therefore we filter them manually here. + filter := []string{} + // primary gateway + if c.Properties.VirtualNetworkGateway1 != nil { + filter = append(filter, *c.Properties.VirtualNetworkGateway1.ID) + } + // secondary, optional (only if Vnet2Vnet connection) + if c.Properties.VirtualNetworkGateway2 != nil { + filter = append(filter, *c.Properties.VirtualNetworkGateway2.ID) + } + if !stringx.Contains(filter, id) { + continue + } + props, err := convert.JsonToDict(c.Properties) + if err != nil { + return nil, err + } + mqlConnection, err := CreateResource(a.MqlRuntime, "azure.subscription.networkService.virtualNetworkGateway.connection", + map[string]*llx.RawData{ + "id": llx.StringData(convert.ToString(c.ID)), + "type": llx.StringData(convert.ToString(c.Type)), + "name": llx.StringData(convert.ToString(c.Name)), + "etag": llx.StringData(convert.ToString(c.Etag)), + "properties": llx.DictData(props), + }) + if err != nil { + return nil, err + } + res = append(res, mqlConnection) + + } + } + return res, nil +} + +func (a *mqlAzureSubscriptionNetworkServiceNatGateway) subnets() ([]interface{}, error) { + conn := a.MqlRuntime.Connection.(*connection.AzureConnection) + ctx := context.Background() + token := conn.Token() + id := a.Id.Data + azureId, err := ParseResourceID(id) + if err != nil { + return nil, err + } + props := a.Properties.Data + propsDict := props.(map[string]interface{}) + subnets := propsDict["subnets"] + // if we have no present subnets in the dict, we can just return nil + if subnets == nil { + return nil, nil + } + res := []interface{}{} + client, err := network.NewSubnetsClient(azureId.SubscriptionID, token, &arm.ClientOptions{}) + if err != nil { + return nil, err + } + for _, s := range subnets.([]interface{}) { + sDict := s.(map[string]interface{}) + sId := sDict["id"].(string) + resourceID, err := ParseResourceID(sId) + if err != nil { + return nil, err + } + virtualNetworkName, err := resourceID.Component("virtualNetworks") + if err != nil { + return nil, err + } + subnetName, err := resourceID.Component("subnets") + if err != nil { + return nil, err + } + subnet, err := client.Get(ctx, resourceID.ResourceGroup, virtualNetworkName, subnetName, &network.SubnetsClientGetOptions{}) + if err != nil { + return nil, err + } + mqlSubnet, err := azureSubnetToMql(a.MqlRuntime, subnet.Subnet) + if err != nil { + return nil, err + } + res = append(res, mqlSubnet) + } + return res, nil +} + +func (a *mqlAzureSubscriptionNetworkServiceSubnet) natGateway() (*mqlAzureSubscriptionNetworkServiceNatGateway, error) { + conn := a.MqlRuntime.Connection.(*connection.AzureConnection) + ctx := context.Background() + token := conn.Token() + id := a.Id.Data + azureId, err := ParseResourceID(id) + if err != nil { + return nil, err + } + props := a.Properties.Data + propsDict := props.(map[string]interface{}) + natGatewayDict := propsDict["natGateway"] + if natGatewayDict == nil { + // TODO: Preslav: how do we define a 'nil' resource here? if i return nil, it panics + return nil, errors.New("subnet has no NAT gateway associated with it") + } + natGatewayFields := natGatewayDict.(map[string]interface{}) + natGatewayId := natGatewayFields["id"].(string) + resourceID, err := ParseResourceID(natGatewayId) + if err != nil { + return nil, err + } + natGatewayName, err := resourceID.Component("natGateways") + if err != nil { + return nil, err + } + client, err := network.NewNatGatewaysClient(azureId.SubscriptionID, token, &arm.ClientOptions{}) + if err != nil { + return nil, err + } + natGatewayRes, err := client.Get(ctx, resourceID.ResourceGroup, natGatewayName, &network.NatGatewaysClientGetOptions{}) + if err != nil { + return nil, err + } + mqlNatGateway, err := azureNatGatewayToMql(a.MqlRuntime, natGatewayRes.NatGateway) + if err != nil { + return nil, err + } + return mqlNatGateway, nil +} + +func (a *mqlAzureSubscriptionNetworkServiceFirewallPolicy) basePolicy() (*mqlAzureSubscriptionNetworkServiceFirewallPolicy, error) { + conn := a.MqlRuntime.Connection.(*connection.AzureConnection) + ctx := context.Background() + token := conn.Token() + props := a.Properties.Data + propsDict := props.(map[string]interface{}) + basePolicy := propsDict["basePolicy"] + if basePolicy == nil { + // TODO: find a way to return nil instead of err here, nil currently panics + return nil, errors.New("no base policy found") + } + basePolicyDict := basePolicy.(map[string]interface{}) + basePolicyId := basePolicyDict["id"].(string) + resourceID, err := ParseResourceID(basePolicyId) + if err != nil { + return nil, err + } + client, err := network.NewFirewallPoliciesClient(resourceID.SubscriptionID, token, &arm.ClientOptions{}) + if err != nil { + return nil, err + } + basePolicyName, err := resourceID.Component("firewallPolicies") + if err != nil { + return nil, err + } + basePolicyRes, err := client.Get(ctx, resourceID.ResourceGroup, basePolicyName, &network.FirewallPoliciesClientGetOptions{}) + if err != nil { + return nil, err + } + return azureFirewallPolicyToMql(a.MqlRuntime, basePolicyRes.FirewallPolicy) +} + +func (a *mqlAzureSubscriptionNetworkServiceFirewallPolicy) childPolicies() ([]interface{}, error) { + conn := a.MqlRuntime.Connection.(*connection.AzureConnection) + ctx := context.Background() + token := conn.Token() + props := a.Properties.Data + propsDict := props.(map[string]interface{}) + childPolicies := propsDict["childPolicies"] + if childPolicies == nil { + return nil, nil + } + baseResourceId, err := ParseResourceID(a.Id.Data) + if err != nil { + return nil, err + } + + client, err := network.NewFirewallPoliciesClient(baseResourceId.SubscriptionID, token, &arm.ClientOptions{}) + if err != nil { + return nil, err + } + res := []interface{}{} + childPoliciesList := childPolicies.([]interface{}) + for _, cp := range childPoliciesList { + cpDict := cp.(map[string]interface{}) + cpId := cpDict["id"].(string) + resourceID, err := ParseResourceID(cpId) + if err != nil { + return nil, err + } + polName, err := resourceID.Component("firewallPolicies") + if err != nil { + return nil, err + } + polRes, err := client.Get(ctx, resourceID.ResourceGroup, polName, &network.FirewallPoliciesClientGetOptions{}) + if err != nil { + return nil, err + } + mqlFw, err := azureFirewallPolicyToMql(a.MqlRuntime, polRes.FirewallPolicy) + if err != nil { + return nil, err + } + res = append(res, mqlFw) + } + return res, nil +} + +func (a *mqlAzureSubscriptionNetworkServiceFirewallPolicy) firewalls() ([]interface{}, error) { + conn := a.MqlRuntime.Connection.(*connection.AzureConnection) + ctx := context.Background() + token := conn.Token() + props := a.Properties.Data + propsDict := props.(map[string]interface{}) + firewalls := propsDict["firewalls"] + if firewalls == nil { + return nil, nil + } + baseResourceId, err := ParseResourceID(a.Id.Data) + if err != nil { + return nil, err + } + + client, err := network.NewAzureFirewallsClient(baseResourceId.SubscriptionID, token, &arm.ClientOptions{}) + if err != nil { + return nil, err + } + res := []interface{}{} + firewallsList := firewalls.([]interface{}) + for _, fw := range firewallsList { + fwDict := fw.(map[string]interface{}) + fwId := fwDict["id"].(string) + resourceID, err := ParseResourceID(fwId) + if err != nil { + return nil, err + } + firewallName, err := resourceID.Component("azureFirewalls") + if err != nil { + return nil, err + } + fwRes, err := client.Get(ctx, resourceID.ResourceGroup, firewallName, &network.AzureFirewallsClientGetOptions{}) + if err != nil { + return nil, err + } + mqlFw, err := azureFirewallToMql(a.MqlRuntime, fwRes.AzureFirewall) + if err != nil { + return nil, err + } + res = append(res, mqlFw) + } + return res, nil +} + +func (a *mqlAzureSubscriptionNetworkServiceInterface) id() (string, error) { + return a.Id.Data, nil +} + +func (a *mqlAzureSubscriptionNetworkServiceIpAddress) id() (string, error) { + return a.Id.Data, nil +} + +func (a *mqlAzureSubscriptionNetworkServiceBastionHost) id() (string, error) { + return a.Id.Data, nil +} + +func (a *mqlAzureSubscriptionNetworkServiceSecurityGroup) id() (string, error) { + return a.Id.Data, nil +} + +func (a *mqlAzureSubscriptionNetworkServiceWatcher) id() (string, error) { + return a.Id.Data, nil +} + +func (a *mqlAzureSubscriptionNetworkServiceWatcherFlowlog) id() (string, error) { + return a.Id.Data, nil +} + +func (a *mqlAzureSubscriptionNetworkServiceSecurityrule) id() (string, error) { + return a.Id.Data, nil +} + +func (a *mqlAzureSubscriptionNetworkServiceLoadBalancer) id() (string, error) { + return a.Id.Data, nil +} + +func (a *mqlAzureSubscriptionNetworkServiceBackendAddressPool) id() (string, error) { + return a.Id.Data, nil +} + +func (a *mqlAzureSubscriptionNetworkServiceFrontendIpConfig) id() (string, error) { + return a.Id.Data, nil +} + +func (a *mqlAzureSubscriptionNetworkServiceInboundNatPool) id() (string, error) { + return a.Id.Data, nil +} + +func (a *mqlAzureSubscriptionNetworkServiceInboundNatRule) id() (string, error) { + return a.Id.Data, nil +} + +func (a *mqlAzureSubscriptionNetworkServiceProbe) id() (string, error) { + return a.Id.Data, nil +} + +func (a *mqlAzureSubscriptionNetworkServiceNatGateway) id() (string, error) { + return a.Id.Data, nil +} + +func (a *mqlAzureSubscriptionNetworkServiceSubnet) id() (string, error) { + return a.Id.Data, nil +} + +func (a *mqlAzureSubscriptionNetworkServiceVirtualNetwork) id() (string, error) { + return a.Id.Data, nil +} + +func (a *mqlAzureSubscriptionNetworkServiceVirtualNetworkGateway) id() (string, error) { + return a.Id.Data, nil +} + +func (a *mqlAzureSubscriptionNetworkServiceBgpSettings) id() (string, error) { + return a.Id.Data, nil +} + +func (a *mqlAzureSubscriptionNetworkServiceBgpSettingsIpConfigurationBgpPeeringAddress) id() (string, error) { + return a.Id.Data, nil +} + +func (a *mqlAzureSubscriptionNetworkServiceVirtualNetworkGatewayIpConfig) id() (string, error) { + return a.Id.Data, nil +} + +func (a *mqlAzureSubscriptionNetworkServiceVirtualNetworkGatewayConnection) id() (string, error) { + return a.Id.Data, nil +} + +func (a *mqlAzureSubscriptionNetworkServiceFirewall) id() (string, error) { + return a.Id.Data, nil +} + +func (a *mqlAzureSubscriptionNetworkServiceFirewallPolicy) id() (string, error) { + return a.Id.Data, nil +} + +func (a *mqlAzureSubscriptionNetworkServiceFirewallApplicationRule) id() (string, error) { + return a.Id.Data, nil +} + +func (a *mqlAzureSubscriptionNetworkServiceFirewallNetworkRule) id() (string, error) { + return a.Id.Data, nil +} + +func (a *mqlAzureSubscriptionNetworkServiceFirewallNatRule) id() (string, error) { + return a.Id.Data, nil +} + +func (a *mqlAzureSubscriptionNetworkServiceFirewallIpConfig) id() (string, error) { + return a.Id.Data, nil +} + +func (a *mqlAzureSubscriptionNetworkServiceAppSecurityGroup) id() (string, error) { + return a.Id.Data, nil +} + +func azureFirewallToMql(runtime *plugin.Runtime, fw network.AzureFirewall) (*mqlAzureSubscriptionNetworkServiceFirewall, error) { + applicationRules := []interface{}{} + natRules := []interface{}{} + networkRules := []interface{}{} + ipConfigs := []interface{}{} + props, err := convert.JsonToDict(fw.Properties) + if err != nil { + return nil, err + } + for _, ipConfig := range fw.Properties.IPConfigurations { + props, err := convert.JsonToDict(ipConfig.Properties) + if err != nil { + return nil, err + } + mqlIpConfig, err := CreateResource(runtime, "azure.subscription.networkService.firewall.ipConfig", + map[string]*llx.RawData{ + "id": llx.StringData(convert.ToString(ipConfig.ID)), + "name": llx.StringData(convert.ToString(ipConfig.Name)), + "etag": llx.StringData(convert.ToString(ipConfig.Etag)), + "privateIpAddress": llx.StringDataPtr(ipConfig.Properties.PrivateIPAddress), + "properties": llx.DictData(props), + }) + if err != nil { + return nil, err + } + ipConfigs = append(ipConfigs, mqlIpConfig) + } + for _, natRule := range fw.Properties.NatRuleCollections { + props, err := convert.JsonToDict(natRule.Properties) + if err != nil { + return nil, err + } + mqlNatRule, err := CreateResource(runtime, "azure.subscription.networkService.firewall.natRule", + map[string]*llx.RawData{ + "id": llx.StringData(convert.ToString(natRule.ID)), + "name": llx.StringData(convert.ToString(natRule.Name)), + "etag": llx.StringData(convert.ToString(natRule.Etag)), + "properties": llx.DictData(props), + }) + if err != nil { + return nil, err + } + natRules = append(natRules, mqlNatRule) + } + for _, networkRule := range fw.Properties.NetworkRuleCollections { + props, err := convert.JsonToDict(networkRule.Properties) + if err != nil { + return nil, err + } + mqlNetworkRule, err := CreateResource(runtime, "azure.subscription.networkService.firewall.networkRule", + map[string]*llx.RawData{ + "id": llx.StringData(convert.ToString(networkRule.ID)), + "name": llx.StringData(convert.ToString(networkRule.Name)), + "etag": llx.StringData(convert.ToString(networkRule.Etag)), + "properties": llx.DictData(props), + }) + if err != nil { + return nil, err + } + networkRules = append(networkRules, mqlNetworkRule) + } + for _, appRule := range fw.Properties.ApplicationRuleCollections { + props, err := convert.JsonToDict(appRule.Properties) + if err != nil { + return nil, err + } + mqlAppRule, err := CreateResource(runtime, "azure.subscription.networkService.firewall.applicationRule", + map[string]*llx.RawData{ + "id": llx.StringData(convert.ToString(appRule.ID)), + "name": llx.StringData(convert.ToString(appRule.Name)), + "etag": llx.StringData(convert.ToString(appRule.Etag)), + "properties": llx.DictData(props), + }) + if err != nil { + return nil, err + } + applicationRules = append(applicationRules, mqlAppRule) + } + args := map[string]*llx.RawData{ + "id": llx.StringData(convert.ToString(fw.ID)), + "name": llx.StringData(convert.ToString(fw.Name)), + "type": llx.StringData(convert.ToString(fw.Type)), + "location": llx.StringData(convert.ToString(fw.Location)), + "tags": llx.MapData(convert.PtrMapStrToInterface(fw.Tags), types.String), + "etag": llx.StringData(convert.ToString(fw.Etag)), + "properties": llx.DictData(props), + "skuTier": llx.StringDataPtr((*string)(fw.Properties.SKU.Tier)), + "skuName": llx.StringDataPtr((*string)(fw.Properties.SKU.Name)), + "provisioningState": llx.StringDataPtr((*string)(fw.Properties.ProvisioningState)), + "threatIntelMode": llx.StringDataPtr((*string)(fw.Properties.ThreatIntelMode)), + "natRules": llx.ArrayData(natRules, types.ResourceLike), + "applicationRules": llx.ArrayData(applicationRules, types.ResourceLike), + "networkRules": llx.ArrayData(networkRules, types.ResourceLike), + "ipConfigurations": llx.ArrayData(ipConfigs, types.ResourceLike), + } + if fw.Properties.ManagementIPConfiguration != nil { + ipConfig := fw.Properties.ManagementIPConfiguration + props, err := convert.JsonToDict(ipConfig.Properties) + if err != nil { + return nil, err + } + mqlIpConfig, err := CreateResource(runtime, "azure.subscription.networkService.firewall.ipConfig", + map[string]*llx.RawData{ + "id": llx.StringData(convert.ToString(ipConfig.ID)), + "name": llx.StringData(convert.ToString(ipConfig.Name)), + "etag": llx.StringData(convert.ToString(ipConfig.Etag)), + "privateIpAddress": llx.StringDataPtr(ipConfig.Properties.PrivateIPAddress), + "properties": llx.DictData(props), + }) + if err != nil { + return nil, err + } + args["managementIpConfiguration"] = llx.ResourceData(mqlIpConfig, "managementIpConfiguration") + } else { + args["managementIpConfiguration"] = llx.NilData + } + mqlFw, err := CreateResource(runtime, "azure.subscription.networkService.firewall", args) + if err != nil { + return nil, err + } + return mqlFw.(*mqlAzureSubscriptionNetworkServiceFirewall), nil +} + +func azureFirewallPolicyToMql(runtime *plugin.Runtime, fwp network.FirewallPolicy) (*mqlAzureSubscriptionNetworkServiceFirewallPolicy, error) { + props, err := convert.JsonToDict(fwp.Properties) + if err != nil { + return nil, err + } + mqlFw, err := CreateResource(runtime, "azure.subscription.networkService.firewallPolicy", + map[string]*llx.RawData{ + "id": llx.StringData(convert.ToString(fwp.ID)), + "name": llx.StringData(convert.ToString(fwp.Name)), + "type": llx.StringData(convert.ToString(fwp.Type)), + "location": llx.StringData(convert.ToString(fwp.Location)), + "tags": llx.MapData(convert.PtrMapStrToInterface(fwp.Tags), types.String), + "etag": llx.StringData(convert.ToString(fwp.Etag)), + "properties": llx.DictData(props), + "provisioningState": llx.StringDataPtr((*string)(fwp.Properties.ProvisioningState)), + }) + if err != nil { + return nil, err + } + + return mqlFw.(*mqlAzureSubscriptionNetworkServiceFirewallPolicy), nil +} + +func azureIpToMql(runtime *plugin.Runtime, ip network.PublicIPAddress) (*mqlAzureSubscriptionNetworkServiceIpAddress, error) { + mqlAzure, err := CreateResource(runtime, "azure.subscription.networkService.ipAddress", + map[string]*llx.RawData{ + "id": llx.StringData(convert.ToString(ip.ID)), + "name": llx.StringData(convert.ToString(ip.Name)), + "location": llx.StringData(convert.ToString(ip.Location)), + "tags": llx.MapData(convert.PtrMapStrToInterface(ip.Tags), types.String), + "type": llx.StringData(convert.ToString(ip.Type)), + "ipAddress": llx.StringData(convert.ToString(ip.Properties.IPAddress)), + }) + if err != nil { + return nil, err + } + return mqlAzure.(*mqlAzureSubscriptionNetworkServiceIpAddress), nil +} + +func azureNatGatewayToMql(runtime *plugin.Runtime, ng network.NatGateway) (*mqlAzureSubscriptionNetworkServiceNatGateway, error) { + props, err := convert.JsonToDict(ng.Properties) + if err != nil { + return nil, err + } + mqlNg, err := CreateResource(runtime, "azure.subscription.networkService.natGateway", + map[string]*llx.RawData{ + "id": llx.StringData(convert.ToString(ng.ID)), + "name": llx.StringData(convert.ToString(ng.Name)), + "type": llx.StringData(convert.ToString(ng.Type)), + "location": llx.StringData(convert.ToString(ng.Location)), + "tags": llx.MapData(convert.PtrMapStrToInterface(ng.Tags), types.String), + "etag": llx.StringData(convert.ToString(ng.Etag)), + "zones": llx.ArrayData(convert.SliceStrPtrToInterface(ng.Zones), types.String), + "properties": llx.DictData(props), + }) + if err != nil { + return nil, err + } + return mqlNg.(*mqlAzureSubscriptionNetworkServiceNatGateway), nil +} + +func azureSubnetToMql(runtime *plugin.Runtime, subnet network.Subnet) (*mqlAzureSubscriptionNetworkServiceSubnet, error) { + props, err := convert.JsonToDict(subnet.Properties) + if err != nil { + return nil, err + } + mqlAzure, err := CreateResource(runtime, "azure.subscription.networkService.subnet", + map[string]*llx.RawData{ + "id": llx.StringData(convert.ToString(subnet.ID)), + "name": llx.StringData(convert.ToString(subnet.Name)), + "type": llx.StringData(convert.ToString(subnet.Type)), + "etag": llx.StringData(convert.ToString(subnet.Etag)), + "addressPrefix": llx.StringData(convert.ToString(subnet.Properties.AddressPrefix)), + "properties": llx.DictData(props), + }) + if err != nil { + return nil, err + } + return mqlAzure.(*mqlAzureSubscriptionNetworkServiceSubnet), nil } func azureInterfaceToMql(runtime *plugin.Runtime, iface network.Interface) (*mqlAzureSubscriptionNetworkServiceInterface, error) {