-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cf47788
commit a24a3e9
Showing
3 changed files
with
86 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
rpc/cloudagent/network/publicipaddress/moc_cloudagent_publicipaddress.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the Apache v2.0 license. | ||
|
||
syntax = "proto3"; | ||
option go_package = "github.com/microsoft/moc/rpc/cloudagent/network"; | ||
package moc.cloudagent.network; | ||
|
||
import "google/protobuf/wrappers.proto"; | ||
import "moc_common_common.proto"; | ||
import "moc_common_networkcommon.proto"; | ||
|
||
message PublicIPAddressRequest { | ||
repeated PublicIPAddress PublicIPAddresss = 1; | ||
Operation OperationType = 2; | ||
} | ||
|
||
message PublicIPAddressResponse { | ||
repeated PublicIPAddress PublicIPAddresss = 1; | ||
google.protobuf.BoolValue Result = 2; | ||
string Error = 3; | ||
} | ||
|
||
IPAddress *string `json:"ipAddress,omitempty"` | ||
|
||
PublicIPAllocationMethod IPAllocationMethod `json:"publicIPAllocationMethod,omitempty"` | ||
|
||
PublicIPAddressVersion IPVersion `json:"publicIPAddressVersion,omitempty"` | ||
|
||
IPConfiguration *IPConfiguration `json:"ipConfiguration,omitempty"` | ||
|
||
DNSSettings *PublicIPAddressDNSSettings `json:"dnsSettings,omitempty"` | ||
|
||
IdleTimeoutInMinutes *int32 `json:"idleTimeoutInMinutes,omitempty"` | ||
|
||
DNSSettings *PublicIPAddressDNSSettings `json:"dnsSettings,omitempty"` | ||
|
||
message PublicIPAddress { | ||
string name = 1; | ||
string id = 2; | ||
string ipAddress = 3 [(sensitive) = true]; | ||
IPAllocationMethod allocation = 4; | ||
IPVersion ipVersion = 5; | ||
uint32 idleTimeoutInMinutes = 6; | ||
string domainNameLabel = 7; | ||
string fqdn = 8; | ||
string reverseFqdn = 9; | ||
string locationName = 10; | ||
Status status = 11; | ||
Tags tags = 12; | ||
} | ||
|
||
service PublicIPAddressAgent { | ||
rpc Invoke(PublicIPAddressRequest) returns (PublicIPAddressResponse) {} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters