From 186938c065840b8a60e091e9a57f5b2c306e7e88 Mon Sep 17 00:00:00 2001 From: Jonathan Perchoc Date: Fri, 10 Jan 2025 14:42:54 +0100 Subject: [PATCH] feat(pci-databases-analytics): update typings for databases api ref: DATATR-1866 Signed-off-by: Jonathan Perchoc --- .../availabilitiesMock/availabilities.ts | 77 +++++++++++++++++++ .../mocks/availabilitiesMock/capabilities.ts | 12 +++ .../src/__tests__/helpers/mocks/services.ts | 4 +- .../src/data/api/database/namespace.api.ts | 4 +- .../src/data/api/database/service.api.ts | 1 - .../fork/_components/ForkForm.component.tsx | 6 +- .../databases/add/AddDatabase.spec.tsx | 2 + .../services/[serviceId]/logs/Logs.spec.tsx | 1 - .../AddEditNamespace.component.tsx | 4 +- .../pools/_components/AddEditPool.spec.tsx | 14 ++-- .../IpRestrictionsUpdate.component.tsx | 2 +- .../update/_components/useUpdateTree.tsx | 2 +- .../_components/OrderFunnel.component.tsx | 2 +- .../cloud/project/database/Availability.ts | 66 ++++++++-------- .../types/cloud/project/database/Backup.ts | 16 ++-- .../cloud/project/database/Capabilities.ts | 12 +-- .../cloud/project/database/IpRestriction.ts | 6 +- .../project/database/IpRestrictionCreation.ts | 2 +- .../types/cloud/project/database/Service.ts | 32 ++++---- .../cloud/project/database/ServiceCreation.ts | 12 +-- .../database/ServiceWithoutPrometheus.ts | 62 +++++++++++++++ .../database/TemporaryWriteDeadline.ts | 2 +- .../project/database/availability/Backups.ts | 2 +- .../database/availability/Lifecycle.ts | 4 +- .../database/availability/Specifications.ts | 6 +- .../availability/specifications/Nodes.ts | 4 +- .../availability/specifications/Storage.ts | 4 +- .../cloud/project/database/backup/Region.ts | 2 +- .../project/database/capabilities/Engine.ts | 14 ++-- .../project/database/capabilities/Flavor.ts | 22 +++--- .../database/capabilities/Integration.ts | 6 +- .../project/database/capabilities/Option.ts | 4 +- .../project/database/capabilities/Plan.ts | 12 +-- .../advancedConfiguration/Property.ts | 6 +- .../capabilities/flavor/Specifications.ts | 6 +- .../capabilities/integration/Parameter.ts | 4 +- .../src/types/cloud/project/database/index.ts | 3 + .../project/database/kafka/Permissions.ts | 8 +- .../database/kafka/SchemaRegistryAcl.ts | 2 +- .../cloud/project/database/kafka/Service.ts | 29 ++++--- .../cloud/project/database/kafka/Topic.ts | 4 +- .../cloud/project/database/kafka/TopicAcl.ts | 2 +- .../project/database/kafka/TopicCreation.ts | 2 +- .../project/database/kafka/user/Access.ts | 4 +- .../database/kafkaConnect/Connector.ts | 8 +- .../kafkaConnect/capabilities/Connector.ts | 16 ++-- .../capabilities/connector/Transform.ts | 12 +-- .../connector/configuration/Property.ts | 14 ++-- .../database/kafkaConnect/connector/Task.ts | 6 +- .../cloud/project/database/m3db/Namespace.ts | 12 +-- .../database/m3db/NamespaceCreation.ts | 6 +- .../types/cloud/project/database/m3db/User.ts | 8 +- .../project/database/m3db/UserWithPassword.ts | 12 +-- .../database/m3db/namespace/Retention.ts | 10 +-- .../m3db/namespace/RetentionCreation.ts | 2 +- .../database/mongodb/PrometheusEndpoint.ts | 7 ++ .../cloud/project/database/mongodb/index.ts | 1 + .../project/database/mysql/QueryStatistics.ts | 2 +- .../database/mysql/querystatistics/Query.ts | 70 ++++++++--------- .../database/opensearch/Index.interface.ts | 17 ++++ .../project/database/opensearch/Pattern.ts | 2 +- .../database/opensearch/Permissions.ts | 2 +- .../project/database/opensearch/Service.ts | 30 ++++---- .../cloud/project/database/opensearch/User.ts | 8 +- .../database/opensearch/UserWithPassword.ts | 12 +-- .../project/database/opensearch/index.ts | 18 +---- .../database/postgresql/ConnectionPool.ts | 8 +- .../postgresql/ConnectionPoolCreation.ts | 2 +- .../database/postgresql/QueryStatistics.ts | 2 +- .../postgresql/querystatistics/Query.ts | 60 +++++++-------- .../cloud/project/database/redis/User.ts | 8 +- .../database/redis/UserWithPassword.ts | 18 ++--- .../database/service/CapabilityEnum.ts | 5 ++ .../project/database/service/Certificates.ts | 2 +- .../database/service/CurrentQueries.ts | 2 +- .../project/database/service/DataPoint.ts | 4 +- .../project/database/service/Database.ts | 4 +- .../cloud/project/database/service/Disk.ts | 2 +- .../project/database/service/Endpoint.ts | 6 +- .../project/database/service/HostMetric.ts | 4 +- .../project/database/service/Integration.ts | 4 +- .../project/database/service/IpRestriction.ts | 2 +- .../project/database/service/LogEntry.ts | 6 +- .../project/database/service/Maintenance.ts | 6 +- .../cloud/project/database/service/Metric.ts | 6 +- .../cloud/project/database/service/Node.ts | 16 ++-- .../project/database/service/NodeCreation.ts | 12 +-- .../database/service/PrometheusAccess.ts | 7 ++ .../database/service/PrometheusEndpoint.ts | 9 +++ .../project/database/service/Replication.ts | 6 +- .../cloud/project/database/service/Storage.ts | 2 +- .../cloud/project/database/service/User.ts | 8 +- .../database/service/UserWithPassword.ts | 10 +-- .../service/UserWithPasswordAndRoles.ts | 8 +- .../project/database/service/UserWithRoles.ts | 8 +- .../database/service/creation/BackupFork.ts | 2 +- .../database/service/creation/ForkFrom.ts | 4 +- .../database/service/currentqueries/Query.ts | 14 ++-- .../currentqueries/query/CancelResponse.ts | 2 +- .../cloud/project/database/service/index.ts | 4 + .../database/service/prometheus/Target.ts | 7 ++ .../database/service/prometheus/index.ts | 1 + .../service/replication/PolicyClassEnum.ts | 4 +- 103 files changed, 621 insertions(+), 420 deletions(-) create mode 100644 packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/ServiceWithoutPrometheus.ts create mode 100644 packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/mongodb/PrometheusEndpoint.ts create mode 100644 packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/mongodb/index.ts create mode 100644 packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/opensearch/Index.interface.ts create mode 100644 packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/PrometheusAccess.ts create mode 100644 packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/PrometheusEndpoint.ts create mode 100644 packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/prometheus/Target.ts create mode 100644 packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/prometheus/index.ts diff --git a/packages/manager/apps/pci-databases-analytics/src/__tests__/helpers/mocks/availabilitiesMock/availabilities.ts b/packages/manager/apps/pci-databases-analytics/src/__tests__/helpers/mocks/availabilitiesMock/availabilities.ts index 866c84b543c6..f1835d3f9fb0 100644 --- a/packages/manager/apps/pci-databases-analytics/src/__tests__/helpers/mocks/availabilitiesMock/availabilities.ts +++ b/packages/manager/apps/pci-databases-analytics/src/__tests__/helpers/mocks/availabilitiesMock/availabilities.ts @@ -29,6 +29,17 @@ const mongo: database.Availability[] = [ lifecycle: mockedLifecycle, region: 'GRA', default: false, + backup: database.BackupTypeEnum.automatic, + backupRetentionDays: 0, + flavor: '', + maxDiskSize: 0, + maxNodeNumber: 0, + minDiskSize: 0, + minNodeNumber: 0, + network: database.NetworkTypeEnum.public, + startDate: '', + status: database.availability.StatusEnum.STABLE, + stepDiskSize: 0, }, { engine: 'mongodb', @@ -55,6 +66,17 @@ const mongo: database.Availability[] = [ lifecycle: mockedLifecycle, region: 'GRA', default: false, + backup: database.BackupTypeEnum.automatic, + backupRetentionDays: 0, + flavor: '', + maxDiskSize: 0, + maxNodeNumber: 0, + minDiskSize: 0, + minNodeNumber: 0, + network: database.NetworkTypeEnum.public, + startDate: '', + status: database.availability.StatusEnum.STABLE, + stepDiskSize: 0, }, { engine: 'mongodb', @@ -81,6 +103,17 @@ const mongo: database.Availability[] = [ lifecycle: mockedLifecycle, region: 'GRA', default: false, + backup: database.BackupTypeEnum.automatic, + backupRetentionDays: 0, + flavor: '', + maxDiskSize: 0, + maxNodeNumber: 0, + minDiskSize: 0, + minNodeNumber: 0, + network: database.NetworkTypeEnum.public, + startDate: '', + status: database.availability.StatusEnum.STABLE, + stepDiskSize: 0, }, { engine: 'mongodb', @@ -107,6 +140,17 @@ const mongo: database.Availability[] = [ lifecycle: mockedLifecycle, region: 'GRA', default: false, + backup: database.BackupTypeEnum.automatic, + backupRetentionDays: 0, + flavor: '', + maxDiskSize: 0, + maxNodeNumber: 0, + minDiskSize: 0, + minNodeNumber: 0, + network: database.NetworkTypeEnum.public, + startDate: '', + status: database.availability.StatusEnum.STABLE, + stepDiskSize: 0, }, ]; @@ -136,6 +180,17 @@ const pg: database.Availability[] = [ lifecycle: mockedLifecycle, region: 'GRA', default: false, + backup: database.BackupTypeEnum.automatic, + backupRetentionDays: 0, + flavor: '', + maxDiskSize: 0, + maxNodeNumber: 0, + minDiskSize: 0, + minNodeNumber: 0, + network: database.NetworkTypeEnum.public, + startDate: '', + status: database.availability.StatusEnum.STABLE, + stepDiskSize: 0, }, { engine: 'postgresql', @@ -162,6 +217,17 @@ const pg: database.Availability[] = [ lifecycle: mockedLifecycle, region: 'GRA', default: false, + backup: database.BackupTypeEnum.automatic, + backupRetentionDays: 0, + flavor: '', + maxDiskSize: 0, + maxNodeNumber: 0, + minDiskSize: 0, + minNodeNumber: 0, + network: database.NetworkTypeEnum.public, + startDate: '', + status: database.availability.StatusEnum.STABLE, + stepDiskSize: 0, }, ]; @@ -186,6 +252,17 @@ const grafana = [ lifecycle: mockedLifecycle, region: 'GRA', default: false, + backup: database.BackupTypeEnum.automatic, + backupRetentionDays: 0, + flavor: '', + maxDiskSize: 0, + maxNodeNumber: 0, + minDiskSize: 0, + minNodeNumber: 0, + network: database.NetworkTypeEnum.public, + startDate: '', + status: database.availability.StatusEnum.STABLE, + stepDiskSize: 0, }, ]; diff --git a/packages/manager/apps/pci-databases-analytics/src/__tests__/helpers/mocks/availabilitiesMock/capabilities.ts b/packages/manager/apps/pci-databases-analytics/src/__tests__/helpers/mocks/availabilitiesMock/capabilities.ts index ad672cdfd52d..425069b10ddb 100644 --- a/packages/manager/apps/pci-databases-analytics/src/__tests__/helpers/mocks/availabilitiesMock/capabilities.ts +++ b/packages/manager/apps/pci-databases-analytics/src/__tests__/helpers/mocks/availabilitiesMock/capabilities.ts @@ -59,6 +59,9 @@ export const mockedCapabilities: FullCapabilities = { memory: { value: 0, unit: 'GB' }, storage: { value: 512, unit: 'MB' }, }, + core: 0, + memory: 0, + storage: 0, }, { name: 'db1', @@ -70,6 +73,9 @@ export const mockedCapabilities: FullCapabilities = { memory: { value: 16, unit: 'GB' }, storage: { value: 20, unit: 'GB' }, }, + core: 0, + memory: 0, + storage: 0, }, { name: 'db2', @@ -81,6 +87,9 @@ export const mockedCapabilities: FullCapabilities = { memory: { value: 32, unit: 'GB' }, storage: { value: 40, unit: 'GB' }, }, + core: 0, + memory: 0, + storage: 0, }, { name: 'db3', @@ -92,6 +101,9 @@ export const mockedCapabilities: FullCapabilities = { memory: { value: 64, unit: 'GB' }, storage: { value: 40, unit: 'GB' }, }, + core: 0, + memory: 0, + storage: 0, }, ], options: [ diff --git a/packages/manager/apps/pci-databases-analytics/src/__tests__/helpers/mocks/services.ts b/packages/manager/apps/pci-databases-analytics/src/__tests__/helpers/mocks/services.ts index 236a1b1d9239..da3a519a626e 100644 --- a/packages/manager/apps/pci-databases-analytics/src/__tests__/helpers/mocks/services.ts +++ b/packages/manager/apps/pci-databases-analytics/src/__tests__/helpers/mocks/services.ts @@ -75,7 +75,6 @@ export const mockedService: database.Service = { nodeNumber: 2, nodes: [mockedNode], plan: 'plan', - region: 'region', status: database.StatusEnum.CREATING, storage: { size: { @@ -161,7 +160,6 @@ export const mockedServiceInte: database.Service = { nodeNumber: 2, nodes: [mockedNode], plan: 'plan', - region: 'region', status: database.StatusEnum.CREATING, storage: { size: { @@ -193,6 +191,7 @@ export const mockedServiceCreation: database.ServiceCreation = { plan: 'plan', subnetId: 'subnetId', version: 'version', + disk: undefined, }; export const mockedServiceCreationWithEngine: ServiceCreationWithEngine = { @@ -247,7 +246,6 @@ export const mockedServiceInteBase: database.Service = { nodeNumber: 2, nodes: [mockedNode], plan: 'plan', - region: 'region', status: database.StatusEnum.READY, storage: { size: { diff --git a/packages/manager/apps/pci-databases-analytics/src/data/api/database/namespace.api.ts b/packages/manager/apps/pci-databases-analytics/src/data/api/database/namespace.api.ts index 3d2fc6181eec..08a2666ed828 100644 --- a/packages/manager/apps/pci-databases-analytics/src/data/api/database/namespace.api.ts +++ b/packages/manager/apps/pci-databases-analytics/src/data/api/database/namespace.api.ts @@ -39,8 +39,8 @@ export const addNamespace = async ({ export type NamespaceEdition = Omit< database.m3db.NamespaceCreation, - 'name' | 'type' ->; + 'name' | 'type' | 'resolution' +> & { resolution?: string }; export interface EditNamespace extends ServiceData { namespace: NamespaceEdition; } diff --git a/packages/manager/apps/pci-databases-analytics/src/data/api/database/service.api.ts b/packages/manager/apps/pci-databases-analytics/src/data/api/database/service.api.ts index 1d9fd753b446..b673491ba7d2 100644 --- a/packages/manager/apps/pci-databases-analytics/src/data/api/database/service.api.ts +++ b/packages/manager/apps/pci-databases-analytics/src/data/api/database/service.api.ts @@ -43,7 +43,6 @@ export interface EditService extends ServiceData { | 'ipRestrictions' | 'maintenanceTime' | 'plan' - | 'region' | 'storage' | 'version' > & { diff --git a/packages/manager/apps/pci-databases-analytics/src/pages/services/[serviceId]/backups/fork/_components/ForkForm.component.tsx b/packages/manager/apps/pci-databases-analytics/src/pages/services/[serviceId]/backups/fork/_components/ForkForm.component.tsx index d045fea4d9ff..41c1768edc0e 100644 --- a/packages/manager/apps/pci-databases-analytics/src/pages/services/[serviceId]/backups/fork/_components/ForkForm.component.tsx +++ b/packages/manager/apps/pci-databases-analytics/src/pages/services/[serviceId]/backups/fork/_components/ForkForm.component.tsx @@ -133,10 +133,10 @@ const ForkForm = ({ }, plan: data.plan, version: data.engineWithVersion.version, - ipRestrictions: data.ipRestrictions, + ipRestrictions: data.ipRestrictions as database.service.IpRestriction[], forkFrom: { serviceId: data.forkFrom.serviceId, - }, + } as database.service.creation.ForkFrom, }; if (data.network.type === database.NetworkTypeEnum.private) { // endpoint does not expect the network id, but the linked openstackId instead @@ -150,7 +150,7 @@ const ForkForm = ({ serviceInfos.disk = { size: model.result.flavor.storage.minimum.value + data.additionalStorage, - }; + } as database.service.Disk; } switch (data.forkFrom.type) { case ForkSourceType.now: diff --git a/packages/manager/apps/pci-databases-analytics/src/pages/services/[serviceId]/databases/add/AddDatabase.spec.tsx b/packages/manager/apps/pci-databases-analytics/src/pages/services/[serviceId]/databases/add/AddDatabase.spec.tsx index 3a40bd30eb54..28c00f657f7f 100644 --- a/packages/manager/apps/pci-databases-analytics/src/pages/services/[serviceId]/databases/add/AddDatabase.spec.tsx +++ b/packages/manager/apps/pci-databases-analytics/src/pages/services/[serviceId]/databases/add/AddDatabase.spec.tsx @@ -109,6 +109,8 @@ describe('AddDatabase Component', () => { it('should show success toast on successful database addition', async () => { vi.mocked(databaseApi.addDatabase).mockResolvedValue({ name: 'MyDatabase', + default: false, + id: '', }); render(, { wrapper: RouterWithQueryClientWrapper }); diff --git a/packages/manager/apps/pci-databases-analytics/src/pages/services/[serviceId]/logs/Logs.spec.tsx b/packages/manager/apps/pci-databases-analytics/src/pages/services/[serviceId]/logs/Logs.spec.tsx index 557833cc9bc7..a08dff7f1563 100644 --- a/packages/manager/apps/pci-databases-analytics/src/pages/services/[serviceId]/logs/Logs.spec.tsx +++ b/packages/manager/apps/pci-databases-analytics/src/pages/services/[serviceId]/logs/Logs.spec.tsx @@ -30,7 +30,6 @@ const mockService: database.Service = { nodes: [], plan: '', status: database.StatusEnum.READY, - region: '', storage: null, version: '', backups: { diff --git a/packages/manager/apps/pci-databases-analytics/src/pages/services/[serviceId]/namespaces/_components/AddEditNamespace.component.tsx b/packages/manager/apps/pci-databases-analytics/src/pages/services/[serviceId]/namespaces/_components/AddEditNamespace.component.tsx index beac1b5a5a5e..28a93f1a4ddb 100644 --- a/packages/manager/apps/pci-databases-analytics/src/pages/services/[serviceId]/namespaces/_components/AddEditNamespace.component.tsx +++ b/packages/manager/apps/pci-databases-analytics/src/pages/services/[serviceId]/namespaces/_components/AddEditNamespace.component.tsx @@ -109,7 +109,7 @@ const AddEditNamespace = ({ ); const onSubmit = form.handleSubmit((formValues) => { - const retentionFormValues: database.m3db.namespace.Retention = { + const retentionFormValues = { periodDuration: convertDurationStringToISODuration( formValues.periodDuration, ), @@ -124,7 +124,7 @@ const AddEditNamespace = ({ bufferPastDuration: formValues.bufferPastDuration ? convertDurationStringToISODuration(formValues.bufferPastDuration) : null, - }; + } as database.m3db.namespace.Retention; if (isEdition) { if (Object.entries(form.formState.dirtyFields).length === 0) { diff --git a/packages/manager/apps/pci-databases-analytics/src/pages/services/[serviceId]/pools/_components/AddEditPool.spec.tsx b/packages/manager/apps/pci-databases-analytics/src/pages/services/[serviceId]/pools/_components/AddEditPool.spec.tsx index 34166856381d..ac1e417adf27 100644 --- a/packages/manager/apps/pci-databases-analytics/src/pages/services/[serviceId]/pools/_components/AddEditPool.spec.tsx +++ b/packages/manager/apps/pci-databases-analytics/src/pages/services/[serviceId]/pools/_components/AddEditPool.spec.tsx @@ -58,7 +58,7 @@ describe('AddEditPool', () => { service={mockedService} connectionPools={[]} databases={[mockedDatabase]} - users={[mockedUser as GenericUser]} + users={[(mockedUser as unknown) as GenericUser]} />, { wrapper: RouterWithQueryClientWrapper, @@ -76,7 +76,7 @@ describe('AddEditPool', () => { service={mockedService} connectionPools={[]} databases={[mockedDatabase]} - users={[mockedUser as GenericUser]} + users={[(mockedUser as unknown) as GenericUser]} />, { wrapper: RouterWithQueryClientWrapper, @@ -99,7 +99,7 @@ describe('AddEditPool', () => { service={mockedService} connectionPools={[]} databases={[mockedDatabase]} - users={[mockedUser as GenericUser]} + users={[(mockedUser as unknown) as GenericUser]} />, { wrapper: RouterWithQueryClientWrapper, @@ -130,7 +130,7 @@ describe('AddEditPool', () => { service={mockedService} connectionPools={[mockedConnectionPool]} databases={[mockedDatabase]} - users={[mockedUser as GenericUser]} + users={[(mockedUser as unknown) as GenericUser]} />, { wrapper: RouterWithQueryClientWrapper, @@ -161,7 +161,7 @@ describe('AddEditPool', () => { service={mockedService} connectionPools={[mockedConnectionPool]} databases={[mockedDatabase]} - users={[mockedUser as GenericUser]} + users={[(mockedUser as unknown) as GenericUser]} editedConnectionPool={mockedConnectionPool} />, { @@ -196,7 +196,7 @@ describe('AddEditPool', () => { service={mockedService} connectionPools={[mockedConnectionPool]} databases={[mockedDatabase]} - users={[mockedUser as GenericUser]} + users={[(mockedUser as unknown) as GenericUser]} />, { wrapper: RouterWithQueryClientWrapper, @@ -226,7 +226,7 @@ describe('AddEditPool', () => { service={mockedService} connectionPools={[mockedConnectionPool]} databases={[mockedDatabase]} - users={[mockedUser as GenericUser]} + users={[(mockedUser as unknown) as GenericUser]} />, { wrapper: RouterWithQueryClientWrapper, diff --git a/packages/manager/apps/pci-databases-analytics/src/pages/services/[serviceId]/settings/_components/IpRestrictionsUpdate.component.tsx b/packages/manager/apps/pci-databases-analytics/src/pages/services/[serviceId]/settings/_components/IpRestrictionsUpdate.component.tsx index cf1fcb5965a2..2ea973e1a785 100644 --- a/packages/manager/apps/pci-databases-analytics/src/pages/services/[serviceId]/settings/_components/IpRestrictionsUpdate.component.tsx +++ b/packages/manager/apps/pci-databases-analytics/src/pages/services/[serviceId]/settings/_components/IpRestrictionsUpdate.component.tsx @@ -68,7 +68,7 @@ const IpsRestrictionsUpdate = ({ engine: service.engine, projectId, data: { - ipRestrictions: formValues.ipRestrictions as database.IpRestrictionCreation[], + ipRestrictions: formValues.ipRestrictions as database.service.IpRestriction[], }, }); }); diff --git a/packages/manager/apps/pci-databases-analytics/src/pages/services/[serviceId]/settings/update/_components/useUpdateTree.tsx b/packages/manager/apps/pci-databases-analytics/src/pages/services/[serviceId]/settings/update/_components/useUpdateTree.tsx index 2385d7e69376..5c9cc78630f2 100644 --- a/packages/manager/apps/pci-databases-analytics/src/pages/services/[serviceId]/settings/update/_components/useUpdateTree.tsx +++ b/packages/manager/apps/pci-databases-analytics/src/pages/services/[serviceId]/settings/update/_components/useUpdateTree.tsx @@ -17,7 +17,7 @@ export function useUpdateTree(availabilities: database.Availability[]) { engine: service.engine, flavor: service.flavor, plan: service.plan, - region: service.region, + region: service.nodes[0].region, version: service.version, }, ]; diff --git a/packages/manager/apps/pci-databases-analytics/src/pages/services/create/_components/OrderFunnel.component.tsx b/packages/manager/apps/pci-databases-analytics/src/pages/services/create/_components/OrderFunnel.component.tsx index 8b55338a7627..9b53e6b17e6f 100644 --- a/packages/manager/apps/pci-databases-analytics/src/pages/services/create/_components/OrderFunnel.component.tsx +++ b/packages/manager/apps/pci-databases-analytics/src/pages/services/create/_components/OrderFunnel.component.tsx @@ -123,7 +123,7 @@ const OrderFunnel = ({ serviceInfos.disk = { size: model.result.flavor.storage.minimum.value + data.additionalStorage, - }; + } as database.service.Disk; } addService(serviceInfos); }, diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/Availability.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/Availability.ts index a1e1c1660792..496369b3513a 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/Availability.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/Availability.ts @@ -8,48 +8,48 @@ import { StatusEnum } from '@/types/cloud/project/database/availability/StatusEn /** Availability of databases engines on cloud projects */ export interface Availability { - /** Defines the type of backup. DEPRECATED: use backups.enable */ - backup?: BackupTypeEnum; - /** Backup retention time of the availability in days. DEPRECATED: use backups.retentionDays */ - backupRetentionDays?: number; + /** @deprecated Defines the type of backup. DEPRECATED: use backups.enable */ + backup: BackupTypeEnum; + /** @deprecated Backup retention time of the availability in days. DEPRECATED: use backups.retentionDays */ + backupRetentionDays: number; /** Defines backups strategy for the availability */ - backups?: Backups; + backups: Backups; /** Category of the engine */ - category?: CategoryEnum; + category: CategoryEnum; /** Whether this availability can be used by default */ - default?: boolean; - /** End of life of the product. DEPRECATED: use lifecycle.endOfLife */ + default: boolean; + /** @deprecated End of life of the product. DEPRECATED: use lifecycle.endOfLife */ endOfLife?: string; /** Database engine name */ - engine?: string; - /** Flavor name. DEPRECATED: use specifications.flavor */ - flavor?: string; + engine: string; + /** @deprecated Flavor name. DEPRECATED: use specifications.flavor */ + flavor: string; /** Defines the lifecycle of the availability */ - lifecycle?: Lifecycle; - /** Maximum possible disk size in GB. DEPRECATED: use specifications.storage.maximum */ - maxDiskSize?: number; - /** Maximum nodes of the cluster. DEPRECATED: use specifications.nodes.maximum */ - maxNodeNumber?: number; - /** Minimum possible disk size in GB. DEPRECATED: use specifications.storage.minimum */ - minDiskSize?: number; - /** Minimum nodes of the cluster. DEPRECATED: use specifications.nodes.minimum */ - minNodeNumber?: number; - /** Type of network. DEPRECATED: use specifications.network */ - network?: NetworkTypeEnum; + lifecycle: Lifecycle; + /** @deprecated Maximum possible disk size in GB. DEPRECATED: use specifications.storage.maximum */ + maxDiskSize: number; + /** @deprecated Maximum nodes of the cluster. DEPRECATED: use specifications.nodes.maximum */ + maxNodeNumber: number; + /** @deprecated Minimum possible disk size in GB. DEPRECATED: use specifications.storage.minimum */ + minDiskSize: number; + /** @deprecated Minimum nodes of the cluster. DEPRECATED: use specifications.nodes.minimum */ + minNodeNumber: number; + /** @deprecated Type of network. DEPRECATED: use specifications.network */ + network: NetworkTypeEnum; /** Plan name */ - plan?: string; + plan: string; /** Region name */ - region?: string; + region: string; /** Defines the technical specifications of the availability */ - specifications?: Specifications; - /** Date of the release of the product. DEPRECATED: use lifecycle.startDate */ - startDate?: string; - /** Status of the availability. DEPRECATED: use lifecycle.status */ - status?: StatusEnum; - /** Flex disk size step in GB. DEPRECATED: use specifications.storage.step */ - stepDiskSize?: number; - /** End of life of the upstream product. DEPRECATED: use lifecycle */ + specifications: Specifications; + /** @deprecated Date of the release of the product. DEPRECATED: use lifecycle.startDate */ + startDate: string; + /** @deprecated Status of the availability. DEPRECATED: use lifecycle.status */ + status: StatusEnum; + /** @deprecated Flex disk size step in GB. DEPRECATED: use specifications.storage.step */ + stepDiskSize: number; + /** @deprecated End of life of the upstream product. DEPRECATED: use lifecycle */ upstreamEndOfLife?: string; /** Version name */ - version?: string; + version: string; } diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/Backup.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/Backup.ts index d4047290c465..ad6342950127 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/Backup.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/Backup.ts @@ -6,19 +6,19 @@ import { BackupTypeEnum } from '@/types/cloud/project/database/BackupTypeEnum'; /** Cloud database backup definition */ export interface Backup { /** Date of the creation of the backup */ - createdAt?: string; + createdAt: string; /** Description of the backup */ description: string; /** Backup ID */ - id?: string; - /** Region where the backup is stored. DEPRECATED: use regions */ - region?: string; + id: string; + /** @deprecated Region where the backup is stored. DEPRECATED: use regions */ + region: string; /** Regions where the backup are stored */ - regions?: Region[]; + regions: Region[]; /** Size of the backup */ - size?: UnitAndValueLong; + size: UnitAndValueLong; /** Current status of the backup */ - status?: StatusEnum; + status: StatusEnum; /** Type of backup */ - type?: BackupTypeEnum; + type: BackupTypeEnum; } diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/Capabilities.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/Capabilities.ts index 664cf8e993f1..ff800435e755 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/Capabilities.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/Capabilities.ts @@ -6,15 +6,15 @@ import { Plan } from '@/types/cloud/project/database/capabilities/Plan'; /** Capabilities available for the databases engines on cloud projects */ export interface Capabilities { /** Disks available */ - disks?: string[]; + disks: string[]; /** Database engines available */ - engines?: Engine[]; + engines: Engine[]; /** Flavors available */ - flavors?: Flavor[]; + flavors: Flavor[]; /** Options available */ - options?: Option[]; + options: Option[]; /** Plans available */ - plans?: Plan[]; + plans: Plan[]; /** Regions available */ - regions?: string[]; + regions: string[]; } diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/IpRestriction.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/IpRestriction.ts index 6f660469bd3c..94b20c811180 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/IpRestriction.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/IpRestriction.ts @@ -1,12 +1,12 @@ import { IpBlock } from '@/types/IpBlock'; import { StatusEnum } from '@/types/cloud/project/database/StatusEnum'; -/** Ip Restriction definition for cloud project databases (DEPRECATED) */ +/** @deprecated Ip Restriction definition for cloud project databases (DEPRECATED) */ export interface IpRestriction { /** Description of the ip restriction */ description: string; /** Whitelisted IP */ - ip?: IpBlock; + ip: IpBlock; /** Current status of the ip restriction */ - status?: StatusEnum; + status: StatusEnum; } diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/IpRestrictionCreation.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/IpRestrictionCreation.ts index 45e69923ccbf..f58b2df1edbc 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/IpRestrictionCreation.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/IpRestrictionCreation.ts @@ -1,6 +1,6 @@ import { IpBlock } from '@/types/IpBlock'; -/** Ip Restriction creation definition for cloud project databases (DEPRECATED) */ +/** @deprecated Ip Restriction creation definition for cloud project databases (DEPRECATED) */ export interface IpRestrictionCreation { /** Description of the ip restriction */ description: string; diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/Service.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/Service.ts index 4ae8f64307db..3ad0655daa5d 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/Service.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/Service.ts @@ -13,28 +13,30 @@ import { Storage } from '@/types/cloud/project/database/service/Storage'; /** Cloud database service definition */ export interface Service { - /** Time on which backups start every day. DEPRECATED: use backups.time */ + /** @deprecated Time on which backups start every day. DEPRECATED: use backups.time */ backupTime: Time; /** Information related to the backups, null if the engine does not support backups */ - backups: Backup; + backups?: Backup; /** Capabilities of the services */ - capabilities?: { [key: string]: CapabilityActions }; + capabilities: { [key: string]: CapabilityActions }; /** Category of the engine */ - category?: CategoryEnum; + category: CategoryEnum; /** Date of the creation of the cluster */ - createdAt?: string; + createdAt: string; /** Description of the cluster */ description: string; - /** Disk attributes of the cluster. DEPRECATED: use storage */ + /** @deprecated Disk attributes of the cluster. DEPRECATED: use storage */ disk: Disk; + /** Enable Prometheus */ + enablePrometheus?: boolean; /** List of all endpoints of the service */ - endpoints?: Endpoint[]; + endpoints: Endpoint[]; /** Name of the engine of the service */ - engine?: EngineEnum; + engine: EngineEnum; /** The VM flavor used for this cluster */ flavor: string; /** Service ID */ - id?: string; + id: string; /** IP Blocks authorized to access to the cluster */ ipRestrictions: IpRestriction[]; /** Time on which maintenances can start every day */ @@ -42,19 +44,17 @@ export interface Service { /** Private network ID in which the cluster is */ networkId?: string; /** Type of network of the cluster */ - networkType?: NetworkTypeEnum; - /** Number of nodes in the cluster. DEPRECATED: use nodes */ + networkType: NetworkTypeEnum; + /** @deprecated Number of nodes in the cluster. DEPRECATED: use nodes */ nodeNumber: number; /** Nodes of the cluster */ - nodes?: Node[]; + nodes: Node[]; /** Plan of the cluster */ plan: string; - /** Region of the cluster */ - region: string; /** Current status of the cluster */ - status?: StatusEnum; + status: StatusEnum; /** Storage attributes of the cluster */ - storage: Storage; + storage?: Storage; /** Private subnet ID in which the cluster is */ subnetId?: string; /** Version of the engine deployed on the cluster */ diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/ServiceCreation.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/ServiceCreation.ts index 9255bc9eddd5..0c353d647bc6 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/ServiceCreation.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/ServiceCreation.ts @@ -9,24 +9,24 @@ import { NodePattern } from '@/types/cloud/project/database/service/NodePattern' /** Cloud databases cluster definition */ export interface ServiceCreation { - /** Backup from which the new service is created. DEPRECATED: use forkFrom */ + /** @deprecated Backup from which the new service is created. DEPRECATED: use forkFrom */ backup?: BackupFork; - /** Time on which backups start every day. DEPRECATED: use backups.time */ + /** @deprecated Time on which backups start every day. DEPRECATED: use backups.time */ backupTime?: Time; /** Information related to the backups, null if the engine does not support backups */ backups?: Backup; /** Description of the cluster */ description: string; /** Disk attributes of the cluster */ - disk?: Disk; + disk: Disk; /** Backup from which the new service is created */ forkFrom?: ForkFrom; /** IP Blocks authorized to access to the cluster */ ipRestrictions: IpRestriction[]; /** Time on which maintenances can start every day */ - maintenanceTime: Time; + maintenanceTime?: Time; /** Private network ID in which the cluster is */ - networkId: string; + networkId?: string; /** List of nodes in the cluster, not compatible with nodesPattern */ nodesList?: NodeCreation[]; /** Pattern definition of the nodes in the cluster, not compatible with nodesList */ @@ -34,7 +34,7 @@ export interface ServiceCreation { /** Plan of the cluster */ plan: string; /** Private subnet ID in which the cluster is */ - subnetId: string; + subnetId?: string; /** Version of the engine deployed on the cluster */ version: string; } diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/ServiceWithoutPrometheus.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/ServiceWithoutPrometheus.ts new file mode 100644 index 000000000000..3e5088213bba --- /dev/null +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/ServiceWithoutPrometheus.ts @@ -0,0 +1,62 @@ +import { Time } from '@/types/Time'; +import { Backup } from '@/types/cloud/project/database/service/Backup'; +import { CapabilityActions } from '@/types/cloud/project/database/service/CapabilityActions'; +import { CategoryEnum } from '@/types/cloud/project/database/engine/CategoryEnum'; +import { Disk } from '@/types/cloud/project/database/service/Disk'; +import { Endpoint } from '@/types/cloud/project/database/service/Endpoint'; +import { EngineEnum } from '@/types/cloud/project/database/EngineEnum'; +import { IpRestriction } from '@/types/cloud/project/database/service/IpRestriction'; +import { NetworkTypeEnum } from '@/types/cloud/project/database/NetworkTypeEnum'; +import { Node } from '@/types/cloud/project/database/service/Node'; +import { StatusEnum } from '@/types/cloud/project/database/StatusEnum'; +import { Storage } from '@/types/cloud/project/database/service/Storage'; + +/** Cloud database service definition without prometheus enabler */ +export interface ServiceWithoutPrometheus { + /** @deprecated Time on which backups start every day. DEPRECATED: use backups.time */ + backupTime: Time; + /** Information related to the backups, null if the engine does not support backups */ + backups?: Backup; + /** Capabilities of the services */ + capabilities: { [key: string]: CapabilityActions }; + /** Category of the engine */ + category: CategoryEnum; + /** Date of the creation of the cluster */ + createdAt: string; + /** Description of the cluster */ + description: string; + /** @deprecated Disk attributes of the cluster. DEPRECATED: use storage */ + disk: Disk; + /** List of all endpoints of the service */ + endpoints: Endpoint[]; + /** Name of the engine of the service */ + engine: EngineEnum; + /** The VM flavor used for this cluster */ + flavor: string; + /** Service ID */ + id: string; + /** IP Blocks authorized to access to the cluster */ + ipRestrictions: IpRestriction[]; + /** Time on which maintenances can start every day */ + maintenanceTime: Time; + /** Private network ID in which the cluster is */ + networkId?: string; + /** Type of network of the cluster */ + networkType: NetworkTypeEnum; + /** @deprecated Number of nodes in the cluster. DEPRECATED: use nodes */ + nodeNumber: number; + /** Nodes of the cluster */ + nodes: Node[]; + /** Plan of the cluster */ + plan: string; + /** Region of the cluster */ + region?: string; + /** Current status of the cluster */ + status: StatusEnum; + /** Storage attributes of the cluster */ + storage?: Storage; + /** Private subnet ID in which the cluster is */ + subnetId?: string; + /** Version of the engine deployed on the cluster */ + version: string; +} diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/TemporaryWriteDeadline.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/TemporaryWriteDeadline.ts index bb20f0acdf52..f5bc68c12578 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/TemporaryWriteDeadline.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/TemporaryWriteDeadline.ts @@ -1,5 +1,5 @@ /** Cloud databases temporary write deadline definition */ export interface TemporaryWriteDeadline { /** Date on which the temporary write permissions would be lifted */ - until?: string; + until: string; } diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/availability/Backups.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/availability/Backups.ts index 4afb7c6a2ac2..34b986e254b5 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/availability/Backups.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/availability/Backups.ts @@ -1,7 +1,7 @@ /** Backups availability of databases engines on cloud projects */ export interface Backups { /** Defines whether the backups are available for this offer */ - available?: boolean; + available: boolean; /** Number of retention days for the backups */ retentionDays?: number; } diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/availability/Lifecycle.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/availability/Lifecycle.ts index 43ee27750bcc..bad70d5a63ed 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/availability/Lifecycle.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/availability/Lifecycle.ts @@ -7,7 +7,7 @@ export interface Lifecycle { /** End of sale of the product */ endOfSale?: string; /** Date of the release of the product */ - startDate?: string; + startDate: string; /** Status of the availability */ - status?: StatusEnum; + status: StatusEnum; } diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/availability/Specifications.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/availability/Specifications.ts index 77003aa40a14..1e98d754686b 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/availability/Specifications.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/availability/Specifications.ts @@ -5,11 +5,11 @@ import { Storage } from '@/types/cloud/project/database/availability/specificati /** Specifications of the availability of databases engines on cloud projects */ export interface Specifications { /** Flavor name */ - flavor?: string; + flavor: string; /** Type of network */ - network?: NetworkTypeEnum; + network: NetworkTypeEnum; /** Specification of the nodes */ - nodes?: Nodes; + nodes: Nodes; /** Specification of the storage */ storage?: Storage; } diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/availability/specifications/Nodes.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/availability/specifications/Nodes.ts index 1ddada533a05..c04cacef595d 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/availability/specifications/Nodes.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/availability/specifications/Nodes.ts @@ -1,7 +1,7 @@ /** Specifications of the nodes for availabilities of databases engines on cloud projects */ export interface Nodes { /** Maximum number of nodes of the availability */ - maximum?: number; + maximum: number; /** Minimum number of nodes of the availability */ - minimum?: number; + minimum: number; } diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/availability/specifications/Storage.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/availability/specifications/Storage.ts index 44ed91674086..bad27f630430 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/availability/specifications/Storage.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/availability/specifications/Storage.ts @@ -3,9 +3,9 @@ import { UnitAndValueLong } from '@/types/complexType/UnitAndValueLong'; /** Specifications of the storage for availabilities of databases engines on cloud projects */ export interface Storage { /** Maximum storage of the availability */ - maximum?: UnitAndValueLong; + maximum: UnitAndValueLong; /** Minimum storage of the availability */ - minimum?: UnitAndValueLong; + minimum: UnitAndValueLong; /** Memory step that can be added between minimum and maximum */ step?: UnitAndValueLong; } diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/backup/Region.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/backup/Region.ts index bf2d8046252a..42d891db3091 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/backup/Region.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/backup/Region.ts @@ -1,5 +1,5 @@ /** Cloud database backup region definition */ export interface Region { /** Name of the region where the backup is stored */ - name?: string; + name: string; } diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/capabilities/Engine.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/capabilities/Engine.ts index 83c97e46f879..7e0d9c14fb4c 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/capabilities/Engine.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/capabilities/Engine.ts @@ -4,17 +4,17 @@ import { StrategyEnum } from '@/types/cloud/project/database/capabilities/engine /** Specific database engine capability */ export interface Engine { /** Category of the engine */ - category?: CategoryEnum; + category: CategoryEnum; /** Default version used for the engine */ - defaultVersion?: string; + defaultVersion: string; /** Description of the engine */ - description?: string; + description: string; /** Engine name */ - name?: string; + name: string; /** SSL modes for this engine */ - sslModes?: string[]; + sslModes: string[]; /** Storage strategy of the engine */ - storage?: StrategyEnum; + storage: StrategyEnum; /** Versions available for this engine */ - versions?: string[]; + versions: string[]; } diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/capabilities/Flavor.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/capabilities/Flavor.ts index 3b3018c13273..0bd20ac238cb 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/capabilities/Flavor.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/capabilities/Flavor.ts @@ -3,20 +3,20 @@ import { Specifications } from '@/types/cloud/project/database/capabilities/flav /** Cloud Database flavor definition */ export interface Flavor { - /** Flavor core number. DEPRECATED: use specifications.core */ - core?: number; + /** @deprecated Flavor core number. DEPRECATED: use specifications.core */ + core: number; /** Defines the lifecycle of the flavor */ - lifecycle?: Lifecycle; - /** Flavor ram size in GB. DEPRECATED: use specifications.memory */ - memory?: number; + lifecycle: Lifecycle; + /** @deprecated Flavor ram size in GB. DEPRECATED: use specifications.memory */ + memory: number; /** Name of the flavor */ - name?: string; + name: string; /** Display order */ - order?: number; + order: number; /** Technical specifications of the flavor */ - specifications?: Specifications; - /** Flavor disk size in GB. DEPRECATED: use specifications.storage */ - storage?: number; + specifications: Specifications; + /** @deprecated Flavor disk size in GB. DEPRECATED: use specifications.storage */ + storage: number; /** Display tags */ - tags?: string[]; + tags: string[]; } diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/capabilities/Integration.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/capabilities/Integration.ts index 32b4ba3c0d02..953f43212633 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/capabilities/Integration.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/capabilities/Integration.ts @@ -5,11 +5,11 @@ import { TypeEnum } from '@/types/cloud/project/database/service/integration/Typ /** Integration capability between database engines */ export interface Integration { /** Destination engine for the integration */ - destinationEngine?: EngineEnum; + destinationEngine: EngineEnum; /** Parameters for the integration capability */ parameters?: Parameter[]; /** Source engine for the integration */ - sourceEngine?: EngineEnum; + sourceEngine: EngineEnum; /** Type of the integration */ - type?: TypeEnum; + type: TypeEnum; } diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/capabilities/Option.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/capabilities/Option.ts index 5b8f8049047a..06575fca5d9f 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/capabilities/Option.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/capabilities/Option.ts @@ -3,7 +3,7 @@ import { TypeEnum } from '@/types/cloud/project/database/TypeEnum'; /** Cloud Database option definition */ export interface Option { /** Name of the option */ - name?: string; + name: string; /** Type of the option */ - type?: TypeEnum; + type: TypeEnum; } diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/capabilities/Plan.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/capabilities/Plan.ts index 7560aa1cdc89..fa6a6101a94a 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/capabilities/Plan.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/capabilities/Plan.ts @@ -3,15 +3,15 @@ import { Lifecycle } from '@/types/cloud/project/database/availability/Lifecycle /** Cloud Database plan definition */ export interface Plan { /** Automatic backup retention duration */ - backupRetention?: string; + backupRetention: string; /** Description of the plan */ - description?: string; + description: string; /** Defines the lifecycle of the availability */ - lifecycle?: Lifecycle; + lifecycle: Lifecycle; /** Name of the plan */ - name?: string; + name: string; /** Display order */ - order?: number; + order: number; /** Display tags */ - tags?: string[]; + tags: string[]; } diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/capabilities/advancedConfiguration/Property.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/capabilities/advancedConfiguration/Property.ts index 52a836c3aee7..ca74d72a8d36 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/capabilities/advancedConfiguration/Property.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/capabilities/advancedConfiguration/Property.ts @@ -3,15 +3,15 @@ import { TypeEnum } from '@/types/cloud/project/database/capabilities/advancedCo /** Specific database engine capability */ export interface Property { /** Description of the property */ - description?: string; + description: string; /** Maximum value for the property if numeric and applicable */ maximum?: number; /** Minimum value for the property if numeric and applicable */ minimum?: number; /** Property name */ - name?: string; + name: string; /** Data type of the property */ - type?: TypeEnum; + type: TypeEnum; /** Possible values for the property if string and applicable */ values?: string[]; } diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/capabilities/flavor/Specifications.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/capabilities/flavor/Specifications.ts index aaf793da4f82..53b982a0a1d8 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/capabilities/flavor/Specifications.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/capabilities/flavor/Specifications.ts @@ -3,9 +3,9 @@ import { UnitAndValueLong } from '@/types/complexType/UnitAndValueLong'; /** Cloud Database flavor specifications definition */ export interface Specifications { /** Flavor core number */ - core?: number; + core: number; /** Flavor ram size */ - memory?: UnitAndValueLong; + memory: UnitAndValueLong; /** Flavor disk size */ - storage?: UnitAndValueLong; + storage: UnitAndValueLong; } diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/capabilities/integration/Parameter.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/capabilities/integration/Parameter.ts index 2e3b5769b1cb..65142ce95437 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/capabilities/integration/Parameter.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/capabilities/integration/Parameter.ts @@ -3,7 +3,7 @@ import { TypeEnum } from '@/types/cloud/project/database/capabilities/integratio /** Integration capability parameter */ export interface Parameter { /** Name of the integration parameter */ - name?: string; + name: string; /** Type of the integration parameter */ - type?: TypeEnum; + type: TypeEnum; } diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/index.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/index.ts index 0284366664a6..b147928d07af 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/index.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/index.ts @@ -5,6 +5,7 @@ import * as engine from './engine/index'; import * as kafka from './kafka/index'; import * as kafkaConnect from './kafkaConnect/index'; import * as m3db from './m3db/index'; +import * as mongodb from './mongodb/index'; import * as mysql from './mysql/index'; import * as opensearch from './opensearch/index'; import * as postgresql from './postgresql/index'; @@ -22,6 +23,7 @@ export * from './LogSubscriptionCreation'; export * from './NetworkTypeEnum'; export * from './Service'; export * from './ServiceCreation'; +export * from './ServiceWithoutPrometheus'; export * from './StatusEnum'; export * from './TemporaryWriteDeadline'; export * from './TypeEnum'; @@ -32,6 +34,7 @@ export { engine }; export { kafka }; export { kafkaConnect }; export { m3db }; +export { mongodb }; export { mysql }; export { opensearch }; export { postgresql }; diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/kafka/Permissions.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/kafka/Permissions.ts index de38f7a4f72e..506b7f93d1fd 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/kafka/Permissions.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/kafka/Permissions.ts @@ -1,9 +1,9 @@ /** Cloud databases kafka permissions definition */ export interface Permissions { - /** Names of the topic permissions (DEPRECATED) */ - names?: string[]; + /** @deprecated Names of the topic permissions (DEPRECATED) */ + names: string[]; /** Names of the schema registry permissions */ - schemaRegistry?: string[]; + schemaRegistry: string[]; /** Names of the topic permissions */ - topic?: string[]; + topic: string[]; } diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/kafka/SchemaRegistryAcl.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/kafka/SchemaRegistryAcl.ts index 105a7e529fa4..caf33e0fd57a 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/kafka/SchemaRegistryAcl.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/kafka/SchemaRegistryAcl.ts @@ -1,7 +1,7 @@ /** Cloud databases kafka schema registry acl definition */ export interface SchemaRegistryAcl { /** Acl ID */ - id?: string; + id: string; /** Permission to give to this username on this resource. Permissions values can be retrieved using /cloud/project/{serviceName}/database/kafka/{clusterId}/permissions */ permission: string; /** Resource affected by this acl */ diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/kafka/Service.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/kafka/Service.ts index 6460b16ece31..073631054d18 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/kafka/Service.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/kafka/Service.ts @@ -1,4 +1,5 @@ import { Time } from '@/types/Time'; +import { Backup } from '@/types/cloud/project/database/service/Backup'; import { CapabilityActions } from '@/types/cloud/project/database/service/CapabilityActions'; import { CategoryEnum } from '@/types/cloud/project/database/engine/CategoryEnum'; import { Disk } from '@/types/cloud/project/database/service/Disk'; @@ -14,24 +15,28 @@ import { Storage } from '@/types/cloud/project/database/service/Storage'; export interface Service { /** Time on which backups start every day */ backupTime: Time; + /** Information related to the backups, null if the engine does not support backups */ + backups?: Backup; /** Capabilities of the services */ - capabilities?: { [key: string]: CapabilityActions }; + capabilities: { [key: string]: CapabilityActions }; /** Category of the engine */ - category?: CategoryEnum; + category: CategoryEnum; /** Date of the creation of the cluster */ - createdAt?: string; + createdAt: string; /** Description of the cluster */ description: string; - /** Disk attributes of the cluster. DEPRECATED: use storage */ + /** @deprecated Disk attributes of the cluster. DEPRECATED: use storage */ disk: Disk; + /** Enable Prometheus */ + enablePrometheus?: boolean; /** List of all endpoints of the service */ - endpoints?: Endpoint[]; + endpoints: Endpoint[]; /** Name of the engine of the service */ - engine?: EngineEnum; + engine: EngineEnum; /** The VM flavor used for this cluster */ flavor: string; /** Service ID */ - id?: string; + id: string; /** IP Blocks authorized to access to the cluster */ ipRestrictions: IpRestriction[]; /** Time on which maintenances can start every day */ @@ -39,11 +44,11 @@ export interface Service { /** Private network ID in which the cluster is */ networkId?: string; /** Type of network of the cluster */ - networkType?: NetworkTypeEnum; - /** Number of nodes in the cluster. DEPRECATED: useNodes */ + networkType: NetworkTypeEnum; + /** @deprecated Number of nodes in the cluster. DEPRECATED: useNodes */ nodeNumber: number; /** Nodes of the cluster */ - nodes?: Node[]; + nodes: Node[]; /** Plan of the cluster */ plan: string; /** Defines whether the REST API is enabled on the cluster */ @@ -51,9 +56,9 @@ export interface Service { /** Defines whether the schema registry is enabled on the cluster */ schemaRegistry: boolean; /** Current status of the cluster */ - status?: StatusEnum; + status: StatusEnum; /** Storage attributes of the cluster */ - storage: Storage; + storage?: Storage; /** Private subnet ID in which the cluster is */ subnetId?: string; /** Version of the engine deployed on the cluster */ diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/kafka/Topic.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/kafka/Topic.ts index 95010f3d74c8..f6f08054a483 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/kafka/Topic.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/kafka/Topic.ts @@ -1,11 +1,11 @@ /** Cloud database kafka topic definition */ export interface Topic { /** Topic ID */ - id?: string; + id: string; /** Minimum insync replica accepted for this topic */ minInsyncReplicas: number; /** Name of the topic */ - name?: string; + name: string; /** Number of partitions for this topic */ partitions: number; /** Number of replication for this topic */ diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/kafka/TopicAcl.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/kafka/TopicAcl.ts index 1f364051a22f..3cb79bbeecf2 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/kafka/TopicAcl.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/kafka/TopicAcl.ts @@ -1,7 +1,7 @@ /** Cloud databases kafka topic acl definition */ export interface TopicAcl { /** Acl ID */ - id?: string; + id: string; /** Permission to give to this username on this topic. Permissions values can be retrieved using /cloud/project/{serviceName}/database/kafka/{clusterId}/permissions */ permission: string; /** Topic affected by this acl */ diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/kafka/TopicCreation.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/kafka/TopicCreation.ts index 3874c67544a8..c2c8510f8c64 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/kafka/TopicCreation.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/kafka/TopicCreation.ts @@ -1,7 +1,7 @@ /** Cloud database kafka topic creation definition */ export interface TopicCreation { /** Topic ID */ - id?: string; + id: string; /** Minimum insync replica accepted for this topic */ minInsyncReplicas: number; /** Name of the topic */ diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/kafka/user/Access.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/kafka/user/Access.ts index abc7eead6306..4f4d63ee7534 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/kafka/user/Access.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/kafka/user/Access.ts @@ -1,7 +1,7 @@ /** Cloud databases kafka user access definition */ export interface Access { /** User cert */ - cert?: string; + cert: string; /** User key for the cert */ - key?: string; + key: string; } diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/kafkaConnect/Connector.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/kafkaConnect/Connector.ts index 071254946c19..749f5372c71f 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/kafkaConnect/Connector.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/kafkaConnect/Connector.ts @@ -5,11 +5,11 @@ export interface Connector { /** Configuration of the connector */ configuration: { [key: string]: string }; /** Connector capability ID */ - connectorId?: string; + connectorId: string; /** Connector ID */ - id?: string; + id: string; /** Name of the connector */ - name?: string; + name: string; /** Status of the connector */ - status?: StatusEnum; + status: StatusEnum; } diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/kafkaConnect/capabilities/Connector.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/kafkaConnect/capabilities/Connector.ts index 022acf8b031c..8273cf4d332e 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/kafkaConnect/capabilities/Connector.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/kafkaConnect/capabilities/Connector.ts @@ -3,19 +3,19 @@ import { TypeEnum } from '@/types/cloud/project/database/kafkaConnect/capabiliti /** KafkaConnect connector capability definition */ export interface Connector { /** Name of the connector's author */ - author?: string; + author: string; /** URL of the official documentation of the connector */ - documentationUrl?: string; + documentationUrl: string; /** Connector ID */ - id?: string; + id: string; /** Defines whether this connector and version is the latest available */ - latest?: boolean; + latest: boolean; /** Name of the connector */ - name?: string; + name: string; /** Defines whether the connector is in preview */ - preview?: boolean; + preview: boolean; /** Type of connector */ - type?: TypeEnum; + type: TypeEnum; /** Version of the connector */ - version?: string; + version: string; } diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/kafkaConnect/capabilities/connector/Transform.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/kafkaConnect/capabilities/connector/Transform.ts index d1c5c5ba84f0..9bef8e5f347d 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/kafkaConnect/capabilities/connector/Transform.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/kafkaConnect/capabilities/connector/Transform.ts @@ -3,17 +3,17 @@ import { TypeEnum } from '@/types/cloud/project/database/kafkaConnect/connector/ /** KafkaConnect connector transform definition */ export interface Transform { /** Description of the transform */ - description?: string; + description: string; /** Pretty name of the transform */ - displayName?: string; + displayName: string; /** Name of the transform */ - name?: string; + name: string; /** Defines whether the transform is required */ - required?: boolean; + required: boolean; /** Transform type this transform relates to */ - transformType?: string; + transformType: string; /** Type of data of the transform */ - type?: TypeEnum; + type: TypeEnum; /** Possible values for the transform if applicable */ values?: string[]; } diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/kafkaConnect/capabilities/connector/configuration/Property.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/kafkaConnect/capabilities/connector/configuration/Property.ts index 8116362ce206..6967d81c1c48 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/kafkaConnect/capabilities/connector/configuration/Property.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/kafkaConnect/capabilities/connector/configuration/Property.ts @@ -6,19 +6,19 @@ export interface Property { /** Defines the default value is exists */ defaultValue?: string; /** Description of the property */ - description?: string; + description: string; /** Pretty name of the property */ - displayName?: string; + displayName: string; /** Group to which belongs the property */ - group?: string; + group: string; /** Importance of the property */ - importance?: ImportanceEnum; + importance: ImportanceEnum; /** Name of the property */ - name?: string; + name: string; /** Defines whether the property is required */ - required?: boolean; + required: boolean; /** Type of data of the property */ - type?: TypeEnum; + type: TypeEnum; /** Possible values for the property if string and applicable */ values?: string[]; } diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/kafkaConnect/connector/Task.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/kafkaConnect/connector/Task.ts index 551270b7b3e2..95caebbd97ab 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/kafkaConnect/connector/Task.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/kafkaConnect/connector/Task.ts @@ -3,9 +3,9 @@ import { StatusEnum } from '@/types/cloud/project/database/kafkaConnect/connecto /** KafkaConnect connector definition */ export interface Task { /** Task ID */ - id?: number; + id: number; /** Status of the task */ - status?: StatusEnum; + status: StatusEnum; /** Trace of the task */ - trace?: string; + trace: string; } diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/m3db/Namespace.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/m3db/Namespace.ts index 4bcd3db52acf..45fd80b91cd5 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/m3db/Namespace.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/m3db/Namespace.ts @@ -4,17 +4,17 @@ import { TypeEnum } from '@/types/cloud/project/database/m3db/namespace/TypeEnum /** M3db Namespace definition */ export interface Namespace { /** Namespace ID */ - id?: string; + id: string; /** Name of the namespace */ - name?: string; + name: string; /** Resolution for an aggregated namespace */ - resolution: string; + resolution?: string; /** Retention configuration */ retention: Retention; /** Defines whether M3db will create snapshot files for this namespace */ - snapshotEnabled: boolean; + snapshotEnabled?: boolean; /** Type of namespace */ - type?: TypeEnum; + type: TypeEnum; /** Defines whether M3db will include writes to this namespace in the commit log */ - writesToCommitLogEnabled: boolean; + writesToCommitLogEnabled?: boolean; } diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/m3db/NamespaceCreation.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/m3db/NamespaceCreation.ts index 8819c5395942..da478d033ebc 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/m3db/NamespaceCreation.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/m3db/NamespaceCreation.ts @@ -8,13 +8,13 @@ export interface NamespaceCreation { /** Name of the namespace */ name: string; /** Resolution for an aggregated namespace */ - resolution?: string; + resolution: string; /** Retention configuration */ retention: RetentionCreation; /** Defines whether M3db will create snapshot files for this namespace */ - snapshotEnabled: boolean; + snapshotEnabled?: boolean; /** Type of namespace */ type: TypeEnum; /** Defines whether M3db will include writes to this namespace in the commit log */ - writesToCommitLogEnabled: boolean; + writesToCommitLogEnabled?: boolean; } diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/m3db/User.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/m3db/User.ts index 2495f010c05c..d6efdcd81997 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/m3db/User.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/m3db/User.ts @@ -3,13 +3,13 @@ import { StatusEnum } from '@/types/cloud/project/database/StatusEnum'; /** M3db User definition */ export interface User { /** Date of the creation of the user */ - createdAt?: string; + createdAt: string; /** Group of the user */ group: string; /** User ID */ - id?: string; + id: string; /** Current status of the user */ - status?: StatusEnum; + status: StatusEnum; /** Name of the user */ - username?: string; + username: string; } diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/m3db/UserWithPassword.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/m3db/UserWithPassword.ts index 8573e328cf6f..fd18d02c2b97 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/m3db/UserWithPassword.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/m3db/UserWithPassword.ts @@ -3,15 +3,15 @@ import { StatusEnum } from '@/types/cloud/project/database/StatusEnum'; /** M3db User definition */ export interface UserWithPassword { /** Date of the creation of the user */ - createdAt?: string; + createdAt: string; /** Group of the user */ - group?: string; + group: string; /** User ID */ - id?: string; + id: string; /** Password of the user */ - password?: string; + password: string; /** Current status of the user */ - status?: StatusEnum; + status: StatusEnum; /** Name of the user */ - username?: string; + username: string; } diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/m3db/namespace/Retention.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/m3db/namespace/Retention.ts index f21e24a833cb..497435b99397 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/m3db/namespace/Retention.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/m3db/namespace/Retention.ts @@ -1,13 +1,13 @@ /** M3db namespace retention definition */ export interface Retention { /** Controls how long we wait before expiring stale data */ - blockDataExpirationDuration: string; + blockDataExpirationDuration?: string; /** Controls how long to keep a block in memory before flushing to a fileset on disk */ - blockSizeDuration?: string; + blockSizeDuration: string; /** Controls how far into the future writes to the namespace will be accepted */ - bufferFutureDuration: string; + bufferFutureDuration?: string; /** Controls how far into the past writes to the namespace will be accepted */ - bufferPastDuration: string; + bufferPastDuration?: string; /** Controls the duration of time that M3DB will retain data for the namespace */ - periodDuration: string; + periodDuration?: string; } diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/m3db/namespace/RetentionCreation.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/m3db/namespace/RetentionCreation.ts index 001216018f65..90a1fa91d17a 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/m3db/namespace/RetentionCreation.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/m3db/namespace/RetentionCreation.ts @@ -9,5 +9,5 @@ export interface RetentionCreation { /** Controls how far into the past writes to the namespace will be accepted */ bufferPastDuration?: string; /** Controls the duration of time that M3DB will retain data for the namespace */ - periodDuration: string; + periodDuration?: string; } diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/mongodb/PrometheusEndpoint.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/mongodb/PrometheusEndpoint.ts new file mode 100644 index 000000000000..a5224f7c5024 --- /dev/null +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/mongodb/PrometheusEndpoint.ts @@ -0,0 +1,7 @@ +/** Prometheus Endpoint for MongoDB */ +export interface PrometheusEndpoint { + /** Prometheus SRV domain for mongodb cluster */ + srvDomain: string; + /** Name of the Prometheus access */ + username: string; +} diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/mongodb/index.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/mongodb/index.ts new file mode 100644 index 000000000000..dba9f0162e0a --- /dev/null +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/mongodb/index.ts @@ -0,0 +1 @@ +export * from './PrometheusEndpoint'; diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/mysql/QueryStatistics.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/mysql/QueryStatistics.ts index ed8fa2f87cca..e435dc70c415 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/mysql/QueryStatistics.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/mysql/QueryStatistics.ts @@ -3,5 +3,5 @@ import { Query } from '@/types/cloud/project/database/mysql/querystatistics/Quer /** Cloud database mysql query statistics response body definition */ export interface QueryStatistics { /** Statistics of the queries */ - queries?: Query[]; + queries: Query[]; } diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/mysql/querystatistics/Query.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/mysql/querystatistics/Query.ts index 7494fe31b3db..c00a4d2018e5 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/mysql/querystatistics/Query.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/mysql/querystatistics/Query.ts @@ -1,73 +1,73 @@ /** Cloud database mysql single query statistic definition */ export interface Query { /** Average wait time of the summarized timed events, in milliseconds */ - avgTimerWait?: number; + avgTimerWait: number; /** Number of summarized events. This value includes all events, whether timed or nontimed */ - countStar?: number; + countStar: number; /** Digest of the summarized events */ - digest?: string; + digest: string; /** Text of the summarized digest events */ - digestText?: string; + digestText: string; /** First appearance of the events */ - firstSeen?: string; + firstSeen: string; /** Last appearance of the events */ - lastSeen?: string; + lastSeen: string; /** Maximum wait time of the summarized timed events, in milliseconds */ - maxTimerWait?: number; + maxTimerWait: number; /** Mininum wait time of the summarized timed events, in milliseconds */ - minTimerWait?: number; + minTimerWait: number; /** 95th percentile of the statement latency, in picoseconds */ - quantile95?: number; + quantile95: number; /** 99th percentile of the statement latency, in picoseconds */ - quantile99?: number; + quantile99: number; /** 99.9th percentile of the statement latency, in picoseconds */ - quantile999?: number; + quantile999: number; /** Datetime when the querySampleText column was seen */ - querySampleSeen?: string; + querySampleSeen: string; /** Sample SQL statement that produces the digest value in the row */ - querySampleText?: string; + querySampleText: string; /** Wait time for the sample statement in the querySampleText column, in milliseconds */ - querySampleTimerWait?: number; + querySampleTimerWait: number; /** SchemaName of the summarized events */ - schemaName?: string; + schemaName: string; /** Number of internal on-disk temporary tables created */ - sumCreatedTmpDiskTables?: number; + sumCreatedTmpDiskTables: number; /** Number of internal temporary tables created */ - sumCreatedTmpTables?: number; + sumCreatedTmpTables: number; /** Number of errors */ - sumErrors?: number; + sumErrors: number; /** Sum of lock time of the summarized timed events, in milliseconds */ - sumLockTime?: number; + sumLockTime: number; /** Sum of not good indexes of the summarized timed events */ - sumNoGoodIndexUsed?: number; + sumNoGoodIndexUsed: number; /** Sum of no indexes of the summarized timed events */ - sumNoIndexUsed?: number; + sumNoIndexUsed: number; /** Sum of rows affected of the summarized timed events */ - sumRowsAffected?: number; + sumRowsAffected: number; /** Sum of rows examined of the summarized timed events */ - sumRowsExamined?: number; + sumRowsExamined: number; /** Sum of rows sent of the summarized timed events */ - sumRowsSent?: number; + sumRowsSent: number; /** Sum of select full join of the summarized timed events */ - sumSelectFullJoin?: number; + sumSelectFullJoin: number; /** Sum of select full range join of the summarized timed events */ - sumSelectFullRangeJoin?: number; + sumSelectFullRangeJoin: number; /** Sum of select range of the summarized timed events */ - sumSelectRange?: number; + sumSelectRange: number; /** Sum of select range check of the summarized timed events */ - sumSelectRangeCheck?: number; + sumSelectRangeCheck: number; /** Sum of select scan of the summarized timed events */ - sumSelectScan?: number; + sumSelectScan: number; /** Sum of sorted merge passes of the summarized timed events */ - sumSortMergePasses?: number; + sumSortMergePasses: number; /** Sum of sorted range of the summarized timed events */ - sumSortRange?: number; + sumSortRange: number; /** Sum of sorted rows of the summarized timed events */ - sumSortRows?: number; + sumSortRows: number; /** Sum of sort scan of the summarized timed events */ - sumSortScan?: number; + sumSortScan: number; /** Sum of wait time of the summarized timed events, in milliseconds */ - sumTimerWait?: number; + sumTimerWait: number; /** Number of warnings */ - sumWarnings?: number; + sumWarnings: number; } diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/opensearch/Index.interface.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/opensearch/Index.interface.ts new file mode 100644 index 000000000000..c6936430b235 --- /dev/null +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/opensearch/Index.interface.ts @@ -0,0 +1,17 @@ +/** Cloud database opensearch index definition */ +export interface Index { + /** Date of the creation of the index */ + createdAt: string; + /** Number of documents hold by the index */ + documents: number; + /** Index ID */ + id: string; + /** Name of the index */ + name: string; + /** Number of replicas of the index */ + replicasNumber: number; + /** Number of shards of the index */ + shardsNumber: number; + /** Size of the index */ + size: number; +} diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/opensearch/Pattern.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/opensearch/Pattern.ts index 5e9fbd2256f5..cef1de1a9f25 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/opensearch/Pattern.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/opensearch/Pattern.ts @@ -1,7 +1,7 @@ /** Cloud database opensearch pattern definition */ export interface Pattern { /** Pattern ID */ - id?: string; + id: string; /** Maximum number of index for this pattern */ maxIndexCount: number; /** Pattern format */ diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/opensearch/Permissions.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/opensearch/Permissions.ts index 5153454be39f..437e09ad6536 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/opensearch/Permissions.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/opensearch/Permissions.ts @@ -1,5 +1,5 @@ /** Cloud database opensearch permissions definition */ export interface Permissions { /** Possible values for the permissions */ - names?: string[]; + names: string[]; } diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/opensearch/Service.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/opensearch/Service.ts index e8ceb45ab06a..dec947377afc 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/opensearch/Service.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/opensearch/Service.ts @@ -15,28 +15,30 @@ import { Storage } from '@/types/cloud/project/database/service/Storage'; export interface Service { /** Defines whether the acls are enabled on the cluster */ aclsEnabled: boolean; - /** Time on which backups start every day. DEPRECATED: use backups.time */ + /** @deprecated Time on which backups start every day. DEPRECATED: use backups.time */ backupTime: Time; /** Information related to the backups, null if the engine does not support backups */ - backups: Backup; + backups?: Backup; /** Capabilities of the services */ - capabilities?: { [key: string]: CapabilityActions }; + capabilities: { [key: string]: CapabilityActions }; /** Category of the engine */ - category?: CategoryEnum; + category: CategoryEnum; /** Date of the creation of the cluster */ - createdAt?: string; + createdAt: string; /** Description of the cluster */ description: string; - /** Disk attributes of the cluster. DEPRECATED: use storage */ + /** @deprecated Disk attributes of the cluster. DEPRECATED: use storage */ disk: Disk; + /** Enable Prometheus */ + enablePrometheus?: boolean; /** List of all endpoints of the service */ - endpoints?: Endpoint[]; + endpoints: Endpoint[]; /** Name of the engine of the service */ - engine?: EngineEnum; + engine: EngineEnum; /** The VM flavor used for this cluster */ flavor: string; /** Service ID */ - id?: string; + id: string; /** IP Blocks authorized to access to the cluster */ ipRestrictions: IpRestriction[]; /** Time on which maintenances can start every day */ @@ -44,17 +46,17 @@ export interface Service { /** Private network ID in which the cluster is */ networkId?: string; /** Type of network of the cluster */ - networkType?: NetworkTypeEnum; - /** Number of nodes in the cluster. DEPRECATED: use nodes */ + networkType: NetworkTypeEnum; + /** @deprecated Number of nodes in the cluster. DEPRECATED: use nodes */ nodeNumber: number; /** Nodes of the cluster */ - nodes?: Node[]; + nodes: Node[]; /** Plan of the cluster */ plan: string; /** Current status of the cluster */ - status?: StatusEnum; + status: StatusEnum; /** Storage attributes of the cluster */ - storage: Storage; + storage?: Storage; /** Private subnet ID in which the cluster is */ subnetId?: string; /** Version of the engine deployed on the cluster */ diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/opensearch/User.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/opensearch/User.ts index d8d4c4ee26f1..eadf60a8cba0 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/opensearch/User.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/opensearch/User.ts @@ -6,11 +6,11 @@ export interface User { /** Acls of the user */ acls: UserAcl[]; /** Date of the creation of the user */ - createdAt?: string; + createdAt: string; /** User ID */ - id?: string; + id: string; /** Current status of the user */ - status?: StatusEnum; + status: StatusEnum; /** Name of the user */ - username?: string; + username: string; } diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/opensearch/UserWithPassword.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/opensearch/UserWithPassword.ts index f2512238d67f..5c238dae13d6 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/opensearch/UserWithPassword.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/opensearch/UserWithPassword.ts @@ -4,15 +4,15 @@ import { StatusEnum } from '@/types/cloud/project/database/StatusEnum'; /** Opensearch user definition */ export interface UserWithPassword { /** Acls of the user */ - acls?: UserAcl[]; + acls: UserAcl[]; /** Date of the creation of the user */ - createdAt?: string; + createdAt: string; /** User ID */ - id?: string; + id: string; /** Password of the user */ - password?: string; + password: string; /** Current status of the user */ - status?: StatusEnum; + status: StatusEnum; /** Name of the user */ - username?: string; + username: string; } diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/opensearch/index.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/opensearch/index.ts index 1780c1c08867..406976b59313 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/opensearch/index.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/opensearch/index.ts @@ -1,20 +1,4 @@ -/** Cloud database opensearch index definition */ -export interface Index { - /** Date of the creation of the index */ - createdAt?: string; - /** Number of documents hold by the index */ - documents?: number; - /** Index ID */ - id?: string; - /** Name of the index */ - name?: string; - /** Number of replicas of the index */ - replicasNumber?: number; - /** Number of shards of the index */ - shardsNumber?: number; - /** Size of the index */ - size?: number; -} +export * from './Index.interface'; export * from './Pattern'; export * from './Permissions'; export * from './Service'; diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/postgresql/ConnectionPool.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/postgresql/ConnectionPool.ts index 8686430fcbc0..a5d4f5f6a93f 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/postgresql/ConnectionPool.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/postgresql/ConnectionPool.ts @@ -6,19 +6,19 @@ export interface ConnectionPool { /** Database used for the connection pool */ databaseId: string; /** ID of the connection pool */ - id?: string; + id: string; /** Connection mode to the connection pool */ mode: ModeEnum; /** Name of the connection pool */ - name?: string; + name: string; /** Port of the connection pool */ - port?: number; + port: number; /** Size of the connection pool */ size: number; /** Ssl connection mode for the pool */ sslMode?: SslModeEnum; /** Connection URI to the pool */ - uri?: string; + uri: string; /** User authorized to connect to the pool, if none all the users are allowed */ userId?: string; } diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/postgresql/ConnectionPoolCreation.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/postgresql/ConnectionPoolCreation.ts index 95ae44eb2da2..de8730253ea8 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/postgresql/ConnectionPoolCreation.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/postgresql/ConnectionPoolCreation.ts @@ -11,5 +11,5 @@ export interface ConnectionPoolCreation { /** Size of the connection pool */ size: number; /** User authorized to connect to the pool, if none all the users are allowed */ - userId: string; + userId?: string; } diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/postgresql/QueryStatistics.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/postgresql/QueryStatistics.ts index 7e58335a2003..df57fa35d04f 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/postgresql/QueryStatistics.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/postgresql/QueryStatistics.ts @@ -3,5 +3,5 @@ import { Query } from '@/types/cloud/project/database/postgresql/querystatistics /** Cloud database postgresql query statistics response body definition */ export interface QueryStatistics { /** Statistics of the queries */ - queries?: Query[]; + queries: Query[]; } diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/postgresql/querystatistics/Query.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/postgresql/querystatistics/Query.ts index 257ddf5fe50f..c171901f97b1 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/postgresql/querystatistics/Query.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/postgresql/querystatistics/Query.ts @@ -3,63 +3,63 @@ import { UnitAndValueLong } from '@/types/complexType/UnitAndValueLong'; /** Cloud database postgresql single query statistic definition */ export interface Query { /** Time spent reading data file blocks by backends in this database, in milliseconds */ - blkReadTime?: number; + blkReadTime: number; /** Time spent writing data file blocks by backends in this database, in milliseconds */ - blkWriteTime?: number; + blkWriteTime: number; /** Number of times this function has been called */ - calls?: number; + calls: number; /** Name of the database */ - databaseName?: string; + databaseName: string; /** Total number of local blocks dirtied by the statement */ - localBlksDirtied?: number; + localBlksDirtied: number; /** Total number of local block cache hits by the statement */ - localBlksHit?: number; + localBlksHit: number; /** Total number of local blocks read by the statement */ - localBlksRead?: number; + localBlksRead: number; /** Total number of local blocks written by the statement */ - localBlksWritten?: number; + localBlksWritten: number; /** Maximum time spent planning the statement, in milliseconds */ - maxPlanTime?: number; + maxPlanTime: number; /** Maximum time spent for the statement, in milliseconds */ - maxTime?: number; + maxTime: number; /** Mean time spent planning the statement, in milliseconds */ - meanPlanTime?: number; + meanPlanTime: number; /** Mean time spent for the statement, in milliseconds */ - meanTime?: number; + meanTime: number; /** Minimum time spent planning the statement, in milliseconds */ - minPlanTime?: number; + minPlanTime: number; /** Minimum time spent for the statement, in milliseconds */ - minTime?: number; + minTime: number; /** Text of a representative statement */ - query?: string; + query: string; /** Total number of rows retrieved or affected by the statement */ - rows?: number; + rows: number; /** Total number of shared blocks dirtied by the statement */ - sharedBlksDirtied?: number; + sharedBlksDirtied: number; /** Total number of shared block cache hits by the statement */ - sharedBlksHit?: number; + sharedBlksHit: number; /** Total number of shared blocks read by the statement */ - sharedBlksRead?: number; + sharedBlksRead: number; /** Total number of shared blocks written by the statement */ - sharedBlksWritten?: number; + sharedBlksWritten: number; /** Population standard deviation of time spent planning the statement, in milliseconds */ - stddevPlanTime?: number; + stddevPlanTime: number; /** Population standard deviation of time spent for the statement, in milliseconds */ - stddevTime?: number; + stddevTime: number; /** Total number of temp blocks read by the statement */ - tempBlksRead?: number; + tempBlksRead: number; /** Total number of temp blocks written by the statement */ - tempBlksWritten?: number; + tempBlksWritten: number; /** Total time spent planning the statement, in milliseconds */ - totalPlanTime?: number; + totalPlanTime: number; /** Total time spent for the statement, in milliseconds */ - totalTime?: number; + totalTime: number; /** Name of the user who executed the statement */ - username?: string; + username: string; /** Total amount of WAL generated by the statement in bytes */ - walBytes?: UnitAndValueLong; + walBytes: UnitAndValueLong; /** Total number of WAL full page images generated by the statement */ - walFpi?: number; + walFpi: number; /** Total number of WAL records generated by the statement */ - walRecords?: number; + walRecords: number; } diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/redis/User.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/redis/User.ts index e54ef6361591..a79dfa7f23ca 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/redis/User.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/redis/User.ts @@ -9,13 +9,13 @@ export interface User { /** Commands of the user */ commands: string[]; /** Date of the creation of the user */ - createdAt?: string; + createdAt: string; /** User ID */ - id?: string; + id: string; /** Keys of the user */ keys: string[]; /** Current status of the user */ - status?: StatusEnum; + status: StatusEnum; /** Name of the user */ - username?: string; + username: string; } diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/redis/UserWithPassword.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/redis/UserWithPassword.ts index a125f7f63a55..406a0ac5a139 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/redis/UserWithPassword.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/redis/UserWithPassword.ts @@ -3,21 +3,21 @@ import { StatusEnum } from '@/types/cloud/project/database/StatusEnum'; /** Redis user with password definition */ export interface UserWithPassword { /** Categories of the user */ - categories?: string[]; + categories: string[]; /** Channels of the user */ - channels?: string[]; + channels: string[]; /** Commands of the user */ - commands?: string[]; + commands: string[]; /** Date of the creation of the user */ - createdAt?: string; + createdAt: string; /** User ID */ - id?: string; + id: string; /** Keys of the user */ - keys?: string[]; + keys: string[]; /** Password of the user */ - password?: string; + password: string; /** Current status of the user */ - status?: StatusEnum; + status: StatusEnum; /** Name of the user */ - username?: string; + username: string; } diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/CapabilityEnum.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/CapabilityEnum.ts index dc1015cd53fb..82d4c41877e3 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/CapabilityEnum.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/CapabilityEnum.ts @@ -11,6 +11,7 @@ export enum CapabilityEnum { 'databases' = 'databases', 'enableWrites' = 'enableWrites', 'fork' = 'fork', + 'indexes' = 'indexes', 'integrations' = 'integrations', 'ipRestrictions' = 'ipRestrictions', 'maintenanceApply' = 'maintenanceApply', @@ -18,9 +19,13 @@ export enum CapabilityEnum { 'maintenances' = 'maintenances', 'namespaces' = 'namespaces', 'nodes' = 'nodes', + 'patterns' = 'pattern', + 'prometheus' = 'prometheus', + 'prometheusCredentialsReset' = 'prometheusCredentialsReset', 'queryStatistics' = 'queryStatistics', 'queryStatisticsReset' = 'queryStatisticsReset', 'service' = 'service', 'userCredentialsReset' = 'userCredentialsReset', + 'userAcls' = 'userAcls', 'users' = 'users', } diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/Certificates.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/Certificates.ts index b044a80d1fdf..8d0e9a442b74 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/Certificates.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/Certificates.ts @@ -1,5 +1,5 @@ /** Certificates definition for cloud project databases */ export interface Certificates { /** CA certificate used for the service */ - ca?: string; + ca: string; } diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/CurrentQueries.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/CurrentQueries.ts index 7eabcd827ffc..41965326a98b 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/CurrentQueries.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/CurrentQueries.ts @@ -3,5 +3,5 @@ import { Query } from '@/types/cloud/project/database/service/currentqueries/Que /** Cloud database current queries */ export interface CurrentQueries { /** Current queries list */ - queries?: Query[]; + queries: Query[]; } diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/DataPoint.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/DataPoint.ts index fd47cafd2541..43ba67b0568b 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/DataPoint.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/DataPoint.ts @@ -1,7 +1,7 @@ /** A single value from a metric */ export interface DataPoint { /** Timestamp in seconds since epoch time */ - timestamp?: number; + timestamp: number; /** Value of this datapoint */ - value?: number; + value: number; } diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/Database.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/Database.ts index 83549c1ced76..cae1a159c23e 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/Database.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/Database.ts @@ -1,9 +1,9 @@ /** Defines the database object in a cluster */ export interface Database { /** Defines if the database has been created by default */ - default?: boolean; + default: boolean; /** Database ID */ - id?: string; + id: string; /** Database name */ name: string; } diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/Disk.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/Disk.ts index 93a7c599cd2f..3cac1871c6e3 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/Disk.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/Disk.ts @@ -3,5 +3,5 @@ export interface Disk { /** Service disk size */ size: number; /** Service disk size */ - type?: string; + type: string; } diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/Endpoint.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/Endpoint.ts index 0bcf8ca649f8..ae69d1719124 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/Endpoint.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/Endpoint.ts @@ -3,9 +3,9 @@ import { ComponentEnum } from '@/types/cloud/project/database/service/endpoint/C /** Defines the endpoint object in a cluster */ export interface Endpoint { /** Type of component the URI relates to */ - component?: ComponentEnum; + component: ComponentEnum; /** Domain of the cluster */ - domain?: string; + domain: string; /** Path of the endpoint */ path?: string; /** Connection port for the endpoint */ @@ -13,7 +13,7 @@ export interface Endpoint { /** Scheme used to generate the URI */ scheme?: string; /** Defines whether the endpoint uses SSL */ - ssl?: boolean; + ssl: boolean; /** SSL mode used to connect to the service if the SSL is enabled */ sslMode?: string; /** URI of the endpoint */ diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/HostMetric.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/HostMetric.ts index afff768ff0a0..506caf407c78 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/HostMetric.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/HostMetric.ts @@ -3,7 +3,7 @@ import { DataPoint } from '@/types/cloud/project/database/service/DataPoint'; /** Metrics datapoints from a specific host */ export interface HostMetric { /** List of metric's samples */ - dataPoints?: DataPoint[]; + dataPoints: DataPoint[]; /** Name of the originating host */ - hostname?: string; + hostname: string; } diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/Integration.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/Integration.ts index cb276cd61ae3..122125d45e20 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/Integration.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/Integration.ts @@ -6,13 +6,13 @@ export interface Integration { /** ID of the destination service */ destinationServiceId: string; /** Service ID */ - id?: string; + id: string; /** Parameters for the integration */ parameters?: { [key: string]: string }; /** ID of the source service */ sourceServiceId: string; /** Current status of the integration */ - status?: StatusEnum; + status: StatusEnum; /** Type of the integration */ type: TypeEnum; } diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/IpRestriction.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/IpRestriction.ts index 4f1838c66f10..37b8748a5224 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/IpRestriction.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/IpRestriction.ts @@ -8,5 +8,5 @@ export interface IpRestriction { /** Whitelisted IP */ ip: IpBlock; /** Current status of the ip restriction */ - status?: StatusEnum; + status: StatusEnum; } diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/LogEntry.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/LogEntry.ts index 64029447d2b4..6f5ad0bce1e7 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/LogEntry.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/LogEntry.ts @@ -1,9 +1,9 @@ /** A single log entry */ export interface LogEntry { /** Host from which the log is coming from */ - hostname?: string; + hostname: string; /** The log message */ - message?: string; + message: string; /** Timestamp in seconds since epoch time */ - timestamp?: number; + timestamp: number; } diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/Maintenance.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/Maintenance.ts index ef04a3705773..3d4ebc29df28 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/Maintenance.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/Maintenance.ts @@ -5,11 +5,11 @@ export interface Maintenance { /** Date of the application of the maintenance */ appliedAt?: string; /** Description of the maintenance */ - description?: string; + description: string; /** ID of the maintenance */ - id?: string; + id: string; /** Date of the planification of the maintenance */ scheduledAt?: string; /** Status of the maintenance */ - status?: StatusEnum; + status: StatusEnum; } diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/Metric.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/Metric.ts index 8212bd5135ab..da008a85a615 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/Metric.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/Metric.ts @@ -4,9 +4,9 @@ import { MetricUnitEnum } from '@/types/cloud/project/database/service/MetricUni /** Metric definition for cloud project databases */ export interface Metric { /** Metric values for each cluster's host */ - metrics?: HostMetric[]; + metrics: HostMetric[]; /** Name of the metric */ - name?: string; + name: string; /** Unit of the metric */ - units?: MetricUnitEnum; + units: MetricUnitEnum; } diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/Node.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/Node.ts index 645e9494238b..4628dfee1f61 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/Node.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/Node.ts @@ -4,19 +4,19 @@ import { StatusEnum } from '@/types/cloud/project/database/StatusEnum'; /** Cloud databases cluster node definition */ export interface Node { /** Date of the creation of the node */ - createdAt?: string; + createdAt: string; /** Flavor of the node */ - flavor?: string; + flavor: string; /** Node ID */ - id?: string; + id: string; /** Name of the node */ - name?: string; + name: string; /** Connection port for the node */ - port?: number; + port: number; /** Region of the node */ - region?: string; + region: string; /** Role of the node */ - role: RoleEnum; + role?: RoleEnum; /** Current status of the node */ - status?: StatusEnum; + status: StatusEnum; } diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/NodeCreation.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/NodeCreation.ts index 314b400c98cb..31f189d0fa56 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/NodeCreation.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/NodeCreation.ts @@ -4,19 +4,19 @@ import { StatusEnum } from '@/types/cloud/project/database/StatusEnum'; /** Cloud databases cluster new node definition */ export interface NodeCreation { /** Date of the creation of the node */ - createdAt?: string; + createdAt: string; /** Flavor of the node */ flavor: string; /** Node ID */ - id?: string; + id: string; /** Name of the node */ - name?: string; + name: string; /** Connection port for the node */ - port?: number; + port: number; /** Region of the node */ region: string; /** Role of the node */ - role: RoleEnum; + role?: RoleEnum; /** Current status of the node */ - status?: StatusEnum; + status: StatusEnum; } diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/PrometheusAccess.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/PrometheusAccess.ts new file mode 100644 index 000000000000..4777d2adb494 --- /dev/null +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/PrometheusAccess.ts @@ -0,0 +1,7 @@ +/** Prometheus credentials */ +export interface PrometheusAccess { + /** Password of the Prometheus access */ + password: string; + /** Name of the Prometheus access */ + username: string; +} diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/PrometheusEndpoint.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/PrometheusEndpoint.ts new file mode 100644 index 000000000000..064f4d57d772 --- /dev/null +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/PrometheusEndpoint.ts @@ -0,0 +1,9 @@ +import { Target } from '@/types/cloud/project/database/service/prometheus/Target'; + +/** Prometheus Endpoint */ +export interface PrometheusEndpoint { + /** Endpoint target for Prometheus */ + targets: Target[]; + /** Name of the Prometheus access */ + username: string; +} diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/Replication.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/Replication.ts index e71bcc56d3a3..7a522548f02b 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/Replication.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/Replication.ts @@ -7,17 +7,17 @@ export interface Replication { /** Defines whether the replication is actived */ enabled: boolean; /** Service ID */ - id?: string; + id: string; /** ReplicationPolicyClass used for the replication */ replicationPolicyClass: PolicyClassEnum; /** ID of the integration source */ - sourceIntegration?: string; + sourceIntegration: string; /** Defines whether the group offsets must be sync */ syncGroupOffsets: boolean; /** Defines the interval in second between 2 sync */ syncInterval: number; /** ID of the integration target */ - targetIntegration?: string; + targetIntegration: string; /** Patterns of the topics to exclude from the replication */ topicExcludeList: string[]; /** Patterns of the topics to replicate */ diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/Storage.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/Storage.ts index 83a35da4ca84..2db3118f3196 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/Storage.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/Storage.ts @@ -5,5 +5,5 @@ export interface Storage { /** Service storage size */ size: UnitAndValueLong; /** Service storage type */ - type?: string; + type: string; } diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/User.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/User.ts index 1602c7ca3e63..a18ead1d128c 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/User.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/User.ts @@ -3,11 +3,11 @@ import { StatusEnum } from '@/types/cloud/project/database/StatusEnum'; /** User definition */ export interface User { /** Date of the creation of the user */ - createdAt?: string; + createdAt: string; /** User ID */ - id?: string; + id: string; /** Current status of the user */ - status?: StatusEnum; + status: StatusEnum; /** Name of the user */ - username?: string; + username: string; } diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/UserWithPassword.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/UserWithPassword.ts index 1970534f31da..1d69668b3dbc 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/UserWithPassword.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/UserWithPassword.ts @@ -3,13 +3,13 @@ import { StatusEnum } from '@/types/cloud/project/database/StatusEnum'; /** User with password definition */ export interface UserWithPassword { /** Date of the creation of the user */ - createdAt?: string; + createdAt: string; /** User ID */ - id?: string; + id: string; /** Password of the user */ - password?: string; + password: string; /** Current status of the user */ - status?: StatusEnum; + status: StatusEnum; /** Name of the user */ - username?: string; + username: string; } diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/UserWithPasswordAndRoles.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/UserWithPasswordAndRoles.ts index 866b0119064d..fc00c205e853 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/UserWithPasswordAndRoles.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/UserWithPasswordAndRoles.ts @@ -3,15 +3,15 @@ import { StatusEnum } from '@/types/cloud/project/database/StatusEnum'; /** User with password definition */ export interface UserWithPasswordAndRoles { /** Date of the creation of the user */ - createdAt?: string; + createdAt: string; /** User ID */ - id?: string; + id: string; /** Password of the user */ password: string; /** Roles the user belongs to */ roles: string[]; /** Current status of the user */ - status?: StatusEnum; + status: StatusEnum; /** Name of the user */ - username?: string; + username: string; } diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/UserWithRoles.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/UserWithRoles.ts index 434dbf9463f2..6aba251e36f1 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/UserWithRoles.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/UserWithRoles.ts @@ -3,13 +3,13 @@ import { StatusEnum } from '@/types/cloud/project/database/StatusEnum'; /** User definition */ export interface UserWithRoles { /** Date of the creation of the user */ - createdAt?: string; + createdAt: string; /** User ID */ - id?: string; + id: string; /** Roles the user belongs to */ roles: string[]; /** Current status of the user */ - status?: StatusEnum; + status: StatusEnum; /** Name of the user */ - username?: string; + username: string; } diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/creation/BackupFork.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/creation/BackupFork.ts index 8148408a8b93..29d16c1f1d99 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/creation/BackupFork.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/creation/BackupFork.ts @@ -1,4 +1,4 @@ -/** Defines the source to fork a cluster from a backup. DEPRECATED: use forkFrom */ +/** @deprecated Defines the source to fork a cluster from a backup. DEPRECATED: use forkFrom */ export interface BackupFork { /** Backup ID (not compatible with pointInTime) */ id: string; diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/creation/ForkFrom.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/creation/ForkFrom.ts index 33d538f2ec9b..778788e0f046 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/creation/ForkFrom.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/creation/ForkFrom.ts @@ -1,9 +1,9 @@ /** Defines the source to fork a cluster from a backup */ export interface ForkFrom { /** Backup ID (not compatible with pointInTime) */ - backupId?: string; + backupId: string; /** Point in time to restore from (not compatible with id) */ - pointInTime?: string; + pointInTime: string; /** Service ID to which the backups belong to */ serviceId: string; } diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/currentqueries/Query.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/currentqueries/Query.ts index eb2a4fff8484..07f8b4f00db0 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/currentqueries/Query.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/currentqueries/Query.ts @@ -5,7 +5,7 @@ import { WaitEventTypeEnum } from '@/types/cloud/project/database/service/curren /** Cloud database service current queries query definition */ export interface Query { /** Application name */ - applicationName?: string; + applicationName: string; /** Backend start timestamp */ backendStart?: string; /** Backend type */ @@ -23,19 +23,19 @@ export interface Query { /** Database ID */ databaseId?: number; /** Database name */ - databaseName?: string; + databaseName: string; /** Leader process ID */ leaderPid?: number; /** Connection process ID */ - pid?: number; + pid: number; /** Current query running on this connection */ - query?: string; + query: string; /** Duration of the query in seconds */ - queryDuration?: number; + queryDuration: number; /** Query start timestamp */ queryStart?: string; /** Connection state */ - state?: StateEnum; + state: StateEnum; /** Connection state change timestamp */ stateChange?: string; /** Transaction start timestamp */ @@ -43,7 +43,7 @@ export interface Query { /** User ID */ userId?: number; /** User name */ - userName?: string; + userName: string; /** Connection wait event */ waitEvent?: string; /** Connection wait event type */ diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/currentqueries/query/CancelResponse.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/currentqueries/query/CancelResponse.ts index 8d39f65e8960..46ab83a77914 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/currentqueries/query/CancelResponse.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/currentqueries/query/CancelResponse.ts @@ -1,5 +1,5 @@ /** Cloud database service current queries query cancel response */ export interface CancelResponse { /** Status reported by the database server */ - success?: boolean; + success: boolean; } diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/index.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/index.ts index 675d7a743d10..45bd6fd9433b 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/index.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/index.ts @@ -5,6 +5,7 @@ import * as endpoint from './endpoint/index'; import * as integration from './integration/index'; import * as maintenance from './maintenance/index'; import * as node from './node/index'; +import * as prometheus from './prometheus/index'; import * as replication from './replication/index'; export * from './Backup'; @@ -27,6 +28,8 @@ export * from './MetricUnitEnum'; export * from './Node'; export * from './NodeCreation'; export * from './NodePattern'; +export * from './PrometheusAccess'; +export * from './PrometheusEndpoint'; export * from './Replication'; export * from './ReplicationCreation'; export * from './Restore'; @@ -44,4 +47,5 @@ export { endpoint }; export { integration }; export { maintenance }; export { node }; +export { prometheus }; export { replication }; diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/prometheus/Target.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/prometheus/Target.ts new file mode 100644 index 000000000000..eeadf31aa4f6 --- /dev/null +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/prometheus/Target.ts @@ -0,0 +1,7 @@ +/** Prometheus endpoint target */ +export interface Target { + /** Hostname of the prometheus target */ + host: string; + /** Port of the prometheus target */ + port: number; +} diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/prometheus/index.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/prometheus/index.ts new file mode 100644 index 000000000000..9f2d7471194d --- /dev/null +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/prometheus/index.ts @@ -0,0 +1 @@ +export * from './Target'; diff --git a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/replication/PolicyClassEnum.ts b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/replication/PolicyClassEnum.ts index b4ac596395f8..b6cb05f47ab3 100644 --- a/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/replication/PolicyClassEnum.ts +++ b/packages/manager/apps/pci-databases-analytics/src/types/cloud/project/database/service/replication/PolicyClassEnum.ts @@ -1,5 +1,5 @@ /** Possible type of the service integration */ export enum PolicyClassEnum { - 'org.apache.kafka.connect.mirror.DefaultReplicationPolicy' = 'org.apache.kafka.connect.mirror.DefaultReplicationPolicy', - 'org.apache.kafka.connect.mirror.IdentityReplicationPolicy' = 'org.apache.kafka.connect.mirror.IdentityReplicationPolicy', + 'org_apache_kafka_connect_mirror_DefaultReplicationPolicy' = 'org.apache.kafka.connect.mirror.DefaultReplicationPolicy', + 'org_apache_kafka_connect_mirror_IdentityReplicationPolicy' = 'org.apache.kafka.connect.mirror.IdentityReplicationPolicy', }