fix generated types (#20033)

* fix generated types

* fix path

* fix unit tests
This commit is contained in:
Karan Hotchandani 2025-02-28 21:25:40 +05:30 committed by GitHub
parent de72e87bdf
commit 1cbbe9a7c0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
38 changed files with 470 additions and 410 deletions

View File

@ -1,5 +1,5 @@
{ {
"$id": "https://open-metadata.org/schema/entity/applications/metadataIngestion/reverseIngestionPipeline.json", "$id": "https://open-metadata.org/schema/metadataIngestion/reverseIngestionPipeline.json",
"$schema": "http://json-schema.org/draft-07/schema#", "$schema": "http://json-schema.org/draft-07/schema#",
"title": "reverseIngestionPipeline", "title": "reverseIngestionPipeline",
"javaType": "org.openmetadata.schema.metadataIngestion.ReverseIngestionPipeline", "javaType": "org.openmetadata.schema.metadataIngestion.ReverseIngestionPipeline",

View File

@ -33,7 +33,7 @@ export interface CreateWorkflow {
/** /**
* Owners of this workflow. * Owners of this workflow.
*/ */
owners?: OwnerElement[]; owners?: EntityReference[];
/** /**
* Request body for a specific workflow type * Request body for a specific workflow type
*/ */
@ -64,8 +64,10 @@ export interface CreateWorkflow {
* EntityReference is used for capturing relationships from one entity to another. For * EntityReference is used for capturing relationships from one entity to another. For
* example, a table has an attribute called database of type EntityReference that captures * example, a table has an attribute called database of type EntityReference that captures
* the relationship of a table `belongs to a` database. * the relationship of a table `belongs to a` database.
*
* Service to be modified
*/ */
export interface OwnerElement { export interface EntityReference {
/** /**
* If true the entity referred to has been soft-deleted. * If true the entity referred to has been soft-deleted.
*/ */
@ -143,7 +145,7 @@ export interface TestServiceConnectionRequest {
/** /**
* Service to be modified * Service to be modified
*/ */
service?: ServiceClass; service?: EntityReference;
/** /**
* Pipeline type * Pipeline type
*/ */
@ -2469,7 +2471,7 @@ export interface GCPCredentialsConfiguration {
/** /**
* Google Cloud Platform account type. * Google Cloud Platform account type.
*/ */
type?: string; type?: TypeEnum;
/** /**
* Path of the file containing the GCP credentials info * Path of the file containing the GCP credentials info
*/ */
@ -2487,7 +2489,7 @@ export interface GCPCredentialsConfiguration {
/** /**
* Google Cloud Platform account type. * Google Cloud Platform account type.
*/ */
externalType?: string; externalType?: ExternalTypeEnum;
/** /**
* Google Security Token Service subject token type based on the OAuth 2.0 token exchange * Google Security Token Service subject token type based on the OAuth 2.0 token exchange
* spec. * spec.
@ -2500,6 +2502,16 @@ export interface GCPCredentialsConfiguration {
[property: string]: any; [property: string]: any;
} }
export enum ExternalTypeEnum {
ExternalAccount = "external_account",
}
export enum TypeEnum {
ExternalAccount = "external_account",
GcpCredentialPath = "gcp_credential_path",
ServiceAccount = "service_account",
}
/** /**
* we enable the authenticated service account to impersonate another service account * we enable the authenticated service account to impersonate another service account
* *
@ -3616,11 +3628,11 @@ export interface ReverseIngestionConfig {
/** /**
* Added owners to be applied * Added owners to be applied
*/ */
addedOwners?: OwnerElement[]; addedOwners?: EntityReference[];
/** /**
* Removed owners from the entity * Removed owners from the entity
*/ */
removedOwners?: OwnerElement[]; removedOwners?: EntityReference[];
/** /**
* Added tags to be applied * Added tags to be applied
*/ */
@ -3727,57 +3739,6 @@ export enum Type {
UpdateTags = "UPDATE_TAGS", UpdateTags = "UPDATE_TAGS",
} }
/**
* Service to be modified
*
* This schema defines the EntityReference type used for referencing an entity.
* EntityReference is used for capturing relationships from one entity to another. For
* example, a table has an attribute called database of type EntityReference that captures
* the relationship of a table `belongs to a` database.
*/
export interface ServiceClass {
/**
* If true the entity referred to has been soft-deleted.
*/
deleted?: boolean;
/**
* Optional description of entity.
*/
description?: string;
/**
* Display Name that identifies this entity.
*/
displayName?: string;
/**
* Fully qualified name of the entity instance. For entities such as tables, databases
* fullyQualifiedName is returned in this field. For entities that don't have name hierarchy
* such as `user` and `team` this will be same as the `name` field.
*/
fullyQualifiedName?: string;
/**
* Link to the entity resource.
*/
href?: string;
/**
* Unique identifier that identifies an entity instance.
*/
id: string;
/**
* If true the relationship indicated by this entity reference is inherited from the parent
* entity.
*/
inherited?: boolean;
/**
* Name of the entity instance.
*/
name?: string;
/**
* Entity type/class name - Examples: `database`, `table`, `metrics`, `databaseService`,
* `dashboardService`...
*/
type: string;
}
/** /**
* Type of service such as Database, Dashboard, Messaging, etc. * Type of service such as Database, Dashboard, Messaging, etc.
* *

View File

@ -975,7 +975,7 @@ export interface GCPCredentialsConfiguration {
/** /**
* Google Cloud Platform account type. * Google Cloud Platform account type.
*/ */
type?: string; type?: TypeEnum;
/** /**
* Path of the file containing the GCP credentials info * Path of the file containing the GCP credentials info
*/ */
@ -993,7 +993,7 @@ export interface GCPCredentialsConfiguration {
/** /**
* Google Cloud Platform account type. * Google Cloud Platform account type.
*/ */
externalType?: string; externalType?: ExternalTypeEnum;
/** /**
* Google Security Token Service subject token type based on the OAuth 2.0 token exchange * Google Security Token Service subject token type based on the OAuth 2.0 token exchange
* spec. * spec.
@ -1006,6 +1006,16 @@ export interface GCPCredentialsConfiguration {
[property: string]: any; [property: string]: any;
} }
export enum ExternalTypeEnum {
ExternalAccount = "external_account",
}
export enum TypeEnum {
ExternalAccount = "external_account",
GcpCredentialPath = "gcp_credential_path",
ServiceAccount = "service_account",
}
/** /**
* we enable the authenticated service account to impersonate another service account * we enable the authenticated service account to impersonate another service account
* *

View File

@ -1385,7 +1385,7 @@ export interface GCPCredentialsConfiguration {
/** /**
* Google Cloud Platform account type. * Google Cloud Platform account type.
*/ */
type?: string; type?: TypeEnum;
/** /**
* Path of the file containing the GCP credentials info * Path of the file containing the GCP credentials info
*/ */
@ -1403,7 +1403,7 @@ export interface GCPCredentialsConfiguration {
/** /**
* Google Cloud Platform account type. * Google Cloud Platform account type.
*/ */
externalType?: string; externalType?: ExternalTypeEnum;
/** /**
* Google Security Token Service subject token type based on the OAuth 2.0 token exchange * Google Security Token Service subject token type based on the OAuth 2.0 token exchange
* spec. * spec.
@ -1416,6 +1416,16 @@ export interface GCPCredentialsConfiguration {
[property: string]: any; [property: string]: any;
} }
export enum ExternalTypeEnum {
ExternalAccount = "external_account",
}
export enum TypeEnum {
ExternalAccount = "external_account",
GcpCredentialPath = "gcp_credential_path",
ServiceAccount = "service_account",
}
/** /**
* we enable the authenticated service account to impersonate another service account * we enable the authenticated service account to impersonate another service account
* *

View File

@ -211,7 +211,7 @@ export interface GCPCredentialsConfiguration {
/** /**
* Google Cloud Platform account type. * Google Cloud Platform account type.
*/ */
type?: string; type?: TypeEnum;
/** /**
* Path of the file containing the GCP credentials info * Path of the file containing the GCP credentials info
*/ */
@ -229,7 +229,7 @@ export interface GCPCredentialsConfiguration {
/** /**
* Google Cloud Platform account type. * Google Cloud Platform account type.
*/ */
externalType?: string; externalType?: ExternalTypeEnum;
/** /**
* Google Security Token Service subject token type based on the OAuth 2.0 token exchange * Google Security Token Service subject token type based on the OAuth 2.0 token exchange
* spec. * spec.
@ -242,6 +242,16 @@ export interface GCPCredentialsConfiguration {
[property: string]: any; [property: string]: any;
} }
export enum ExternalTypeEnum {
ExternalAccount = "external_account",
}
export enum TypeEnum {
ExternalAccount = "external_account",
GcpCredentialPath = "gcp_credential_path",
ServiceAccount = "service_account",
}
/** /**
* we enable the authenticated service account to impersonate another service account * we enable the authenticated service account to impersonate another service account
* *

View File

@ -232,7 +232,7 @@ export interface GCPCredentialsConfiguration {
/** /**
* Google Cloud Platform account type. * Google Cloud Platform account type.
*/ */
type?: string; type?: TypeEnum;
/** /**
* Path of the file containing the GCP credentials info * Path of the file containing the GCP credentials info
*/ */
@ -250,7 +250,7 @@ export interface GCPCredentialsConfiguration {
/** /**
* Google Cloud Platform account type. * Google Cloud Platform account type.
*/ */
externalType?: string; externalType?: ExternalTypeEnum;
/** /**
* Google Security Token Service subject token type based on the OAuth 2.0 token exchange * Google Security Token Service subject token type based on the OAuth 2.0 token exchange
* spec. * spec.
@ -263,6 +263,16 @@ export interface GCPCredentialsConfiguration {
[property: string]: any; [property: string]: any;
} }
export enum ExternalTypeEnum {
ExternalAccount = "external_account",
}
export enum TypeEnum {
ExternalAccount = "external_account",
GcpCredentialPath = "gcp_credential_path",
ServiceAccount = "service_account",
}
/** /**
* we enable the authenticated service account to impersonate another service account * we enable the authenticated service account to impersonate another service account
* *

View File

@ -30,7 +30,7 @@ export interface CreateIngestionPipeline {
/** /**
* The ingestion agent responsible for executing the ingestion pipeline. * The ingestion agent responsible for executing the ingestion pipeline.
*/ */
ingestionAgent?: IngestionAgentElement; ingestionAgent?: EntityReference;
/** /**
* Set the logging level for the workflow. * Set the logging level for the workflow.
*/ */
@ -42,12 +42,12 @@ export interface CreateIngestionPipeline {
/** /**
* Owner of this Ingestion Pipeline. * Owner of this Ingestion Pipeline.
*/ */
owners?: IngestionAgentElement[]; owners?: EntityReference[];
pipelineType: PipelineType; pipelineType: PipelineType;
/** /**
* Link to the service for which ingestion pipeline is ingesting the metadata. * Link to the service for which ingestion pipeline is ingesting the metadata.
*/ */
service: IngestionAgentElement; service: EntityReference;
sourceConfig: SourceConfig; sourceConfig: SourceConfig;
} }
@ -131,8 +131,10 @@ export interface AirflowConfig {
* Link to the service for which ingestion pipeline is ingesting the metadata. * Link to the service for which ingestion pipeline is ingesting the metadata.
* *
* Domain to apply * Domain to apply
*
* Service to be modified
*/ */
export interface IngestionAgentElement { export interface EntityReference {
/** /**
* If true the entity referred to has been soft-deleted. * If true the entity referred to has been soft-deleted.
*/ */
@ -679,7 +681,7 @@ export interface Pipeline {
/** /**
* Service to be modified * Service to be modified
*/ */
service?: ConfigService; service?: EntityReference;
} }
/** /**
@ -930,7 +932,7 @@ export interface Action {
/** /**
* Domain to apply * Domain to apply
*/ */
domain?: IngestionAgentElement; domain?: EntityReference;
/** /**
* Description to apply * Description to apply
*/ */
@ -948,7 +950,7 @@ export interface Action {
/** /**
* Owners to apply * Owners to apply
*/ */
owners?: IngestionAgentElement[]; owners?: EntityReference[];
/** /**
* Propagate the metadata to columns via column-level lineage. * Propagate the metadata to columns via column-level lineage.
*/ */
@ -1552,7 +1554,7 @@ export interface GCPCredentialsConfiguration {
/** /**
* Google Cloud Platform account type. * Google Cloud Platform account type.
*/ */
type?: string; type?: TypeEnum;
/** /**
* Path of the file containing the GCP credentials info * Path of the file containing the GCP credentials info
*/ */
@ -1570,7 +1572,7 @@ export interface GCPCredentialsConfiguration {
/** /**
* Google Cloud Platform account type. * Google Cloud Platform account type.
*/ */
externalType?: string; externalType?: ExternalTypeEnum;
/** /**
* Google Security Token Service subject token type based on the OAuth 2.0 token exchange * Google Security Token Service subject token type based on the OAuth 2.0 token exchange
* spec. * spec.
@ -1583,6 +1585,16 @@ export interface GCPCredentialsConfiguration {
[property: string]: any; [property: string]: any;
} }
export enum ExternalTypeEnum {
ExternalAccount = "external_account",
}
export enum TypeEnum {
ExternalAccount = "external_account",
GcpCredentialPath = "gcp_credential_path",
ServiceAccount = "service_account",
}
/** /**
* we enable the authenticated service account to impersonate another service account * we enable the authenticated service account to impersonate another service account
* *
@ -1684,11 +1696,11 @@ export interface ReverseIngestionConfig {
/** /**
* Added owners to be applied * Added owners to be applied
*/ */
addedOwners?: IngestionAgentElement[]; addedOwners?: EntityReference[];
/** /**
* Removed owners from the entity * Removed owners from the entity
*/ */
removedOwners?: IngestionAgentElement[]; removedOwners?: EntityReference[];
/** /**
* Added tags to be applied * Added tags to be applied
*/ */
@ -1724,57 +1736,6 @@ export enum SamplingMethodType {
System = "SYSTEM", System = "SYSTEM",
} }
/**
* Service to be modified
*
* This schema defines the EntityReference type used for referencing an entity.
* EntityReference is used for capturing relationships from one entity to another. For
* example, a table has an attribute called database of type EntityReference that captures
* the relationship of a table `belongs to a` database.
*/
export interface ConfigService {
/**
* If true the entity referred to has been soft-deleted.
*/
deleted?: boolean;
/**
* Optional description of entity.
*/
description?: string;
/**
* Display Name that identifies this entity.
*/
displayName?: string;
/**
* Fully qualified name of the entity instance. For entities such as tables, databases
* fullyQualifiedName is returned in this field. For entities that don't have name hierarchy
* such as `user` and `team` this will be same as the `name` field.
*/
fullyQualifiedName?: string;
/**
* Link to the entity resource.
*/
href?: string;
/**
* Unique identifier that identifies an entity instance.
*/
id: string;
/**
* If true the relationship indicated by this entity reference is inherited from the parent
* entity.
*/
inherited?: boolean;
/**
* Name of the entity instance.
*/
name?: string;
/**
* Entity type/class name - Examples: `database`, `table`, `metrics`, `databaseService`,
* `dashboardService`...
*/
type: string;
}
/** /**
* Service connections available for the logical test suite. * Service connections available for the logical test suite.
*/ */

View File

@ -0,0 +1,16 @@
/*
* Copyright 2025 Collate.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* This schema defines Services Count. This contains aggregated services count.
*/
type VoteRequest = string;

View File

@ -0,0 +1,13 @@
/*
* Copyright 2025 Collate.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
type Basic = any;

View File

@ -2355,7 +2355,7 @@ export interface GCPCredentialsConfiguration {
/** /**
* Google Cloud Platform account type. * Google Cloud Platform account type.
*/ */
type?: string; type?: TypeEnum;
/** /**
* Path of the file containing the GCP credentials info * Path of the file containing the GCP credentials info
*/ */
@ -2373,7 +2373,7 @@ export interface GCPCredentialsConfiguration {
/** /**
* Google Cloud Platform account type. * Google Cloud Platform account type.
*/ */
externalType?: string; externalType?: ExternalTypeEnum;
/** /**
* Google Security Token Service subject token type based on the OAuth 2.0 token exchange * Google Security Token Service subject token type based on the OAuth 2.0 token exchange
* spec. * spec.
@ -2386,6 +2386,16 @@ export interface GCPCredentialsConfiguration {
[property: string]: any; [property: string]: any;
} }
export enum ExternalTypeEnum {
ExternalAccount = "external_account",
}
export enum TypeEnum {
ExternalAccount = "external_account",
GcpCredentialPath = "gcp_credential_path",
ServiceAccount = "service_account",
}
/** /**
* we enable the authenticated service account to impersonate another service account * we enable the authenticated service account to impersonate another service account
* *

View File

@ -21,7 +21,7 @@ export interface Workflow {
/** /**
* List of data products this entity is part of. * List of data products this entity is part of.
*/ */
dataProducts?: DomainElement[]; dataProducts?: EntityReference[];
/** /**
* When `true` indicates the entity has been soft deleted. * When `true` indicates the entity has been soft deleted.
*/ */
@ -38,7 +38,7 @@ export interface Workflow {
* Domain the asset belongs to. When not set, the asset inherits the domain from the parent * Domain the asset belongs to. When not set, the asset inherits the domain from the parent
* it belongs to. * it belongs to.
*/ */
domain?: DomainElement; domain?: EntityReference;
/** /**
* FullyQualifiedName same as `name`. * FullyQualifiedName same as `name`.
*/ */
@ -63,7 +63,7 @@ export interface Workflow {
/** /**
* Owners of this workflow. * Owners of this workflow.
*/ */
owners?: DomainElement[]; owners?: EntityReference[];
/** /**
* Request body for a specific workflow type * Request body for a specific workflow type
*/ */
@ -151,8 +151,10 @@ export interface FieldChange {
* *
* Domain the asset belongs to. When not set, the asset inherits the domain from the parent * Domain the asset belongs to. When not set, the asset inherits the domain from the parent
* it belongs to. * it belongs to.
*
* Service to be modified
*/ */
export interface DomainElement { export interface EntityReference {
/** /**
* If true the entity referred to has been soft-deleted. * If true the entity referred to has been soft-deleted.
*/ */
@ -483,7 +485,7 @@ export interface TestServiceConnectionRequest {
/** /**
* Service to be modified * Service to be modified
*/ */
service?: ServiceClass; service?: EntityReference;
/** /**
* Pipeline type * Pipeline type
*/ */
@ -2760,7 +2762,7 @@ export interface GCPCredentialsConfiguration {
/** /**
* Google Cloud Platform account type. * Google Cloud Platform account type.
*/ */
type?: string; type?: TypeEnum;
/** /**
* Path of the file containing the GCP credentials info * Path of the file containing the GCP credentials info
*/ */
@ -2778,7 +2780,7 @@ export interface GCPCredentialsConfiguration {
/** /**
* Google Cloud Platform account type. * Google Cloud Platform account type.
*/ */
externalType?: string; externalType?: ExternalTypeEnum;
/** /**
* Google Security Token Service subject token type based on the OAuth 2.0 token exchange * Google Security Token Service subject token type based on the OAuth 2.0 token exchange
* spec. * spec.
@ -2791,6 +2793,16 @@ export interface GCPCredentialsConfiguration {
[property: string]: any; [property: string]: any;
} }
export enum ExternalTypeEnum {
ExternalAccount = "external_account",
}
export enum TypeEnum {
ExternalAccount = "external_account",
GcpCredentialPath = "gcp_credential_path",
ServiceAccount = "service_account",
}
/** /**
* we enable the authenticated service account to impersonate another service account * we enable the authenticated service account to impersonate another service account
* *
@ -3852,11 +3864,11 @@ export interface ReverseIngestionConfig {
/** /**
* Added owners to be applied * Added owners to be applied
*/ */
addedOwners?: DomainElement[]; addedOwners?: EntityReference[];
/** /**
* Removed owners from the entity * Removed owners from the entity
*/ */
removedOwners?: DomainElement[]; removedOwners?: EntityReference[];
/** /**
* Added tags to be applied * Added tags to be applied
*/ */
@ -3963,57 +3975,6 @@ export enum Type {
UpdateTags = "UPDATE_TAGS", UpdateTags = "UPDATE_TAGS",
} }
/**
* Service to be modified
*
* This schema defines the EntityReference type used for referencing an entity.
* EntityReference is used for capturing relationships from one entity to another. For
* example, a table has an attribute called database of type EntityReference that captures
* the relationship of a table `belongs to a` database.
*/
export interface ServiceClass {
/**
* If true the entity referred to has been soft-deleted.
*/
deleted?: boolean;
/**
* Optional description of entity.
*/
description?: string;
/**
* Display Name that identifies this entity.
*/
displayName?: string;
/**
* Fully qualified name of the entity instance. For entities such as tables, databases
* fullyQualifiedName is returned in this field. For entities that don't have name hierarchy
* such as `user` and `team` this will be same as the `name` field.
*/
fullyQualifiedName?: string;
/**
* Link to the entity resource.
*/
href?: string;
/**
* Unique identifier that identifies an entity instance.
*/
id: string;
/**
* If true the relationship indicated by this entity reference is inherited from the parent
* entity.
*/
inherited?: boolean;
/**
* Name of the entity instance.
*/
name?: string;
/**
* Entity type/class name - Examples: `database`, `table`, `metrics`, `databaseService`,
* `dashboardService`...
*/
type: string;
}
/** /**
* Type of service such as Database, Dashboard, Messaging, etc. * Type of service such as Database, Dashboard, Messaging, etc.
* *

View File

@ -0,0 +1,13 @@
/*
* Copyright 2025 Collate.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
type Filters = any;

View File

@ -0,0 +1,13 @@
/*
* Copyright 2025 Collate.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
type ConnectionBasicType = any;

View File

@ -243,7 +243,7 @@ export interface GCPCredentialsConfiguration {
/** /**
* Google Cloud Platform account type. * Google Cloud Platform account type.
*/ */
type?: string; type?: TypeEnum;
/** /**
* Path of the file containing the GCP credentials info * Path of the file containing the GCP credentials info
*/ */
@ -261,7 +261,7 @@ export interface GCPCredentialsConfiguration {
/** /**
* Google Cloud Platform account type. * Google Cloud Platform account type.
*/ */
externalType?: string; externalType?: ExternalTypeEnum;
/** /**
* Google Security Token Service subject token type based on the OAuth 2.0 token exchange * Google Security Token Service subject token type based on the OAuth 2.0 token exchange
* spec. * spec.
@ -274,6 +274,16 @@ export interface GCPCredentialsConfiguration {
[property: string]: any; [property: string]: any;
} }
export enum ExternalTypeEnum {
ExternalAccount = "external_account",
}
export enum TypeEnum {
ExternalAccount = "external_account",
GcpCredentialPath = "gcp_credential_path",
ServiceAccount = "service_account",
}
/** /**
* we enable the authenticated service account to impersonate another service account * we enable the authenticated service account to impersonate another service account
* *

View File

@ -113,7 +113,7 @@ export interface GCPCredentialsConfiguration {
/** /**
* Google Cloud Platform account type. * Google Cloud Platform account type.
*/ */
type?: string; type?: TypeEnum;
/** /**
* Path of the file containing the GCP credentials info * Path of the file containing the GCP credentials info
*/ */
@ -131,7 +131,7 @@ export interface GCPCredentialsConfiguration {
/** /**
* Google Cloud Platform account type. * Google Cloud Platform account type.
*/ */
externalType?: string; externalType?: ExternalTypeEnum;
/** /**
* Google Security Token Service subject token type based on the OAuth 2.0 token exchange * Google Security Token Service subject token type based on the OAuth 2.0 token exchange
* spec. * spec.
@ -144,6 +144,16 @@ export interface GCPCredentialsConfiguration {
[property: string]: any; [property: string]: any;
} }
export enum ExternalTypeEnum {
ExternalAccount = "external_account",
}
export enum TypeEnum {
ExternalAccount = "external_account",
GcpCredentialPath = "gcp_credential_path",
ServiceAccount = "service_account",
}
/** /**
* we enable the authenticated service account to impersonate another service account * we enable the authenticated service account to impersonate another service account
* *

View File

@ -126,7 +126,7 @@ export interface GCPCredentialsConfiguration {
/** /**
* Google Cloud Platform account type. * Google Cloud Platform account type.
*/ */
type?: string; type?: TypeEnum;
/** /**
* Path of the file containing the GCP credentials info * Path of the file containing the GCP credentials info
*/ */
@ -144,7 +144,7 @@ export interface GCPCredentialsConfiguration {
/** /**
* Google Cloud Platform account type. * Google Cloud Platform account type.
*/ */
externalType?: string; externalType?: ExternalTypeEnum;
/** /**
* Google Security Token Service subject token type based on the OAuth 2.0 token exchange * Google Security Token Service subject token type based on the OAuth 2.0 token exchange
* spec. * spec.
@ -157,6 +157,16 @@ export interface GCPCredentialsConfiguration {
[property: string]: any; [property: string]: any;
} }
export enum ExternalTypeEnum {
ExternalAccount = "external_account",
}
export enum TypeEnum {
ExternalAccount = "external_account",
GcpCredentialPath = "gcp_credential_path",
ServiceAccount = "service_account",
}
/** /**
* we enable the authenticated service account to impersonate another service account * we enable the authenticated service account to impersonate another service account
* *

View File

@ -95,7 +95,7 @@ export interface GCPCredentialsConfiguration {
/** /**
* Google Cloud Platform account type. * Google Cloud Platform account type.
*/ */
type?: string; type?: TypeEnum;
/** /**
* Path of the file containing the GCP credentials info * Path of the file containing the GCP credentials info
*/ */
@ -113,7 +113,7 @@ export interface GCPCredentialsConfiguration {
/** /**
* Google Cloud Platform account type. * Google Cloud Platform account type.
*/ */
externalType?: string; externalType?: ExternalTypeEnum;
/** /**
* Google Security Token Service subject token type based on the OAuth 2.0 token exchange * Google Security Token Service subject token type based on the OAuth 2.0 token exchange
* spec. * spec.
@ -126,6 +126,16 @@ export interface GCPCredentialsConfiguration {
[property: string]: any; [property: string]: any;
} }
export enum ExternalTypeEnum {
ExternalAccount = "external_account",
}
export enum TypeEnum {
ExternalAccount = "external_account",
GcpCredentialPath = "gcp_credential_path",
ServiceAccount = "service_account",
}
/** /**
* we enable the authenticated service account to impersonate another service account * we enable the authenticated service account to impersonate another service account
* *

View File

@ -82,7 +82,7 @@ export interface GCPCredentialsConfiguration {
/** /**
* Google Cloud Platform account type. * Google Cloud Platform account type.
*/ */
type?: string; type?: TypeEnum;
/** /**
* Path of the file containing the GCP credentials info * Path of the file containing the GCP credentials info
*/ */
@ -100,7 +100,7 @@ export interface GCPCredentialsConfiguration {
/** /**
* Google Cloud Platform account type. * Google Cloud Platform account type.
*/ */
externalType?: string; externalType?: ExternalTypeEnum;
/** /**
* Google Security Token Service subject token type based on the OAuth 2.0 token exchange * Google Security Token Service subject token type based on the OAuth 2.0 token exchange
* spec. * spec.
@ -113,6 +113,16 @@ export interface GCPCredentialsConfiguration {
[property: string]: any; [property: string]: any;
} }
export enum ExternalTypeEnum {
ExternalAccount = "external_account",
}
export enum TypeEnum {
ExternalAccount = "external_account",
GcpCredentialPath = "gcp_credential_path",
ServiceAccount = "service_account",
}
/** /**
* we enable the authenticated service account to impersonate another service account * we enable the authenticated service account to impersonate another service account
* *

View File

@ -190,7 +190,7 @@ export interface GCPCredentialsConfiguration {
/** /**
* Google Cloud Platform account type. * Google Cloud Platform account type.
*/ */
type?: string; type?: TypeEnum;
/** /**
* Path of the file containing the GCP credentials info * Path of the file containing the GCP credentials info
*/ */
@ -208,7 +208,7 @@ export interface GCPCredentialsConfiguration {
/** /**
* Google Cloud Platform account type. * Google Cloud Platform account type.
*/ */
externalType?: string; externalType?: ExternalTypeEnum;
/** /**
* Google Security Token Service subject token type based on the OAuth 2.0 token exchange * Google Security Token Service subject token type based on the OAuth 2.0 token exchange
* spec. * spec.
@ -221,6 +221,16 @@ export interface GCPCredentialsConfiguration {
[property: string]: any; [property: string]: any;
} }
export enum ExternalTypeEnum {
ExternalAccount = "external_account",
}
export enum TypeEnum {
ExternalAccount = "external_account",
GcpCredentialPath = "gcp_credential_path",
ServiceAccount = "service_account",
}
/** /**
* we enable the authenticated service account to impersonate another service account * we enable the authenticated service account to impersonate another service account
* *

View File

@ -95,7 +95,7 @@ export interface GCPCredentialsConfiguration {
/** /**
* Google Cloud Platform account type. * Google Cloud Platform account type.
*/ */
type?: string; type?: TypeEnum;
/** /**
* Path of the file containing the GCP credentials info * Path of the file containing the GCP credentials info
*/ */
@ -113,7 +113,7 @@ export interface GCPCredentialsConfiguration {
/** /**
* Google Cloud Platform account type. * Google Cloud Platform account type.
*/ */
externalType?: string; externalType?: ExternalTypeEnum;
/** /**
* Google Security Token Service subject token type based on the OAuth 2.0 token exchange * Google Security Token Service subject token type based on the OAuth 2.0 token exchange
* spec. * spec.
@ -126,6 +126,16 @@ export interface GCPCredentialsConfiguration {
[property: string]: any; [property: string]: any;
} }
export enum ExternalTypeEnum {
ExternalAccount = "external_account",
}
export enum TypeEnum {
ExternalAccount = "external_account",
GcpCredentialPath = "gcp_credential_path",
ServiceAccount = "service_account",
}
/** /**
* we enable the authenticated service account to impersonate another service account * we enable the authenticated service account to impersonate another service account
* *

View File

@ -2342,7 +2342,7 @@ export interface GCPCredentialsConfiguration {
/** /**
* Google Cloud Platform account type. * Google Cloud Platform account type.
*/ */
type?: string; type?: TypeEnum;
/** /**
* Path of the file containing the GCP credentials info * Path of the file containing the GCP credentials info
*/ */
@ -2360,7 +2360,7 @@ export interface GCPCredentialsConfiguration {
/** /**
* Google Cloud Platform account type. * Google Cloud Platform account type.
*/ */
externalType?: string; externalType?: ExternalTypeEnum;
/** /**
* Google Security Token Service subject token type based on the OAuth 2.0 token exchange * Google Security Token Service subject token type based on the OAuth 2.0 token exchange
* spec. * spec.
@ -2373,6 +2373,16 @@ export interface GCPCredentialsConfiguration {
[property: string]: any; [property: string]: any;
} }
export enum ExternalTypeEnum {
ExternalAccount = "external_account",
}
export enum TypeEnum {
ExternalAccount = "external_account",
GcpCredentialPath = "gcp_credential_path",
ServiceAccount = "service_account",
}
/** /**
* we enable the authenticated service account to impersonate another service account * we enable the authenticated service account to impersonate another service account
* *

View File

@ -98,7 +98,7 @@ export interface GCPCredentialsConfiguration {
/** /**
* Google Cloud Platform account type. * Google Cloud Platform account type.
*/ */
type?: string; type?: TypeEnum;
/** /**
* Path of the file containing the GCP credentials info * Path of the file containing the GCP credentials info
*/ */
@ -116,7 +116,7 @@ export interface GCPCredentialsConfiguration {
/** /**
* Google Cloud Platform account type. * Google Cloud Platform account type.
*/ */
externalType?: string; externalType?: ExternalTypeEnum;
/** /**
* Google Security Token Service subject token type based on the OAuth 2.0 token exchange * Google Security Token Service subject token type based on the OAuth 2.0 token exchange
* spec. * spec.
@ -129,6 +129,16 @@ export interface GCPCredentialsConfiguration {
[property: string]: any; [property: string]: any;
} }
export enum ExternalTypeEnum {
ExternalAccount = "external_account",
}
export enum TypeEnum {
ExternalAccount = "external_account",
GcpCredentialPath = "gcp_credential_path",
ServiceAccount = "service_account",
}
/** /**
* we enable the authenticated service account to impersonate another service account * we enable the authenticated service account to impersonate another service account
* *

View File

@ -1068,7 +1068,7 @@ export interface GCPCredentialsConfiguration {
/** /**
* Google Cloud Platform account type. * Google Cloud Platform account type.
*/ */
type?: string; type?: TypeEnum;
/** /**
* Path of the file containing the GCP credentials info * Path of the file containing the GCP credentials info
*/ */
@ -1086,7 +1086,7 @@ export interface GCPCredentialsConfiguration {
/** /**
* Google Cloud Platform account type. * Google Cloud Platform account type.
*/ */
externalType?: string; externalType?: ExternalTypeEnum;
/** /**
* Google Security Token Service subject token type based on the OAuth 2.0 token exchange * Google Security Token Service subject token type based on the OAuth 2.0 token exchange
* spec. * spec.
@ -1099,6 +1099,16 @@ export interface GCPCredentialsConfiguration {
[property: string]: any; [property: string]: any;
} }
export enum ExternalTypeEnum {
ExternalAccount = "external_account",
}
export enum TypeEnum {
ExternalAccount = "external_account",
GcpCredentialPath = "gcp_credential_path",
ServiceAccount = "service_account",
}
/** /**
* we enable the authenticated service account to impersonate another service account * we enable the authenticated service account to impersonate another service account
* *

View File

@ -1481,7 +1481,7 @@ export interface GCPCredentialsConfiguration {
/** /**
* Google Cloud Platform account type. * Google Cloud Platform account type.
*/ */
type?: string; type?: TypeEnum;
/** /**
* Path of the file containing the GCP credentials info * Path of the file containing the GCP credentials info
*/ */
@ -1499,7 +1499,7 @@ export interface GCPCredentialsConfiguration {
/** /**
* Google Cloud Platform account type. * Google Cloud Platform account type.
*/ */
externalType?: string; externalType?: ExternalTypeEnum;
/** /**
* Google Security Token Service subject token type based on the OAuth 2.0 token exchange * Google Security Token Service subject token type based on the OAuth 2.0 token exchange
* spec. * spec.
@ -1512,6 +1512,16 @@ export interface GCPCredentialsConfiguration {
[property: string]: any; [property: string]: any;
} }
export enum ExternalTypeEnum {
ExternalAccount = "external_account",
}
export enum TypeEnum {
ExternalAccount = "external_account",
GcpCredentialPath = "gcp_credential_path",
ServiceAccount = "service_account",
}
/** /**
* we enable the authenticated service account to impersonate another service account * we enable the authenticated service account to impersonate another service account
* *

View File

@ -44,7 +44,7 @@ export interface IngestionPipeline {
* Domain the asset belongs to. When not set, the asset inherits the domain from the parent * Domain the asset belongs to. When not set, the asset inherits the domain from the parent
* it belongs to. * it belongs to.
*/ */
domain?: DomainElement; domain?: EntityReference;
/** /**
* True if the pipeline is ready to be run in the next schedule. False if it is paused. * True if the pipeline is ready to be run in the next schedule. False if it is paused.
*/ */
@ -68,7 +68,7 @@ export interface IngestionPipeline {
/** /**
* The ingestion agent responsible for executing the ingestion pipeline. * The ingestion agent responsible for executing the ingestion pipeline.
*/ */
ingestionAgent?: DomainElement; ingestionAgent?: EntityReference;
/** /**
* Set the logging level for the workflow. * Set the logging level for the workflow.
*/ */
@ -81,7 +81,7 @@ export interface IngestionPipeline {
/** /**
* Owners of this Pipeline. * Owners of this Pipeline.
*/ */
owners?: DomainElement[]; owners?: EntityReference[];
/** /**
* Last of executions and status for the Pipeline. * Last of executions and status for the Pipeline.
*/ */
@ -92,7 +92,7 @@ export interface IngestionPipeline {
* Link to the service (such as database, messaging, storage services, etc. for which this * Link to the service (such as database, messaging, storage services, etc. for which this
* ingestion pipeline ingests the metadata from. * ingestion pipeline ingests the metadata from.
*/ */
service?: DomainElement; service?: EntityReference;
sourceConfig: SourceConfig; sourceConfig: SourceConfig;
/** /**
* Last update time corresponding to the new version of the entity in Unix epoch time * Last update time corresponding to the new version of the entity in Unix epoch time
@ -236,8 +236,10 @@ export interface FieldChange {
* ingestion pipeline ingests the metadata from. * ingestion pipeline ingests the metadata from.
* *
* Domain to apply * Domain to apply
*
* Service to be modified
*/ */
export interface DomainElement { export interface EntityReference {
/** /**
* If true the entity referred to has been soft-deleted. * If true the entity referred to has been soft-deleted.
*/ */
@ -1148,7 +1150,7 @@ export interface Pipeline {
/** /**
* Service to be modified * Service to be modified
*/ */
service?: ConfigService; service?: EntityReference;
} }
/** /**
@ -1399,7 +1401,7 @@ export interface Action {
/** /**
* Domain to apply * Domain to apply
*/ */
domain?: DomainElement; domain?: EntityReference;
/** /**
* Description to apply * Description to apply
*/ */
@ -1417,7 +1419,7 @@ export interface Action {
/** /**
* Owners to apply * Owners to apply
*/ */
owners?: DomainElement[]; owners?: EntityReference[];
/** /**
* Propagate the metadata to columns via column-level lineage. * Propagate the metadata to columns via column-level lineage.
*/ */
@ -2021,7 +2023,7 @@ export interface GCPCredentialsConfiguration {
/** /**
* Google Cloud Platform account type. * Google Cloud Platform account type.
*/ */
type?: string; type?: TypeEnum;
/** /**
* Path of the file containing the GCP credentials info * Path of the file containing the GCP credentials info
*/ */
@ -2039,7 +2041,7 @@ export interface GCPCredentialsConfiguration {
/** /**
* Google Cloud Platform account type. * Google Cloud Platform account type.
*/ */
externalType?: string; externalType?: ExternalTypeEnum;
/** /**
* Google Security Token Service subject token type based on the OAuth 2.0 token exchange * Google Security Token Service subject token type based on the OAuth 2.0 token exchange
* spec. * spec.
@ -2052,6 +2054,16 @@ export interface GCPCredentialsConfiguration {
[property: string]: any; [property: string]: any;
} }
export enum ExternalTypeEnum {
ExternalAccount = "external_account",
}
export enum TypeEnum {
ExternalAccount = "external_account",
GcpCredentialPath = "gcp_credential_path",
ServiceAccount = "service_account",
}
/** /**
* we enable the authenticated service account to impersonate another service account * we enable the authenticated service account to impersonate another service account
* *
@ -2153,11 +2165,11 @@ export interface ReverseIngestionConfig {
/** /**
* Added owners to be applied * Added owners to be applied
*/ */
addedOwners?: DomainElement[]; addedOwners?: EntityReference[];
/** /**
* Removed owners from the entity * Removed owners from the entity
*/ */
removedOwners?: DomainElement[]; removedOwners?: EntityReference[];
/** /**
* Added tags to be applied * Added tags to be applied
*/ */
@ -2193,57 +2205,6 @@ export enum SamplingMethodType {
System = "SYSTEM", System = "SYSTEM",
} }
/**
* Service to be modified
*
* This schema defines the EntityReference type used for referencing an entity.
* EntityReference is used for capturing relationships from one entity to another. For
* example, a table has an attribute called database of type EntityReference that captures
* the relationship of a table `belongs to a` database.
*/
export interface ConfigService {
/**
* If true the entity referred to has been soft-deleted.
*/
deleted?: boolean;
/**
* Optional description of entity.
*/
description?: string;
/**
* Display Name that identifies this entity.
*/
displayName?: string;
/**
* Fully qualified name of the entity instance. For entities such as tables, databases
* fullyQualifiedName is returned in this field. For entities that don't have name hierarchy
* such as `user` and `team` this will be same as the `name` field.
*/
fullyQualifiedName?: string;
/**
* Link to the entity resource.
*/
href?: string;
/**
* Unique identifier that identifies an entity instance.
*/
id: string;
/**
* If true the relationship indicated by this entity reference is inherited from the parent
* entity.
*/
inherited?: boolean;
/**
* Name of the entity instance.
*/
name?: string;
/**
* Entity type/class name - Examples: `database`, `table`, `metrics`, `databaseService`,
* `dashboardService`...
*/
type: string;
}
/** /**
* Service connections available for the logical test suite. * Service connections available for the logical test suite.
*/ */

View File

@ -305,7 +305,7 @@ export interface GCPCredentialsConfiguration {
/** /**
* Google Cloud Platform account type. * Google Cloud Platform account type.
*/ */
type?: string; type?: TypeEnum;
/** /**
* Path of the file containing the GCP credentials info * Path of the file containing the GCP credentials info
*/ */
@ -323,7 +323,7 @@ export interface GCPCredentialsConfiguration {
/** /**
* Google Cloud Platform account type. * Google Cloud Platform account type.
*/ */
externalType?: string; externalType?: ExternalTypeEnum;
/** /**
* Google Security Token Service subject token type based on the OAuth 2.0 token exchange * Google Security Token Service subject token type based on the OAuth 2.0 token exchange
* spec. * spec.
@ -336,6 +336,16 @@ export interface GCPCredentialsConfiguration {
[property: string]: any; [property: string]: any;
} }
export enum ExternalTypeEnum {
ExternalAccount = "external_account",
}
export enum TypeEnum {
ExternalAccount = "external_account",
GcpCredentialPath = "gcp_credential_path",
ServiceAccount = "service_account",
}
/** /**
* we enable the authenticated service account to impersonate another service account * we enable the authenticated service account to impersonate another service account
* *

View File

@ -325,7 +325,7 @@ export interface GCPCredentialsConfiguration {
/** /**
* Google Cloud Platform account type. * Google Cloud Platform account type.
*/ */
type?: string; type?: TypeEnum;
/** /**
* Path of the file containing the GCP credentials info * Path of the file containing the GCP credentials info
*/ */
@ -343,7 +343,7 @@ export interface GCPCredentialsConfiguration {
/** /**
* Google Cloud Platform account type. * Google Cloud Platform account type.
*/ */
externalType?: string; externalType?: ExternalTypeEnum;
/** /**
* Google Security Token Service subject token type based on the OAuth 2.0 token exchange * Google Security Token Service subject token type based on the OAuth 2.0 token exchange
* spec. * spec.
@ -356,6 +356,16 @@ export interface GCPCredentialsConfiguration {
[property: string]: any; [property: string]: any;
} }
export enum ExternalTypeEnum {
ExternalAccount = "external_account",
}
export enum TypeEnum {
ExternalAccount = "external_account",
GcpCredentialPath = "gcp_credential_path",
ServiceAccount = "service_account",
}
/** /**
* we enable the authenticated service account to impersonate another service account * we enable the authenticated service account to impersonate another service account
* *

View File

@ -323,7 +323,7 @@ export interface GCPCredentialsConfiguration {
/** /**
* Google Cloud Platform account type. * Google Cloud Platform account type.
*/ */
type?: string; type?: GCPCredentialsConfigurationType;
/** /**
* Path of the file containing the GCP credentials info * Path of the file containing the GCP credentials info
*/ */
@ -341,7 +341,7 @@ export interface GCPCredentialsConfiguration {
/** /**
* Google Cloud Platform account type. * Google Cloud Platform account type.
*/ */
externalType?: string; externalType?: ExternalTypeEnum;
/** /**
* Google Security Token Service subject token type based on the OAuth 2.0 token exchange * Google Security Token Service subject token type based on the OAuth 2.0 token exchange
* spec. * spec.
@ -354,6 +354,16 @@ export interface GCPCredentialsConfiguration {
[property: string]: any; [property: string]: any;
} }
export enum ExternalTypeEnum {
ExternalAccount = "external_account",
}
export enum GCPCredentialsConfigurationType {
ExternalAccount = "external_account",
GcpCredentialPath = "gcp_credential_path",
ServiceAccount = "service_account",
}
/** /**
* we enable the authenticated service account to impersonate another service account * we enable the authenticated service account to impersonate another service account
* *

View File

@ -112,7 +112,7 @@ export interface GCPCredentialsConfiguration {
/** /**
* Google Cloud Platform account type. * Google Cloud Platform account type.
*/ */
type?: string; type?: TypeEnum;
/** /**
* Path of the file containing the GCP credentials info * Path of the file containing the GCP credentials info
*/ */
@ -130,7 +130,7 @@ export interface GCPCredentialsConfiguration {
/** /**
* Google Cloud Platform account type. * Google Cloud Platform account type.
*/ */
externalType?: string; externalType?: ExternalTypeEnum;
/** /**
* Google Security Token Service subject token type based on the OAuth 2.0 token exchange * Google Security Token Service subject token type based on the OAuth 2.0 token exchange
* spec. * spec.
@ -143,6 +143,16 @@ export interface GCPCredentialsConfiguration {
[property: string]: any; [property: string]: any;
} }
export enum ExternalTypeEnum {
ExternalAccount = "external_account",
}
export enum TypeEnum {
ExternalAccount = "external_account",
GcpCredentialPath = "gcp_credential_path",
ServiceAccount = "service_account",
}
/** /**
* we enable the authenticated service account to impersonate another service account * we enable the authenticated service account to impersonate another service account
* *

View File

@ -21,7 +21,7 @@ export interface ReverseIngestionPipeline {
/** /**
* Service to be modified * Service to be modified
*/ */
service: ServiceClass; service: EntityReference;
/** /**
* Pipeline type * Pipeline type
*/ */
@ -76,11 +76,11 @@ export interface ReverseIngestionConfig {
/** /**
* Added owners to be applied * Added owners to be applied
*/ */
addedOwners?: AddedOwnerElement[]; addedOwners?: EntityReference[];
/** /**
* Removed owners from the entity * Removed owners from the entity
*/ */
removedOwners?: AddedOwnerElement[]; removedOwners?: EntityReference[];
/** /**
* Added tags to be applied * Added tags to be applied
*/ */
@ -103,8 +103,10 @@ export interface ReverseIngestionConfig {
* EntityReference is used for capturing relationships from one entity to another. For * EntityReference is used for capturing relationships from one entity to another. For
* example, a table has an attribute called database of type EntityReference that captures * example, a table has an attribute called database of type EntityReference that captures
* the relationship of a table `belongs to a` database. * the relationship of a table `belongs to a` database.
*
* Service to be modified
*/ */
export interface AddedOwnerElement { export interface EntityReference {
/** /**
* If true the entity referred to has been soft-deleted. * If true the entity referred to has been soft-deleted.
*/ */
@ -243,57 +245,6 @@ export enum Type {
UpdateTags = "UPDATE_TAGS", UpdateTags = "UPDATE_TAGS",
} }
/**
* Service to be modified
*
* This schema defines the EntityReference type used for referencing an entity.
* EntityReference is used for capturing relationships from one entity to another. For
* example, a table has an attribute called database of type EntityReference that captures
* the relationship of a table `belongs to a` database.
*/
export interface ServiceClass {
/**
* If true the entity referred to has been soft-deleted.
*/
deleted?: boolean;
/**
* Optional description of entity.
*/
description?: string;
/**
* Display Name that identifies this entity.
*/
displayName?: string;
/**
* Fully qualified name of the entity instance. For entities such as tables, databases
* fullyQualifiedName is returned in this field. For entities that don't have name hierarchy
* such as `user` and `team` this will be same as the `name` field.
*/
fullyQualifiedName?: string;
/**
* Link to the entity resource.
*/
href?: string;
/**
* Unique identifier that identifies an entity instance.
*/
id: string;
/**
* If true the relationship indicated by this entity reference is inherited from the parent
* entity.
*/
inherited?: boolean;
/**
* Name of the entity instance.
*/
name?: string;
/**
* Entity type/class name - Examples: `database`, `table`, `metrics`, `databaseService`,
* `dashboardService`...
*/
type: string;
}
/** /**
* Pipeline type * Pipeline type
* *

View File

@ -98,7 +98,7 @@ export interface GCPCredentialsConfiguration {
/** /**
* Google Cloud Platform account type. * Google Cloud Platform account type.
*/ */
type?: string; type?: TypeEnum;
/** /**
* Path of the file containing the GCP credentials info * Path of the file containing the GCP credentials info
*/ */
@ -116,7 +116,7 @@ export interface GCPCredentialsConfiguration {
/** /**
* Google Cloud Platform account type. * Google Cloud Platform account type.
*/ */
externalType?: string; externalType?: ExternalTypeEnum;
/** /**
* Google Security Token Service subject token type based on the OAuth 2.0 token exchange * Google Security Token Service subject token type based on the OAuth 2.0 token exchange
* spec. * spec.
@ -129,6 +129,16 @@ export interface GCPCredentialsConfiguration {
[property: string]: any; [property: string]: any;
} }
export enum ExternalTypeEnum {
ExternalAccount = "external_account",
}
export enum TypeEnum {
ExternalAccount = "external_account",
GcpCredentialPath = "gcp_credential_path",
ServiceAccount = "service_account",
}
/** /**
* we enable the authenticated service account to impersonate another service account * we enable the authenticated service account to impersonate another service account
* *

View File

@ -234,7 +234,7 @@ export interface GCPCredentialsConfiguration {
/** /**
* Google Cloud Platform account type. * Google Cloud Platform account type.
*/ */
type?: string; type?: TypeEnum;
/** /**
* Path of the file containing the GCP credentials info * Path of the file containing the GCP credentials info
*/ */
@ -252,7 +252,7 @@ export interface GCPCredentialsConfiguration {
/** /**
* Google Cloud Platform account type. * Google Cloud Platform account type.
*/ */
externalType?: string; externalType?: ExternalTypeEnum;
/** /**
* Google Security Token Service subject token type based on the OAuth 2.0 token exchange * Google Security Token Service subject token type based on the OAuth 2.0 token exchange
* spec. * spec.
@ -265,6 +265,16 @@ export interface GCPCredentialsConfiguration {
[property: string]: any; [property: string]: any;
} }
export enum ExternalTypeEnum {
ExternalAccount = "external_account",
}
export enum TypeEnum {
ExternalAccount = "external_account",
GcpCredentialPath = "gcp_credential_path",
ServiceAccount = "service_account",
}
/** /**
* we enable the authenticated service account to impersonate another service account * we enable the authenticated service account to impersonate another service account
* *

View File

@ -2386,7 +2386,7 @@ export interface GCPCredentialsConfiguration {
/** /**
* Google Cloud Platform account type. * Google Cloud Platform account type.
*/ */
type?: string; type?: TypeEnum;
/** /**
* Path of the file containing the GCP credentials info * Path of the file containing the GCP credentials info
*/ */
@ -2404,7 +2404,7 @@ export interface GCPCredentialsConfiguration {
/** /**
* Google Cloud Platform account type. * Google Cloud Platform account type.
*/ */
externalType?: string; externalType?: ExternalTypeEnum;
/** /**
* Google Security Token Service subject token type based on the OAuth 2.0 token exchange * Google Security Token Service subject token type based on the OAuth 2.0 token exchange
* spec. * spec.
@ -2417,6 +2417,16 @@ export interface GCPCredentialsConfiguration {
[property: string]: any; [property: string]: any;
} }
export enum ExternalTypeEnum {
ExternalAccount = "external_account",
}
export enum TypeEnum {
ExternalAccount = "external_account",
GcpCredentialPath = "gcp_credential_path",
ServiceAccount = "service_account",
}
/** /**
* we enable the authenticated service account to impersonate another service account * we enable the authenticated service account to impersonate another service account
* *

View File

@ -2422,7 +2422,7 @@ export interface GCPCredentialsConfiguration {
/** /**
* Google Cloud Platform account type. * Google Cloud Platform account type.
*/ */
type?: string; type?: TypeEnum;
/** /**
* Path of the file containing the GCP credentials info * Path of the file containing the GCP credentials info
*/ */
@ -2440,7 +2440,7 @@ export interface GCPCredentialsConfiguration {
/** /**
* Google Cloud Platform account type. * Google Cloud Platform account type.
*/ */
externalType?: string; externalType?: ExternalTypeEnum;
/** /**
* Google Security Token Service subject token type based on the OAuth 2.0 token exchange * Google Security Token Service subject token type based on the OAuth 2.0 token exchange
* spec. * spec.
@ -2453,6 +2453,16 @@ export interface GCPCredentialsConfiguration {
[property: string]: any; [property: string]: any;
} }
export enum ExternalTypeEnum {
ExternalAccount = "external_account",
}
export enum TypeEnum {
ExternalAccount = "external_account",
GcpCredentialPath = "gcp_credential_path",
ServiceAccount = "service_account",
}
/** /**
* we enable the authenticated service account to impersonate another service account * we enable the authenticated service account to impersonate another service account
* *
@ -3995,7 +4005,7 @@ export interface Pipeline {
/** /**
* Service to be modified * Service to be modified
*/ */
service?: ServiceClass; service?: EntityReference;
} }
/** /**
@ -4246,7 +4256,7 @@ export interface Action {
/** /**
* Domain to apply * Domain to apply
*/ */
domain?: DomainElement; domain?: EntityReference;
/** /**
* Description to apply * Description to apply
*/ */
@ -4264,7 +4274,7 @@ export interface Action {
/** /**
* Owners to apply * Owners to apply
*/ */
owners?: DomainElement[]; owners?: EntityReference[];
/** /**
* Propagate the metadata to columns via column-level lineage. * Propagate the metadata to columns via column-level lineage.
*/ */
@ -4309,8 +4319,10 @@ export interface Action {
* EntityReference is used for capturing relationships from one entity to another. For * EntityReference is used for capturing relationships from one entity to another. For
* example, a table has an attribute called database of type EntityReference that captures * example, a table has an attribute called database of type EntityReference that captures
* the relationship of a table `belongs to a` database. * the relationship of a table `belongs to a` database.
*
* Service to be modified
*/ */
export interface DomainElement { export interface EntityReference {
/** /**
* If true the entity referred to has been soft-deleted. * If true the entity referred to has been soft-deleted.
*/ */
@ -4860,11 +4872,11 @@ export interface ReverseIngestionConfig {
/** /**
* Added owners to be applied * Added owners to be applied
*/ */
addedOwners?: DomainElement[]; addedOwners?: EntityReference[];
/** /**
* Removed owners from the entity * Removed owners from the entity
*/ */
removedOwners?: DomainElement[]; removedOwners?: EntityReference[];
/** /**
* Added tags to be applied * Added tags to be applied
*/ */
@ -4900,57 +4912,6 @@ export enum SamplingMethodType {
System = "SYSTEM", System = "SYSTEM",
} }
/**
* Service to be modified
*
* This schema defines the EntityReference type used for referencing an entity.
* EntityReference is used for capturing relationships from one entity to another. For
* example, a table has an attribute called database of type EntityReference that captures
* the relationship of a table `belongs to a` database.
*/
export interface ServiceClass {
/**
* If true the entity referred to has been soft-deleted.
*/
deleted?: boolean;
/**
* Optional description of entity.
*/
description?: string;
/**
* Display Name that identifies this entity.
*/
displayName?: string;
/**
* Fully qualified name of the entity instance. For entities such as tables, databases
* fullyQualifiedName is returned in this field. For entities that don't have name hierarchy
* such as `user` and `team` this will be same as the `name` field.
*/
fullyQualifiedName?: string;
/**
* Link to the entity resource.
*/
href?: string;
/**
* Unique identifier that identifies an entity instance.
*/
id: string;
/**
* If true the relationship indicated by this entity reference is inherited from the parent
* entity.
*/
inherited?: boolean;
/**
* Name of the entity instance.
*/
name?: string;
/**
* Entity type/class name - Examples: `database`, `table`, `metrics`, `databaseService`,
* `dashboardService`...
*/
type: string;
}
/** /**
* Service connections available for the logical test suite. * Service connections available for the logical test suite.
*/ */

View File

@ -75,7 +75,7 @@ export interface GCPCredentialsConfiguration {
/** /**
* Google Cloud Platform account type. * Google Cloud Platform account type.
*/ */
type?: string; type?: TypeEnum;
/** /**
* Path of the file containing the GCP credentials info * Path of the file containing the GCP credentials info
*/ */
@ -93,7 +93,7 @@ export interface GCPCredentialsConfiguration {
/** /**
* Google Cloud Platform account type. * Google Cloud Platform account type.
*/ */
externalType?: string; externalType?: ExternalTypeEnum;
/** /**
* Google Security Token Service subject token type based on the OAuth 2.0 token exchange * Google Security Token Service subject token type based on the OAuth 2.0 token exchange
* spec. * spec.
@ -106,6 +106,16 @@ export interface GCPCredentialsConfiguration {
[property: string]: any; [property: string]: any;
} }
export enum ExternalTypeEnum {
ExternalAccount = "external_account",
}
export enum TypeEnum {
ExternalAccount = "external_account",
GcpCredentialPath = "gcp_credential_path",
ServiceAccount = "service_account",
}
/** /**
* we enable the authenticated service account to impersonate another service account * we enable the authenticated service account to impersonate another service account
* *

View File

@ -27,7 +27,7 @@ export interface GcpExternalAccount {
/** /**
* Google Cloud Platform account type. * Google Cloud Platform account type.
*/ */
externalType?: string; externalType?: CredentialsType;
/** /**
* Google Security Token Service subject token type based on the OAuth 2.0 token exchange * Google Security Token Service subject token type based on the OAuth 2.0 token exchange
* spec. * spec.
@ -40,5 +40,9 @@ export interface GcpExternalAccount {
/** /**
* Google Cloud Platform account type. * Google Cloud Platform account type.
*/ */
type?: string; type?: CredentialsType;
}
export enum CredentialsType {
ExternalAccount = "external_account",
} }

View File

@ -53,5 +53,9 @@ export interface GcpValues {
/** /**
* Google Cloud Platform account type. * Google Cloud Platform account type.
*/ */
type?: string; type?: CredentialsType;
}
export enum CredentialsType {
ServiceAccount = "service_account",
} }

View File

@ -14,6 +14,7 @@
import { import {
DashboardService, DashboardService,
DashboardServiceType, DashboardServiceType,
TypeEnum,
} from '../generated/entity/services/dashboardService'; } from '../generated/entity/services/dashboardService';
import { import {
ConfigScheme, ConfigScheme,
@ -79,7 +80,7 @@ export const MOCK_DATABASE_SERVICE: DatabaseService = {
hostPort: 'localhost:1234', hostPort: 'localhost:1234',
credentials: { credentials: {
gcpConfig: { gcpConfig: {
type: 'service_account', type: TypeEnum.ServiceAccount,
projectId: ['projectID'], projectId: ['projectID'],
privateKeyId: 'privateKeyId', privateKeyId: 'privateKeyId',
privateKey: '*********', privateKey: '*********',