Skip to content

feat: MVM protos - #10

Open
majst01 wants to merge 25 commits into
mainfrom
vm
Open

majst01 wants to merge 25 commits into
mainfrom
vm

Conversation

@majst01

@majst01 majst01 commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

Adds VM Instance Types to define contracts.

Already implemented:

  • /vm/location (list)
  • /vm/os (list)
  • /vm/stagetype (list)
  • /vm/vlan (list)
  • /vm/instance/list
  • /vim/instance/create

Needs #13

Supported by Qwen 3.8

Comment thread proto/fits/api/mvm/v1/stagetype.proto Outdated
// StageTypeTitle string `json:"stage_type_title"`
// StageTypeUuid *openapi_types.UUID `json:"stage_type_uuid,omitempty"`
// }
string title = 2 [(buf.validate.field).string.(fits.api.v1.is_name) = true];

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe always name for names ?

@ma-hartma ma-hartma changed the title First vm protos feat: VM protos Sep 10, 2026
@ma-hartma ma-hartma changed the title feat: VM protos feat: MVM protos Sep 24, 2026
Comment thread proto/fits/api/mvm/v1/mvm.proto Outdated
Comment thread proto/fits/api/mvm/v1/mvm.proto Outdated
Comment on lines +230 to +233
// Status of the ongoing operation.
// TODO: can we have an ENUM here? Active, Are deleted ones there? Are stopped ones accounted?
// Would have to be part of openapi spec, otherwise breaking changes couldn't be detected
string status = 12;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you can prepare an enum here. This field does not serve any purpose if the UI cannot automatically react on this.

Comment thread proto/fits/api/mvm/v1/mvm.proto
Comment on lines +51 to +57
// Changes the size or auto-extend behavior of an existing disk; see
// DiskType for which operations apply per disk kind.
rpc UpdateDisk(MVMServiceUpdateDiskRequest) returns (MVMServiceUpdateDiskResponse) {
option (fits.api.v1.project_roles) = PROJECT_ROLE_OWNER;
option (fits.api.v1.project_roles) = PROJECT_ROLE_EDITOR;
option (fits.api.v1.auditing) = AUDITING_INCLUDED;
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// Changes the size or auto-extend behavior of an existing disk; see
// DiskType for which operations apply per disk kind.
rpc UpdateDisk(MVMServiceUpdateDiskRequest) returns (MVMServiceUpdateDiskResponse) {
option (fits.api.v1.project_roles) = PROJECT_ROLE_OWNER;
option (fits.api.v1.project_roles) = PROJECT_ROLE_EDITOR;
option (fits.api.v1.auditing) = AUDITING_INCLUDED;
}

To be discussed. Should not block this PR.

@ma-hartma
ma-hartma marked this pull request as ready for review September 25, 2026 15:48
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

Successfully merging this pull request may close these issues.

3 participants