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

Commit

Permalink
cloud sql steps name update
Browse files Browse the repository at this point in the history
  • Loading branch information
poornima-metron committed May 9, 2024
1 parent 9c8794e commit 525f22a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions src/steps/cloud-sql/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ export const ENTITY_CLASS_CLOUD_SQL_CONNECTION = 'Network';
export const STEP_GOOGLE_CLOUD_PROJECT_HAS_CLOUD_SQL =
'fetch-project-has-sql';
export const RELATIONSHIP_TYPE_CLOUD_PROJECT_HAS_CLOUD_SQL =
'google_cloud_project_has_sql'; // done
'google_cloud_project_has_sql';

export const STEP_CLOUD_SQL_HAS_CLOUD_SQL_INSTANCES =
'fetch-cloud-sql-has-sql-instances';
export const RELATIONSHIP_TYPE_CLOUD_SQL_HAS_CLOUD_SQL_INSTANCES =
'google_cloud_sql_has_sql_instance';// done
'google_cloud_sql_has_sql_instance';

export const STEP_CLOUD_SQL_SSL_CERTIFICATION_HAS_CLOUD_SQL_BACKUP =
'fetch-cloud-sql-ssl-certification-has-sql-backup';
Expand All @@ -47,7 +47,7 @@ export const RELATIONSHIP_TYPE_CLOUD_SQL_INSTANCES_HAS_CLOUD_SQL_BACKUP =
'google_cloud_sql_instance_has_sql_backup';

export const STEP_CLOUD_SQL_INSTANCES_USES_CLOUD_SQL_SSL_CERTIFICATION =
'fetch-cloud-sql-instances-has-sql-ssl-certification';
'fetch-cloud-sql-instances-uses-sql-ssl-certification';
export const RELATIONSHIP_TYPE_CLOUD_SQL_INSTANCES_USES_CLOUD_SQL_SSL_CERTIFICATION =
'google_cloud_sql_instance_uses_ssl_certificate';

Expand All @@ -57,14 +57,14 @@ export const RELATIONSHIP_TYPE_CLOUD_SQL_INSTANCES_HAS_CLOUD_SQL_CONNECTION =
'google_cloud_sql_instance_has_connection';

export const STEP_CLOUD_SQL_INSTANCES_USES_CLOUD_SQL_DATABASE =
'fetch-cloud-sql-instances-has-sql-database';
'fetch-cloud-sql-instances-uses-sql-database';
export const RELATIONSHIP_TYPE_CLOUD_SQL_INSTANCES_USES_CLOUD_SQL_DATABASE =
'google_cloud_sql_instance_has_sql_database';
'google_cloud_sql_instance_uses_database';

export const STEP_CLOUD_SQL_INSTANCES_ASSIGNED_GOOGLE_USER =
'fetch-cloud-sql-instances-assigned-google-user';
export const RELATIONSHIP_TYPE_CLOUD_SQL_INSTANCES_ASSIGNED_GOOGLE_USER =
'google_cloud_sql_instance_assigned_google_user';
'google_cloud_sql_instance_assigned_user';

export const STEP_CLOUD_SQL_HAS_CLOUD_SQL_DATABASE =
'fetch-cloud-sql-has-sql-database';
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 @@ -470,7 +470,7 @@ export async function buildSqlHasSqldatabaseRelationship(
}
await jobState.addRelationship(
createDirectRelationship({
_class: RelationshipClass.ASSIGNED,
_class: RelationshipClass.HAS,
fromKey: sqlEntityKey as string,
fromType: ENTITY_TYPE_CLOUD_SQL,
toKey: sqlDatabseEntity._key as string,
Expand Down Expand Up @@ -690,7 +690,7 @@ export const cloudSqlSteps: GoogleCloudIntegrationStep[] = [
entities: [],
relationships: [
{
_class: RelationshipClass.HAS,
_class: RelationshipClass.USES,
_type: RELATIONSHIP_TYPE_CLOUD_SQL_INSTANCES_USES_CLOUD_SQL_SSL_CERTIFICATION,
sourceType: ENTITY_TYPE_CLOUD_SQL_INSTANCES,
targetType: ENTITY_TYPE_CLOUD_SQL_SSL_CERTIFICATION,
Expand Down

0 comments on commit 525f22a

Please sign in to comment.