-
Notifications
You must be signed in to change notification settings - Fork 13
/
model_discovery_agent_spec_config.go
27 lines (24 loc) · 2.76 KB
/
model_discovery_agent_spec_config.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*
* API Server specification.
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* API version: SNAPSHOT
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
package management
// GENERATE: The following code has been modified after code generation
import apiv1 "github.com/Axway/agent-sdk/pkg/apic/apiserver/models/api/v1"
// DiscoveryAgentSpecConfig Represents the discovery agent config
type DiscoveryAgentSpecConfig struct {
// Defines the tag based filter expression to be evaluated for discovering the API from the API Gateway. The filter value is a conditional expression that can use logical operators to compare two value. The conditional expression must have \"tag\" as the prefix/selector in the symbol name. For e.g. ``` tag.SOME_TAG == \"somevalue\" ``` The expression can be a simple condition as shown above or compound condition in which more than one simple conditions are evaluated using logical operator. For e.g. ``` tag.SOME_TAG == \"somevalue\" || tag.ANOTHER_TAG != \"some_other_value\" ``` In addition to logical expression, the filter can hold call based expressions. Below are the list of supported call expressions #### Exists Exists call can be made to evaluate if the tag name exists in the list of tags on API. This call expression can be used as unary expression For e.g. ``` tag.SOME_TAG.Exists() ``` #### Any Any call can be made in a simple expression to evaluate if the tag with any name has specified value or not in the list of tags on the API. For e.g. ``` tag.Any() == \"Tag with some value\" || tag.Any() != \"Tag with other value\" ``` #### Contains Contains call can be made in a simple expression to evaluate if the the specified tag contains specified argument as value. This call expression requires string argument that will be used to perform lookup in tag value For e.g. ``` tag.Contains(\"somevalue\") ``` #### MatchRegEx MatchRegEx call can be used for evaluating the specified tag value to match specified regular expression. This call expression requires a regular expression as the argument. For e.g. ``` tag.MatchRegEx(\"(some){1}\") ```
Filter string `json:"filter,omitempty"`
// The list of tags to be added to the API service resource that the agent publishes to Amplify Central
AdditionalTags []string `json:"additionalTags,omitempty"`
// The list of tags to exclude from the API service resource that the agent publishes to Amplify Central
IgnoreTags []string `json:"ignoreTags,omitempty"`
// Name of the team that owns the catalog item created by agent. If not provided, the default team will be used.
OwningTeam string `json:"owningTeam,omitempty"`
// GENERATE: The following code has been modified after code generation
Owner *apiv1.Owner `json:"owner,omitempty"`
}