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