Skip to content

Commit 2b93289

Browse files
committed
avset
1 parent ba6de22 commit 2b93289

13 files changed

Lines changed: 1376 additions & 547 deletions
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
// Copyright (c) Microsoft Corporation.
2+
// Licensed under the Apache v2.0 license.
3+
4+
syntax = "proto3";
5+
option go_package = "github.com/microsoft/moc/rpc/cloudagent/compute";
6+
package moc.cloudagent.compute;
7+
8+
import "google/protobuf/wrappers.proto";
9+
import "moc_common_common.proto";
10+
11+
message AvailabilitySetRequest {
12+
repeated AvailabilitySet AvailabilitySets = 1;
13+
Operation OperationType = 2;
14+
}
15+
16+
message AvailabilitySetResponse {
17+
repeated AvailabilitySet AvailabilitySets = 1;
18+
google.protobuf.BoolValue Result = 2;
19+
string Error = 3;
20+
}
21+
22+
// avset structure is a flattened version of the model in the Azure sdk for go at
23+
// https://github.com/Azure/azure-sdk-for-go/blob/main/sdk/resourcemanager/compute/armcompute/models.go
24+
message AvailabilitySet {
25+
string name = 1;
26+
string id = 2;
27+
string locationName = 3;
28+
string groupName = 4;
29+
Status status = 5;
30+
Tags tags = 6;
31+
int32 platformFaultDomainCount = 7;
32+
repeated CloudSubResource virtualMachines = 8;
33+
}
34+
35+
service AvailabilitySetAgent {
36+
rpc Invoke(AvailabilitySetRequest) returns (AvailabilitySetResponse) {}
37+
}
38+
39+

rpc/cloudagent/compute/moc_cloudagent_availabilityset.pb.go

Lines changed: 351 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)