github.com/microsoft/moc@v0.17.1/rpc/cloudagent/compute/availabilityset/moc_cloudagent_availabilityset.proto (about) 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 message VirtualMachineReference { 23 string groupName = 1; 24 string name = 2; 25 string realizedName = 3; 26 } 27 28 // avset structure is a flattened version of the model in the Azure sdk for go at 29 // https://github.com/Azure/azure-sdk-for-go/blob/main/sdk/resourcemanager/compute/armcompute/models.go 30 message AvailabilitySet { 31 string name = 1; 32 string id = 2; 33 string locationName = 3; 34 string groupName = 4; 35 Status status = 5; 36 Tags tags = 6; 37 int32 platformFaultDomainCount = 7; 38 repeated VirtualMachineReference virtualMachines = 8; 39 } 40 41 service AvailabilitySetAgent { 42 rpc Invoke(AvailabilitySetRequest) returns (AvailabilitySetResponse) {} 43 } 44 45