Skip to content
This repository has been archived by the owner on Jun 25, 2024. It is now read-only.

Commit

Permalink
updated converter.ts for backup
Browse files Browse the repository at this point in the history
  • Loading branch information
poornima-metron committed May 13, 2024
1 parent 8d0dd2a commit deb1b3c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions src/steps/cloud-sql/converters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export function createCloudSqlInstancesEntity(data) {
connectionName: data.connectionName,
url: data.selfLink,
projectId: data.projectId,
kind: data.kind,
databaseInstalledVersion: data.databaseInstalledVersion,
},
},
Expand Down Expand Up @@ -88,7 +89,7 @@ export function createCloudSqlBackupEntity(data: sqladmin_v1.Schema$BackupRun) {
_class: ENTITY_CLASS_CLOUD_SQL_BACKUP,
_type: ENTITY_TYPE_CLOUD_SQL_BACKUP,
_key: data.id as string,
name: data.backupKind,
name: data.kind,
instanceName: data.instance,
url: data.selfLink,
status: data.status,
Expand Down Expand Up @@ -117,8 +118,8 @@ export function createCloudSqlConnectionEntity(data: sqladmin_v1.Schema$ConnectS
assign: {
_class: ENTITY_CLASS_CLOUD_SQL_CONNECTION,
_type: ENTITY_TYPE_CLOUD_SQL_CONNECTION,
_key: data.serverCaCert?.commonName as string,
name: data.serverCaCert?.certSerialNumber,
_key: "SqlConnection_" + data.serverCaCert?.certSerialNumber as string,
name: data.serverCaCert?.commonName,
instanceName: data.serverCaCert?.instance,
databaseVersion: data.databaseVersion,
backendType: data.backendType,
Expand Down
4 changes: 2 additions & 2 deletions src/steps/cloud-sql/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -561,10 +561,10 @@ export const cloudSqlSteps: GoogleCloudIntegrationStep[] = [
{
id: STEP_CLOUD_SQL_SSL_CERTIFICATION,
ingestionSourceId: IngestionSources.CLOUD_SQL_SSL_CERTIFICATION,
name: 'Cloud SQL Instances',
name: 'Cloud SQL SSL Certification',
entities: [
{
resourceName: 'Cloud SQL Instances',
resourceName: 'Cloud SQL SSL Certification',
_type: ENTITY_TYPE_CLOUD_SQL_SSL_CERTIFICATION,
_class: ENTITY_CLASS_CLOUD_SQL_SSL_CERTIFICATION,
},
Expand Down

0 comments on commit deb1b3c

Please sign in to comment.