This document lists all the legacy fields and fields to be deprecated in
Cloud Asset Inventory.

## Legacy field names

This section describes legacy field names and lists the assets that have
multiple names for the same field.

*Legacy field names* are not listed in the
[discovery document](https://developers.google.com/discovery/v1/reference/apis).
They are provided to support backward compatibility. We recommend using the
field names listed in the discovery document whenever possible.

### Assets with multiple names for the same field

The following table lists the assets that have multiple names for the same
field. All resources are in `compute.googleapis.com`. These field names are used
by `BatchGetAssetsHistory`, `ExportAssets`, and `ListAssets`.

| Resource type | Current field name (recommended) | Legacy field name |
|---|---|---|
| `BackendBucket` | `cdnPolicy.bypassCacheOnRequestHeaders` | `cdnPolicy.bypassCacheOnRequestHeader` |
| `BackendBucket` | `cdnPolicy.includeHttpHeaders` | `cdnPolicy.includeHttpHeader` |
| `BackendBucket` | `customResponseHeaders` | `customResponseHeader` |
| `BackendService` | `cdnPolicy.bypassCacheOnRequestHeaders` | `cdnPolicy.bypassCacheOnRequestHeader` |
| `BackendService` | `cdnPolicy.cacheKeyPolicy.includeHttpHeaders` | `cdnPolicy.cacheKeyPolicy.includeHttpHeader` |
| `BackendService` | `cdnPolicy.cacheKeyPolicy.includeNamedCookies` | `cdnPolicy.cacheKeyPolicy.includeNamedCookie` |
| `BackendService` | `customResponseHeaders` | `customResponseHeader` |
| `BackendService` | `securitySettings.clientTlsPolicy` | `securitySettings.authentication` |
| `BackendService` | `securitySettings.subjectAltNames` | `securitySettings.subjectAltName` |
| `ExternalVpnGateway` | `interfaces` | `interface` |
| `FirewallPolicy` | `rules.match.srcSecureTags` | `rules.match.srcSecureTag` |
| `FirewallPolicy` | `targetSecureTags` | `targetSecureTag` |
| `ForwardingRule` | `metadataFilters` | `metadataFilter` |
| `GlobalAddress` | `users` | `user` |
| `GlobalForwardingRule` | `metadataFilters` | `metadataFilter` |
| `Image` | `shieldedInstanceInitialState.dbs` | `shieldedInstanceInitialState.db` |
| `Image` | `shieldedInstanceInitialState.dbxs` | `shieldedInstanceInitialState.dbx` |
| `Image` | `shieldedInstanceInitialState.keks` | `shieldedInstanceInitialState.kek` |
| `Instance` | `disks.initializeParams.licenses` | `disks.initializeParams.license` |
| `Instance` | `disks.initializeParams.resourcePolicies` | `disks.initializeParams.resourcePolicy` |
| `Instance` | `disks.shieldedInstanceInitialState.dbs` | `disks.shieldedInstanceInitialState.db` |
| `Instance` | `disks.shieldedInstanceInitialState.dbxs` | `disks.shieldedInstanceInitialState.dbx` |
| `Instance` | `disks.shieldedInstanceInitialState.keks` | `disks.shieldedInstanceInitialState.kek` |
| `Instance` | `networkInterfaces.ipv6AccessConfigs` | `networkInterfaces.ipv6AccessConfig` |
| `Instance` | `reservationAffinity` | `allocationAffinity` |
| `InstanceTemplate` | `properties.disks.initializeParams.licenses` | `properties.disks.initializeParams.license` |
| `InstanceTemplate` | `properties.disks.initializeParams.resourcePolicies` | `properties.disks.initializeParams.resourcePolicy` |
| `InstanceTemplate` | `properties.disks.shieldedInstanceInitialState.dbs` | `properties.disks.shieldedInstanceInitialState.db` |
| `InstanceTemplate` | `properties.disks.shieldedInstanceInitialState.dbxs` | `properties.disks.shieldedInstanceInitialState.dbx` |
| `InstanceTemplate` | `properties.disks.shieldedInstanceInitialState.keks` | `properties.disks.shieldedInstanceInitialState.kek` |
| `InstanceTemplate` | `properties.networkInterfaces` | `properties.networkInterface` |
| `InstanceTemplate` | `properties.reservationAffinity` | `properties.allocationAffinity` |
| `InstanceTemplate` | `properties.resourcePolicies` | `properties.resourcePolicy` |
| `Interconnect` | `circuitInfos` | `circuitInfo` |
| `InterconnectAttachment` | `candidateIpv6Subnets` | `candidateIpv6Subnet` |
| `InterconnectAttachment` | `ipsecInternalAddresses` | `ipsecInternalAddress` |
| `NodeTemplate` | `accelerators` | `accelerator` |
| `NodeTemplate` | `disks` | `disk` |
| `PacketMirroring` | `filter.cidrRanges` | `filter.cidrRange` |
| `PacketMirroring` | `filter.ipProtocols` | `filter.ipProtocol` |
| `PacketMirroring` | `network` | `mirroredNetwork` |
| `RegionBackendService` | `cdnPolicy.bypassCacheOnRequestHeaders` | `cdnPolicy.bypassCacheOnRequestHeader` |
| `RegionBackendService` | `cdnPolicy.cacheKeyPolicy.includeHttpHeaders` | `cdnPolicy.cacheKeyPolicy.includeHttpHeader` |
| `RegionBackendService` | `cdnPolicy.cacheKeyPolicy.includeNamedCookies` | `cdnPolicy.cacheKeyPolicy.includeNamedCookie` |
| `RegionBackendService` | `customResponseHeaders` | `customResponseHeader` |
| `RegionBackendService` | `securitySettings.clientTlsPolicy` | `securitySettings.authentication` |
| `RegionBackendService` | `securitySettings.subjectAltNames` | `securitySettings.subjectAltName` |
| `ResourcePolicy` | `resourceStatus.instanceSchedulePolicy` | `resourceStatus.instanceSchedulePolicyStatus` |
| `ResourcePolicy` | `snapshotSchedulePolicy.schedule.weeklySchedule.dayOfWeeks` | `snapshotSchedulePolicy.schedule.weeklySchedule.dayOfWeek` |
| `ResourcePolicy` | `snapshotSchedulePolicy.snapshotProperties.storageLocations` | `snapshotSchedulePolicy.snapshotProperties.storageLocation` |
| `Route` | `asPaths` | `asPath` |
| `Router` | `nats.drainNatIps` | `nats.drainNatIp` |
| `Router` | `nats.rules` | `nats.rule` |
| `SecurityPolicy` | `rules` | `rule` |
| `SecurityPolicy` | `headerAction.requestHeadersToAdds` | `headerAction.requestHeadersToAdd` |
| `SecurityPolicy` | `match.config.srcIpRanges` | `match.config.srcIpRange` |
| `SslPolicy` | `customFeatures` | `customFeature` |
| `SslPolicy` | `enabledFeatures` | `enabledFeature` |
| `SslPolicy` | `warnings` | `warning` |
| `TargetHttpProxy` | `authorizationPolicy` | `authorization` |
| `TargetHttpProxy` | `serverTlsPolicy` | `authentication` |
| `UrlMap` | `pathMatchers.routeRules.routeAction.corsPolicy.allowHeaders` | `pathMatchers.routeRules.routeAction.corsPolicy.allowHeader` |
| `UrlMap` | `pathMatchers.routeRules.routeAction.corsPolicy.allowMethods` | `pathMatchers.routeRules.routeAction.corsPolicy.allowMethod` |
| `UrlMap` | `pathMatchers.routeRules.routeAction.corsPolicy.allowOrigins` | `pathMatchers.routeRules.routeAction.corsPolicy.allowOrigin` |
| `UrlMap` | `pathMatchers.routeRules.routeAction.corsPolicy.allowOriginRegexes` | `pathMatchers.routeRules.routeAction.corsPolicy.allowOriginRegex` |
| `UrlMap` | `pathMatchers.routeRules.routeAction.corsPolicy.exposeHeaders` | `pathMatchers.routeRules.routeAction.corsPolicy.exposeHeader` |
| `UrlMap` | `pathMatchers.routeRules.routeAction.retryPolicy.retryConditions` | `pathMatchers.routeRules.routeAction.retryPolicy.retryCondition` |
| `UrlMap` | `pathMatchers.routeRules.routeAction.weightedBackendServices` | `pathMatchers.routeRules.routeAction.weightedBackendService` |
| `UrlMap` | `pathMatchers.routeRules.service` | `pathMatchers.routeRules.backendService` |
| `VpnGateway` | `vpnInterfaces` | `vpnInterface` |

## Resource types with the deprecated kmsKey field

This section lists all the resource types which have the legacy `kmsKey` field
populated in
[ResourceSearchResult](https://docs.cloud.google.com/asset-inventory/docs/reference/rpc/google.cloud.asset.v1#resourcesearchresult)
while calling
[SearchAllResources API](https://docs.cloud.google.com/asset-inventory/docs/reference/rpc/google.cloud.asset.v1#google.cloud.asset.v1.AssetService.SearchAllResources)
for backward-compatibility. The new `kmsKeys` field can be used to retrieve
Cloud KMS key information.

| Service | Resource types |
|---|---|
| **Artifact Registry** | - ` artifactregistry.googleapis.com/Repository ` |
| **BigQuery** | - ` bigquery.googleapis.com/Dataset ` - ` bigquery.googleapis.com/Table ` - ` bigquery.googleapis.com/Model ` |
| **Bigtable** | - ` bigtableadmin.googleapis.com/Backup ` - ` bigtableadmin.googleapis.com/Cluster ` |
| **Managed Service for Apache Airflow** | - ` composer.googleapis.com/Environment ` |
| **Cloud Run functions** | - ` cloudfunctions.googleapis.com/CloudFunction ` |
| **Cloud Healthcare API** | - ` healthcare.googleapis.com/Dataset ` |
| **Cloud Logging** | - ` logging.googleapis.com/LogBucket ` |
| **Cloud Run** | - ` run.googleapis.com/Revision ` |
| **Spanner** | - ` spanner.googleapis.com/Database ` |
| **Cloud SQL** | - ` sqladmin.googleapis.com/Instance ` - ` sqladmin.googleapis.com/BackupRun ` |
| **Cloud Storage** | - ` storage.googleapis.com/Bucket ` |
| **Compute Engine** | - ` compute.googleapis.com/Disk ` - ` compute.googleapis.com/Image ` |
| **Dataflow** | - ` dataflow.googleapis.com/Job ` |
| **Managed Service for Apache Spark** | - ` dataproc.googleapis.com/Cluster ` |
| **Dataproc Metastore** | - ` metastore.googleapis.com/Service ` |
| **Datastream** | - ` datastream.googleapis.com/Stream ` |
| **Dialogflow CX** | - ` dialogflow.googleapis.com/LocationSettings ` |
| **Document AI** | - ` documentai.googleapis.com/HumanReviewConfig ` - ` documentai.googleapis.com/Processor ` - ` documentai.googleapis.com/ProcessorVersion ` |
| **Memorystore for Redis** | - ` redis.googleapis.com/Instance ` |
| **Pub/Sub** | - ` pubsub.googleapis.com/Topic ` |
| **Vertex AI** | - ` aiplatform.googleapis.com/BatchPredictionJob ` - ` aiplatform.googleapis.com/CustomJob ` - ` aiplatform.googleapis.com/DataLabelingJob ` - ` aiplatform.googleapis.com/Dataset ` - ` aiplatform.googleapis.com/Endpoint ` - ` aiplatform.googleapis.com/HyperparameterTuningJob ` - ` aiplatform.googleapis.com/MetadataStore ` - ` aiplatform.googleapis.com/Model ` - ` aiplatform.googleapis.com/ModelDeploymentMonitoringJob ` - ` aiplatform.googleapis.com/PipelineJob ` - ` aiplatform.googleapis.com/TrainingPipeline ` |