added installation_type field in jira source proto for specifying instalation type (#4564)
This commit is contained in:
+555
-481
File diff suppressed because it is too large
Load Diff
@@ -3571,6 +3571,8 @@ func (m *JIRA) validate(all bool) error {
|
|||||||
|
|
||||||
// no validation rules for InsecureSkipVerifyTls
|
// no validation rules for InsecureSkipVerifyTls
|
||||||
|
|
||||||
|
// no validation rules for InstallationType
|
||||||
|
|
||||||
switch v := m.Credential.(type) {
|
switch v := m.Credential.(type) {
|
||||||
case *JIRA_BasicAuth:
|
case *JIRA_BasicAuth:
|
||||||
if v == nil {
|
if v == nil {
|
||||||
|
|||||||
@@ -338,6 +338,12 @@ message Huggingface {
|
|||||||
bool include_prs = 19;
|
bool include_prs = 19;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
enum JiraInstallationType {
|
||||||
|
JIRA_INSTALLATION_TYPE_AUTODETECT = 0;
|
||||||
|
JIRA_INSTALLATION_TYPE_CLOUD = 1;
|
||||||
|
JIRA_INSTALLATION_TYPE_DATA_CENTER = 2;
|
||||||
|
}
|
||||||
|
|
||||||
message JIRA {
|
message JIRA {
|
||||||
string endpoint = 1 [(validate.rules).string.uri_ref = true];
|
string endpoint = 1 [(validate.rules).string.uri_ref = true];
|
||||||
oneof credential {
|
oneof credential {
|
||||||
@@ -349,6 +355,10 @@ message JIRA {
|
|||||||
repeated string projects = 5;
|
repeated string projects = 5;
|
||||||
repeated string ignore_projects = 7;
|
repeated string ignore_projects = 7;
|
||||||
bool insecure_skip_verify_tls = 8;
|
bool insecure_skip_verify_tls = 8;
|
||||||
|
|
||||||
|
// Override autodetection of Jira installation type.
|
||||||
|
// Defaults to AUTODETECT which checks for cloud-only endpoints.
|
||||||
|
JiraInstallationType installation_type = 9;
|
||||||
}
|
}
|
||||||
|
|
||||||
message NPMUnauthenticatedPackage {
|
message NPMUnauthenticatedPackage {
|
||||||
|
|||||||
Reference in New Issue
Block a user