che icon indicating copy to clipboard operation
che copied to clipboard

Set machine attributes of workspace

Open MuraliVidhya opened this issue 9 years ago • 2 comments

Hi,

Am using swagger-codegen-maven-plugin to generate swagger client and the respective model, api classes. I want to set new attribute in machine attributes section, like this "dev-machine": { "attributes": { "memoryLimitBytes": "2147483648", "new": "smth" }

For doing this, we have putAttributesItem in WorkspaceDto class. I know my factory and is available in factoryDto model. and workspace i retrieved based on

   // Prepare a Workspace based on the WorkspaceConfig of the factory
    WorkspaceConfigDto config = factoryDto.getWorkspace();//workspaces.get(0).getConfig();

I could not establish connection between factoryDto and WorkspaceDto. And attributes can be set only using WorkspaceDto.

Do we have a possibility to achieve this ?

MuraliVidhya avatar May 09 '17 03:05 MuraliVidhya

@mvidhya86 is the question still actual? I have seen you asked similar questions in a different issue and you seemed to have succeeded in setting ws attributes.

ghost avatar May 15 '17 10:05 ghost

@eivantsov - Yes, i could solve this by using WorkspaceDto.

MuraliVidhya avatar May 15 '17 11:05 MuraliVidhya