Skip to content

Commit

Permalink
deprecate ListPlugins
Browse files Browse the repository at this point in the history
  • Loading branch information
lovromazgon committed Mar 5, 2024
1 parent ab0a86b commit 098c3ab
Show file tree
Hide file tree
Showing 5 changed files with 74 additions and 74 deletions.
14 changes: 6 additions & 8 deletions pkg/web/openapi/swagger-ui/api/v1/api.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -1036,7 +1036,7 @@
},
"/v1/plugins": {
"get": {
"summary": "deprecated: use ListConnectorPlugins instead",
"summary": "Deprecated: use ListConnectorPlugins instead.",
"operationId": "PluginService_ListPlugins",
"responses": {
"200": {
Expand Down Expand Up @@ -1601,7 +1601,7 @@
"description": "The value to be compared with the parameter,\nor a comma separated list in case of Validation.TYPE_INCLUSION or Validation.TYPE_EXCLUSION."
}
},
"title": "Deprecated: use config.v1.Validation instead"
"description": "Deprecated: use config.v1.Validation instead."
},
"PluginSpecificationsParameterValidationType": {
"type": "string",
Expand All @@ -1615,8 +1615,7 @@
"TYPE_REGEX"
],
"default": "TYPE_UNSPECIFIED",
"description": "- TYPE_REQUIRED: Parameter must be present.\n - TYPE_GREATER_THAN: Parameter must be greater than {value}.\n - TYPE_LESS_THAN: Parameter must be less than {value}.\n - TYPE_INCLUSION: Parameter must be included in the comma separated list {value}.\n - TYPE_EXCLUSION: Parameter must not be included in the comma separated list {value}.\n - TYPE_REGEX: Parameter must match the regex {value}.",
"title": "Deprecated: use config.v1.Validation.Type instead"
"description": "Deprecated: use config.v1.Validation.Type instead.\n\n - TYPE_REQUIRED: Parameter must be present.\n - TYPE_GREATER_THAN: Parameter must be greater than {value}.\n - TYPE_LESS_THAN: Parameter must be less than {value}.\n - TYPE_INCLUSION: Parameter must be included in the comma separated list {value}.\n - TYPE_EXCLUSION: Parameter must not be included in the comma separated list {value}.\n - TYPE_REGEX: Parameter must match the regex {value}."
},
"ProcessorParent": {
"type": "object",
Expand Down Expand Up @@ -2225,7 +2224,7 @@
}
}
},
"title": "Deprecated: use ConnectorPluginSpecifications instead"
"description": "Deprecated: use ConnectorPluginSpecifications instead."
},
"v1PluginSpecificationsParameter": {
"type": "object",
Expand All @@ -2247,7 +2246,7 @@
}
}
},
"title": "Deprecated: use config.v1.Parameter instead"
"description": "Deprecated: use config.v1.Parameter instead."
},
"v1PluginSpecificationsParameterType": {
"type": "string",
Expand All @@ -2261,8 +2260,7 @@
"TYPE_DURATION"
],
"default": "TYPE_UNSPECIFIED",
"description": "- TYPE_STRING: Parameter is a string.\n - TYPE_INT: Parameter is an integer.\n - TYPE_FLOAT: Parameter is a float.\n - TYPE_BOOL: Parameter is a boolean.\n - TYPE_FILE: Parameter is a file.\n - TYPE_DURATION: Parameter is a duration.",
"title": "Deprecated: use config.v1.Parameter.Type instead"
"description": "Deprecated: use config.v1.Parameter.Type instead.\n\n - TYPE_STRING: Parameter is a string.\n - TYPE_INT: Parameter is an integer.\n - TYPE_FLOAT: Parameter is a float.\n - TYPE_BOOL: Parameter is a boolean.\n - TYPE_FILE: Parameter is a file.\n - TYPE_DURATION: Parameter is a duration."
},
"v1Processor": {
"type": "object",
Expand Down
100 changes: 50 additions & 50 deletions proto/api/v1/api.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 7 additions & 6 deletions proto/api/v1/api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -186,19 +186,19 @@ message ProcessorPluginSpecifications{
map<string, config.v1.Parameter> parameters = 6;
}

// Deprecated: use ConnectorPluginSpecifications instead
// Deprecated: use ConnectorPluginSpecifications instead.
message PluginSpecifications{
option deprecated = true;

// Deprecated: use config.v1.Parameter instead
// Deprecated: use config.v1.Parameter instead.
message Parameter {
option deprecated = true;

// Deprecated: use config.v1.Validation instead
// Deprecated: use config.v1.Validation instead.
message Validation{
option deprecated = true;

// Deprecated: use config.v1.Validation.Type instead
// Deprecated: use config.v1.Validation.Type instead.
enum Type {
option deprecated = true;
TYPE_UNSPECIFIED = 0;
Expand All @@ -222,7 +222,7 @@ message PluginSpecifications{
string value = 2;
}

// Deprecated: use config.v1.Parameter.Type instead
// Deprecated: use config.v1.Parameter.Type instead.
enum Type {
option deprecated = true;
TYPE_UNSPECIFIED = 0;
Expand Down Expand Up @@ -1088,8 +1088,9 @@ option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = {
};

service PluginService {
// deprecated: use ListConnectorPlugins instead
// Deprecated: use ListConnectorPlugins instead.
rpc ListPlugins(ListPluginsRequest) returns (ListPluginsResponse) {
option deprecated = true;
option (google.api.http) = {
get: "/v1/plugins"
response_body: "plugins"
Expand Down
14 changes: 6 additions & 8 deletions proto/api/v1/api.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -1036,7 +1036,7 @@
},
"/v1/plugins": {
"get": {
"summary": "deprecated: use ListConnectorPlugins instead",
"summary": "Deprecated: use ListConnectorPlugins instead.",
"operationId": "PluginService_ListPlugins",
"responses": {
"200": {
Expand Down Expand Up @@ -1601,7 +1601,7 @@
"description": "The value to be compared with the parameter,\nor a comma separated list in case of Validation.TYPE_INCLUSION or Validation.TYPE_EXCLUSION."
}
},
"title": "Deprecated: use config.v1.Validation instead"
"description": "Deprecated: use config.v1.Validation instead."
},
"PluginSpecificationsParameterValidationType": {
"type": "string",
Expand All @@ -1615,8 +1615,7 @@
"TYPE_REGEX"
],
"default": "TYPE_UNSPECIFIED",
"description": "- TYPE_REQUIRED: Parameter must be present.\n - TYPE_GREATER_THAN: Parameter must be greater than {value}.\n - TYPE_LESS_THAN: Parameter must be less than {value}.\n - TYPE_INCLUSION: Parameter must be included in the comma separated list {value}.\n - TYPE_EXCLUSION: Parameter must not be included in the comma separated list {value}.\n - TYPE_REGEX: Parameter must match the regex {value}.",
"title": "Deprecated: use config.v1.Validation.Type instead"
"description": "Deprecated: use config.v1.Validation.Type instead.\n\n - TYPE_REQUIRED: Parameter must be present.\n - TYPE_GREATER_THAN: Parameter must be greater than {value}.\n - TYPE_LESS_THAN: Parameter must be less than {value}.\n - TYPE_INCLUSION: Parameter must be included in the comma separated list {value}.\n - TYPE_EXCLUSION: Parameter must not be included in the comma separated list {value}.\n - TYPE_REGEX: Parameter must match the regex {value}."
},
"ProcessorParent": {
"type": "object",
Expand Down Expand Up @@ -2225,7 +2224,7 @@
}
}
},
"title": "Deprecated: use ConnectorPluginSpecifications instead"
"description": "Deprecated: use ConnectorPluginSpecifications instead."
},
"v1PluginSpecificationsParameter": {
"type": "object",
Expand All @@ -2247,7 +2246,7 @@
}
}
},
"title": "Deprecated: use config.v1.Parameter instead"
"description": "Deprecated: use config.v1.Parameter instead."
},
"v1PluginSpecificationsParameterType": {
"type": "string",
Expand All @@ -2261,8 +2260,7 @@
"TYPE_DURATION"
],
"default": "TYPE_UNSPECIFIED",
"description": "- TYPE_STRING: Parameter is a string.\n - TYPE_INT: Parameter is an integer.\n - TYPE_FLOAT: Parameter is a float.\n - TYPE_BOOL: Parameter is a boolean.\n - TYPE_FILE: Parameter is a file.\n - TYPE_DURATION: Parameter is a duration.",
"title": "Deprecated: use config.v1.Parameter.Type instead"
"description": "Deprecated: use config.v1.Parameter.Type instead.\n\n - TYPE_STRING: Parameter is a string.\n - TYPE_INT: Parameter is an integer.\n - TYPE_FLOAT: Parameter is a float.\n - TYPE_BOOL: Parameter is a boolean.\n - TYPE_FILE: Parameter is a file.\n - TYPE_DURATION: Parameter is a duration."
},
"v1Processor": {
"type": "object",
Expand Down
Loading

0 comments on commit 098c3ab

Please sign in to comment.