github.com/microsoft/moc@v0.17.1/rpc/cloudagent/cloud/cluster/moc_cloudagent_cluster.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/cloud";
     6  package moc.cloudagent.cluster;
     7  
     8  import "google/protobuf/wrappers.proto";
     9  import "moc_common_common.proto";
    10  import "moc_cloudagent_node.proto";
    11  
    12  message ClusterResponse {
    13  	repeated Cluster Clusters = 1;
    14  	google.protobuf.BoolValue Result = 2;
    15  	string  Error = 3;
    16  }
    17  
    18  message Cluster {
    19  	string name = 1;
    20  	string id = 2;
    21  	string fqdn = 3;
    22  	Status status = 4;
    23  	bool UserOwned = 5;
    24  	bool IsLocalCluster = 6;
    25  	string domain = 7;
    26  	repeated moc.cloudagent.node.Node Nodes = 8;
    27  	string locationName = 9; 
    28  	Tags tags = 10;
    29  }
    30  
    31  
    32  service ClusterAgent {
    33  	rpc LoadCluster(Cluster) returns (ClusterResponse) {}
    34  	rpc UnloadCluster(Cluster) returns (ClusterResponse) {}
    35  	rpc GetCluster(Cluster) returns (ClusterResponse) {}
    36  	rpc GetNodes(Cluster) returns (moc.cloudagent.node.NodeResponse) {}
    37  }
    38