Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TBI - Expose Cloud Foundry instance types #2699

Open
1 task
longieirl opened this issue Dec 12, 2024 · 0 comments
Open
1 task

TBI - Expose Cloud Foundry instance types #2699

longieirl opened this issue Dec 12, 2024 · 0 comments
Assignees

Comments

@longieirl
Copy link
Contributor

longieirl commented Dec 12, 2024

Description (include screenshots)

Expose Cloud Foundry instance types. These instance types are used when leveraging cf-tools https://www.npmjs.com/package/@sap/cf-tools for example to filter CF instances by type;

https://github.com/SAP/cloud-foundry-tools-api/blob/edc848eaeb45ac4405b02e8f4f7a25e5047e43f0/src/cfServicesUtil.ts#L13

Sample code;

const filteredInstances = [
        ServiceType.ABAP,
        ServiceType.ABAP_TRIAL,
        ServiceType.ABAP_CANARY,
        ServiceType.ABAP_OEM,
        ServiceType.ABAP_OEM_CANARY,
        ServiceType.ABAP_HAAS,
      ];
      serviceInstances = await cfTools.apiGetServicesInstancesFilteredByType(
        filteredInstances
      );

Sample list;

export enum ServiceType {
    /**
     * ABAP instance type
     */
    ABAP = 'abap',
    /**
     * ABAP trial instance type
     */
    ABAP_TRIAL = 'abap-trial',
    /**
     * ABAP CANARY trial instance type
     */
    ABAP_CANARY = 'abap-canary',
    /**
     * ABAP OEM instance type
     */
    ABAP_OEM = 'abap-oem',
    /**
     * ABAP OEM CANARY instance type
     */
    ABAP_OEM_CANARY = 'abap-oem-canary',
    /**
     * ABAP HAAS instance type
     */
    ABAP_HAAS = 'abap-haas',
    /**
     * Destination service instance type
     */
    DESTINATION = 'destination',
    /**
     * ABAP Staging service instance type
     */
    ABAP_STAGING = 'abap-staging',
    /**
     * ABAP Internal Staging service instance type
     */
    ABAP_INTERNAL_STAGING = 'abap-internal-staging'
}

Value

Architecture Elaboration

Notes

Tasks

  • Expose new CF instance list via btp-utils as this will be consumed by other modules
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant