@routr/common 2.0.8-alpha.14 → 2.0.8-alpha.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/connect/api/client.d.ts +3 -0
- package/dist/connect/api/client.js +154 -0
- package/dist/connect/api/index.d.ts +2 -0
- package/dist/connect/api/index.js +36 -0
- package/dist/connect/api/types.d.ts +55 -0
- package/dist/connect/api/types.js +2 -0
- package/dist/connect/config.d.ts +109 -0
- package/dist/connect/config.js +2 -0
- package/dist/connect/converters.d.ts +10 -0
- package/dist/connect/converters.js +176 -0
- package/dist/connect/grpc_client.d.ts +8 -1
- package/dist/connect/grpc_client.js +44 -6
- package/dist/connect/index.d.ts +3 -1
- package/dist/connect/index.js +3 -1
- package/dist/connect/protos/acl.proto +117 -0
- package/dist/connect/protos/agents.proto +154 -0
- package/dist/connect/protos/credentials.proto +116 -0
- package/dist/connect/protos/domains.proto +150 -0
- package/dist/connect/protos/numbers.proto +184 -0
- package/dist/connect/protos/peers.proto +166 -0
- package/dist/connect/protos/trunks.proto +186 -0
- package/dist/connect/schemas/acl.d.ts +1 -0
- package/dist/connect/schemas/acl.js +3 -2
- package/dist/connect/schemas/agent.d.ts +1 -0
- package/dist/connect/schemas/agent.js +5 -4
- package/dist/connect/schemas/crendentials.d.ts +1 -0
- package/dist/connect/schemas/crendentials.js +2 -1
- package/dist/connect/schemas/domain.d.ts +2 -1
- package/dist/connect/schemas/domain.js +3 -2
- package/dist/connect/schemas/number.d.ts +1 -0
- package/dist/connect/schemas/number.js +4 -3
- package/dist/connect/schemas/peer.d.ts +1 -0
- package/dist/connect/schemas/peer.js +3 -2
- package/dist/connect/schemas/trunk.d.ts +3 -0
- package/dist/connect/schemas/trunk.js +6 -3
- package/dist/connect/types.d.ts +73 -24
- package/dist/connect/types.js +6 -29
- package/dist/errors.d.ts +35 -1
- package/dist/errors.js +51 -5
- package/dist/helper.d.ts +1 -0
- package/dist/helper.js +11 -3
- package/dist/index.d.ts +4 -4
- package/dist/index.js +4 -5
- package/dist/protos/common.proto +0 -2
- package/dist/protos/location.proto +3 -2
- package/dist/service.d.ts +2 -2
- package/dist/service.js +1 -1
- package/dist/types.d.ts +2 -0
- package/package.json +4 -3
- package/dist/connect/data_api.d.ts +0 -11
- package/dist/connect/data_api.js +0 -91
- package/dist/protos/resources.proto +0 -108
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (C) 2022 by Fonoster Inc (https://fonoster.com)
|
|
3
|
+
* http://github.com/fonoster/routr
|
|
4
|
+
*
|
|
5
|
+
* This file is part of Routr
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the MIT License (the "License")
|
|
8
|
+
* you may not use this file except in compliance with
|
|
9
|
+
* the License. You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* https://opensource.org/licenses/MIT
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
19
|
+
syntax = "proto3";
|
|
20
|
+
|
|
21
|
+
package fonoster.routr.connect.acl.v2draft1;
|
|
22
|
+
|
|
23
|
+
import "google/protobuf/empty.proto";
|
|
24
|
+
|
|
25
|
+
// AccessControlList(ACL) service definition
|
|
26
|
+
service ACLService {
|
|
27
|
+
// Create a new ACL
|
|
28
|
+
rpc Create (CreateACLRequest) returns (AccessControlList) {}
|
|
29
|
+
// Update an existing ACL
|
|
30
|
+
rpc Update (UpdateACLRequest) returns (AccessControlList) {}
|
|
31
|
+
// Get an existing ACL
|
|
32
|
+
rpc Get (GetACLRequest) returns (AccessControlList) {}
|
|
33
|
+
// Delete an existing ACL
|
|
34
|
+
rpc Delete (DeleteACLRequest) returns (.google.protobuf.Empty) {}
|
|
35
|
+
// Get a list of ACLs
|
|
36
|
+
rpc List (ListACLsRequest) returns (ListACLsResponse) {}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// The message for AccessControlList resource
|
|
40
|
+
message AccessControlList {
|
|
41
|
+
// The version of the API
|
|
42
|
+
string api_version = 1;
|
|
43
|
+
// The ACL reference
|
|
44
|
+
string ref = 2;
|
|
45
|
+
// A friendly name for the ACL
|
|
46
|
+
string name = 3;
|
|
47
|
+
// The list of allowed IP addresses
|
|
48
|
+
repeated string allow = 4;
|
|
49
|
+
// The list of denied IP addresses
|
|
50
|
+
repeated string deny = 5;
|
|
51
|
+
// The date the ACL was created
|
|
52
|
+
int32 created_at = 6;
|
|
53
|
+
// The date the ACL was last updated
|
|
54
|
+
int32 updated_at = 7;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
// The request message for the AccessControlList.Create method
|
|
58
|
+
message CreateACLRequest {
|
|
59
|
+
// The version of the API
|
|
60
|
+
string api_version = 1;
|
|
61
|
+
// A friendly name for the ACL
|
|
62
|
+
string name = 2;
|
|
63
|
+
// The list of allowed IP addresses
|
|
64
|
+
repeated string allow = 3;
|
|
65
|
+
// The list of denied IP addresses
|
|
66
|
+
repeated string deny = 4;
|
|
67
|
+
// The date the ACL was created
|
|
68
|
+
int32 created_at = 5;
|
|
69
|
+
// The date the ACL was last updated
|
|
70
|
+
int32 updated_at = 6;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
// The request message for the AccessControlList.Update method
|
|
74
|
+
message UpdateACLRequest {
|
|
75
|
+
// The version of the API
|
|
76
|
+
string api_version = 1;
|
|
77
|
+
// The ACL reference
|
|
78
|
+
string ref = 2;
|
|
79
|
+
// A friendly name for the ACL
|
|
80
|
+
string name = 3;
|
|
81
|
+
// The list of allowed IP addresses
|
|
82
|
+
repeated string allow = 4;
|
|
83
|
+
// The list of denied IP addresses
|
|
84
|
+
repeated string deny = 5;
|
|
85
|
+
// The date the ACL was created
|
|
86
|
+
int32 created_at = 6;
|
|
87
|
+
// The date the ACL was last updated
|
|
88
|
+
int32 updated_at = 7;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
// The request message for the AccessControlList.Get method
|
|
92
|
+
message GetACLRequest {
|
|
93
|
+
string ref = 1;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
// The request message for the AccessControlList.Delete method
|
|
97
|
+
message DeleteACLRequest {
|
|
98
|
+
string ref = 1;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
// The request message for the AccessControlList.List method
|
|
102
|
+
message ListACLsRequest {
|
|
103
|
+
// The maximum number of items in the list
|
|
104
|
+
int32 page_size = 1;
|
|
105
|
+
|
|
106
|
+
// The next_page_token value returned from the previous request, if any
|
|
107
|
+
string page_token = 2;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
// The response message for the AccessControlList.List method
|
|
111
|
+
message ListACLsResponse {
|
|
112
|
+
// List of items
|
|
113
|
+
repeated AccessControlList items = 1;
|
|
114
|
+
|
|
115
|
+
// Token to retrieve the next page of results, or empty if there are no more results in the list
|
|
116
|
+
string next_page_token = 2;
|
|
117
|
+
}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (C) 2022 by Fonoster Inc (https://fonoster.com)
|
|
3
|
+
* http://github.com/fonoster/routr
|
|
4
|
+
*
|
|
5
|
+
* This file is part of Routr
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the MIT License (the "License")
|
|
8
|
+
* you may not use this file except in compliance with
|
|
9
|
+
* the License. You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* https://opensource.org/licenses/MIT
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
19
|
+
syntax = "proto3";
|
|
20
|
+
|
|
21
|
+
package fonoster.routr.connect.agents.v2draft1;
|
|
22
|
+
|
|
23
|
+
import "google/protobuf/struct.proto";
|
|
24
|
+
import "google/protobuf/empty.proto";
|
|
25
|
+
import "domains.proto";
|
|
26
|
+
import "credentials.proto";
|
|
27
|
+
|
|
28
|
+
// The Agents service definition
|
|
29
|
+
service Agents {
|
|
30
|
+
// Creates a new Agent
|
|
31
|
+
rpc Create (CreateAgentRequest) returns (Agent) {}
|
|
32
|
+
// Updates an existing Agent
|
|
33
|
+
rpc Update (UpdateAgentRequest) returns (Agent) {}
|
|
34
|
+
// Gets an existing Agent
|
|
35
|
+
rpc Get (GetAgentRequest) returns (Agent) {}
|
|
36
|
+
// Deletes an existing Agent
|
|
37
|
+
rpc Delete (DeleteAgentRequest) returns (.google.protobuf.Empty) {}
|
|
38
|
+
// Lists all Agents
|
|
39
|
+
rpc List (ListAgentsRequest) returns (ListAgentsResponse) {}
|
|
40
|
+
// Find Agents by field name and value
|
|
41
|
+
rpc FindBy (FindByRequest) returns (FindByResponse) {}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// The message for the Agent resource
|
|
45
|
+
message Agent {
|
|
46
|
+
// The API version of the Agent
|
|
47
|
+
string api_version = 1;
|
|
48
|
+
// The unique identifier of the Agent
|
|
49
|
+
string ref = 2;
|
|
50
|
+
// The name of the Agent
|
|
51
|
+
string name = 3;
|
|
52
|
+
// The username of the Agent
|
|
53
|
+
string username = 4;
|
|
54
|
+
// The password of the Agent
|
|
55
|
+
string privacy = 5;
|
|
56
|
+
// The enabled status of the Agent
|
|
57
|
+
bool enabled = 6;
|
|
58
|
+
// The created_at timestamp of the Agent
|
|
59
|
+
int32 created_at = 7;
|
|
60
|
+
// The updated_at timestamp of the Agent
|
|
61
|
+
int32 updated_at = 8;
|
|
62
|
+
// The domain of the Agent
|
|
63
|
+
fonoster.routr.connect.domains.v2draft1.Domain domain = 9;
|
|
64
|
+
// The credentials of the Agent
|
|
65
|
+
fonoster.routr.connect.credentials.v2draft1.Credentials credentials = 10;
|
|
66
|
+
// The extended attributes of the Agent
|
|
67
|
+
.google.protobuf.Struct extended = 11;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
// The request message for the Agents.Create method
|
|
71
|
+
message CreateAgentRequest {
|
|
72
|
+
// The API version of the Agent
|
|
73
|
+
string api_version = 1;
|
|
74
|
+
// The name of the Agent
|
|
75
|
+
string name = 2;
|
|
76
|
+
// The username of the Agent
|
|
77
|
+
string username = 3;
|
|
78
|
+
// The password of the Agent
|
|
79
|
+
string privacy = 4;
|
|
80
|
+
// The enabled status of the Agent
|
|
81
|
+
bool enabled = 5;
|
|
82
|
+
// The domain of the Agent
|
|
83
|
+
//fonoster.routr.connect.domains.v2draft1.Domain domain = 6;
|
|
84
|
+
// The credentials of the Agent
|
|
85
|
+
// fonoster.routr.connect.credentials.v2draft1.Credentials credentials = 7;
|
|
86
|
+
// The extended attributes of the Agent
|
|
87
|
+
.google.protobuf.Struct extended = 8;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
// The request message for the Agents.Update method
|
|
91
|
+
message UpdateAgentRequest {
|
|
92
|
+
// The API version of the Agent
|
|
93
|
+
string api_version = 1;
|
|
94
|
+
// The unique identifier of the Agent
|
|
95
|
+
string ref = 2;
|
|
96
|
+
// The name of the Agent
|
|
97
|
+
string name = 3;
|
|
98
|
+
// The username of the Agent
|
|
99
|
+
string username = 4;
|
|
100
|
+
// The privacy settings of the Agent
|
|
101
|
+
string privacy = 5;
|
|
102
|
+
// The enabled status of the Agent
|
|
103
|
+
bool enabled = 6;
|
|
104
|
+
// The domain of the Agent
|
|
105
|
+
fonoster.routr.connect.domains.v2draft1.Domain domain = 7;
|
|
106
|
+
// The credentials of the Agent
|
|
107
|
+
fonoster.routr.connect.credentials.v2draft1.Credentials credentials = 8;
|
|
108
|
+
// The extended attributes of the Agent
|
|
109
|
+
.google.protobuf.Struct extended = 9;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
// The request message for the Agents.Get method
|
|
113
|
+
message GetAgentRequest {
|
|
114
|
+
// The unique identifier of the Agent
|
|
115
|
+
string ref = 1;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
// The request message for the Agents.Delete method
|
|
119
|
+
message DeleteAgentRequest {
|
|
120
|
+
// The unique identifier of the Agent
|
|
121
|
+
string ref = 1;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
// The request message for the Agents.FindBy method
|
|
125
|
+
message FindByRequest {
|
|
126
|
+
// The field name to search
|
|
127
|
+
string field_name = 1;
|
|
128
|
+
// The value to search
|
|
129
|
+
string field_value = 2;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
// The response message for the Agents.FindBy method
|
|
133
|
+
message FindByResponse {
|
|
134
|
+
// The list of Agents
|
|
135
|
+
repeated Agent items = 1;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
// The request message for the Agents.List method
|
|
139
|
+
message ListAgentsRequest {
|
|
140
|
+
// The maximum number of items in the list
|
|
141
|
+
int32 page_size = 1;
|
|
142
|
+
|
|
143
|
+
// The next_page_token value returned from the previous request, if any
|
|
144
|
+
string page_token = 2;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
// The response message for the Agents.List method
|
|
148
|
+
message ListAgentsResponse {
|
|
149
|
+
// List of Agents
|
|
150
|
+
repeated Agent items = 1;
|
|
151
|
+
|
|
152
|
+
// Token to retrieve the next page of results, or empty if there are no more results in the list
|
|
153
|
+
string next_page_token = 2;
|
|
154
|
+
}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (C) 2022 by Fonoster Inc (https://fonoster.com)
|
|
3
|
+
* http://github.com/fonoster/routr
|
|
4
|
+
*
|
|
5
|
+
* This file is part of Routr
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the MIT License (the "License")
|
|
8
|
+
* you may not use this file except in compliance with
|
|
9
|
+
* the License. You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* https://opensource.org/licenses/MIT
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
19
|
+
syntax = "proto3";
|
|
20
|
+
|
|
21
|
+
package fonoster.routr.connect.credentials.v2draft1;
|
|
22
|
+
|
|
23
|
+
import "google/protobuf/struct.proto";
|
|
24
|
+
import "google/protobuf/empty.proto";
|
|
25
|
+
|
|
26
|
+
// The Credentials service definition
|
|
27
|
+
service CredentialsService {
|
|
28
|
+
// Creates a new set of Credentials
|
|
29
|
+
rpc Create (CreateCredentialsRequest) returns (Credentials) {}
|
|
30
|
+
// Updates an existing set of C redentials
|
|
31
|
+
rpc Update (UpdateCredentialsRequest) returns (Credentials) {}
|
|
32
|
+
// Gets the details of a given set of Credentials
|
|
33
|
+
rpc Get (GetCredentialsRequest) returns (Credentials) {}
|
|
34
|
+
// Deletes an existing set of Credentials
|
|
35
|
+
rpc Delete (DeleteCredentialsRequest) returns (.google.protobuf.Empty) {}
|
|
36
|
+
// Lists all Credentials
|
|
37
|
+
rpc List (ListCredentialsRequest) returns (ListCredentialsResponse) {}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
// The message for the Credentials resource
|
|
41
|
+
message Credentials {
|
|
42
|
+
// The API version of the Credentials
|
|
43
|
+
string api_version = 1;
|
|
44
|
+
// The reference of the Credentials
|
|
45
|
+
string ref = 2;
|
|
46
|
+
// The name of the Credentials
|
|
47
|
+
string name = 3;
|
|
48
|
+
// The username of the Credentials
|
|
49
|
+
string username = 4;
|
|
50
|
+
// The password of the Credentials
|
|
51
|
+
string password = 5;
|
|
52
|
+
// The time the Credentials was created
|
|
53
|
+
int32 created_at = 6;
|
|
54
|
+
// The time the Credentials was updated
|
|
55
|
+
int32 updated_at = 7;
|
|
56
|
+
// The extended attributes for a set of Credentials
|
|
57
|
+
.google.protobuf.Struct extended = 8;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// The request message for the CreateCredentials.Create method
|
|
61
|
+
message CreateCredentialsRequest {
|
|
62
|
+
// The API version of the Credentials
|
|
63
|
+
string api_version = 1;
|
|
64
|
+
// The name of the Credentials
|
|
65
|
+
string name = 2;
|
|
66
|
+
// The username of the Credentials
|
|
67
|
+
string username = 3;
|
|
68
|
+
// The password of the Credentials
|
|
69
|
+
string password = 4;
|
|
70
|
+
// The extended attributes for a set of Credentials
|
|
71
|
+
.google.protobuf.Struct extended = 5;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
// The request message for the UpdateCredentials.Update method
|
|
75
|
+
message UpdateCredentialsRequest {
|
|
76
|
+
// The reference of the Credentials to update
|
|
77
|
+
string ref = 1;
|
|
78
|
+
// The new name of the Credentials
|
|
79
|
+
string name = 3;
|
|
80
|
+
// The new username of the Credentials
|
|
81
|
+
string username = 4;
|
|
82
|
+
// The new password of the Credentials
|
|
83
|
+
string password = 5;
|
|
84
|
+
// The extended attributes for a set of Credentials
|
|
85
|
+
.google.protobuf.Struct extended = 6;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
// The request message for the GetCredentials.Get method
|
|
89
|
+
message GetCredentialsRequest {
|
|
90
|
+
// The reference of the Credentials to retrieve
|
|
91
|
+
string ref = 1;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
// The request message for the DeleteCredentials.Delete method
|
|
95
|
+
message DeleteCredentialsRequest {
|
|
96
|
+
// The reference of the Credentials to delete
|
|
97
|
+
string ref = 1;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
// The request message for the ListCredentials.List method
|
|
101
|
+
message ListCredentialsRequest {
|
|
102
|
+
// The maximum number of items in the list
|
|
103
|
+
int32 page_size = 1;
|
|
104
|
+
|
|
105
|
+
// The next_page_token value returned from the previous request, if any
|
|
106
|
+
string page_token = 2;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
// The response message for the ListCredentials.List method
|
|
110
|
+
message ListCredentialsResponse {
|
|
111
|
+
// List of Credentials
|
|
112
|
+
repeated Credentials items = 1;
|
|
113
|
+
|
|
114
|
+
// Token to retrieve the next page of results, or empty if there are no more results in the list
|
|
115
|
+
string next_page_token = 2;
|
|
116
|
+
}
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (C) 2022 by Fonoster Inc (https://fonoster.com)
|
|
3
|
+
* http://github.com/fonoster/routr
|
|
4
|
+
*
|
|
5
|
+
* This file is part of Routr
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the MIT License (the "License")
|
|
8
|
+
* you may not use this file except in compliance with
|
|
9
|
+
* the License. You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* https://opensource.org/licenses/MIT
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
19
|
+
syntax = "proto3";
|
|
20
|
+
|
|
21
|
+
package fonoster.routr.connect.domains.v2draft1;
|
|
22
|
+
|
|
23
|
+
import "google/protobuf/struct.proto";
|
|
24
|
+
import "google/protobuf/empty.proto";
|
|
25
|
+
import "acl.proto";
|
|
26
|
+
import "numbers.proto";
|
|
27
|
+
|
|
28
|
+
// The Domains service definition
|
|
29
|
+
service Domains {
|
|
30
|
+
// Create a new Domain
|
|
31
|
+
rpc Create (CreateDomainRequest) returns (Domain) {}
|
|
32
|
+
// Update an existing Domain
|
|
33
|
+
rpc Update (UpdateDomainRequest) returns (Domain) {}
|
|
34
|
+
// Get an existing Domain
|
|
35
|
+
rpc Get (GetDomainRequest) returns (Domain) {}
|
|
36
|
+
// Delete an existing Domain
|
|
37
|
+
rpc Delete (DeleteDomainRequest) returns (.google.protobuf.Empty) {}
|
|
38
|
+
// List all Domains
|
|
39
|
+
rpc List (ListDomainRequest) returns (ListDomainsResponse) {}
|
|
40
|
+
// Find a Domain by field name and value
|
|
41
|
+
rpc FindBy (FindByRequest) returns (FindByResponse) {}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// EgressPolicy defines the policy for egress traffic
|
|
45
|
+
message EgressPolicy {
|
|
46
|
+
// The pattern to match
|
|
47
|
+
string rule = 1;
|
|
48
|
+
// The egress Number
|
|
49
|
+
fonoster.routr.connect.numbers.v2draft1.Number number = 2;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
// The message for the Domain resource
|
|
53
|
+
message Domain {
|
|
54
|
+
// The API version of the Domain
|
|
55
|
+
string api_version = 1;
|
|
56
|
+
// The unique identifier of the Domain
|
|
57
|
+
string ref = 2;
|
|
58
|
+
// The name of the Domain
|
|
59
|
+
string name = 3;
|
|
60
|
+
// The URI of the Domain
|
|
61
|
+
string domain_uri = 4;
|
|
62
|
+
// The date of creation of the Domain
|
|
63
|
+
int32 created_at = 5;
|
|
64
|
+
// The date of the last update
|
|
65
|
+
int32 updated_at = 6;
|
|
66
|
+
// The list of IP addresses that are allowed to access the Domain
|
|
67
|
+
fonoster.routr.connect.acl.v2draft1.AccessControlList access_control_list = 7;
|
|
68
|
+
// The egress_policy of the Domain
|
|
69
|
+
repeated EgressPolicy egress_policies = 8;
|
|
70
|
+
// The extended attributes of the Domain
|
|
71
|
+
.google.protobuf.Struct extended = 9;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
// The request message for Domains.Create
|
|
75
|
+
message CreateDomainRequest {
|
|
76
|
+
// The API version of the Domain
|
|
77
|
+
string api_version = 1;
|
|
78
|
+
// The name of the Domain
|
|
79
|
+
string name = 2;
|
|
80
|
+
// The domain_uri of the Domain
|
|
81
|
+
string domain_uri = 3;
|
|
82
|
+
// The list of IP addresses that are allowed to access the Domain
|
|
83
|
+
fonoster.routr.connect.acl.v2draft1.AccessControlList access_control_list = 4;
|
|
84
|
+
// The egress_policy of the Domain
|
|
85
|
+
repeated EgressPolicy egress_policies = 5;
|
|
86
|
+
// The extended attributes of the Domain
|
|
87
|
+
.google.protobuf.Struct extended = 6;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
// The request message for Domains.Update
|
|
91
|
+
message UpdateDomainRequest {
|
|
92
|
+
// The API version of the Domain
|
|
93
|
+
string api_version = 1;
|
|
94
|
+
// The unique identifier of the Domain
|
|
95
|
+
string ref = 2;
|
|
96
|
+
// The name of the Domain
|
|
97
|
+
string name = 3;
|
|
98
|
+
// The domain_uri of the Domain
|
|
99
|
+
string domain_uri = 4;
|
|
100
|
+
// The list of IP addresses that are allowed to access the Domain
|
|
101
|
+
fonoster.routr.connect.acl.v2draft1.AccessControlList access_control_list = 5;
|
|
102
|
+
// The egress_policy of the Domain
|
|
103
|
+
repeated EgressPolicy egress_policies = 6;
|
|
104
|
+
// The extended attributes of the Domain
|
|
105
|
+
.google.protobuf.Struct extended = 7;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
// The request message for Domains.Get
|
|
109
|
+
message GetDomainRequest {
|
|
110
|
+
// The unique identifier of the Domain
|
|
111
|
+
string ref = 1;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
// The request message for Domains.Delete
|
|
115
|
+
message DeleteDomainRequest {
|
|
116
|
+
// The unique identifier of the Domain
|
|
117
|
+
string ref = 1;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
// The request message for Domains.FindBy
|
|
121
|
+
message FindByRequest {
|
|
122
|
+
// The field name to search
|
|
123
|
+
string field_name = 1;
|
|
124
|
+
// The value to search
|
|
125
|
+
string field_value = 2;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
// The response message for the Domains.FindBy method
|
|
129
|
+
message FindByResponse {
|
|
130
|
+
// The list of Domains
|
|
131
|
+
repeated Domain items = 1;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
// The request message for Domains.List
|
|
135
|
+
message ListDomainRequest {
|
|
136
|
+
// The maximum number of items in the list
|
|
137
|
+
int32 page_size = 1;
|
|
138
|
+
|
|
139
|
+
// The next_page_token value returned from the previous request, if any
|
|
140
|
+
string page_token = 2;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
// The response message for Domains.List
|
|
144
|
+
message ListDomainsResponse {
|
|
145
|
+
// List of Domains
|
|
146
|
+
repeated Domain items = 1;
|
|
147
|
+
|
|
148
|
+
// Token to retrieve the next page of results, or empty if there are no more results in the list
|
|
149
|
+
string next_page_token = 2;
|
|
150
|
+
}
|