Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the Apache v2.0 license.

syntax = "proto3";
option go_package = "github.com/microsoft/moc/rpc/cloudagent/compute";
package moc.cloudagent.compute;

import "google/protobuf/wrappers.proto";
import "moc_common_common.proto";

message AvailabilitySetRequest {
repeated AvailabilitySet AvailabilitySets = 1;
Operation OperationType = 2;
}

message AvailabilitySetResponse {
repeated AvailabilitySet AvailabilitySets = 1;
google.protobuf.BoolValue Result = 2;
string Error = 3;
}

// avset structure is a flattened version of the model in the Azure sdk for go at
// https://github.com/Azure/azure-sdk-for-go/blob/main/sdk/resourcemanager/compute/armcompute/models.go
message AvailabilitySet {
string name = 1;
string id = 2;
string locationName = 3;
string groupName = 4;
Status status = 5;
Tags tags = 6;
int32 platformFaultDomainCount = 7;
repeated CloudSubResource virtualMachines = 8;
}

service AvailabilitySetAgent {
rpc Invoke(AvailabilitySetRequest) returns (AvailabilitySetResponse) {}
}


351 changes: 351 additions & 0 deletions rpc/cloudagent/compute/moc_cloudagent_availabilityset.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading