@routr/common 2.0.8-alpha.17 → 2.0.8-alpha.19
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/auth.d.ts +2 -2
- package/dist/connect/api/client.js +8 -10
- package/dist/connect/api/types.d.ts +4 -4
- package/dist/connect/config.d.ts +10 -6
- package/dist/connect/grpc_client.d.ts +2 -2
- package/dist/connect/index.d.ts +1 -1
- package/dist/connect/index.js +1 -1
- package/dist/connect/mappers/acl.d.ts +3 -0
- package/dist/connect/mappers/acl.js +19 -0
- package/dist/connect/mappers/agent.d.ts +3 -0
- package/dist/connect/mappers/agent.js +42 -0
- package/dist/connect/mappers/assertions.d.ts +3 -0
- package/dist/connect/mappers/assertions.js +43 -0
- package/dist/connect/mappers/credentials.d.ts +3 -0
- package/dist/connect/mappers/credentials.js +18 -0
- package/dist/connect/mappers/domain.d.ts +3 -0
- package/dist/connect/mappers/domain.js +19 -0
- package/dist/connect/mappers/index.d.ts +7 -0
- package/dist/connect/mappers/index.js +41 -0
- package/dist/connect/mappers/number.d.ts +3 -0
- package/dist/connect/mappers/number.js +26 -0
- package/dist/connect/mappers/peer.d.ts +3 -0
- package/dist/connect/mappers/peer.js +25 -0
- package/dist/connect/mappers/trunk.d.ts +3 -0
- package/dist/connect/mappers/trunk.js +34 -0
- package/dist/connect/protos/acl.proto +11 -16
- package/dist/connect/protos/agents.proto +19 -23
- package/dist/connect/protos/credentials.proto +8 -10
- package/dist/connect/protos/domains.proto +16 -18
- package/dist/connect/protos/numbers.proto +15 -25
- package/dist/connect/protos/peers.proto +46 -39
- package/dist/connect/protos/trunks.proto +16 -24
- package/dist/connect/schemas/acl.d.ts +2 -0
- package/dist/connect/schemas/acl.js +4 -2
- package/dist/connect/schemas/agent.d.ts +2 -0
- package/dist/connect/schemas/agent.js +6 -4
- package/dist/connect/schemas/crendentials.d.ts +4 -0
- package/dist/connect/schemas/crendentials.js +7 -3
- package/dist/connect/schemas/domain.d.ts +2 -0
- package/dist/connect/schemas/domain.js +4 -2
- package/dist/connect/schemas/number.d.ts +4 -0
- package/dist/connect/schemas/number.js +7 -3
- package/dist/connect/schemas/peer.d.ts +16 -0
- package/dist/connect/schemas/peer.js +19 -3
- package/dist/connect/schemas/trunk.d.ts +3 -0
- package/dist/connect/schemas/trunk.js +20 -4
- package/dist/connect/types.d.ts +20 -6
- package/dist/helper.js +2 -2
- package/dist/protos/location.proto +11 -1
- package/dist/types.d.ts +18 -22
- package/dist/types.js +16 -25
- package/package.json +2 -2
- package/dist/connect/converters.d.ts +0 -10
- package/dist/connect/converters.js +0 -178
|
@@ -59,16 +59,14 @@ message Credentials {
|
|
|
59
59
|
|
|
60
60
|
// The request message for the CreateCredentials.Create method
|
|
61
61
|
message CreateCredentialsRequest {
|
|
62
|
-
// The API version of the Credentials
|
|
63
|
-
string api_version = 1;
|
|
64
62
|
// The name of the Credentials
|
|
65
|
-
string name =
|
|
63
|
+
string name = 1;
|
|
66
64
|
// The username of the Credentials
|
|
67
|
-
string username =
|
|
65
|
+
string username = 2;
|
|
68
66
|
// The password of the Credentials
|
|
69
|
-
string password =
|
|
67
|
+
string password = 3;
|
|
70
68
|
// The extended attributes for a set of Credentials
|
|
71
|
-
.google.protobuf.Struct extended =
|
|
69
|
+
.google.protobuf.Struct extended = 4;
|
|
72
70
|
}
|
|
73
71
|
|
|
74
72
|
// The request message for the UpdateCredentials.Update method
|
|
@@ -76,13 +74,13 @@ message UpdateCredentialsRequest {
|
|
|
76
74
|
// The reference of the Credentials to update
|
|
77
75
|
string ref = 1;
|
|
78
76
|
// The new name of the Credentials
|
|
79
|
-
string name =
|
|
77
|
+
string name = 2;
|
|
80
78
|
// The new username of the Credentials
|
|
81
|
-
string username =
|
|
79
|
+
string username = 3;
|
|
82
80
|
// The new password of the Credentials
|
|
83
|
-
string password =
|
|
81
|
+
string password = 4;
|
|
84
82
|
// The extended attributes for a set of Credentials
|
|
85
|
-
.google.protobuf.Struct extended =
|
|
83
|
+
.google.protobuf.Struct extended = 5;
|
|
86
84
|
}
|
|
87
85
|
|
|
88
86
|
// The request message for the GetCredentials.Get method
|
|
@@ -45,8 +45,10 @@ service Domains {
|
|
|
45
45
|
message EgressPolicy {
|
|
46
46
|
// The pattern to match
|
|
47
47
|
string rule = 1;
|
|
48
|
+
// Reference to the number to use for egress
|
|
49
|
+
string number_ref = 2;
|
|
48
50
|
// The egress Number
|
|
49
|
-
fonoster.routr.connect.numbers.v2draft1.Number number =
|
|
51
|
+
fonoster.routr.connect.numbers.v2draft1.Number number = 3;
|
|
50
52
|
}
|
|
51
53
|
|
|
52
54
|
// The message for the Domain resource
|
|
@@ -73,36 +75,32 @@ message Domain {
|
|
|
73
75
|
|
|
74
76
|
// The request message for Domains.Create
|
|
75
77
|
message CreateDomainRequest {
|
|
76
|
-
// The API version of the Domain
|
|
77
|
-
string api_version = 1;
|
|
78
78
|
// The name of the Domain
|
|
79
|
-
string name =
|
|
79
|
+
string name = 1;
|
|
80
80
|
// The domain_uri of the Domain
|
|
81
|
-
string domain_uri =
|
|
82
|
-
//
|
|
83
|
-
|
|
81
|
+
string domain_uri = 2;
|
|
82
|
+
// Reference to the ACL to use for this Domain
|
|
83
|
+
string access_control_list_ref = 3;
|
|
84
84
|
// The egress_policy of the Domain
|
|
85
|
-
repeated EgressPolicy egress_policies =
|
|
85
|
+
repeated EgressPolicy egress_policies = 4;
|
|
86
86
|
// The extended attributes of the Domain
|
|
87
|
-
.google.protobuf.Struct extended =
|
|
87
|
+
.google.protobuf.Struct extended = 5;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
// The request message for Domains.Update
|
|
91
91
|
message UpdateDomainRequest {
|
|
92
|
-
// The API version of the Domain
|
|
93
|
-
string api_version = 1;
|
|
94
92
|
// The unique identifier of the Domain
|
|
95
|
-
string ref =
|
|
93
|
+
string ref = 1;
|
|
96
94
|
// The name of the Domain
|
|
97
|
-
string name =
|
|
95
|
+
string name = 2;
|
|
98
96
|
// The domain_uri of the Domain
|
|
99
|
-
string domain_uri =
|
|
100
|
-
//
|
|
101
|
-
|
|
97
|
+
string domain_uri = 3;
|
|
98
|
+
// Reference to the ACL to use for this Domain
|
|
99
|
+
string access_control_list_ref = 4;
|
|
102
100
|
// The egress_policy of the Domain
|
|
103
|
-
repeated EgressPolicy egress_policies =
|
|
101
|
+
repeated EgressPolicy egress_policies = 5;
|
|
104
102
|
// The extended attributes of the Domain
|
|
105
|
-
.google.protobuf.Struct extended =
|
|
103
|
+
.google.protobuf.Struct extended = 6;
|
|
106
104
|
}
|
|
107
105
|
|
|
108
106
|
// The request message for Domains.Get
|
|
@@ -98,46 +98,36 @@ message CreateNumberRequest {
|
|
|
98
98
|
string session_affinity_header = 8;
|
|
99
99
|
// Extra headers to send to the trunk
|
|
100
100
|
repeated ExtraHeader extra_headers = 9;
|
|
101
|
-
//
|
|
102
|
-
|
|
103
|
-
// The date when the Number was last updated
|
|
104
|
-
int32 updated_at = 11;
|
|
105
|
-
// The trunk this number is associated with
|
|
106
|
-
fonoster.routr.connect.trunks.v2draft1.Trunk trunk = 12;
|
|
101
|
+
// Reference to the trunk this number is associated with
|
|
102
|
+
string trunk_ref = 10;
|
|
107
103
|
// The extended attributes of the Number
|
|
108
|
-
.google.protobuf.Struct extended =
|
|
104
|
+
.google.protobuf.Struct extended = 11;
|
|
109
105
|
}
|
|
110
106
|
|
|
111
107
|
// The request message for Numbers.Update
|
|
112
108
|
message UpdateNumberRequest {
|
|
113
|
-
// The version of the Number
|
|
114
|
-
string api_version = 1;
|
|
115
109
|
// The unique identifier of the Number
|
|
116
|
-
string ref =
|
|
110
|
+
string ref = 1;
|
|
117
111
|
// The name of the Number
|
|
118
|
-
string name =
|
|
112
|
+
string name = 2;
|
|
119
113
|
// The tel_url of the Number
|
|
120
|
-
string tel_url =
|
|
114
|
+
string tel_url = 3;
|
|
121
115
|
// The aor_link of the Number
|
|
122
|
-
string aor_link =
|
|
116
|
+
string aor_link = 4;
|
|
123
117
|
// The city of the Number
|
|
124
|
-
string city =
|
|
118
|
+
string city = 5;
|
|
125
119
|
// The country of the Number
|
|
126
|
-
string country =
|
|
120
|
+
string country = 6;
|
|
127
121
|
// The country_iso_code of the Number
|
|
128
|
-
string country_iso_code =
|
|
122
|
+
string country_iso_code = 7;
|
|
129
123
|
// The header to use for session affinity
|
|
130
|
-
string session_affinity_header =
|
|
124
|
+
string session_affinity_header = 8;
|
|
131
125
|
// Extra headers to send to the trunk
|
|
132
|
-
repeated ExtraHeader extra_headers =
|
|
133
|
-
//
|
|
134
|
-
|
|
135
|
-
// The date when the Number was last updated
|
|
136
|
-
int32 updated_at = 12;
|
|
137
|
-
// The trunk this number is associated with
|
|
138
|
-
fonoster.routr.connect.trunks.v2draft1.Trunk trunk = 13;
|
|
126
|
+
repeated ExtraHeader extra_headers = 9;
|
|
127
|
+
// Reference to the trunk this number is associated with
|
|
128
|
+
string trunk_ref = 10;
|
|
139
129
|
// The extended attributes of the Number
|
|
140
|
-
.google.protobuf.Struct extended =
|
|
130
|
+
.google.protobuf.Struct extended = 11;
|
|
141
131
|
}
|
|
142
132
|
|
|
143
133
|
// The request message for Numbers.Get
|
|
@@ -41,6 +41,13 @@ service Peers {
|
|
|
41
41
|
rpc FindBy (FindByRequest) returns (FindByResponse) {}
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
+
enum LoadBalancingAlgorithm {
|
|
45
|
+
// The round robin load balancing algorithm
|
|
46
|
+
ROUND_ROBIN = 0;
|
|
47
|
+
// The least sessions load balancing algorithm
|
|
48
|
+
LEAST_SESSIONS = 1;
|
|
49
|
+
}
|
|
50
|
+
|
|
44
51
|
// The message for the Peer resource
|
|
45
52
|
message Peer {
|
|
46
53
|
// The API version of the Peer
|
|
@@ -55,72 +62,72 @@ message Peer {
|
|
|
55
62
|
string aor = 5;
|
|
56
63
|
// The contact address of the Peer
|
|
57
64
|
string contact_addr = 6;
|
|
65
|
+
// The load balancing algorithm of the Peer
|
|
66
|
+
LoadBalancingAlgorithm load_balancing_algorithm = 7;
|
|
67
|
+
// The session affinity of the Peer
|
|
68
|
+
bool with_session_affinity = 8;
|
|
58
69
|
// The status of the Peer
|
|
59
|
-
bool enabled =
|
|
70
|
+
bool enabled = 9;
|
|
60
71
|
// The date and time when the Peer was created
|
|
61
|
-
int32 created_at =
|
|
72
|
+
int32 created_at = 10;
|
|
62
73
|
// The date and time when the Peer was last updated
|
|
63
|
-
int32 updated_at =
|
|
74
|
+
int32 updated_at = 11;
|
|
64
75
|
// The list of IP addresses that are allowed to access the Peer
|
|
65
|
-
fonoster.routr.connect.acl.v2draft1.AccessControlList access_control_list =
|
|
76
|
+
fonoster.routr.connect.acl.v2draft1.AccessControlList access_control_list = 12;
|
|
66
77
|
// The credentials of the Peer
|
|
67
|
-
fonoster.routr.connect.credentials.v2draft1.Credentials credentials =
|
|
78
|
+
fonoster.routr.connect.credentials.v2draft1.Credentials credentials = 13;
|
|
68
79
|
// The extended attributes of the Peer
|
|
69
|
-
.google.protobuf.Struct extended =
|
|
80
|
+
.google.protobuf.Struct extended = 14;
|
|
70
81
|
}
|
|
71
82
|
|
|
72
83
|
// The request message for the Peers.Create method
|
|
73
84
|
message CreatePeerRequest {
|
|
74
|
-
// The API version of the Peer
|
|
75
|
-
string api_version = 1;
|
|
76
85
|
// The name of the Peer
|
|
77
|
-
string name =
|
|
86
|
+
string name = 1;
|
|
78
87
|
// The username of the Peer
|
|
79
|
-
string username =
|
|
88
|
+
string username = 2;
|
|
80
89
|
// The address of record of the Peer
|
|
81
|
-
string aor =
|
|
90
|
+
string aor = 3;
|
|
82
91
|
// The contact address of the Peer
|
|
83
|
-
string contact_addr =
|
|
92
|
+
string contact_addr = 4;
|
|
93
|
+
// The load balancing algorithm of the Peer
|
|
94
|
+
LoadBalancingAlgorithm load_balancing_algorithm = 5;
|
|
95
|
+
// The session affinity of the Peer
|
|
96
|
+
bool with_session_affinity = 6;
|
|
97
|
+
// Reference to the ACL of the Peer
|
|
98
|
+
string access_control_list_ref = 7;
|
|
99
|
+
// Reference to the Credentials of the Peer
|
|
100
|
+
string credentials_ref = 8;
|
|
84
101
|
// The status of the Peer
|
|
85
|
-
bool enabled =
|
|
86
|
-
// The date and time when the Peer was created
|
|
87
|
-
int32 created_at = 7;
|
|
88
|
-
// The date and time when the Peer was last updated
|
|
89
|
-
int32 updated_at = 8;
|
|
90
|
-
//The list of IP addresses that are allowed to access the Peer
|
|
91
|
-
fonoster.routr.connect.acl.v2draft1.AccessControlList access_control_list = 9;
|
|
92
|
-
// The credentials of the Peer
|
|
93
|
-
fonoster.routr.connect.credentials.v2draft1.Credentials credentials = 10;
|
|
102
|
+
bool enabled = 9;
|
|
94
103
|
// The extended attributes of the Peer
|
|
95
|
-
.google.protobuf.Struct extended =
|
|
104
|
+
.google.protobuf.Struct extended = 10;
|
|
96
105
|
}
|
|
97
106
|
|
|
98
107
|
// The request message for the Peers.Update method
|
|
99
108
|
message UpdatePeerRequest {
|
|
100
|
-
// The API version of the Peer
|
|
101
|
-
string api_version = 1;
|
|
102
109
|
// The unique identifier of the Peer
|
|
103
|
-
string ref =
|
|
110
|
+
string ref = 1;
|
|
104
111
|
// The name of the Peer
|
|
105
|
-
string name =
|
|
112
|
+
string name = 2;
|
|
106
113
|
// The username of the Peer
|
|
107
|
-
string username =
|
|
114
|
+
string username = 3;
|
|
108
115
|
// The address of record of the Peer
|
|
109
|
-
string aor =
|
|
116
|
+
string aor = 4;
|
|
110
117
|
// The contact address of the Peer
|
|
111
|
-
string contact_addr =
|
|
118
|
+
string contact_addr = 5;
|
|
119
|
+
// The load balancing algorithm of the Peer
|
|
120
|
+
LoadBalancingAlgorithm load_balancing_algorithm = 6;
|
|
121
|
+
// The session affinity of the Peer
|
|
122
|
+
bool with_session_affinity = 7;
|
|
123
|
+
// Reference to the ACL of the Peer
|
|
124
|
+
string access_control_list_ref = 8;
|
|
125
|
+
// Reference to the Credentials of the Peer
|
|
126
|
+
string credentials_ref = 9;
|
|
112
127
|
// The status of the Peer
|
|
113
|
-
bool enabled =
|
|
114
|
-
// The date and time when the Peer was created
|
|
115
|
-
int32 created_at = 8;
|
|
116
|
-
// The date and time when the Peer was last updated
|
|
117
|
-
int32 updated_at = 9;
|
|
118
|
-
// The list of IP addresses that are allowed to access the Peer
|
|
119
|
-
fonoster.routr.connect.acl.v2draft1.AccessControlList access_control_list = 10;
|
|
120
|
-
// The credentials of the Peer
|
|
121
|
-
fonoster.routr.connect.credentials.v2draft1.Credentials credentials = 11;
|
|
128
|
+
bool enabled = 10;
|
|
122
129
|
// The extended attributes of the Peer
|
|
123
|
-
.google.protobuf.Struct extended =
|
|
130
|
+
.google.protobuf.Struct extended = 11;
|
|
124
131
|
}
|
|
125
132
|
|
|
126
133
|
// The request message for the Peers.Get method
|
|
@@ -97,20 +97,16 @@ message CreateTrunkRequest {
|
|
|
97
97
|
bool send_register = 3;
|
|
98
98
|
// The URI for inbound requests
|
|
99
99
|
string inbound_uri = 4;
|
|
100
|
-
//
|
|
101
|
-
|
|
102
|
-
//
|
|
103
|
-
|
|
104
|
-
//
|
|
105
|
-
|
|
106
|
-
// The credentials to use when authenticating with the Trunk
|
|
107
|
-
fonoster.routr.connect.credentials.v2draft1.Credentials inbound_credentials = 8;
|
|
108
|
-
// The credentials to use when authenticating with the Provider
|
|
109
|
-
fonoster.routr.connect.credentials.v2draft1.Credentials outbound_credentials = 9;
|
|
100
|
+
// Reference to the AccessControlList
|
|
101
|
+
string access_control_list_ref = 5;
|
|
102
|
+
// Reference to the inbound Credentials
|
|
103
|
+
string inbound_credentials_ref = 6;
|
|
104
|
+
// Reference to the outbound Credentials
|
|
105
|
+
string outbound_credentials_ref = 7;
|
|
110
106
|
// The list of URIs for the Trunk
|
|
111
|
-
repeated TrunkURI uris =
|
|
107
|
+
repeated TrunkURI uris = 8;
|
|
112
108
|
// The extended attributes of the Trunk
|
|
113
|
-
.google.protobuf.Struct extended =
|
|
109
|
+
.google.protobuf.Struct extended = 9;
|
|
114
110
|
}
|
|
115
111
|
|
|
116
112
|
// The message for the Trunk.Update
|
|
@@ -125,20 +121,16 @@ message UpdateTrunkRequest {
|
|
|
125
121
|
bool send_register = 4;
|
|
126
122
|
// The URI for inbound requests
|
|
127
123
|
string inbound_uri = 5;
|
|
128
|
-
//
|
|
129
|
-
|
|
130
|
-
//
|
|
131
|
-
|
|
132
|
-
//
|
|
133
|
-
|
|
134
|
-
// The credentials to use when authenticating with the Trunk
|
|
135
|
-
fonoster.routr.connect.credentials.v2draft1.Credentials inbound_credentials = 9;
|
|
136
|
-
// The credentials to use when authenticating with the Provider
|
|
137
|
-
fonoster.routr.connect.credentials.v2draft1.Credentials outbound_credentials = 10;
|
|
124
|
+
// Reference to the AccessControlList
|
|
125
|
+
string access_control_list_ref = 6;
|
|
126
|
+
// Reference to the inbound Credentials
|
|
127
|
+
string inbound_credentials_ref = 7;
|
|
128
|
+
// Reference to the outbound Credentials
|
|
129
|
+
string outbound_credentials_ref = 8;
|
|
138
130
|
// The list of URIs for the Trunk
|
|
139
|
-
repeated TrunkURI uris =
|
|
131
|
+
repeated TrunkURI uris = 9;
|
|
140
132
|
// The extended attributes of the Trunk
|
|
141
|
-
.google.protobuf.Struct extended =
|
|
133
|
+
.google.protobuf.Struct extended = 10;
|
|
142
134
|
}
|
|
143
135
|
|
|
144
136
|
// The message for the Trunk.Get
|
|
@@ -25,7 +25,7 @@ exports.default = {
|
|
|
25
25
|
type: "object",
|
|
26
26
|
properties: {
|
|
27
27
|
apiVersion: {
|
|
28
|
-
enum: ["v2draft1", "v2
|
|
28
|
+
enum: ["v2draft1", "v2"]
|
|
29
29
|
},
|
|
30
30
|
kind: {
|
|
31
31
|
enum: ["AccessControlList", "accesscontrollist"]
|
|
@@ -40,7 +40,9 @@ exports.default = {
|
|
|
40
40
|
properties: {
|
|
41
41
|
name: {
|
|
42
42
|
description: "Resource's friendly name",
|
|
43
|
-
type: "string"
|
|
43
|
+
type: "string",
|
|
44
|
+
minLength: 3,
|
|
45
|
+
maxLength: 64
|
|
44
46
|
}
|
|
45
47
|
},
|
|
46
48
|
required: ["name"]
|
|
@@ -25,7 +25,7 @@ exports.default = {
|
|
|
25
25
|
type: "object",
|
|
26
26
|
properties: {
|
|
27
27
|
apiVersion: {
|
|
28
|
-
enum: ["v2draft1", "v2
|
|
28
|
+
enum: ["v2draft1", "v2"]
|
|
29
29
|
},
|
|
30
30
|
kind: {
|
|
31
31
|
enum: ["Agent", "agent"]
|
|
@@ -40,7 +40,9 @@ exports.default = {
|
|
|
40
40
|
properties: {
|
|
41
41
|
name: {
|
|
42
42
|
description: "Resource's friendly name",
|
|
43
|
-
type: "string"
|
|
43
|
+
type: "string",
|
|
44
|
+
minLength: 3,
|
|
45
|
+
maxLength: 64
|
|
44
46
|
}
|
|
45
47
|
},
|
|
46
48
|
required: ["name"]
|
|
@@ -53,7 +55,7 @@ exports.default = {
|
|
|
53
55
|
description: "The username for the Agent",
|
|
54
56
|
type: "string",
|
|
55
57
|
minLength: 3,
|
|
56
|
-
maxLength:
|
|
58
|
+
maxLength: 64,
|
|
57
59
|
readOnly: true
|
|
58
60
|
},
|
|
59
61
|
domainRef: {
|
|
@@ -69,7 +71,7 @@ exports.default = {
|
|
|
69
71
|
type: "boolean"
|
|
70
72
|
},
|
|
71
73
|
privacy: {
|
|
72
|
-
enum: ["Private", "None", "private", "none"]
|
|
74
|
+
enum: ["PRIVATE", "NONE", "Private", "None", "private", "none"]
|
|
73
75
|
}
|
|
74
76
|
},
|
|
75
77
|
required: ["username"]
|
|
@@ -21,6 +21,8 @@ declare const _default: {
|
|
|
21
21
|
name: {
|
|
22
22
|
description: string;
|
|
23
23
|
type: string;
|
|
24
|
+
minLength: number;
|
|
25
|
+
maxLength: number;
|
|
24
26
|
};
|
|
25
27
|
};
|
|
26
28
|
required: string[];
|
|
@@ -37,6 +39,8 @@ declare const _default: {
|
|
|
37
39
|
description: string;
|
|
38
40
|
type: string;
|
|
39
41
|
readOnly: boolean;
|
|
42
|
+
minLength: number;
|
|
43
|
+
maxLength: number;
|
|
40
44
|
};
|
|
41
45
|
password: {
|
|
42
46
|
description: string;
|
|
@@ -25,7 +25,7 @@ exports.default = {
|
|
|
25
25
|
type: "object",
|
|
26
26
|
properties: {
|
|
27
27
|
apiVersion: {
|
|
28
|
-
enum: ["v2draft1", "v2
|
|
28
|
+
enum: ["v2draft1", "v2"]
|
|
29
29
|
},
|
|
30
30
|
kind: {
|
|
31
31
|
enum: ["Credentials", "credentials"]
|
|
@@ -40,7 +40,9 @@ exports.default = {
|
|
|
40
40
|
properties: {
|
|
41
41
|
name: {
|
|
42
42
|
description: "Resource's friendly name",
|
|
43
|
-
type: "string"
|
|
43
|
+
type: "string",
|
|
44
|
+
minLength: 3,
|
|
45
|
+
maxLength: 64
|
|
44
46
|
}
|
|
45
47
|
},
|
|
46
48
|
required: ["name"]
|
|
@@ -56,7 +58,9 @@ exports.default = {
|
|
|
56
58
|
username: {
|
|
57
59
|
description: "Username",
|
|
58
60
|
type: "string",
|
|
59
|
-
readOnly: true
|
|
61
|
+
readOnly: true,
|
|
62
|
+
minLength: 3,
|
|
63
|
+
maxLength: 64
|
|
60
64
|
},
|
|
61
65
|
password: {
|
|
62
66
|
description: "Password",
|
|
@@ -25,7 +25,7 @@ exports.default = {
|
|
|
25
25
|
type: "object",
|
|
26
26
|
properties: {
|
|
27
27
|
apiVersion: {
|
|
28
|
-
enum: ["v2draft1", "v2
|
|
28
|
+
enum: ["v2draft1", "v2"]
|
|
29
29
|
},
|
|
30
30
|
kind: {
|
|
31
31
|
enum: ["Domain", "domain"]
|
|
@@ -40,7 +40,9 @@ exports.default = {
|
|
|
40
40
|
properties: {
|
|
41
41
|
name: {
|
|
42
42
|
description: "Resource's friendly name",
|
|
43
|
-
type: "string"
|
|
43
|
+
type: "string",
|
|
44
|
+
minLength: 3,
|
|
45
|
+
maxLength: 64
|
|
44
46
|
}
|
|
45
47
|
},
|
|
46
48
|
required: ["name"]
|
|
@@ -21,6 +21,8 @@ declare const _default: {
|
|
|
21
21
|
name: {
|
|
22
22
|
description: string;
|
|
23
23
|
type: string;
|
|
24
|
+
minLength: number;
|
|
25
|
+
maxLength: number;
|
|
24
26
|
};
|
|
25
27
|
};
|
|
26
28
|
required: string[];
|
|
@@ -44,6 +46,8 @@ declare const _default: {
|
|
|
44
46
|
aorLink: {
|
|
45
47
|
description: string;
|
|
46
48
|
type: string;
|
|
49
|
+
minLength: number;
|
|
50
|
+
maxLength: number;
|
|
47
51
|
};
|
|
48
52
|
sessionAffinityHeader: {
|
|
49
53
|
description: string;
|
|
@@ -25,7 +25,7 @@ exports.default = {
|
|
|
25
25
|
type: "object",
|
|
26
26
|
properties: {
|
|
27
27
|
apiVersion: {
|
|
28
|
-
enum: ["v2draft1", "v2
|
|
28
|
+
enum: ["v2draft1", "v2"]
|
|
29
29
|
},
|
|
30
30
|
kind: {
|
|
31
31
|
enum: ["Number", "number"]
|
|
@@ -40,7 +40,9 @@ exports.default = {
|
|
|
40
40
|
properties: {
|
|
41
41
|
name: {
|
|
42
42
|
description: "Resource's friendly name",
|
|
43
|
-
type: "string"
|
|
43
|
+
type: "string",
|
|
44
|
+
minLength: 3,
|
|
45
|
+
maxLength: 64
|
|
44
46
|
}
|
|
45
47
|
},
|
|
46
48
|
required: ["name"]
|
|
@@ -63,7 +65,9 @@ exports.default = {
|
|
|
63
65
|
},
|
|
64
66
|
aorLink: {
|
|
65
67
|
description: "AOR link",
|
|
66
|
-
type: "string"
|
|
68
|
+
type: "string",
|
|
69
|
+
minLength: 3,
|
|
70
|
+
maxLength: 255
|
|
67
71
|
},
|
|
68
72
|
sessionAffinityHeader: {
|
|
69
73
|
description: "Session affinity",
|
|
@@ -21,6 +21,8 @@ declare const _default: {
|
|
|
21
21
|
name: {
|
|
22
22
|
description: string;
|
|
23
23
|
type: string;
|
|
24
|
+
minLength: number;
|
|
25
|
+
maxLength: number;
|
|
24
26
|
};
|
|
25
27
|
};
|
|
26
28
|
required: string[];
|
|
@@ -55,6 +57,20 @@ declare const _default: {
|
|
|
55
57
|
description: string;
|
|
56
58
|
type: string;
|
|
57
59
|
};
|
|
60
|
+
loadBalancing: {
|
|
61
|
+
description: string;
|
|
62
|
+
type: string;
|
|
63
|
+
properties: {
|
|
64
|
+
algorithm: {
|
|
65
|
+
description: string;
|
|
66
|
+
enum: string[];
|
|
67
|
+
};
|
|
68
|
+
withSessionAffinity: {
|
|
69
|
+
description: string;
|
|
70
|
+
type: string;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
};
|
|
58
74
|
enabled: {
|
|
59
75
|
description: string;
|
|
60
76
|
type: string;
|
|
@@ -25,7 +25,7 @@ exports.default = {
|
|
|
25
25
|
type: "object",
|
|
26
26
|
properties: {
|
|
27
27
|
apiVersion: {
|
|
28
|
-
enum: ["v2draft1", "v2
|
|
28
|
+
enum: ["v2draft1", "v2"]
|
|
29
29
|
},
|
|
30
30
|
kind: {
|
|
31
31
|
enum: ["Peer", "peer"]
|
|
@@ -40,7 +40,9 @@ exports.default = {
|
|
|
40
40
|
properties: {
|
|
41
41
|
name: {
|
|
42
42
|
description: "Resource's friendly name",
|
|
43
|
-
type: "string"
|
|
43
|
+
type: "string",
|
|
44
|
+
minLength: 3,
|
|
45
|
+
maxLength: 64
|
|
44
46
|
}
|
|
45
47
|
},
|
|
46
48
|
required: ["name"]
|
|
@@ -53,7 +55,7 @@ exports.default = {
|
|
|
53
55
|
description: "The username for the Peer",
|
|
54
56
|
type: "string",
|
|
55
57
|
minLength: 3,
|
|
56
|
-
maxLength:
|
|
58
|
+
maxLength: 64,
|
|
57
59
|
readOnly: true
|
|
58
60
|
},
|
|
59
61
|
aor: {
|
|
@@ -75,6 +77,20 @@ exports.default = {
|
|
|
75
77
|
description: "The ACL the Peer uses to control access to the Peer (Reserved for future use)",
|
|
76
78
|
type: "string"
|
|
77
79
|
},
|
|
80
|
+
loadBalancing: {
|
|
81
|
+
description: "The load balancing strategy for the Peer",
|
|
82
|
+
type: "object",
|
|
83
|
+
properties: {
|
|
84
|
+
algorithm: {
|
|
85
|
+
description: "The load balancing algorithm",
|
|
86
|
+
enum: ["round-robin", "least-sessions"]
|
|
87
|
+
},
|
|
88
|
+
withSessionAffinity: {
|
|
89
|
+
description: "Whether to allow session affinity",
|
|
90
|
+
type: "boolean"
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
},
|
|
78
94
|
enabled: {
|
|
79
95
|
description: "Whether the Peer is enabled",
|
|
80
96
|
type: "boolean"
|
|
@@ -21,6 +21,8 @@ declare const _default: {
|
|
|
21
21
|
name: {
|
|
22
22
|
description: string;
|
|
23
23
|
type: string;
|
|
24
|
+
minLength: number;
|
|
25
|
+
maxLength: number;
|
|
24
26
|
};
|
|
25
27
|
};
|
|
26
28
|
required: string[];
|
|
@@ -36,6 +38,7 @@ declare const _default: {
|
|
|
36
38
|
uri: {
|
|
37
39
|
description: string;
|
|
38
40
|
type: string;
|
|
41
|
+
maxLength: number;
|
|
39
42
|
};
|
|
40
43
|
accessControlListRef: {
|
|
41
44
|
description: string;
|