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

Not able to create a cloud account with linked Mobility Cloud Accounts #267

Closed
SimonSparksUK opened this issue Apr 25, 2024 · 2 comments
Closed

Comments

@SimonSparksUK
Copy link

Description

When creating a cloud account using TypeScript I want to be able to add the Site Associations

Steps to Reproduce

This is the Aria Automation Cloud Account Edit View in the HTML5 UI.

image

This is the Aria Automation REST API in Swagger showing the attribute which I would like to be able to set when creating a Cloud Account via TypeScript.

image

This some sample TypeScript to show the missing attribute from the CloudAccountVsphereSpecification type.

image

Client

  • Build Tools for VMware Aria Version: v2.38.1
  • Visual Studio Code Version: Latest
  • OS Version: Windows 11

Server

  • Aria Automation Version: v8.16
  • Aria Orchestrator Version: v8.16

Additional Context

This is blocking our migration from vRA v7.6 to vRA v8.x we use it in multi-tenant mode.

@SimonSparksUK
Copy link
Author

Nudge

@VenelinBakalov
Copy link
Contributor

Hi Simon,

Thanks for raising your concern. Unfortunately, the issue you are describing is not related to Build Tools for Aria directly. This seems to be coming from interfaces/types defined in custom code (vRO package). While the package itself might be using Build Tools for Aria in order to transpile it (build the custom code into a vRO pakcage), the missing interfaces are coming from the code base of that package and not from Build Tools for VMware Aria. On first glance, I would assume that the package you are referring to has been created against an earlier version of vRA and the missing properties you are describing are most likely coming from a later version of vRA.

However, I can propose to you an easy alternative solution which you can implement in your own code base. You can use native TS inheritance to create your own interface that re-uses everything from that package's interfaces and add the missing property on top.

Here is an example of how this can work by defining your own type: "CustomCloudAccountVsphereSpecification":

export type CustomCloudAccountVsphereSpecification = CloudAccountVsphereSpecification & {
    associatedMobilityCloudAccountIds?: string
}

After that you can use your own defined CustomCloudAccountVsphereSpecification which preserves all of the original fields and adds the missing one on top and if needed at later point - you can continue to extend it.

I hope this helps to solve the issue.

P.s. In case the specification is interface and not a type you can use similar approach:

export interface CustomCloudAccountVsphereSpecification extends CloudAccountVsphereSpecification {
    associatedMobilityCloudAccountIds?: string
}

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

2 participants