Debian Codegraph @

docs/dyn/integrations_v1.projects.locations.integrations.versions.testCases.html

raw
1 <html><body>
2 <style>
3
4 body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13 }
14
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51 }
52
53 .toc_element {
54 margin-top: 0.5em;
55 }
56
57 .firstline {
58 margin-left: 2 em;
59 }
60
61 .method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66 }
67
68 .details {
69 font-weight: bold;
70 font-size: 14px;
71 }
72
73 </style>
74
75 <h1><a href="integrations_v1.html">Application Integration API</a> . <a href="integrations_v1.projects.html">projects</a> . <a href="integrations_v1.projects.locations.html">locations</a> . <a href="integrations_v1.projects.locations.integrations.html">integrations</a> . <a href="integrations_v1.projects.locations.integrations.versions.html">versions</a> . <a href="integrations_v1.projects.locations.integrations.versions.testCases.html">testCases</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#close">close()</a></code></p>
79 <p class="firstline">Close httplib2 connections.</p>
80 <p class="toc_element">
81 <code><a href="#create">create(parent, body=None, testCaseId=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Creates a new test case</p>
83 <p class="toc_element">
84 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
85 <p class="firstline">Deletes a test case</p>
86 <p class="toc_element">
87 <code><a href="#download">download(name, fileFormat=None, x__xgafv=None)</a></code></p>
88 <p class="firstline">Downloads a test case. Retrieves the `TestCase` for a given `test_case_id` and returns the response as a string.</p>
89 <p class="toc_element">
90 <code><a href="#execute">execute(parent, body=None, x__xgafv=None)</a></code></p>
91 <p class="firstline">Executes all test cases in an integration version.</p>
92 <p class="toc_element">
93 <code><a href="#executeTest">executeTest(testCaseName, body=None, x__xgafv=None)</a></code></p>
94 <p class="firstline">Executes functional test</p>
95 <p class="toc_element">
96 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
97 <p class="firstline">Get a test case</p>
98 <p class="toc_element">
99 <code><a href="#list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, readMask=None, x__xgafv=None)</a></code></p>
100 <p class="firstline">Lists all the test cases that satisfy the filters.</p>
101 <p class="toc_element">
102 <code><a href="#list_next">list_next()</a></code></p>
103 <p class="firstline">Retrieves the next page of results.</p>
104 <p class="toc_element">
105 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
106 <p class="firstline">Updates a test case</p>
107 <p class="toc_element">
108 <code><a href="#takeoverEditLock">takeoverEditLock(name, body=None, x__xgafv=None)</a></code></p>
109 <p class="firstline">Clear the lock fields and assign them to current user</p>
110 <p class="toc_element">
111 <code><a href="#upload">upload(parent, body=None, x__xgafv=None)</a></code></p>
112 <p class="firstline">Uploads a test case. The content can be a previously downloaded test case. Performs the same function as CreateTestCase, but accepts input in a string format, which holds the complete representation of the TestCase content.</p>
113 <h3>Method Details</h3>
114 <div class="method">
115 <code class="details" id="close">close()</code>
116 <pre>Close httplib2 connections.</pre>
117 </div>
118
119 <div class="method">
120 <code class="details" id="create">create(parent, body=None, testCaseId=None, x__xgafv=None)</code>
121 <pre>Creates a new test case
122
123 Args:
124 parent: string, Required. The parent resource where this test case will be created. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{integration_version} (required)
125 body: object, The request body.
126 The object takes the form of:
127
128 { # Defines the functional test case for Application Integration. Next available id: 15
129 &quot;createTime&quot;: &quot;A String&quot;, # Auto-generated.
130 &quot;creatorEmail&quot;: &quot;A String&quot;, # Optional. The creator&#x27;s email address. Generated based on the End User Credentials/LOAS role of the user making the call.
131 &quot;databasePersistencePolicy&quot;: &quot;A String&quot;, # Optional. Various policies for how to persist the test execution info including execution info, execution export info, execution metadata index and execution param index..
132 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the test case.
133 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of test case.
134 &quot;lastModifierEmail&quot;: &quot;A String&quot;, # The last modifier&#x27;s email address. Generated based on the End User Credentials/LOAS role of the user making the call.
135 &quot;lockHolderEmail&quot;: &quot;A String&quot;, # Optional. The edit lock holder&#x27;s email address. Generated based on the End User Credentials/LOAS role of the user making the call.
136 &quot;name&quot;: &quot;A String&quot;, # Output only. Auto-generated primary key.
137 &quot;testInputParameters&quot;: [ # Optional. Parameters that are expected to be passed to the test case when the test case is triggered. This gives the user the ability to provide default values. This should include all the output variables of the trigger as input variables.
138 { # Integration Parameter is defined in the integration config and are used to provide information about data types of the expected parameters and provide any default values if needed. They can also be used to add custom attributes. These are static in nature and should not be used for dynamic event definition.
139 &quot;containsLargeData&quot;: True or False, # Indicates whether this variable contains large data and need to be uploaded to Cloud Storage.
140 &quot;dataType&quot;: &quot;A String&quot;, # Type of the parameter.
141 &quot;defaultValue&quot;: { # The type of the parameter. # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object.
142 &quot;booleanArray&quot;: { # This message only contains a field of boolean array. # Boolean Array.
143 &quot;booleanValues&quot;: [ # Boolean array.
144 True or False,
145 ],
146 },
147 &quot;booleanValue&quot;: True or False, # Boolean.
148 &quot;doubleArray&quot;: { # This message only contains a field of double number array. # Double Number Array.
149 &quot;doubleValues&quot;: [ # Double number array.
150 3.14,
151 ],
152 },
153 &quot;doubleValue&quot;: 3.14, # Double Number.
154 &quot;intArray&quot;: { # This message only contains a field of integer array. # Integer Array.
155 &quot;intValues&quot;: [ # Integer array.
156 &quot;A String&quot;,
157 ],
158 },
159 &quot;intValue&quot;: &quot;A String&quot;, # Integer.
160 &quot;jsonValue&quot;: &quot;A String&quot;, # Json.
161 &quot;stringArray&quot;: { # This message only contains a field of string array. # String Array.
162 &quot;stringValues&quot;: [ # String array.
163 &quot;A String&quot;,
164 ],
165 },
166 &quot;stringValue&quot;: &quot;A String&quot;, # String.
167 },
168 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the parameter.
169 &quot;displayName&quot;: &quot;A String&quot;, # The name (without prefix) to be displayed in the UI for this parameter. E.g. if the key is &quot;foo.bar.myName&quot;, then the name would be &quot;myName&quot;.
170 &quot;inputOutputType&quot;: &quot;A String&quot;, # Specifies the input/output type for the parameter.
171 &quot;isTransient&quot;: True or False, # Whether this parameter is a transient parameter.
172 &quot;jsonSchema&quot;: &quot;A String&quot;, # This schema will be used to validate runtime JSON-typed values of this parameter.
173 &quot;key&quot;: &quot;A String&quot;, # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition.
174 &quot;masked&quot;: True or False, # True if this parameter should be masked in the logs
175 &quot;producer&quot;: &quot;A String&quot;, # The identifier of the node (TaskConfig/TriggerConfig) this parameter was produced by, if it is a transient param or a copy of an input param.
176 &quot;searchable&quot;: True or False, # Searchable in the execution log or not.
177 },
178 ],
179 &quot;testTaskConfigs&quot;: [ # Optional. However, the test case doesn&#x27;t mock or assert anything without test_task_configs.
180 { # The task mock configuration details and assertions for functional tests. Next available id: 6
181 &quot;assertions&quot;: [ # Optional. List of conditions or expressions which should be evaluated to true unless there is a bug/problem in the integration. These are evaluated one the task execution is completed as per the mock strategy in test case
182 { # An assertion which will check for a condition over task execution status or an expression for task output variables
183 &quot;assertionStrategy&quot;: &quot;A String&quot;, # Optional. The type of assertion to perform.
184 &quot;condition&quot;: &quot;A String&quot;, # Optional. Standard filter expression for ASSERT_CONDITION to succeed
185 &quot;parameter&quot;: { # This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Next available id: 4 # Optional. Key-value pair for ASSERT_EQUALS, ASSERT_NOT_EQUALS, ASSERT_CONTAINS to succeed
186 &quot;key&quot;: &quot;A String&quot;, # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition.
187 &quot;masked&quot;: True or False, # True if this parameter should be masked in the logs
188 &quot;value&quot;: { # The type of the parameter. # Values for the defined keys. Each value can either be string, int, double or any proto message.
189 &quot;booleanArray&quot;: { # This message only contains a field of boolean array. # Boolean Array.
190 &quot;booleanValues&quot;: [ # Boolean array.
191 True or False,
192 ],
193 },
194 &quot;booleanValue&quot;: True or False, # Boolean.
195 &quot;doubleArray&quot;: { # This message only contains a field of double number array. # Double Number Array.
196 &quot;doubleValues&quot;: [ # Double number array.
197 3.14,
198 ],
199 },
200 &quot;doubleValue&quot;: 3.14, # Double Number.
201 &quot;intArray&quot;: { # This message only contains a field of integer array. # Integer Array.
202 &quot;intValues&quot;: [ # Integer array.
203 &quot;A String&quot;,
204 ],
205 },
206 &quot;intValue&quot;: &quot;A String&quot;, # Integer.
207 &quot;jsonValue&quot;: &quot;A String&quot;, # Json.
208 &quot;stringArray&quot;: { # This message only contains a field of string array. # String Array.
209 &quot;stringValues&quot;: [ # String array.
210 &quot;A String&quot;,
211 ],
212 },
213 &quot;stringValue&quot;: &quot;A String&quot;, # String.
214 },
215 },
216 &quot;retryCount&quot;: 42, # Number of times given task should be retried in case of ASSERT_FAILED_EXECUTION
217 },
218 ],
219 &quot;mockConfig&quot;: { # The configuration for mocking of a task during test execution Next available id: 4 # Optional. Defines how to mock the given task during test execution
220 &quot;failedExecutions&quot;: &quot;A String&quot;, # Optional. Number of times the given task should fail for failure mock strategy
221 &quot;mockStrategy&quot;: &quot;A String&quot;, # Mockstrategy defines how the particular task should be mocked during test execution
222 &quot;parameters&quot;: [ # Optional. List of key-value pairs for specific mock strategy
223 { # This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Next available id: 4
224 &quot;key&quot;: &quot;A String&quot;, # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition.
225 &quot;masked&quot;: True or False, # True if this parameter should be masked in the logs
226 &quot;value&quot;: { # The type of the parameter. # Values for the defined keys. Each value can either be string, int, double or any proto message.
227 &quot;booleanArray&quot;: { # This message only contains a field of boolean array. # Boolean Array.
228 &quot;booleanValues&quot;: [ # Boolean array.
229 True or False,
230 ],
231 },
232 &quot;booleanValue&quot;: True or False, # Boolean.
233 &quot;doubleArray&quot;: { # This message only contains a field of double number array. # Double Number Array.
234 &quot;doubleValues&quot;: [ # Double number array.
235 3.14,
236 ],
237 },
238 &quot;doubleValue&quot;: 3.14, # Double Number.
239 &quot;intArray&quot;: { # This message only contains a field of integer array. # Integer Array.
240 &quot;intValues&quot;: [ # Integer array.
241 &quot;A String&quot;,
242 ],
243 },
244 &quot;intValue&quot;: &quot;A String&quot;, # Integer.
245 &quot;jsonValue&quot;: &quot;A String&quot;, # Json.
246 &quot;stringArray&quot;: { # This message only contains a field of string array. # String Array.
247 &quot;stringValues&quot;: [ # String array.
248 &quot;A String&quot;,
249 ],
250 },
251 &quot;stringValue&quot;: &quot;A String&quot;, # String.
252 },
253 },
254 ],
255 },
256 &quot;task&quot;: &quot;A String&quot;, # Required. This defines in the test case, the task name in integration which will be mocked by this test task config
257 &quot;taskConfig&quot;: { # The task configuration details. This is not the implementation of Task. There might be multiple TaskConfigs for the same Task. # Optional. Auto-generated.
258 &quot;conditionalFailurePolicies&quot;: { # Conditional task failur retry strategies # Optional. The list of conditional failure policies that will be applied to the task in order.
259 &quot;defaultFailurePolicy&quot;: { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # The default failure policy to be applied if no conditional failure policy matches.
260 &quot;condition&quot;: &quot;A String&quot;, # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy.
261 &quot;intervalTime&quot;: &quot;A String&quot;, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff.
262 &quot;maxRetries&quot;: 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed.
263 &quot;retryStrategy&quot;: &quot;A String&quot;, # Defines what happens to the task upon failure.
264 },
265 &quot;failurePolicies&quot;: [ # The list of failure policies that will be applied to the task in order.
266 { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied).
267 &quot;condition&quot;: &quot;A String&quot;, # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy.
268 &quot;intervalTime&quot;: &quot;A String&quot;, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff.
269 &quot;maxRetries&quot;: 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed.
270 &quot;retryStrategy&quot;: &quot;A String&quot;, # Defines what happens to the task upon failure.
271 },
272 ],
273 },
274 &quot;description&quot;: &quot;A String&quot;, # Optional. User-provided description intended to give additional business context about the task.
275 &quot;displayName&quot;: &quot;A String&quot;, # Optional. User-provided label that is attached to this TaskConfig in the UI.
276 &quot;errorCatcherId&quot;: &quot;A String&quot;, # Optional. Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task
277 &quot;externalTaskType&quot;: &quot;A String&quot;, # Optional. External task type of the task
278 &quot;failurePolicy&quot;: { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for asynchronous calls to Eventbus alone (Post To Queue, Schedule etc.).
279 &quot;condition&quot;: &quot;A String&quot;, # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy.
280 &quot;intervalTime&quot;: &quot;A String&quot;, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff.
281 &quot;maxRetries&quot;: 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed.
282 &quot;retryStrategy&quot;: &quot;A String&quot;, # Defines what happens to the task upon failure.
283 },
284 &quot;jsonValidationOption&quot;: &quot;A String&quot;, # Optional. If set, overrides the option configured in the Task implementation class.
285 &quot;nextTasks&quot;: [ # Optional. The set of tasks that are next in line to be executed as per the execution graph defined for the parent event, specified by `event_config_id`. Each of these next tasks are executed only if the condition associated with them evaluates to true.
286 { # The task that is next in line to be executed, if the condition specified evaluated to true.
287 &quot;condition&quot;: &quot;A String&quot;, # Standard filter expression for this task to become an eligible next task.
288 &quot;description&quot;: &quot;A String&quot;, # User-provided description intended to give additional business context about the task.
289 &quot;displayName&quot;: &quot;A String&quot;, # User-provided label that is attached to this edge in the UI.
290 &quot;taskConfigId&quot;: &quot;A String&quot;, # ID of the next task.
291 &quot;taskId&quot;: &quot;A String&quot;, # Task number of the next task.
292 },
293 ],
294 &quot;nextTasksExecutionPolicy&quot;: &quot;A String&quot;, # Optional. The policy dictating the execution of the next set of tasks for the current task.
295 &quot;parameters&quot;: { # Optional. The customized parameters the user can pass to this task.
296 &quot;a_key&quot;: { # This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Next available id: 4
297 &quot;key&quot;: &quot;A String&quot;, # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition.
298 &quot;masked&quot;: True or False, # True if this parameter should be masked in the logs
299 &quot;value&quot;: { # The type of the parameter. # Values for the defined keys. Each value can either be string, int, double or any proto message.
300 &quot;booleanArray&quot;: { # This message only contains a field of boolean array. # Boolean Array.
301 &quot;booleanValues&quot;: [ # Boolean array.
302 True or False,
303 ],
304 },
305 &quot;booleanValue&quot;: True or False, # Boolean.
306 &quot;doubleArray&quot;: { # This message only contains a field of double number array. # Double Number Array.
307 &quot;doubleValues&quot;: [ # Double number array.
308 3.14,
309 ],
310 },
311 &quot;doubleValue&quot;: 3.14, # Double Number.
312 &quot;intArray&quot;: { # This message only contains a field of integer array. # Integer Array.
313 &quot;intValues&quot;: [ # Integer array.
314 &quot;A String&quot;,
315 ],
316 },
317 &quot;intValue&quot;: &quot;A String&quot;, # Integer.
318 &quot;jsonValue&quot;: &quot;A String&quot;, # Json.
319 &quot;stringArray&quot;: { # This message only contains a field of string array. # String Array.
320 &quot;stringValues&quot;: [ # String array.
321 &quot;A String&quot;,
322 ],
323 },
324 &quot;stringValue&quot;: &quot;A String&quot;, # String.
325 },
326 },
327 },
328 &quot;position&quot;: { # Configuration detail of coordinate, it used for UI # Optional. Informs the front-end application where to draw this error catcher config on the UI.
329 &quot;x&quot;: 42, # Required. X axis of the coordinate
330 &quot;y&quot;: 42, # Required. Y axis of the coordinate
331 },
332 &quot;successPolicy&quot;: { # Policy that dictates the behavior for the task after it completes successfully. # Optional. Determines what action to take upon successful task completion.
333 &quot;finalState&quot;: &quot;A String&quot;, # State to which the execution snapshot status will be set if the task succeeds.
334 },
335 &quot;synchronousCallFailurePolicy&quot;: { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for synchronous calls to Eventbus alone (Post).
336 &quot;condition&quot;: &quot;A String&quot;, # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy.
337 &quot;intervalTime&quot;: &quot;A String&quot;, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff.
338 &quot;maxRetries&quot;: 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed.
339 &quot;retryStrategy&quot;: &quot;A String&quot;, # Defines what happens to the task upon failure.
340 },
341 &quot;task&quot;: &quot;A String&quot;, # Optional. The name for the task.
342 &quot;taskExecutionStrategy&quot;: &quot;A String&quot;, # Optional. The policy dictating the execution strategy of this task.
343 &quot;taskId&quot;: &quot;A String&quot;, # Required. The identifier of this task within its parent event config, specified by the client. This should be unique among all the tasks belong to the same event config. We use this field as the identifier to find next tasks (via field `next_tasks.task_id`).
344 &quot;taskTemplate&quot;: &quot;A String&quot;, # Optional. Used to define task-template name if task is of type task-template
345 },
346 &quot;taskNumber&quot;: &quot;A String&quot;, # Required. This defines in the test case, the task in integration which will be mocked by this test task config
347 },
348 ],
349 &quot;triggerConfig&quot;: { # Configuration detail of a trigger. # Optional. Auto-generated.
350 &quot;alertConfig&quot;: [ # Optional. An alert threshold configuration for the [trigger + client + integration] tuple. If these values are not specified in the trigger config, default values will be populated by the system. Note that there must be exactly one alert threshold configured per [client + trigger + integration] when published.
351 { # Message to be used to configure custom alerting in the {@code EventConfig} protos for an event.
352 &quot;aggregationPeriod&quot;: &quot;A String&quot;, # The period over which the metric value should be aggregated and evaluated. Format is , where integer should be a positive integer and unit should be one of (s,m,h,d,w) meaning (second, minute, hour, day, week). For an EXPECTED_MIN threshold, this aggregation_period must be lesser than 24 hours.
353 &quot;alertThreshold&quot;: 42, # For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired.
354 &quot;disableAlert&quot;: True or False, # Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this integration alert.
355 &quot;displayName&quot;: &quot;A String&quot;, # Name of the alert. This will be displayed in the alert subject. If set, this name should be unique within the scope of the integration.
356 &quot;durationThreshold&quot;: &quot;A String&quot;, # Should be specified only for *AVERAGE_DURATION and *PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger.
357 &quot;metricType&quot;: &quot;A String&quot;, # The type of metric.
358 &quot;onlyFinalAttempt&quot;: True or False, # For either events or tasks, depending on the type of alert, count only final attempts, not retries.
359 &quot;thresholdType&quot;: &quot;A String&quot;, # The threshold type, whether lower(expected_min) or upper(expected_max), for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired.
360 &quot;thresholdValue&quot;: { # The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. # The metric value, above or below which the alert should be triggered.
361 &quot;absolute&quot;: &quot;A String&quot;, # Absolute value threshold.
362 &quot;percentage&quot;: 42, # Percentage threshold.
363 },
364 },
365 ],
366 &quot;cloudSchedulerConfig&quot;: { # Cloud Scheduler Trigger configuration # Optional. Cloud Scheduler Trigger related metadata
367 &quot;cronTab&quot;: &quot;A String&quot;, # Required. The cron tab of cloud scheduler trigger.
368 &quot;errorMessage&quot;: &quot;A String&quot;, # Optional. When the job was deleted from Pantheon UI, error_message will be populated when Get/List integrations
369 &quot;location&quot;: &quot;A String&quot;, # Required. The location where associated cloud scheduler job will be created
370 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # Required. Service account used by Cloud Scheduler to trigger the integration at scheduled time
371 },
372 &quot;description&quot;: &quot;A String&quot;, # Optional. User-provided description intended to give additional business context about the task.
373 &quot;errorCatcherId&quot;: &quot;A String&quot;, # Optional. Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task
374 &quot;inputVariables&quot;: { # Variables names mapped to api trigger. # Optional. List of input variables for the api trigger.
375 &quot;names&quot;: [ # Optional. List of variable names.
376 &quot;A String&quot;,
377 ],
378 },
379 &quot;label&quot;: &quot;A String&quot;, # Optional. The user created label for a particular trigger.
380 &quot;nextTasksExecutionPolicy&quot;: &quot;A String&quot;, # Optional. Dictates how next tasks will be executed.
381 &quot;outputVariables&quot;: { # Variables names mapped to api trigger. # Optional. List of output variables for the api trigger.
382 &quot;names&quot;: [ # Optional. List of variable names.
383 &quot;A String&quot;,
384 ],
385 },
386 &quot;position&quot;: { # Configuration detail of coordinate, it used for UI # Optional. Informs the front-end application where to draw this error catcher config on the UI.
387 &quot;x&quot;: 42, # Required. X axis of the coordinate
388 &quot;y&quot;: 42, # Required. Y axis of the coordinate
389 },
390 &quot;properties&quot;: { # Optional. Configurable properties of the trigger, not to be confused with integration parameters. E.g. &quot;name&quot; is a property for API triggers and &quot;subscription&quot; is a property for Pub/sub triggers.
391 &quot;a_key&quot;: &quot;A String&quot;,
392 },
393 &quot;startTasks&quot;: [ # Optional. Set of tasks numbers from where the integration execution is started by this trigger. If this is empty, then integration is executed with default start tasks. In the list of start tasks, none of two tasks can have direct ancestor-descendant relationships (i.e. in a same integration execution graph).
394 { # The task that is next in line to be executed, if the condition specified evaluated to true.
395 &quot;condition&quot;: &quot;A String&quot;, # Standard filter expression for this task to become an eligible next task.
396 &quot;description&quot;: &quot;A String&quot;, # User-provided description intended to give additional business context about the task.
397 &quot;displayName&quot;: &quot;A String&quot;, # User-provided label that is attached to this edge in the UI.
398 &quot;taskConfigId&quot;: &quot;A String&quot;, # ID of the next task.
399 &quot;taskId&quot;: &quot;A String&quot;, # Task number of the next task.
400 },
401 ],
402 &quot;trigger&quot;: &quot;A String&quot;, # Optional. Name of the trigger. Example: &quot;API Trigger&quot;, &quot;Cloud Pub Sub Trigger&quot; When set will be sent out to monitoring dashabord for tracking purpose.
403 &quot;triggerId&quot;: &quot;A String&quot;, # Optional. Auto-generated trigger ID. The ID is based on the properties that you define in the trigger config. For example, for an API trigger, the trigger ID follows the format: api_trigger/TRIGGER_NAME Where trigger config has properties with value {&quot;Trigger name&quot;: TRIGGER_NAME}
404 &quot;triggerNumber&quot;: &quot;A String&quot;, # Required. A number to uniquely identify each trigger config within the integration on UI.
405 &quot;triggerType&quot;: &quot;A String&quot;, # Optional. Type of trigger
406 },
407 &quot;triggerId&quot;: &quot;A String&quot;, # Required. This defines the trigger ID in workflow which is considered to be executed as starting point of the test case
408 &quot;updateTime&quot;: &quot;A String&quot;, # Auto-generated.
409 }
410
411 testCaseId: string, Required. Required
412 x__xgafv: string, V1 error format.
413 Allowed values
414 1 - v1 error format
415 2 - v2 error format
416
417 Returns:
418 An object of the form:
419
420 { # Defines the functional test case for Application Integration. Next available id: 15
421 &quot;createTime&quot;: &quot;A String&quot;, # Auto-generated.
422 &quot;creatorEmail&quot;: &quot;A String&quot;, # Optional. The creator&#x27;s email address. Generated based on the End User Credentials/LOAS role of the user making the call.
423 &quot;databasePersistencePolicy&quot;: &quot;A String&quot;, # Optional. Various policies for how to persist the test execution info including execution info, execution export info, execution metadata index and execution param index..
424 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the test case.
425 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of test case.
426 &quot;lastModifierEmail&quot;: &quot;A String&quot;, # The last modifier&#x27;s email address. Generated based on the End User Credentials/LOAS role of the user making the call.
427 &quot;lockHolderEmail&quot;: &quot;A String&quot;, # Optional. The edit lock holder&#x27;s email address. Generated based on the End User Credentials/LOAS role of the user making the call.
428 &quot;name&quot;: &quot;A String&quot;, # Output only. Auto-generated primary key.
429 &quot;testInputParameters&quot;: [ # Optional. Parameters that are expected to be passed to the test case when the test case is triggered. This gives the user the ability to provide default values. This should include all the output variables of the trigger as input variables.
430 { # Integration Parameter is defined in the integration config and are used to provide information about data types of the expected parameters and provide any default values if needed. They can also be used to add custom attributes. These are static in nature and should not be used for dynamic event definition.
431 &quot;containsLargeData&quot;: True or False, # Indicates whether this variable contains large data and need to be uploaded to Cloud Storage.
432 &quot;dataType&quot;: &quot;A String&quot;, # Type of the parameter.
433 &quot;defaultValue&quot;: { # The type of the parameter. # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object.
434 &quot;booleanArray&quot;: { # This message only contains a field of boolean array. # Boolean Array.
435 &quot;booleanValues&quot;: [ # Boolean array.
436 True or False,
437 ],
438 },
439 &quot;booleanValue&quot;: True or False, # Boolean.
440 &quot;doubleArray&quot;: { # This message only contains a field of double number array. # Double Number Array.
441 &quot;doubleValues&quot;: [ # Double number array.
442 3.14,
443 ],
444 },
445 &quot;doubleValue&quot;: 3.14, # Double Number.
446 &quot;intArray&quot;: { # This message only contains a field of integer array. # Integer Array.
447 &quot;intValues&quot;: [ # Integer array.
448 &quot;A String&quot;,
449 ],
450 },
451 &quot;intValue&quot;: &quot;A String&quot;, # Integer.
452 &quot;jsonValue&quot;: &quot;A String&quot;, # Json.
453 &quot;stringArray&quot;: { # This message only contains a field of string array. # String Array.
454 &quot;stringValues&quot;: [ # String array.
455 &quot;A String&quot;,
456 ],
457 },
458 &quot;stringValue&quot;: &quot;A String&quot;, # String.
459 },
460 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the parameter.
461 &quot;displayName&quot;: &quot;A String&quot;, # The name (without prefix) to be displayed in the UI for this parameter. E.g. if the key is &quot;foo.bar.myName&quot;, then the name would be &quot;myName&quot;.
462 &quot;inputOutputType&quot;: &quot;A String&quot;, # Specifies the input/output type for the parameter.
463 &quot;isTransient&quot;: True or False, # Whether this parameter is a transient parameter.
464 &quot;jsonSchema&quot;: &quot;A String&quot;, # This schema will be used to validate runtime JSON-typed values of this parameter.
465 &quot;key&quot;: &quot;A String&quot;, # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition.
466 &quot;masked&quot;: True or False, # True if this parameter should be masked in the logs
467 &quot;producer&quot;: &quot;A String&quot;, # The identifier of the node (TaskConfig/TriggerConfig) this parameter was produced by, if it is a transient param or a copy of an input param.
468 &quot;searchable&quot;: True or False, # Searchable in the execution log or not.
469 },
470 ],
471 &quot;testTaskConfigs&quot;: [ # Optional. However, the test case doesn&#x27;t mock or assert anything without test_task_configs.
472 { # The task mock configuration details and assertions for functional tests. Next available id: 6
473 &quot;assertions&quot;: [ # Optional. List of conditions or expressions which should be evaluated to true unless there is a bug/problem in the integration. These are evaluated one the task execution is completed as per the mock strategy in test case
474 { # An assertion which will check for a condition over task execution status or an expression for task output variables
475 &quot;assertionStrategy&quot;: &quot;A String&quot;, # Optional. The type of assertion to perform.
476 &quot;condition&quot;: &quot;A String&quot;, # Optional. Standard filter expression for ASSERT_CONDITION to succeed
477 &quot;parameter&quot;: { # This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Next available id: 4 # Optional. Key-value pair for ASSERT_EQUALS, ASSERT_NOT_EQUALS, ASSERT_CONTAINS to succeed
478 &quot;key&quot;: &quot;A String&quot;, # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition.
479 &quot;masked&quot;: True or False, # True if this parameter should be masked in the logs
480 &quot;value&quot;: { # The type of the parameter. # Values for the defined keys. Each value can either be string, int, double or any proto message.
481 &quot;booleanArray&quot;: { # This message only contains a field of boolean array. # Boolean Array.
482 &quot;booleanValues&quot;: [ # Boolean array.
483 True or False,
484 ],
485 },
486 &quot;booleanValue&quot;: True or False, # Boolean.
487 &quot;doubleArray&quot;: { # This message only contains a field of double number array. # Double Number Array.
488 &quot;doubleValues&quot;: [ # Double number array.
489 3.14,
490 ],
491 },
492 &quot;doubleValue&quot;: 3.14, # Double Number.
493 &quot;intArray&quot;: { # This message only contains a field of integer array. # Integer Array.
494 &quot;intValues&quot;: [ # Integer array.
495 &quot;A String&quot;,
496 ],
497 },
498 &quot;intValue&quot;: &quot;A String&quot;, # Integer.
499 &quot;jsonValue&quot;: &quot;A String&quot;, # Json.
500 &quot;stringArray&quot;: { # This message only contains a field of string array. # String Array.
501 &quot;stringValues&quot;: [ # String array.
502 &quot;A String&quot;,
503 ],
504 },
505 &quot;stringValue&quot;: &quot;A String&quot;, # String.
506 },
507 },
508 &quot;retryCount&quot;: 42, # Number of times given task should be retried in case of ASSERT_FAILED_EXECUTION
509 },
510 ],
511 &quot;mockConfig&quot;: { # The configuration for mocking of a task during test execution Next available id: 4 # Optional. Defines how to mock the given task during test execution
512 &quot;failedExecutions&quot;: &quot;A String&quot;, # Optional. Number of times the given task should fail for failure mock strategy
513 &quot;mockStrategy&quot;: &quot;A String&quot;, # Mockstrategy defines how the particular task should be mocked during test execution
514 &quot;parameters&quot;: [ # Optional. List of key-value pairs for specific mock strategy
515 { # This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Next available id: 4
516 &quot;key&quot;: &quot;A String&quot;, # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition.
517 &quot;masked&quot;: True or False, # True if this parameter should be masked in the logs
518 &quot;value&quot;: { # The type of the parameter. # Values for the defined keys. Each value can either be string, int, double or any proto message.
519 &quot;booleanArray&quot;: { # This message only contains a field of boolean array. # Boolean Array.
520 &quot;booleanValues&quot;: [ # Boolean array.
521 True or False,
522 ],
523 },
524 &quot;booleanValue&quot;: True or False, # Boolean.
525 &quot;doubleArray&quot;: { # This message only contains a field of double number array. # Double Number Array.
526 &quot;doubleValues&quot;: [ # Double number array.
527 3.14,
528 ],
529 },
530 &quot;doubleValue&quot;: 3.14, # Double Number.
531 &quot;intArray&quot;: { # This message only contains a field of integer array. # Integer Array.
532 &quot;intValues&quot;: [ # Integer array.
533 &quot;A String&quot;,
534 ],
535 },
536 &quot;intValue&quot;: &quot;A String&quot;, # Integer.
537 &quot;jsonValue&quot;: &quot;A String&quot;, # Json.
538 &quot;stringArray&quot;: { # This message only contains a field of string array. # String Array.
539 &quot;stringValues&quot;: [ # String array.
540 &quot;A String&quot;,
541 ],
542 },
543 &quot;stringValue&quot;: &quot;A String&quot;, # String.
544 },
545 },
546 ],
547 },
548 &quot;task&quot;: &quot;A String&quot;, # Required. This defines in the test case, the task name in integration which will be mocked by this test task config
549 &quot;taskConfig&quot;: { # The task configuration details. This is not the implementation of Task. There might be multiple TaskConfigs for the same Task. # Optional. Auto-generated.
550 &quot;conditionalFailurePolicies&quot;: { # Conditional task failur retry strategies # Optional. The list of conditional failure policies that will be applied to the task in order.
551 &quot;defaultFailurePolicy&quot;: { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # The default failure policy to be applied if no conditional failure policy matches.
552 &quot;condition&quot;: &quot;A String&quot;, # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy.
553 &quot;intervalTime&quot;: &quot;A String&quot;, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff.
554 &quot;maxRetries&quot;: 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed.
555 &quot;retryStrategy&quot;: &quot;A String&quot;, # Defines what happens to the task upon failure.
556 },
557 &quot;failurePolicies&quot;: [ # The list of failure policies that will be applied to the task in order.
558 { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied).
559 &quot;condition&quot;: &quot;A String&quot;, # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy.
560 &quot;intervalTime&quot;: &quot;A String&quot;, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff.
561 &quot;maxRetries&quot;: 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed.
562 &quot;retryStrategy&quot;: &quot;A String&quot;, # Defines what happens to the task upon failure.
563 },
564 ],
565 },
566 &quot;description&quot;: &quot;A String&quot;, # Optional. User-provided description intended to give additional business context about the task.
567 &quot;displayName&quot;: &quot;A String&quot;, # Optional. User-provided label that is attached to this TaskConfig in the UI.
568 &quot;errorCatcherId&quot;: &quot;A String&quot;, # Optional. Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task
569 &quot;externalTaskType&quot;: &quot;A String&quot;, # Optional. External task type of the task
570 &quot;failurePolicy&quot;: { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for asynchronous calls to Eventbus alone (Post To Queue, Schedule etc.).
571 &quot;condition&quot;: &quot;A String&quot;, # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy.
572 &quot;intervalTime&quot;: &quot;A String&quot;, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff.
573 &quot;maxRetries&quot;: 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed.
574 &quot;retryStrategy&quot;: &quot;A String&quot;, # Defines what happens to the task upon failure.
575 },
576 &quot;jsonValidationOption&quot;: &quot;A String&quot;, # Optional. If set, overrides the option configured in the Task implementation class.
577 &quot;nextTasks&quot;: [ # Optional. The set of tasks that are next in line to be executed as per the execution graph defined for the parent event, specified by `event_config_id`. Each of these next tasks are executed only if the condition associated with them evaluates to true.
578 { # The task that is next in line to be executed, if the condition specified evaluated to true.
579 &quot;condition&quot;: &quot;A String&quot;, # Standard filter expression for this task to become an eligible next task.
580 &quot;description&quot;: &quot;A String&quot;, # User-provided description intended to give additional business context about the task.
581 &quot;displayName&quot;: &quot;A String&quot;, # User-provided label that is attached to this edge in the UI.
582 &quot;taskConfigId&quot;: &quot;A String&quot;, # ID of the next task.
583 &quot;taskId&quot;: &quot;A String&quot;, # Task number of the next task.
584 },
585 ],
586 &quot;nextTasksExecutionPolicy&quot;: &quot;A String&quot;, # Optional. The policy dictating the execution of the next set of tasks for the current task.
587 &quot;parameters&quot;: { # Optional. The customized parameters the user can pass to this task.
588 &quot;a_key&quot;: { # This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Next available id: 4
589 &quot;key&quot;: &quot;A String&quot;, # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition.
590 &quot;masked&quot;: True or False, # True if this parameter should be masked in the logs
591 &quot;value&quot;: { # The type of the parameter. # Values for the defined keys. Each value can either be string, int, double or any proto message.
592 &quot;booleanArray&quot;: { # This message only contains a field of boolean array. # Boolean Array.
593 &quot;booleanValues&quot;: [ # Boolean array.
594 True or False,
595 ],
596 },
597 &quot;booleanValue&quot;: True or False, # Boolean.
598 &quot;doubleArray&quot;: { # This message only contains a field of double number array. # Double Number Array.
599 &quot;doubleValues&quot;: [ # Double number array.
600 3.14,
601 ],
602 },
603 &quot;doubleValue&quot;: 3.14, # Double Number.
604 &quot;intArray&quot;: { # This message only contains a field of integer array. # Integer Array.
605 &quot;intValues&quot;: [ # Integer array.
606 &quot;A String&quot;,
607 ],
608 },
609 &quot;intValue&quot;: &quot;A String&quot;, # Integer.
610 &quot;jsonValue&quot;: &quot;A String&quot;, # Json.
611 &quot;stringArray&quot;: { # This message only contains a field of string array. # String Array.
612 &quot;stringValues&quot;: [ # String array.
613 &quot;A String&quot;,
614 ],
615 },
616 &quot;stringValue&quot;: &quot;A String&quot;, # String.
617 },
618 },
619 },
620 &quot;position&quot;: { # Configuration detail of coordinate, it used for UI # Optional. Informs the front-end application where to draw this error catcher config on the UI.
621 &quot;x&quot;: 42, # Required. X axis of the coordinate
622 &quot;y&quot;: 42, # Required. Y axis of the coordinate
623 },
624 &quot;successPolicy&quot;: { # Policy that dictates the behavior for the task after it completes successfully. # Optional. Determines what action to take upon successful task completion.
625 &quot;finalState&quot;: &quot;A String&quot;, # State to which the execution snapshot status will be set if the task succeeds.
626 },
627 &quot;synchronousCallFailurePolicy&quot;: { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for synchronous calls to Eventbus alone (Post).
628 &quot;condition&quot;: &quot;A String&quot;, # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy.
629 &quot;intervalTime&quot;: &quot;A String&quot;, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff.
630 &quot;maxRetries&quot;: 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed.
631 &quot;retryStrategy&quot;: &quot;A String&quot;, # Defines what happens to the task upon failure.
632 },
633 &quot;task&quot;: &quot;A String&quot;, # Optional. The name for the task.
634 &quot;taskExecutionStrategy&quot;: &quot;A String&quot;, # Optional. The policy dictating the execution strategy of this task.
635 &quot;taskId&quot;: &quot;A String&quot;, # Required. The identifier of this task within its parent event config, specified by the client. This should be unique among all the tasks belong to the same event config. We use this field as the identifier to find next tasks (via field `next_tasks.task_id`).
636 &quot;taskTemplate&quot;: &quot;A String&quot;, # Optional. Used to define task-template name if task is of type task-template
637 },
638 &quot;taskNumber&quot;: &quot;A String&quot;, # Required. This defines in the test case, the task in integration which will be mocked by this test task config
639 },
640 ],
641 &quot;triggerConfig&quot;: { # Configuration detail of a trigger. # Optional. Auto-generated.
642 &quot;alertConfig&quot;: [ # Optional. An alert threshold configuration for the [trigger + client + integration] tuple. If these values are not specified in the trigger config, default values will be populated by the system. Note that there must be exactly one alert threshold configured per [client + trigger + integration] when published.
643 { # Message to be used to configure custom alerting in the {@code EventConfig} protos for an event.
644 &quot;aggregationPeriod&quot;: &quot;A String&quot;, # The period over which the metric value should be aggregated and evaluated. Format is , where integer should be a positive integer and unit should be one of (s,m,h,d,w) meaning (second, minute, hour, day, week). For an EXPECTED_MIN threshold, this aggregation_period must be lesser than 24 hours.
645 &quot;alertThreshold&quot;: 42, # For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired.
646 &quot;disableAlert&quot;: True or False, # Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this integration alert.
647 &quot;displayName&quot;: &quot;A String&quot;, # Name of the alert. This will be displayed in the alert subject. If set, this name should be unique within the scope of the integration.
648 &quot;durationThreshold&quot;: &quot;A String&quot;, # Should be specified only for *AVERAGE_DURATION and *PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger.
649 &quot;metricType&quot;: &quot;A String&quot;, # The type of metric.
650 &quot;onlyFinalAttempt&quot;: True or False, # For either events or tasks, depending on the type of alert, count only final attempts, not retries.
651 &quot;thresholdType&quot;: &quot;A String&quot;, # The threshold type, whether lower(expected_min) or upper(expected_max), for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired.
652 &quot;thresholdValue&quot;: { # The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. # The metric value, above or below which the alert should be triggered.
653 &quot;absolute&quot;: &quot;A String&quot;, # Absolute value threshold.
654 &quot;percentage&quot;: 42, # Percentage threshold.
655 },
656 },
657 ],
658 &quot;cloudSchedulerConfig&quot;: { # Cloud Scheduler Trigger configuration # Optional. Cloud Scheduler Trigger related metadata
659 &quot;cronTab&quot;: &quot;A String&quot;, # Required. The cron tab of cloud scheduler trigger.
660 &quot;errorMessage&quot;: &quot;A String&quot;, # Optional. When the job was deleted from Pantheon UI, error_message will be populated when Get/List integrations
661 &quot;location&quot;: &quot;A String&quot;, # Required. The location where associated cloud scheduler job will be created
662 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # Required. Service account used by Cloud Scheduler to trigger the integration at scheduled time
663 },
664 &quot;description&quot;: &quot;A String&quot;, # Optional. User-provided description intended to give additional business context about the task.
665 &quot;errorCatcherId&quot;: &quot;A String&quot;, # Optional. Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task
666 &quot;inputVariables&quot;: { # Variables names mapped to api trigger. # Optional. List of input variables for the api trigger.
667 &quot;names&quot;: [ # Optional. List of variable names.
668 &quot;A String&quot;,
669 ],
670 },
671 &quot;label&quot;: &quot;A String&quot;, # Optional. The user created label for a particular trigger.
672 &quot;nextTasksExecutionPolicy&quot;: &quot;A String&quot;, # Optional. Dictates how next tasks will be executed.
673 &quot;outputVariables&quot;: { # Variables names mapped to api trigger. # Optional. List of output variables for the api trigger.
674 &quot;names&quot;: [ # Optional. List of variable names.
675 &quot;A String&quot;,
676 ],
677 },
678 &quot;position&quot;: { # Configuration detail of coordinate, it used for UI # Optional. Informs the front-end application where to draw this error catcher config on the UI.
679 &quot;x&quot;: 42, # Required. X axis of the coordinate
680 &quot;y&quot;: 42, # Required. Y axis of the coordinate
681 },
682 &quot;properties&quot;: { # Optional. Configurable properties of the trigger, not to be confused with integration parameters. E.g. &quot;name&quot; is a property for API triggers and &quot;subscription&quot; is a property for Pub/sub triggers.
683 &quot;a_key&quot;: &quot;A String&quot;,
684 },
685 &quot;startTasks&quot;: [ # Optional. Set of tasks numbers from where the integration execution is started by this trigger. If this is empty, then integration is executed with default start tasks. In the list of start tasks, none of two tasks can have direct ancestor-descendant relationships (i.e. in a same integration execution graph).
686 { # The task that is next in line to be executed, if the condition specified evaluated to true.
687 &quot;condition&quot;: &quot;A String&quot;, # Standard filter expression for this task to become an eligible next task.
688 &quot;description&quot;: &quot;A String&quot;, # User-provided description intended to give additional business context about the task.
689 &quot;displayName&quot;: &quot;A String&quot;, # User-provided label that is attached to this edge in the UI.
690 &quot;taskConfigId&quot;: &quot;A String&quot;, # ID of the next task.
691 &quot;taskId&quot;: &quot;A String&quot;, # Task number of the next task.
692 },
693 ],
694 &quot;trigger&quot;: &quot;A String&quot;, # Optional. Name of the trigger. Example: &quot;API Trigger&quot;, &quot;Cloud Pub Sub Trigger&quot; When set will be sent out to monitoring dashabord for tracking purpose.
695 &quot;triggerId&quot;: &quot;A String&quot;, # Optional. Auto-generated trigger ID. The ID is based on the properties that you define in the trigger config. For example, for an API trigger, the trigger ID follows the format: api_trigger/TRIGGER_NAME Where trigger config has properties with value {&quot;Trigger name&quot;: TRIGGER_NAME}
696 &quot;triggerNumber&quot;: &quot;A String&quot;, # Required. A number to uniquely identify each trigger config within the integration on UI.
697 &quot;triggerType&quot;: &quot;A String&quot;, # Optional. Type of trigger
698 },
699 &quot;triggerId&quot;: &quot;A String&quot;, # Required. This defines the trigger ID in workflow which is considered to be executed as starting point of the test case
700 &quot;updateTime&quot;: &quot;A String&quot;, # Auto-generated.
701 }</pre>
702 </div>
703
704 <div class="method">
705 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
706 <pre>Deletes a test case
707
708 Args:
709 name: string, Required. ID for the test case to be deleted (required)
710 x__xgafv: string, V1 error format.
711 Allowed values
712 1 - v1 error format
713 2 - v2 error format
714
715 Returns:
716 An object of the form:
717
718 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
719 }</pre>
720 </div>
721
722 <div class="method">
723 <code class="details" id="download">download(name, fileFormat=None, x__xgafv=None)</code>
724 <pre>Downloads a test case. Retrieves the `TestCase` for a given `test_case_id` and returns the response as a string.
725
726 Args:
727 name: string, Required. The test case to download. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{integration_version}/testCases/{test_case_id} (required)
728 fileFormat: string, File format for download request.
729 Allowed values
730 FILE_FORMAT_UNSPECIFIED - Unspecified file format
731 JSON - JSON File Format
732 YAML - YAML File Format
733 x__xgafv: string, V1 error format.
734 Allowed values
735 1 - v1 error format
736 2 - v2 error format
737
738 Returns:
739 An object of the form:
740
741 { # Response for DownloadTestCase.
742 &quot;content&quot;: &quot;A String&quot;, # String representation of the test case.
743 }</pre>
744 </div>
745
746 <div class="method">
747 <code class="details" id="execute">execute(parent, body=None, x__xgafv=None)</code>
748 <pre>Executes all test cases in an integration version.
749
750 Args:
751 parent: string, Required. The parent resource whose test cases are executed. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{integration_version} (required)
752 body: object, The request body.
753 The object takes the form of:
754
755 { # Request for ExecuteTestCases.
756 }
757
758 x__xgafv: string, V1 error format.
759 Allowed values
760 1 - v1 error format
761 2 - v2 error format
762
763 Returns:
764 An object of the form:
765
766 { # Response for ExecuteTestCases.
767 &quot;executeTestCaseResponses&quot;: [ # Results of each execution of test cases in an integration version.
768 { # The response for executing a functional test.
769 &quot;assertionResults&quot;: [ # Results of each assertions ran during execution of test case.
770 { # The result of an assertion.
771 &quot;assertion&quot;: { # An assertion which will check for a condition over task execution status or an expression for task output variables # Assertion that was run.
772 &quot;assertionStrategy&quot;: &quot;A String&quot;, # Optional. The type of assertion to perform.
773 &quot;condition&quot;: &quot;A String&quot;, # Optional. Standard filter expression for ASSERT_CONDITION to succeed
774 &quot;parameter&quot;: { # This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Next available id: 4 # Optional. Key-value pair for ASSERT_EQUALS, ASSERT_NOT_EQUALS, ASSERT_CONTAINS to succeed
775 &quot;key&quot;: &quot;A String&quot;, # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition.
776 &quot;masked&quot;: True or False, # True if this parameter should be masked in the logs
777 &quot;value&quot;: { # The type of the parameter. # Values for the defined keys. Each value can either be string, int, double or any proto message.
778 &quot;booleanArray&quot;: { # This message only contains a field of boolean array. # Boolean Array.
779 &quot;booleanValues&quot;: [ # Boolean array.
780 True or False,
781 ],
782 },
783 &quot;booleanValue&quot;: True or False, # Boolean.
784 &quot;doubleArray&quot;: { # This message only contains a field of double number array. # Double Number Array.
785 &quot;doubleValues&quot;: [ # Double number array.
786 3.14,
787 ],
788 },
789 &quot;doubleValue&quot;: 3.14, # Double Number.
790 &quot;intArray&quot;: { # This message only contains a field of integer array. # Integer Array.
791 &quot;intValues&quot;: [ # Integer array.
792 &quot;A String&quot;,
793 ],
794 },
795 &quot;intValue&quot;: &quot;A String&quot;, # Integer.
796 &quot;jsonValue&quot;: &quot;A String&quot;, # Json.
797 &quot;stringArray&quot;: { # This message only contains a field of string array. # String Array.
798 &quot;stringValues&quot;: [ # String array.
799 &quot;A String&quot;,
800 ],
801 },
802 &quot;stringValue&quot;: &quot;A String&quot;, # String.
803 },
804 },
805 &quot;retryCount&quot;: 42, # Number of times given task should be retried in case of ASSERT_FAILED_EXECUTION
806 },
807 &quot;failureMessage&quot;: &quot;A String&quot;, # Details of the assertion failure
808 &quot;status&quot;: &quot;A String&quot;, # Status of assertion to signify if the assertion succeeded or failed
809 &quot;taskName&quot;: &quot;A String&quot;, # Task name of task where the assertion was run.
810 &quot;taskNumber&quot;: &quot;A String&quot;, # Task number of task where the assertion was run.
811 },
812 ],
813 &quot;executionId&quot;: &quot;A String&quot;, # The id of the execution corresponding to this run of integration.
814 &quot;outputParameters&quot;: { # OUTPUT parameters in format of Map. Where Key is the name of the parameter. Note: Name of the system generated parameters are wrapped by backtick(`) to distinguish them from the user defined parameters.
815 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
816 },
817 &quot;testExecutionState&quot;: &quot;A String&quot;, # State of the test case execution
818 },
819 ],
820 }</pre>
821 </div>
822
823 <div class="method">
824 <code class="details" id="executeTest">executeTest(testCaseName, body=None, x__xgafv=None)</code>
825 <pre>Executes functional test
826
827 Args:
828 testCaseName: string, Required. Test case resource name (required)
829 body: object, The request body.
830 The object takes the form of:
831
832 { # The request for executing a functional test.
833 &quot;inputParameters&quot;: { # Optional. Input parameters used by test case execution.
834 &quot;a_key&quot;: { # The type of the parameter.
835 &quot;booleanArray&quot;: { # This message only contains a field of boolean array. # Boolean Array.
836 &quot;booleanValues&quot;: [ # Boolean array.
837 True or False,
838 ],
839 },
840 &quot;booleanValue&quot;: True or False, # Boolean.
841 &quot;doubleArray&quot;: { # This message only contains a field of double number array. # Double Number Array.
842 &quot;doubleValues&quot;: [ # Double number array.
843 3.14,
844 ],
845 },
846 &quot;doubleValue&quot;: 3.14, # Double Number.
847 &quot;intArray&quot;: { # This message only contains a field of integer array. # Integer Array.
848 &quot;intValues&quot;: [ # Integer array.
849 &quot;A String&quot;,
850 ],
851 },
852 &quot;intValue&quot;: &quot;A String&quot;, # Integer.
853 &quot;jsonValue&quot;: &quot;A String&quot;, # Json.
854 &quot;stringArray&quot;: { # This message only contains a field of string array. # String Array.
855 &quot;stringValues&quot;: [ # String array.
856 &quot;A String&quot;,
857 ],
858 },
859 &quot;stringValue&quot;: &quot;A String&quot;, # String.
860 },
861 },
862 }
863
864 x__xgafv: string, V1 error format.
865 Allowed values
866 1 - v1 error format
867 2 - v2 error format
868
869 Returns:
870 An object of the form:
871
872 { # The response for executing a functional test.
873 &quot;assertionResults&quot;: [ # Results of each assertions ran during execution of test case.
874 { # The result of an assertion.
875 &quot;assertion&quot;: { # An assertion which will check for a condition over task execution status or an expression for task output variables # Assertion that was run.
876 &quot;assertionStrategy&quot;: &quot;A String&quot;, # Optional. The type of assertion to perform.
877 &quot;condition&quot;: &quot;A String&quot;, # Optional. Standard filter expression for ASSERT_CONDITION to succeed
878 &quot;parameter&quot;: { # This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Next available id: 4 # Optional. Key-value pair for ASSERT_EQUALS, ASSERT_NOT_EQUALS, ASSERT_CONTAINS to succeed
879 &quot;key&quot;: &quot;A String&quot;, # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition.
880 &quot;masked&quot;: True or False, # True if this parameter should be masked in the logs
881 &quot;value&quot;: { # The type of the parameter. # Values for the defined keys. Each value can either be string, int, double or any proto message.
882 &quot;booleanArray&quot;: { # This message only contains a field of boolean array. # Boolean Array.
883 &quot;booleanValues&quot;: [ # Boolean array.
884 True or False,
885 ],
886 },
887 &quot;booleanValue&quot;: True or False, # Boolean.
888 &quot;doubleArray&quot;: { # This message only contains a field of double number array. # Double Number Array.
889 &quot;doubleValues&quot;: [ # Double number array.
890 3.14,
891 ],
892 },
893 &quot;doubleValue&quot;: 3.14, # Double Number.
894 &quot;intArray&quot;: { # This message only contains a field of integer array. # Integer Array.
895 &quot;intValues&quot;: [ # Integer array.
896 &quot;A String&quot;,
897 ],
898 },
899 &quot;intValue&quot;: &quot;A String&quot;, # Integer.
900 &quot;jsonValue&quot;: &quot;A String&quot;, # Json.
901 &quot;stringArray&quot;: { # This message only contains a field of string array. # String Array.
902 &quot;stringValues&quot;: [ # String array.
903 &quot;A String&quot;,
904 ],
905 },
906 &quot;stringValue&quot;: &quot;A String&quot;, # String.
907 },
908 },
909 &quot;retryCount&quot;: 42, # Number of times given task should be retried in case of ASSERT_FAILED_EXECUTION
910 },
911 &quot;failureMessage&quot;: &quot;A String&quot;, # Details of the assertion failure
912 &quot;status&quot;: &quot;A String&quot;, # Status of assertion to signify if the assertion succeeded or failed
913 &quot;taskName&quot;: &quot;A String&quot;, # Task name of task where the assertion was run.
914 &quot;taskNumber&quot;: &quot;A String&quot;, # Task number of task where the assertion was run.
915 },
916 ],
917 &quot;executionId&quot;: &quot;A String&quot;, # The id of the execution corresponding to this run of integration.
918 &quot;outputParameters&quot;: { # OUTPUT parameters in format of Map. Where Key is the name of the parameter. Note: Name of the system generated parameters are wrapped by backtick(`) to distinguish them from the user defined parameters.
919 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
920 },
921 &quot;testExecutionState&quot;: &quot;A String&quot;, # State of the test case execution
922 }</pre>
923 </div>
924
925 <div class="method">
926 <code class="details" id="get">get(name, x__xgafv=None)</code>
927 <pre>Get a test case
928
929 Args:
930 name: string, Required. The ID of the test case to retrieve (required)
931 x__xgafv: string, V1 error format.
932 Allowed values
933 1 - v1 error format
934 2 - v2 error format
935
936 Returns:
937 An object of the form:
938
939 { # Defines the functional test case for Application Integration. Next available id: 15
940 &quot;createTime&quot;: &quot;A String&quot;, # Auto-generated.
941 &quot;creatorEmail&quot;: &quot;A String&quot;, # Optional. The creator&#x27;s email address. Generated based on the End User Credentials/LOAS role of the user making the call.
942 &quot;databasePersistencePolicy&quot;: &quot;A String&quot;, # Optional. Various policies for how to persist the test execution info including execution info, execution export info, execution metadata index and execution param index..
943 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the test case.
944 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of test case.
945 &quot;lastModifierEmail&quot;: &quot;A String&quot;, # The last modifier&#x27;s email address. Generated based on the End User Credentials/LOAS role of the user making the call.
946 &quot;lockHolderEmail&quot;: &quot;A String&quot;, # Optional. The edit lock holder&#x27;s email address. Generated based on the End User Credentials/LOAS role of the user making the call.
947 &quot;name&quot;: &quot;A String&quot;, # Output only. Auto-generated primary key.
948 &quot;testInputParameters&quot;: [ # Optional. Parameters that are expected to be passed to the test case when the test case is triggered. This gives the user the ability to provide default values. This should include all the output variables of the trigger as input variables.
949 { # Integration Parameter is defined in the integration config and are used to provide information about data types of the expected parameters and provide any default values if needed. They can also be used to add custom attributes. These are static in nature and should not be used for dynamic event definition.
950 &quot;containsLargeData&quot;: True or False, # Indicates whether this variable contains large data and need to be uploaded to Cloud Storage.
951 &quot;dataType&quot;: &quot;A String&quot;, # Type of the parameter.
952 &quot;defaultValue&quot;: { # The type of the parameter. # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object.
953 &quot;booleanArray&quot;: { # This message only contains a field of boolean array. # Boolean Array.
954 &quot;booleanValues&quot;: [ # Boolean array.
955 True or False,
956 ],
957 },
958 &quot;booleanValue&quot;: True or False, # Boolean.
959 &quot;doubleArray&quot;: { # This message only contains a field of double number array. # Double Number Array.
960 &quot;doubleValues&quot;: [ # Double number array.
961 3.14,
962 ],
963 },
964 &quot;doubleValue&quot;: 3.14, # Double Number.
965 &quot;intArray&quot;: { # This message only contains a field of integer array. # Integer Array.
966 &quot;intValues&quot;: [ # Integer array.
967 &quot;A String&quot;,
968 ],
969 },
970 &quot;intValue&quot;: &quot;A String&quot;, # Integer.
971 &quot;jsonValue&quot;: &quot;A String&quot;, # Json.
972 &quot;stringArray&quot;: { # This message only contains a field of string array. # String Array.
973 &quot;stringValues&quot;: [ # String array.
974 &quot;A String&quot;,
975 ],
976 },
977 &quot;stringValue&quot;: &quot;A String&quot;, # String.
978 },
979 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the parameter.
980 &quot;displayName&quot;: &quot;A String&quot;, # The name (without prefix) to be displayed in the UI for this parameter. E.g. if the key is &quot;foo.bar.myName&quot;, then the name would be &quot;myName&quot;.
981 &quot;inputOutputType&quot;: &quot;A String&quot;, # Specifies the input/output type for the parameter.
982 &quot;isTransient&quot;: True or False, # Whether this parameter is a transient parameter.
983 &quot;jsonSchema&quot;: &quot;A String&quot;, # This schema will be used to validate runtime JSON-typed values of this parameter.
984 &quot;key&quot;: &quot;A String&quot;, # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition.
985 &quot;masked&quot;: True or False, # True if this parameter should be masked in the logs
986 &quot;producer&quot;: &quot;A String&quot;, # The identifier of the node (TaskConfig/TriggerConfig) this parameter was produced by, if it is a transient param or a copy of an input param.
987 &quot;searchable&quot;: True or False, # Searchable in the execution log or not.
988 },
989 ],
990 &quot;testTaskConfigs&quot;: [ # Optional. However, the test case doesn&#x27;t mock or assert anything without test_task_configs.
991 { # The task mock configuration details and assertions for functional tests. Next available id: 6
992 &quot;assertions&quot;: [ # Optional. List of conditions or expressions which should be evaluated to true unless there is a bug/problem in the integration. These are evaluated one the task execution is completed as per the mock strategy in test case
993 { # An assertion which will check for a condition over task execution status or an expression for task output variables
994 &quot;assertionStrategy&quot;: &quot;A String&quot;, # Optional. The type of assertion to perform.
995 &quot;condition&quot;: &quot;A String&quot;, # Optional. Standard filter expression for ASSERT_CONDITION to succeed
996 &quot;parameter&quot;: { # This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Next available id: 4 # Optional. Key-value pair for ASSERT_EQUALS, ASSERT_NOT_EQUALS, ASSERT_CONTAINS to succeed
997 &quot;key&quot;: &quot;A String&quot;, # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition.
998 &quot;masked&quot;: True or False, # True if this parameter should be masked in the logs
999 &quot;value&quot;: { # The type of the parameter. # Values for the defined keys. Each value can either be string, int, double or any proto message.
1000 &quot;booleanArray&quot;: { # This message only contains a field of boolean array. # Boolean Array.
1001 &quot;booleanValues&quot;: [ # Boolean array.
1002 True or False,
1003 ],
1004 },
1005 &quot;booleanValue&quot;: True or False, # Boolean.
1006 &quot;doubleArray&quot;: { # This message only contains a field of double number array. # Double Number Array.
1007 &quot;doubleValues&quot;: [ # Double number array.
1008 3.14,
1009 ],
1010 },
1011 &quot;doubleValue&quot;: 3.14, # Double Number.
1012 &quot;intArray&quot;: { # This message only contains a field of integer array. # Integer Array.
1013 &quot;intValues&quot;: [ # Integer array.
1014 &quot;A String&quot;,
1015 ],
1016 },
1017 &quot;intValue&quot;: &quot;A String&quot;, # Integer.
1018 &quot;jsonValue&quot;: &quot;A String&quot;, # Json.
1019 &quot;stringArray&quot;: { # This message only contains a field of string array. # String Array.
1020 &quot;stringValues&quot;: [ # String array.
1021 &quot;A String&quot;,
1022 ],
1023 },
1024 &quot;stringValue&quot;: &quot;A String&quot;, # String.
1025 },
1026 },
1027 &quot;retryCount&quot;: 42, # Number of times given task should be retried in case of ASSERT_FAILED_EXECUTION
1028 },
1029 ],
1030 &quot;mockConfig&quot;: { # The configuration for mocking of a task during test execution Next available id: 4 # Optional. Defines how to mock the given task during test execution
1031 &quot;failedExecutions&quot;: &quot;A String&quot;, # Optional. Number of times the given task should fail for failure mock strategy
1032 &quot;mockStrategy&quot;: &quot;A String&quot;, # Mockstrategy defines how the particular task should be mocked during test execution
1033 &quot;parameters&quot;: [ # Optional. List of key-value pairs for specific mock strategy
1034 { # This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Next available id: 4
1035 &quot;key&quot;: &quot;A String&quot;, # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition.
1036 &quot;masked&quot;: True or False, # True if this parameter should be masked in the logs
1037 &quot;value&quot;: { # The type of the parameter. # Values for the defined keys. Each value can either be string, int, double or any proto message.
1038 &quot;booleanArray&quot;: { # This message only contains a field of boolean array. # Boolean Array.
1039 &quot;booleanValues&quot;: [ # Boolean array.
1040 True or False,
1041 ],
1042 },
1043 &quot;booleanValue&quot;: True or False, # Boolean.
1044 &quot;doubleArray&quot;: { # This message only contains a field of double number array. # Double Number Array.
1045 &quot;doubleValues&quot;: [ # Double number array.
1046 3.14,
1047 ],
1048 },
1049 &quot;doubleValue&quot;: 3.14, # Double Number.
1050 &quot;intArray&quot;: { # This message only contains a field of integer array. # Integer Array.
1051 &quot;intValues&quot;: [ # Integer array.
1052 &quot;A String&quot;,
1053 ],
1054 },
1055 &quot;intValue&quot;: &quot;A String&quot;, # Integer.
1056 &quot;jsonValue&quot;: &quot;A String&quot;, # Json.
1057 &quot;stringArray&quot;: { # This message only contains a field of string array. # String Array.
1058 &quot;stringValues&quot;: [ # String array.
1059 &quot;A String&quot;,
1060 ],
1061 },
1062 &quot;stringValue&quot;: &quot;A String&quot;, # String.
1063 },
1064 },
1065 ],
1066 },
1067 &quot;task&quot;: &quot;A String&quot;, # Required. This defines in the test case, the task name in integration which will be mocked by this test task config
1068 &quot;taskConfig&quot;: { # The task configuration details. This is not the implementation of Task. There might be multiple TaskConfigs for the same Task. # Optional. Auto-generated.
1069 &quot;conditionalFailurePolicies&quot;: { # Conditional task failur retry strategies # Optional. The list of conditional failure policies that will be applied to the task in order.
1070 &quot;defaultFailurePolicy&quot;: { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # The default failure policy to be applied if no conditional failure policy matches.
1071 &quot;condition&quot;: &quot;A String&quot;, # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy.
1072 &quot;intervalTime&quot;: &quot;A String&quot;, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff.
1073 &quot;maxRetries&quot;: 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed.
1074 &quot;retryStrategy&quot;: &quot;A String&quot;, # Defines what happens to the task upon failure.
1075 },
1076 &quot;failurePolicies&quot;: [ # The list of failure policies that will be applied to the task in order.
1077 { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied).
1078 &quot;condition&quot;: &quot;A String&quot;, # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy.
1079 &quot;intervalTime&quot;: &quot;A String&quot;, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff.
1080 &quot;maxRetries&quot;: 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed.
1081 &quot;retryStrategy&quot;: &quot;A String&quot;, # Defines what happens to the task upon failure.
1082 },
1083 ],
1084 },
1085 &quot;description&quot;: &quot;A String&quot;, # Optional. User-provided description intended to give additional business context about the task.
1086 &quot;displayName&quot;: &quot;A String&quot;, # Optional. User-provided label that is attached to this TaskConfig in the UI.
1087 &quot;errorCatcherId&quot;: &quot;A String&quot;, # Optional. Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task
1088 &quot;externalTaskType&quot;: &quot;A String&quot;, # Optional. External task type of the task
1089 &quot;failurePolicy&quot;: { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for asynchronous calls to Eventbus alone (Post To Queue, Schedule etc.).
1090 &quot;condition&quot;: &quot;A String&quot;, # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy.
1091 &quot;intervalTime&quot;: &quot;A String&quot;, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff.
1092 &quot;maxRetries&quot;: 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed.
1093 &quot;retryStrategy&quot;: &quot;A String&quot;, # Defines what happens to the task upon failure.
1094 },
1095 &quot;jsonValidationOption&quot;: &quot;A String&quot;, # Optional. If set, overrides the option configured in the Task implementation class.
1096 &quot;nextTasks&quot;: [ # Optional. The set of tasks that are next in line to be executed as per the execution graph defined for the parent event, specified by `event_config_id`. Each of these next tasks are executed only if the condition associated with them evaluates to true.
1097 { # The task that is next in line to be executed, if the condition specified evaluated to true.
1098 &quot;condition&quot;: &quot;A String&quot;, # Standard filter expression for this task to become an eligible next task.
1099 &quot;description&quot;: &quot;A String&quot;, # User-provided description intended to give additional business context about the task.
1100 &quot;displayName&quot;: &quot;A String&quot;, # User-provided label that is attached to this edge in the UI.
1101 &quot;taskConfigId&quot;: &quot;A String&quot;, # ID of the next task.
1102 &quot;taskId&quot;: &quot;A String&quot;, # Task number of the next task.
1103 },
1104 ],
1105 &quot;nextTasksExecutionPolicy&quot;: &quot;A String&quot;, # Optional. The policy dictating the execution of the next set of tasks for the current task.
1106 &quot;parameters&quot;: { # Optional. The customized parameters the user can pass to this task.
1107 &quot;a_key&quot;: { # This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Next available id: 4
1108 &quot;key&quot;: &quot;A String&quot;, # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition.
1109 &quot;masked&quot;: True or False, # True if this parameter should be masked in the logs
1110 &quot;value&quot;: { # The type of the parameter. # Values for the defined keys. Each value can either be string, int, double or any proto message.
1111 &quot;booleanArray&quot;: { # This message only contains a field of boolean array. # Boolean Array.
1112 &quot;booleanValues&quot;: [ # Boolean array.
1113 True or False,
1114 ],
1115 },
1116 &quot;booleanValue&quot;: True or False, # Boolean.
1117 &quot;doubleArray&quot;: { # This message only contains a field of double number array. # Double Number Array.
1118 &quot;doubleValues&quot;: [ # Double number array.
1119 3.14,
1120 ],
1121 },
1122 &quot;doubleValue&quot;: 3.14, # Double Number.
1123 &quot;intArray&quot;: { # This message only contains a field of integer array. # Integer Array.
1124 &quot;intValues&quot;: [ # Integer array.
1125 &quot;A String&quot;,
1126 ],
1127 },
1128 &quot;intValue&quot;: &quot;A String&quot;, # Integer.
1129 &quot;jsonValue&quot;: &quot;A String&quot;, # Json.
1130 &quot;stringArray&quot;: { # This message only contains a field of string array. # String Array.
1131 &quot;stringValues&quot;: [ # String array.
1132 &quot;A String&quot;,
1133 ],
1134 },
1135 &quot;stringValue&quot;: &quot;A String&quot;, # String.
1136 },
1137 },
1138 },
1139 &quot;position&quot;: { # Configuration detail of coordinate, it used for UI # Optional. Informs the front-end application where to draw this error catcher config on the UI.
1140 &quot;x&quot;: 42, # Required. X axis of the coordinate
1141 &quot;y&quot;: 42, # Required. Y axis of the coordinate
1142 },
1143 &quot;successPolicy&quot;: { # Policy that dictates the behavior for the task after it completes successfully. # Optional. Determines what action to take upon successful task completion.
1144 &quot;finalState&quot;: &quot;A String&quot;, # State to which the execution snapshot status will be set if the task succeeds.
1145 },
1146 &quot;synchronousCallFailurePolicy&quot;: { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for synchronous calls to Eventbus alone (Post).
1147 &quot;condition&quot;: &quot;A String&quot;, # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy.
1148 &quot;intervalTime&quot;: &quot;A String&quot;, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff.
1149 &quot;maxRetries&quot;: 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed.
1150 &quot;retryStrategy&quot;: &quot;A String&quot;, # Defines what happens to the task upon failure.
1151 },
1152 &quot;task&quot;: &quot;A String&quot;, # Optional. The name for the task.
1153 &quot;taskExecutionStrategy&quot;: &quot;A String&quot;, # Optional. The policy dictating the execution strategy of this task.
1154 &quot;taskId&quot;: &quot;A String&quot;, # Required. The identifier of this task within its parent event config, specified by the client. This should be unique among all the tasks belong to the same event config. We use this field as the identifier to find next tasks (via field `next_tasks.task_id`).
1155 &quot;taskTemplate&quot;: &quot;A String&quot;, # Optional. Used to define task-template name if task is of type task-template
1156 },
1157 &quot;taskNumber&quot;: &quot;A String&quot;, # Required. This defines in the test case, the task in integration which will be mocked by this test task config
1158 },
1159 ],
1160 &quot;triggerConfig&quot;: { # Configuration detail of a trigger. # Optional. Auto-generated.
1161 &quot;alertConfig&quot;: [ # Optional. An alert threshold configuration for the [trigger + client + integration] tuple. If these values are not specified in the trigger config, default values will be populated by the system. Note that there must be exactly one alert threshold configured per [client + trigger + integration] when published.
1162 { # Message to be used to configure custom alerting in the {@code EventConfig} protos for an event.
1163 &quot;aggregationPeriod&quot;: &quot;A String&quot;, # The period over which the metric value should be aggregated and evaluated. Format is , where integer should be a positive integer and unit should be one of (s,m,h,d,w) meaning (second, minute, hour, day, week). For an EXPECTED_MIN threshold, this aggregation_period must be lesser than 24 hours.
1164 &quot;alertThreshold&quot;: 42, # For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired.
1165 &quot;disableAlert&quot;: True or False, # Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this integration alert.
1166 &quot;displayName&quot;: &quot;A String&quot;, # Name of the alert. This will be displayed in the alert subject. If set, this name should be unique within the scope of the integration.
1167 &quot;durationThreshold&quot;: &quot;A String&quot;, # Should be specified only for *AVERAGE_DURATION and *PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger.
1168 &quot;metricType&quot;: &quot;A String&quot;, # The type of metric.
1169 &quot;onlyFinalAttempt&quot;: True or False, # For either events or tasks, depending on the type of alert, count only final attempts, not retries.
1170 &quot;thresholdType&quot;: &quot;A String&quot;, # The threshold type, whether lower(expected_min) or upper(expected_max), for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired.
1171 &quot;thresholdValue&quot;: { # The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. # The metric value, above or below which the alert should be triggered.
1172 &quot;absolute&quot;: &quot;A String&quot;, # Absolute value threshold.
1173 &quot;percentage&quot;: 42, # Percentage threshold.
1174 },
1175 },
1176 ],
1177 &quot;cloudSchedulerConfig&quot;: { # Cloud Scheduler Trigger configuration # Optional. Cloud Scheduler Trigger related metadata
1178 &quot;cronTab&quot;: &quot;A String&quot;, # Required. The cron tab of cloud scheduler trigger.
1179 &quot;errorMessage&quot;: &quot;A String&quot;, # Optional. When the job was deleted from Pantheon UI, error_message will be populated when Get/List integrations
1180 &quot;location&quot;: &quot;A String&quot;, # Required. The location where associated cloud scheduler job will be created
1181 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # Required. Service account used by Cloud Scheduler to trigger the integration at scheduled time
1182 },
1183 &quot;description&quot;: &quot;A String&quot;, # Optional. User-provided description intended to give additional business context about the task.
1184 &quot;errorCatcherId&quot;: &quot;A String&quot;, # Optional. Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task
1185 &quot;inputVariables&quot;: { # Variables names mapped to api trigger. # Optional. List of input variables for the api trigger.
1186 &quot;names&quot;: [ # Optional. List of variable names.
1187 &quot;A String&quot;,
1188 ],
1189 },
1190 &quot;label&quot;: &quot;A String&quot;, # Optional. The user created label for a particular trigger.
1191 &quot;nextTasksExecutionPolicy&quot;: &quot;A String&quot;, # Optional. Dictates how next tasks will be executed.
1192 &quot;outputVariables&quot;: { # Variables names mapped to api trigger. # Optional. List of output variables for the api trigger.
1193 &quot;names&quot;: [ # Optional. List of variable names.
1194 &quot;A String&quot;,
1195 ],
1196 },
1197 &quot;position&quot;: { # Configuration detail of coordinate, it used for UI # Optional. Informs the front-end application where to draw this error catcher config on the UI.
1198 &quot;x&quot;: 42, # Required. X axis of the coordinate
1199 &quot;y&quot;: 42, # Required. Y axis of the coordinate
1200 },
1201 &quot;properties&quot;: { # Optional. Configurable properties of the trigger, not to be confused with integration parameters. E.g. &quot;name&quot; is a property for API triggers and &quot;subscription&quot; is a property for Pub/sub triggers.
1202 &quot;a_key&quot;: &quot;A String&quot;,
1203 },
1204 &quot;startTasks&quot;: [ # Optional. Set of tasks numbers from where the integration execution is started by this trigger. If this is empty, then integration is executed with default start tasks. In the list of start tasks, none of two tasks can have direct ancestor-descendant relationships (i.e. in a same integration execution graph).
1205 { # The task that is next in line to be executed, if the condition specified evaluated to true.
1206 &quot;condition&quot;: &quot;A String&quot;, # Standard filter expression for this task to become an eligible next task.
1207 &quot;description&quot;: &quot;A String&quot;, # User-provided description intended to give additional business context about the task.
1208 &quot;displayName&quot;: &quot;A String&quot;, # User-provided label that is attached to this edge in the UI.
1209 &quot;taskConfigId&quot;: &quot;A String&quot;, # ID of the next task.
1210 &quot;taskId&quot;: &quot;A String&quot;, # Task number of the next task.
1211 },
1212 ],
1213 &quot;trigger&quot;: &quot;A String&quot;, # Optional. Name of the trigger. Example: &quot;API Trigger&quot;, &quot;Cloud Pub Sub Trigger&quot; When set will be sent out to monitoring dashabord for tracking purpose.
1214 &quot;triggerId&quot;: &quot;A String&quot;, # Optional. Auto-generated trigger ID. The ID is based on the properties that you define in the trigger config. For example, for an API trigger, the trigger ID follows the format: api_trigger/TRIGGER_NAME Where trigger config has properties with value {&quot;Trigger name&quot;: TRIGGER_NAME}
1215 &quot;triggerNumber&quot;: &quot;A String&quot;, # Required. A number to uniquely identify each trigger config within the integration on UI.
1216 &quot;triggerType&quot;: &quot;A String&quot;, # Optional. Type of trigger
1217 },
1218 &quot;triggerId&quot;: &quot;A String&quot;, # Required. This defines the trigger ID in workflow which is considered to be executed as starting point of the test case
1219 &quot;updateTime&quot;: &quot;A String&quot;, # Auto-generated.
1220 }</pre>
1221 </div>
1222
1223 <div class="method">
1224 <code class="details" id="list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, readMask=None, x__xgafv=None)</code>
1225 <pre>Lists all the test cases that satisfy the filters.
1226
1227 Args:
1228 parent: string, Required. The parent resource where this TestCase was created. (required)
1229 filter: string, Optional. Standard filter field. Filtering as supported in https://developers.google.com/authorized-buyers/apis/guides/list-filters.
1230 orderBy: string, Optional. The results would be returned in order specified here. Currently supported sort keys are: Descending sort order for &quot;last_modified_time&quot;, &quot;created_time&quot;. Ascending sort order for &quot;name&quot;.
1231 pageSize: integer, Optional. The maximum number of test cases to return. The service may return fewer than this value. If unspecified, at most 100 test cases will be returned.
1232 pageToken: string, Optional. A page token, received from a previous `ListTestCases` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListTestCases` must match the call that provided the page token.
1233 readMask: string, Optional. The mask which specifies fields that need to be returned in the TestCases&#x27;s response.
1234 x__xgafv: string, V1 error format.
1235 Allowed values
1236 1 - v1 error format
1237 2 - v2 error format
1238
1239 Returns:
1240 An object of the form:
1241
1242 { # Response for ListTestCases
1243 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
1244 &quot;testCases&quot;: [ # The test cases corresponding to the specified filter
1245 { # Defines the functional test case for Application Integration. Next available id: 15
1246 &quot;createTime&quot;: &quot;A String&quot;, # Auto-generated.
1247 &quot;creatorEmail&quot;: &quot;A String&quot;, # Optional. The creator&#x27;s email address. Generated based on the End User Credentials/LOAS role of the user making the call.
1248 &quot;databasePersistencePolicy&quot;: &quot;A String&quot;, # Optional. Various policies for how to persist the test execution info including execution info, execution export info, execution metadata index and execution param index..
1249 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the test case.
1250 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of test case.
1251 &quot;lastModifierEmail&quot;: &quot;A String&quot;, # The last modifier&#x27;s email address. Generated based on the End User Credentials/LOAS role of the user making the call.
1252 &quot;lockHolderEmail&quot;: &quot;A String&quot;, # Optional. The edit lock holder&#x27;s email address. Generated based on the End User Credentials/LOAS role of the user making the call.
1253 &quot;name&quot;: &quot;A String&quot;, # Output only. Auto-generated primary key.
1254 &quot;testInputParameters&quot;: [ # Optional. Parameters that are expected to be passed to the test case when the test case is triggered. This gives the user the ability to provide default values. This should include all the output variables of the trigger as input variables.
1255 { # Integration Parameter is defined in the integration config and are used to provide information about data types of the expected parameters and provide any default values if needed. They can also be used to add custom attributes. These are static in nature and should not be used for dynamic event definition.
1256 &quot;containsLargeData&quot;: True or False, # Indicates whether this variable contains large data and need to be uploaded to Cloud Storage.
1257 &quot;dataType&quot;: &quot;A String&quot;, # Type of the parameter.
1258 &quot;defaultValue&quot;: { # The type of the parameter. # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object.
1259 &quot;booleanArray&quot;: { # This message only contains a field of boolean array. # Boolean Array.
1260 &quot;booleanValues&quot;: [ # Boolean array.
1261 True or False,
1262 ],
1263 },
1264 &quot;booleanValue&quot;: True or False, # Boolean.
1265 &quot;doubleArray&quot;: { # This message only contains a field of double number array. # Double Number Array.
1266 &quot;doubleValues&quot;: [ # Double number array.
1267 3.14,
1268 ],
1269 },
1270 &quot;doubleValue&quot;: 3.14, # Double Number.
1271 &quot;intArray&quot;: { # This message only contains a field of integer array. # Integer Array.
1272 &quot;intValues&quot;: [ # Integer array.
1273 &quot;A String&quot;,
1274 ],
1275 },
1276 &quot;intValue&quot;: &quot;A String&quot;, # Integer.
1277 &quot;jsonValue&quot;: &quot;A String&quot;, # Json.
1278 &quot;stringArray&quot;: { # This message only contains a field of string array. # String Array.
1279 &quot;stringValues&quot;: [ # String array.
1280 &quot;A String&quot;,
1281 ],
1282 },
1283 &quot;stringValue&quot;: &quot;A String&quot;, # String.
1284 },
1285 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the parameter.
1286 &quot;displayName&quot;: &quot;A String&quot;, # The name (without prefix) to be displayed in the UI for this parameter. E.g. if the key is &quot;foo.bar.myName&quot;, then the name would be &quot;myName&quot;.
1287 &quot;inputOutputType&quot;: &quot;A String&quot;, # Specifies the input/output type for the parameter.
1288 &quot;isTransient&quot;: True or False, # Whether this parameter is a transient parameter.
1289 &quot;jsonSchema&quot;: &quot;A String&quot;, # This schema will be used to validate runtime JSON-typed values of this parameter.
1290 &quot;key&quot;: &quot;A String&quot;, # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition.
1291 &quot;masked&quot;: True or False, # True if this parameter should be masked in the logs
1292 &quot;producer&quot;: &quot;A String&quot;, # The identifier of the node (TaskConfig/TriggerConfig) this parameter was produced by, if it is a transient param or a copy of an input param.
1293 &quot;searchable&quot;: True or False, # Searchable in the execution log or not.
1294 },
1295 ],
1296 &quot;testTaskConfigs&quot;: [ # Optional. However, the test case doesn&#x27;t mock or assert anything without test_task_configs.
1297 { # The task mock configuration details and assertions for functional tests. Next available id: 6
1298 &quot;assertions&quot;: [ # Optional. List of conditions or expressions which should be evaluated to true unless there is a bug/problem in the integration. These are evaluated one the task execution is completed as per the mock strategy in test case
1299 { # An assertion which will check for a condition over task execution status or an expression for task output variables
1300 &quot;assertionStrategy&quot;: &quot;A String&quot;, # Optional. The type of assertion to perform.
1301 &quot;condition&quot;: &quot;A String&quot;, # Optional. Standard filter expression for ASSERT_CONDITION to succeed
1302 &quot;parameter&quot;: { # This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Next available id: 4 # Optional. Key-value pair for ASSERT_EQUALS, ASSERT_NOT_EQUALS, ASSERT_CONTAINS to succeed
1303 &quot;key&quot;: &quot;A String&quot;, # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition.
1304 &quot;masked&quot;: True or False, # True if this parameter should be masked in the logs
1305 &quot;value&quot;: { # The type of the parameter. # Values for the defined keys. Each value can either be string, int, double or any proto message.
1306 &quot;booleanArray&quot;: { # This message only contains a field of boolean array. # Boolean Array.
1307 &quot;booleanValues&quot;: [ # Boolean array.
1308 True or False,
1309 ],
1310 },
1311 &quot;booleanValue&quot;: True or False, # Boolean.
1312 &quot;doubleArray&quot;: { # This message only contains a field of double number array. # Double Number Array.
1313 &quot;doubleValues&quot;: [ # Double number array.
1314 3.14,
1315 ],
1316 },
1317 &quot;doubleValue&quot;: 3.14, # Double Number.
1318 &quot;intArray&quot;: { # This message only contains a field of integer array. # Integer Array.
1319 &quot;intValues&quot;: [ # Integer array.
1320 &quot;A String&quot;,
1321 ],
1322 },
1323 &quot;intValue&quot;: &quot;A String&quot;, # Integer.
1324 &quot;jsonValue&quot;: &quot;A String&quot;, # Json.
1325 &quot;stringArray&quot;: { # This message only contains a field of string array. # String Array.
1326 &quot;stringValues&quot;: [ # String array.
1327 &quot;A String&quot;,
1328 ],
1329 },
1330 &quot;stringValue&quot;: &quot;A String&quot;, # String.
1331 },
1332 },
1333 &quot;retryCount&quot;: 42, # Number of times given task should be retried in case of ASSERT_FAILED_EXECUTION
1334 },
1335 ],
1336 &quot;mockConfig&quot;: { # The configuration for mocking of a task during test execution Next available id: 4 # Optional. Defines how to mock the given task during test execution
1337 &quot;failedExecutions&quot;: &quot;A String&quot;, # Optional. Number of times the given task should fail for failure mock strategy
1338 &quot;mockStrategy&quot;: &quot;A String&quot;, # Mockstrategy defines how the particular task should be mocked during test execution
1339 &quot;parameters&quot;: [ # Optional. List of key-value pairs for specific mock strategy
1340 { # This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Next available id: 4
1341 &quot;key&quot;: &quot;A String&quot;, # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition.
1342 &quot;masked&quot;: True or False, # True if this parameter should be masked in the logs
1343 &quot;value&quot;: { # The type of the parameter. # Values for the defined keys. Each value can either be string, int, double or any proto message.
1344 &quot;booleanArray&quot;: { # This message only contains a field of boolean array. # Boolean Array.
1345 &quot;booleanValues&quot;: [ # Boolean array.
1346 True or False,
1347 ],
1348 },
1349 &quot;booleanValue&quot;: True or False, # Boolean.
1350 &quot;doubleArray&quot;: { # This message only contains a field of double number array. # Double Number Array.
1351 &quot;doubleValues&quot;: [ # Double number array.
1352 3.14,
1353 ],
1354 },
1355 &quot;doubleValue&quot;: 3.14, # Double Number.
1356 &quot;intArray&quot;: { # This message only contains a field of integer array. # Integer Array.
1357 &quot;intValues&quot;: [ # Integer array.
1358 &quot;A String&quot;,
1359 ],
1360 },
1361 &quot;intValue&quot;: &quot;A String&quot;, # Integer.
1362 &quot;jsonValue&quot;: &quot;A String&quot;, # Json.
1363 &quot;stringArray&quot;: { # This message only contains a field of string array. # String Array.
1364 &quot;stringValues&quot;: [ # String array.
1365 &quot;A String&quot;,
1366 ],
1367 },
1368 &quot;stringValue&quot;: &quot;A String&quot;, # String.
1369 },
1370 },
1371 ],
1372 },
1373 &quot;task&quot;: &quot;A String&quot;, # Required. This defines in the test case, the task name in integration which will be mocked by this test task config
1374 &quot;taskConfig&quot;: { # The task configuration details. This is not the implementation of Task. There might be multiple TaskConfigs for the same Task. # Optional. Auto-generated.
1375 &quot;conditionalFailurePolicies&quot;: { # Conditional task failur retry strategies # Optional. The list of conditional failure policies that will be applied to the task in order.
1376 &quot;defaultFailurePolicy&quot;: { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # The default failure policy to be applied if no conditional failure policy matches.
1377 &quot;condition&quot;: &quot;A String&quot;, # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy.
1378 &quot;intervalTime&quot;: &quot;A String&quot;, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff.
1379 &quot;maxRetries&quot;: 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed.
1380 &quot;retryStrategy&quot;: &quot;A String&quot;, # Defines what happens to the task upon failure.
1381 },
1382 &quot;failurePolicies&quot;: [ # The list of failure policies that will be applied to the task in order.
1383 { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied).
1384 &quot;condition&quot;: &quot;A String&quot;, # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy.
1385 &quot;intervalTime&quot;: &quot;A String&quot;, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff.
1386 &quot;maxRetries&quot;: 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed.
1387 &quot;retryStrategy&quot;: &quot;A String&quot;, # Defines what happens to the task upon failure.
1388 },
1389 ],
1390 },
1391 &quot;description&quot;: &quot;A String&quot;, # Optional. User-provided description intended to give additional business context about the task.
1392 &quot;displayName&quot;: &quot;A String&quot;, # Optional. User-provided label that is attached to this TaskConfig in the UI.
1393 &quot;errorCatcherId&quot;: &quot;A String&quot;, # Optional. Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task
1394 &quot;externalTaskType&quot;: &quot;A String&quot;, # Optional. External task type of the task
1395 &quot;failurePolicy&quot;: { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for asynchronous calls to Eventbus alone (Post To Queue, Schedule etc.).
1396 &quot;condition&quot;: &quot;A String&quot;, # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy.
1397 &quot;intervalTime&quot;: &quot;A String&quot;, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff.
1398 &quot;maxRetries&quot;: 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed.
1399 &quot;retryStrategy&quot;: &quot;A String&quot;, # Defines what happens to the task upon failure.
1400 },
1401 &quot;jsonValidationOption&quot;: &quot;A String&quot;, # Optional. If set, overrides the option configured in the Task implementation class.
1402 &quot;nextTasks&quot;: [ # Optional. The set of tasks that are next in line to be executed as per the execution graph defined for the parent event, specified by `event_config_id`. Each of these next tasks are executed only if the condition associated with them evaluates to true.
1403 { # The task that is next in line to be executed, if the condition specified evaluated to true.
1404 &quot;condition&quot;: &quot;A String&quot;, # Standard filter expression for this task to become an eligible next task.
1405 &quot;description&quot;: &quot;A String&quot;, # User-provided description intended to give additional business context about the task.
1406 &quot;displayName&quot;: &quot;A String&quot;, # User-provided label that is attached to this edge in the UI.
1407 &quot;taskConfigId&quot;: &quot;A String&quot;, # ID of the next task.
1408 &quot;taskId&quot;: &quot;A String&quot;, # Task number of the next task.
1409 },
1410 ],
1411 &quot;nextTasksExecutionPolicy&quot;: &quot;A String&quot;, # Optional. The policy dictating the execution of the next set of tasks for the current task.
1412 &quot;parameters&quot;: { # Optional. The customized parameters the user can pass to this task.
1413 &quot;a_key&quot;: { # This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Next available id: 4
1414 &quot;key&quot;: &quot;A String&quot;, # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition.
1415 &quot;masked&quot;: True or False, # True if this parameter should be masked in the logs
1416 &quot;value&quot;: { # The type of the parameter. # Values for the defined keys. Each value can either be string, int, double or any proto message.
1417 &quot;booleanArray&quot;: { # This message only contains a field of boolean array. # Boolean Array.
1418 &quot;booleanValues&quot;: [ # Boolean array.
1419 True or False,
1420 ],
1421 },
1422 &quot;booleanValue&quot;: True or False, # Boolean.
1423 &quot;doubleArray&quot;: { # This message only contains a field of double number array. # Double Number Array.
1424 &quot;doubleValues&quot;: [ # Double number array.
1425 3.14,
1426 ],
1427 },
1428 &quot;doubleValue&quot;: 3.14, # Double Number.
1429 &quot;intArray&quot;: { # This message only contains a field of integer array. # Integer Array.
1430 &quot;intValues&quot;: [ # Integer array.
1431 &quot;A String&quot;,
1432 ],
1433 },
1434 &quot;intValue&quot;: &quot;A String&quot;, # Integer.
1435 &quot;jsonValue&quot;: &quot;A String&quot;, # Json.
1436 &quot;stringArray&quot;: { # This message only contains a field of string array. # String Array.
1437 &quot;stringValues&quot;: [ # String array.
1438 &quot;A String&quot;,
1439 ],
1440 },
1441 &quot;stringValue&quot;: &quot;A String&quot;, # String.
1442 },
1443 },
1444 },
1445 &quot;position&quot;: { # Configuration detail of coordinate, it used for UI # Optional. Informs the front-end application where to draw this error catcher config on the UI.
1446 &quot;x&quot;: 42, # Required. X axis of the coordinate
1447 &quot;y&quot;: 42, # Required. Y axis of the coordinate
1448 },
1449 &quot;successPolicy&quot;: { # Policy that dictates the behavior for the task after it completes successfully. # Optional. Determines what action to take upon successful task completion.
1450 &quot;finalState&quot;: &quot;A String&quot;, # State to which the execution snapshot status will be set if the task succeeds.
1451 },
1452 &quot;synchronousCallFailurePolicy&quot;: { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for synchronous calls to Eventbus alone (Post).
1453 &quot;condition&quot;: &quot;A String&quot;, # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy.
1454 &quot;intervalTime&quot;: &quot;A String&quot;, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff.
1455 &quot;maxRetries&quot;: 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed.
1456 &quot;retryStrategy&quot;: &quot;A String&quot;, # Defines what happens to the task upon failure.
1457 },
1458 &quot;task&quot;: &quot;A String&quot;, # Optional. The name for the task.
1459 &quot;taskExecutionStrategy&quot;: &quot;A String&quot;, # Optional. The policy dictating the execution strategy of this task.
1460 &quot;taskId&quot;: &quot;A String&quot;, # Required. The identifier of this task within its parent event config, specified by the client. This should be unique among all the tasks belong to the same event config. We use this field as the identifier to find next tasks (via field `next_tasks.task_id`).
1461 &quot;taskTemplate&quot;: &quot;A String&quot;, # Optional. Used to define task-template name if task is of type task-template
1462 },
1463 &quot;taskNumber&quot;: &quot;A String&quot;, # Required. This defines in the test case, the task in integration which will be mocked by this test task config
1464 },
1465 ],
1466 &quot;triggerConfig&quot;: { # Configuration detail of a trigger. # Optional. Auto-generated.
1467 &quot;alertConfig&quot;: [ # Optional. An alert threshold configuration for the [trigger + client + integration] tuple. If these values are not specified in the trigger config, default values will be populated by the system. Note that there must be exactly one alert threshold configured per [client + trigger + integration] when published.
1468 { # Message to be used to configure custom alerting in the {@code EventConfig} protos for an event.
1469 &quot;aggregationPeriod&quot;: &quot;A String&quot;, # The period over which the metric value should be aggregated and evaluated. Format is , where integer should be a positive integer and unit should be one of (s,m,h,d,w) meaning (second, minute, hour, day, week). For an EXPECTED_MIN threshold, this aggregation_period must be lesser than 24 hours.
1470 &quot;alertThreshold&quot;: 42, # For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired.
1471 &quot;disableAlert&quot;: True or False, # Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this integration alert.
1472 &quot;displayName&quot;: &quot;A String&quot;, # Name of the alert. This will be displayed in the alert subject. If set, this name should be unique within the scope of the integration.
1473 &quot;durationThreshold&quot;: &quot;A String&quot;, # Should be specified only for *AVERAGE_DURATION and *PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger.
1474 &quot;metricType&quot;: &quot;A String&quot;, # The type of metric.
1475 &quot;onlyFinalAttempt&quot;: True or False, # For either events or tasks, depending on the type of alert, count only final attempts, not retries.
1476 &quot;thresholdType&quot;: &quot;A String&quot;, # The threshold type, whether lower(expected_min) or upper(expected_max), for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired.
1477 &quot;thresholdValue&quot;: { # The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. # The metric value, above or below which the alert should be triggered.
1478 &quot;absolute&quot;: &quot;A String&quot;, # Absolute value threshold.
1479 &quot;percentage&quot;: 42, # Percentage threshold.
1480 },
1481 },
1482 ],
1483 &quot;cloudSchedulerConfig&quot;: { # Cloud Scheduler Trigger configuration # Optional. Cloud Scheduler Trigger related metadata
1484 &quot;cronTab&quot;: &quot;A String&quot;, # Required. The cron tab of cloud scheduler trigger.
1485 &quot;errorMessage&quot;: &quot;A String&quot;, # Optional. When the job was deleted from Pantheon UI, error_message will be populated when Get/List integrations
1486 &quot;location&quot;: &quot;A String&quot;, # Required. The location where associated cloud scheduler job will be created
1487 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # Required. Service account used by Cloud Scheduler to trigger the integration at scheduled time
1488 },
1489 &quot;description&quot;: &quot;A String&quot;, # Optional. User-provided description intended to give additional business context about the task.
1490 &quot;errorCatcherId&quot;: &quot;A String&quot;, # Optional. Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task
1491 &quot;inputVariables&quot;: { # Variables names mapped to api trigger. # Optional. List of input variables for the api trigger.
1492 &quot;names&quot;: [ # Optional. List of variable names.
1493 &quot;A String&quot;,
1494 ],
1495 },
1496 &quot;label&quot;: &quot;A String&quot;, # Optional. The user created label for a particular trigger.
1497 &quot;nextTasksExecutionPolicy&quot;: &quot;A String&quot;, # Optional. Dictates how next tasks will be executed.
1498 &quot;outputVariables&quot;: { # Variables names mapped to api trigger. # Optional. List of output variables for the api trigger.
1499 &quot;names&quot;: [ # Optional. List of variable names.
1500 &quot;A String&quot;,
1501 ],
1502 },
1503 &quot;position&quot;: { # Configuration detail of coordinate, it used for UI # Optional. Informs the front-end application where to draw this error catcher config on the UI.
1504 &quot;x&quot;: 42, # Required. X axis of the coordinate
1505 &quot;y&quot;: 42, # Required. Y axis of the coordinate
1506 },
1507 &quot;properties&quot;: { # Optional. Configurable properties of the trigger, not to be confused with integration parameters. E.g. &quot;name&quot; is a property for API triggers and &quot;subscription&quot; is a property for Pub/sub triggers.
1508 &quot;a_key&quot;: &quot;A String&quot;,
1509 },
1510 &quot;startTasks&quot;: [ # Optional. Set of tasks numbers from where the integration execution is started by this trigger. If this is empty, then integration is executed with default start tasks. In the list of start tasks, none of two tasks can have direct ancestor-descendant relationships (i.e. in a same integration execution graph).
1511 { # The task that is next in line to be executed, if the condition specified evaluated to true.
1512 &quot;condition&quot;: &quot;A String&quot;, # Standard filter expression for this task to become an eligible next task.
1513 &quot;description&quot;: &quot;A String&quot;, # User-provided description intended to give additional business context about the task.
1514 &quot;displayName&quot;: &quot;A String&quot;, # User-provided label that is attached to this edge in the UI.
1515 &quot;taskConfigId&quot;: &quot;A String&quot;, # ID of the next task.
1516 &quot;taskId&quot;: &quot;A String&quot;, # Task number of the next task.
1517 },
1518 ],
1519 &quot;trigger&quot;: &quot;A String&quot;, # Optional. Name of the trigger. Example: &quot;API Trigger&quot;, &quot;Cloud Pub Sub Trigger&quot; When set will be sent out to monitoring dashabord for tracking purpose.
1520 &quot;triggerId&quot;: &quot;A String&quot;, # Optional. Auto-generated trigger ID. The ID is based on the properties that you define in the trigger config. For example, for an API trigger, the trigger ID follows the format: api_trigger/TRIGGER_NAME Where trigger config has properties with value {&quot;Trigger name&quot;: TRIGGER_NAME}
1521 &quot;triggerNumber&quot;: &quot;A String&quot;, # Required. A number to uniquely identify each trigger config within the integration on UI.
1522 &quot;triggerType&quot;: &quot;A String&quot;, # Optional. Type of trigger
1523 },
1524 &quot;triggerId&quot;: &quot;A String&quot;, # Required. This defines the trigger ID in workflow which is considered to be executed as starting point of the test case
1525 &quot;updateTime&quot;: &quot;A String&quot;, # Auto-generated.
1526 },
1527 ],
1528 }</pre>
1529 </div>
1530
1531 <div class="method">
1532 <code class="details" id="list_next">list_next()</code>
1533 <pre>Retrieves the next page of results.
1534
1535 Args:
1536 previous_request: The request for the previous page. (required)
1537 previous_response: The response from the request for the previous page. (required)
1538
1539 Returns:
1540 A request object that you can call &#x27;execute()&#x27; on to request the next
1541 page. Returns None if there are no more items in the collection.
1542 </pre>
1543 </div>
1544
1545 <div class="method">
1546 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
1547 <pre>Updates a test case
1548
1549 Args:
1550 name: string, Output only. Auto-generated primary key. (required)
1551 body: object, The request body.
1552 The object takes the form of:
1553
1554 { # Defines the functional test case for Application Integration. Next available id: 15
1555 &quot;createTime&quot;: &quot;A String&quot;, # Auto-generated.
1556 &quot;creatorEmail&quot;: &quot;A String&quot;, # Optional. The creator&#x27;s email address. Generated based on the End User Credentials/LOAS role of the user making the call.
1557 &quot;databasePersistencePolicy&quot;: &quot;A String&quot;, # Optional. Various policies for how to persist the test execution info including execution info, execution export info, execution metadata index and execution param index..
1558 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the test case.
1559 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of test case.
1560 &quot;lastModifierEmail&quot;: &quot;A String&quot;, # The last modifier&#x27;s email address. Generated based on the End User Credentials/LOAS role of the user making the call.
1561 &quot;lockHolderEmail&quot;: &quot;A String&quot;, # Optional. The edit lock holder&#x27;s email address. Generated based on the End User Credentials/LOAS role of the user making the call.
1562 &quot;name&quot;: &quot;A String&quot;, # Output only. Auto-generated primary key.
1563 &quot;testInputParameters&quot;: [ # Optional. Parameters that are expected to be passed to the test case when the test case is triggered. This gives the user the ability to provide default values. This should include all the output variables of the trigger as input variables.
1564 { # Integration Parameter is defined in the integration config and are used to provide information about data types of the expected parameters and provide any default values if needed. They can also be used to add custom attributes. These are static in nature and should not be used for dynamic event definition.
1565 &quot;containsLargeData&quot;: True or False, # Indicates whether this variable contains large data and need to be uploaded to Cloud Storage.
1566 &quot;dataType&quot;: &quot;A String&quot;, # Type of the parameter.
1567 &quot;defaultValue&quot;: { # The type of the parameter. # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object.
1568 &quot;booleanArray&quot;: { # This message only contains a field of boolean array. # Boolean Array.
1569 &quot;booleanValues&quot;: [ # Boolean array.
1570 True or False,
1571 ],
1572 },
1573 &quot;booleanValue&quot;: True or False, # Boolean.
1574 &quot;doubleArray&quot;: { # This message only contains a field of double number array. # Double Number Array.
1575 &quot;doubleValues&quot;: [ # Double number array.
1576 3.14,
1577 ],
1578 },
1579 &quot;doubleValue&quot;: 3.14, # Double Number.
1580 &quot;intArray&quot;: { # This message only contains a field of integer array. # Integer Array.
1581 &quot;intValues&quot;: [ # Integer array.
1582 &quot;A String&quot;,
1583 ],
1584 },
1585 &quot;intValue&quot;: &quot;A String&quot;, # Integer.
1586 &quot;jsonValue&quot;: &quot;A String&quot;, # Json.
1587 &quot;stringArray&quot;: { # This message only contains a field of string array. # String Array.
1588 &quot;stringValues&quot;: [ # String array.
1589 &quot;A String&quot;,
1590 ],
1591 },
1592 &quot;stringValue&quot;: &quot;A String&quot;, # String.
1593 },
1594 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the parameter.
1595 &quot;displayName&quot;: &quot;A String&quot;, # The name (without prefix) to be displayed in the UI for this parameter. E.g. if the key is &quot;foo.bar.myName&quot;, then the name would be &quot;myName&quot;.
1596 &quot;inputOutputType&quot;: &quot;A String&quot;, # Specifies the input/output type for the parameter.
1597 &quot;isTransient&quot;: True or False, # Whether this parameter is a transient parameter.
1598 &quot;jsonSchema&quot;: &quot;A String&quot;, # This schema will be used to validate runtime JSON-typed values of this parameter.
1599 &quot;key&quot;: &quot;A String&quot;, # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition.
1600 &quot;masked&quot;: True or False, # True if this parameter should be masked in the logs
1601 &quot;producer&quot;: &quot;A String&quot;, # The identifier of the node (TaskConfig/TriggerConfig) this parameter was produced by, if it is a transient param or a copy of an input param.
1602 &quot;searchable&quot;: True or False, # Searchable in the execution log or not.
1603 },
1604 ],
1605 &quot;testTaskConfigs&quot;: [ # Optional. However, the test case doesn&#x27;t mock or assert anything without test_task_configs.
1606 { # The task mock configuration details and assertions for functional tests. Next available id: 6
1607 &quot;assertions&quot;: [ # Optional. List of conditions or expressions which should be evaluated to true unless there is a bug/problem in the integration. These are evaluated one the task execution is completed as per the mock strategy in test case
1608 { # An assertion which will check for a condition over task execution status or an expression for task output variables
1609 &quot;assertionStrategy&quot;: &quot;A String&quot;, # Optional. The type of assertion to perform.
1610 &quot;condition&quot;: &quot;A String&quot;, # Optional. Standard filter expression for ASSERT_CONDITION to succeed
1611 &quot;parameter&quot;: { # This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Next available id: 4 # Optional. Key-value pair for ASSERT_EQUALS, ASSERT_NOT_EQUALS, ASSERT_CONTAINS to succeed
1612 &quot;key&quot;: &quot;A String&quot;, # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition.
1613 &quot;masked&quot;: True or False, # True if this parameter should be masked in the logs
1614 &quot;value&quot;: { # The type of the parameter. # Values for the defined keys. Each value can either be string, int, double or any proto message.
1615 &quot;booleanArray&quot;: { # This message only contains a field of boolean array. # Boolean Array.
1616 &quot;booleanValues&quot;: [ # Boolean array.
1617 True or False,
1618 ],
1619 },
1620 &quot;booleanValue&quot;: True or False, # Boolean.
1621 &quot;doubleArray&quot;: { # This message only contains a field of double number array. # Double Number Array.
1622 &quot;doubleValues&quot;: [ # Double number array.
1623 3.14,
1624 ],
1625 },
1626 &quot;doubleValue&quot;: 3.14, # Double Number.
1627 &quot;intArray&quot;: { # This message only contains a field of integer array. # Integer Array.
1628 &quot;intValues&quot;: [ # Integer array.
1629 &quot;A String&quot;,
1630 ],
1631 },
1632 &quot;intValue&quot;: &quot;A String&quot;, # Integer.
1633 &quot;jsonValue&quot;: &quot;A String&quot;, # Json.
1634 &quot;stringArray&quot;: { # This message only contains a field of string array. # String Array.
1635 &quot;stringValues&quot;: [ # String array.
1636 &quot;A String&quot;,
1637 ],
1638 },
1639 &quot;stringValue&quot;: &quot;A String&quot;, # String.
1640 },
1641 },
1642 &quot;retryCount&quot;: 42, # Number of times given task should be retried in case of ASSERT_FAILED_EXECUTION
1643 },
1644 ],
1645 &quot;mockConfig&quot;: { # The configuration for mocking of a task during test execution Next available id: 4 # Optional. Defines how to mock the given task during test execution
1646 &quot;failedExecutions&quot;: &quot;A String&quot;, # Optional. Number of times the given task should fail for failure mock strategy
1647 &quot;mockStrategy&quot;: &quot;A String&quot;, # Mockstrategy defines how the particular task should be mocked during test execution
1648 &quot;parameters&quot;: [ # Optional. List of key-value pairs for specific mock strategy
1649 { # This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Next available id: 4
1650 &quot;key&quot;: &quot;A String&quot;, # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition.
1651 &quot;masked&quot;: True or False, # True if this parameter should be masked in the logs
1652 &quot;value&quot;: { # The type of the parameter. # Values for the defined keys. Each value can either be string, int, double or any proto message.
1653 &quot;booleanArray&quot;: { # This message only contains a field of boolean array. # Boolean Array.
1654 &quot;booleanValues&quot;: [ # Boolean array.
1655 True or False,
1656 ],
1657 },
1658 &quot;booleanValue&quot;: True or False, # Boolean.
1659 &quot;doubleArray&quot;: { # This message only contains a field of double number array. # Double Number Array.
1660 &quot;doubleValues&quot;: [ # Double number array.
1661 3.14,
1662 ],
1663 },
1664 &quot;doubleValue&quot;: 3.14, # Double Number.
1665 &quot;intArray&quot;: { # This message only contains a field of integer array. # Integer Array.
1666 &quot;intValues&quot;: [ # Integer array.
1667 &quot;A String&quot;,
1668 ],
1669 },
1670 &quot;intValue&quot;: &quot;A String&quot;, # Integer.
1671 &quot;jsonValue&quot;: &quot;A String&quot;, # Json.
1672 &quot;stringArray&quot;: { # This message only contains a field of string array. # String Array.
1673 &quot;stringValues&quot;: [ # String array.
1674 &quot;A String&quot;,
1675 ],
1676 },
1677 &quot;stringValue&quot;: &quot;A String&quot;, # String.
1678 },
1679 },
1680 ],
1681 },
1682 &quot;task&quot;: &quot;A String&quot;, # Required. This defines in the test case, the task name in integration which will be mocked by this test task config
1683 &quot;taskConfig&quot;: { # The task configuration details. This is not the implementation of Task. There might be multiple TaskConfigs for the same Task. # Optional. Auto-generated.
1684 &quot;conditionalFailurePolicies&quot;: { # Conditional task failur retry strategies # Optional. The list of conditional failure policies that will be applied to the task in order.
1685 &quot;defaultFailurePolicy&quot;: { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # The default failure policy to be applied if no conditional failure policy matches.
1686 &quot;condition&quot;: &quot;A String&quot;, # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy.
1687 &quot;intervalTime&quot;: &quot;A String&quot;, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff.
1688 &quot;maxRetries&quot;: 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed.
1689 &quot;retryStrategy&quot;: &quot;A String&quot;, # Defines what happens to the task upon failure.
1690 },
1691 &quot;failurePolicies&quot;: [ # The list of failure policies that will be applied to the task in order.
1692 { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied).
1693 &quot;condition&quot;: &quot;A String&quot;, # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy.
1694 &quot;intervalTime&quot;: &quot;A String&quot;, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff.
1695 &quot;maxRetries&quot;: 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed.
1696 &quot;retryStrategy&quot;: &quot;A String&quot;, # Defines what happens to the task upon failure.
1697 },
1698 ],
1699 },
1700 &quot;description&quot;: &quot;A String&quot;, # Optional. User-provided description intended to give additional business context about the task.
1701 &quot;displayName&quot;: &quot;A String&quot;, # Optional. User-provided label that is attached to this TaskConfig in the UI.
1702 &quot;errorCatcherId&quot;: &quot;A String&quot;, # Optional. Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task
1703 &quot;externalTaskType&quot;: &quot;A String&quot;, # Optional. External task type of the task
1704 &quot;failurePolicy&quot;: { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for asynchronous calls to Eventbus alone (Post To Queue, Schedule etc.).
1705 &quot;condition&quot;: &quot;A String&quot;, # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy.
1706 &quot;intervalTime&quot;: &quot;A String&quot;, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff.
1707 &quot;maxRetries&quot;: 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed.
1708 &quot;retryStrategy&quot;: &quot;A String&quot;, # Defines what happens to the task upon failure.
1709 },
1710 &quot;jsonValidationOption&quot;: &quot;A String&quot;, # Optional. If set, overrides the option configured in the Task implementation class.
1711 &quot;nextTasks&quot;: [ # Optional. The set of tasks that are next in line to be executed as per the execution graph defined for the parent event, specified by `event_config_id`. Each of these next tasks are executed only if the condition associated with them evaluates to true.
1712 { # The task that is next in line to be executed, if the condition specified evaluated to true.
1713 &quot;condition&quot;: &quot;A String&quot;, # Standard filter expression for this task to become an eligible next task.
1714 &quot;description&quot;: &quot;A String&quot;, # User-provided description intended to give additional business context about the task.
1715 &quot;displayName&quot;: &quot;A String&quot;, # User-provided label that is attached to this edge in the UI.
1716 &quot;taskConfigId&quot;: &quot;A String&quot;, # ID of the next task.
1717 &quot;taskId&quot;: &quot;A String&quot;, # Task number of the next task.
1718 },
1719 ],
1720 &quot;nextTasksExecutionPolicy&quot;: &quot;A String&quot;, # Optional. The policy dictating the execution of the next set of tasks for the current task.
1721 &quot;parameters&quot;: { # Optional. The customized parameters the user can pass to this task.
1722 &quot;a_key&quot;: { # This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Next available id: 4
1723 &quot;key&quot;: &quot;A String&quot;, # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition.
1724 &quot;masked&quot;: True or False, # True if this parameter should be masked in the logs
1725 &quot;value&quot;: { # The type of the parameter. # Values for the defined keys. Each value can either be string, int, double or any proto message.
1726 &quot;booleanArray&quot;: { # This message only contains a field of boolean array. # Boolean Array.
1727 &quot;booleanValues&quot;: [ # Boolean array.
1728 True or False,
1729 ],
1730 },
1731 &quot;booleanValue&quot;: True or False, # Boolean.
1732 &quot;doubleArray&quot;: { # This message only contains a field of double number array. # Double Number Array.
1733 &quot;doubleValues&quot;: [ # Double number array.
1734 3.14,
1735 ],
1736 },
1737 &quot;doubleValue&quot;: 3.14, # Double Number.
1738 &quot;intArray&quot;: { # This message only contains a field of integer array. # Integer Array.
1739 &quot;intValues&quot;: [ # Integer array.
1740 &quot;A String&quot;,
1741 ],
1742 },
1743 &quot;intValue&quot;: &quot;A String&quot;, # Integer.
1744 &quot;jsonValue&quot;: &quot;A String&quot;, # Json.
1745 &quot;stringArray&quot;: { # This message only contains a field of string array. # String Array.
1746 &quot;stringValues&quot;: [ # String array.
1747 &quot;A String&quot;,
1748 ],
1749 },
1750 &quot;stringValue&quot;: &quot;A String&quot;, # String.
1751 },
1752 },
1753 },
1754 &quot;position&quot;: { # Configuration detail of coordinate, it used for UI # Optional. Informs the front-end application where to draw this error catcher config on the UI.
1755 &quot;x&quot;: 42, # Required. X axis of the coordinate
1756 &quot;y&quot;: 42, # Required. Y axis of the coordinate
1757 },
1758 &quot;successPolicy&quot;: { # Policy that dictates the behavior for the task after it completes successfully. # Optional. Determines what action to take upon successful task completion.
1759 &quot;finalState&quot;: &quot;A String&quot;, # State to which the execution snapshot status will be set if the task succeeds.
1760 },
1761 &quot;synchronousCallFailurePolicy&quot;: { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for synchronous calls to Eventbus alone (Post).
1762 &quot;condition&quot;: &quot;A String&quot;, # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy.
1763 &quot;intervalTime&quot;: &quot;A String&quot;, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff.
1764 &quot;maxRetries&quot;: 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed.
1765 &quot;retryStrategy&quot;: &quot;A String&quot;, # Defines what happens to the task upon failure.
1766 },
1767 &quot;task&quot;: &quot;A String&quot;, # Optional. The name for the task.
1768 &quot;taskExecutionStrategy&quot;: &quot;A String&quot;, # Optional. The policy dictating the execution strategy of this task.
1769 &quot;taskId&quot;: &quot;A String&quot;, # Required. The identifier of this task within its parent event config, specified by the client. This should be unique among all the tasks belong to the same event config. We use this field as the identifier to find next tasks (via field `next_tasks.task_id`).
1770 &quot;taskTemplate&quot;: &quot;A String&quot;, # Optional. Used to define task-template name if task is of type task-template
1771 },
1772 &quot;taskNumber&quot;: &quot;A String&quot;, # Required. This defines in the test case, the task in integration which will be mocked by this test task config
1773 },
1774 ],
1775 &quot;triggerConfig&quot;: { # Configuration detail of a trigger. # Optional. Auto-generated.
1776 &quot;alertConfig&quot;: [ # Optional. An alert threshold configuration for the [trigger + client + integration] tuple. If these values are not specified in the trigger config, default values will be populated by the system. Note that there must be exactly one alert threshold configured per [client + trigger + integration] when published.
1777 { # Message to be used to configure custom alerting in the {@code EventConfig} protos for an event.
1778 &quot;aggregationPeriod&quot;: &quot;A String&quot;, # The period over which the metric value should be aggregated and evaluated. Format is , where integer should be a positive integer and unit should be one of (s,m,h,d,w) meaning (second, minute, hour, day, week). For an EXPECTED_MIN threshold, this aggregation_period must be lesser than 24 hours.
1779 &quot;alertThreshold&quot;: 42, # For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired.
1780 &quot;disableAlert&quot;: True or False, # Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this integration alert.
1781 &quot;displayName&quot;: &quot;A String&quot;, # Name of the alert. This will be displayed in the alert subject. If set, this name should be unique within the scope of the integration.
1782 &quot;durationThreshold&quot;: &quot;A String&quot;, # Should be specified only for *AVERAGE_DURATION and *PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger.
1783 &quot;metricType&quot;: &quot;A String&quot;, # The type of metric.
1784 &quot;onlyFinalAttempt&quot;: True or False, # For either events or tasks, depending on the type of alert, count only final attempts, not retries.
1785 &quot;thresholdType&quot;: &quot;A String&quot;, # The threshold type, whether lower(expected_min) or upper(expected_max), for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired.
1786 &quot;thresholdValue&quot;: { # The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. # The metric value, above or below which the alert should be triggered.
1787 &quot;absolute&quot;: &quot;A String&quot;, # Absolute value threshold.
1788 &quot;percentage&quot;: 42, # Percentage threshold.
1789 },
1790 },
1791 ],
1792 &quot;cloudSchedulerConfig&quot;: { # Cloud Scheduler Trigger configuration # Optional. Cloud Scheduler Trigger related metadata
1793 &quot;cronTab&quot;: &quot;A String&quot;, # Required. The cron tab of cloud scheduler trigger.
1794 &quot;errorMessage&quot;: &quot;A String&quot;, # Optional. When the job was deleted from Pantheon UI, error_message will be populated when Get/List integrations
1795 &quot;location&quot;: &quot;A String&quot;, # Required. The location where associated cloud scheduler job will be created
1796 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # Required. Service account used by Cloud Scheduler to trigger the integration at scheduled time
1797 },
1798 &quot;description&quot;: &quot;A String&quot;, # Optional. User-provided description intended to give additional business context about the task.
1799 &quot;errorCatcherId&quot;: &quot;A String&quot;, # Optional. Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task
1800 &quot;inputVariables&quot;: { # Variables names mapped to api trigger. # Optional. List of input variables for the api trigger.
1801 &quot;names&quot;: [ # Optional. List of variable names.
1802 &quot;A String&quot;,
1803 ],
1804 },
1805 &quot;label&quot;: &quot;A String&quot;, # Optional. The user created label for a particular trigger.
1806 &quot;nextTasksExecutionPolicy&quot;: &quot;A String&quot;, # Optional. Dictates how next tasks will be executed.
1807 &quot;outputVariables&quot;: { # Variables names mapped to api trigger. # Optional. List of output variables for the api trigger.
1808 &quot;names&quot;: [ # Optional. List of variable names.
1809 &quot;A String&quot;,
1810 ],
1811 },
1812 &quot;position&quot;: { # Configuration detail of coordinate, it used for UI # Optional. Informs the front-end application where to draw this error catcher config on the UI.
1813 &quot;x&quot;: 42, # Required. X axis of the coordinate
1814 &quot;y&quot;: 42, # Required. Y axis of the coordinate
1815 },
1816 &quot;properties&quot;: { # Optional. Configurable properties of the trigger, not to be confused with integration parameters. E.g. &quot;name&quot; is a property for API triggers and &quot;subscription&quot; is a property for Pub/sub triggers.
1817 &quot;a_key&quot;: &quot;A String&quot;,
1818 },
1819 &quot;startTasks&quot;: [ # Optional. Set of tasks numbers from where the integration execution is started by this trigger. If this is empty, then integration is executed with default start tasks. In the list of start tasks, none of two tasks can have direct ancestor-descendant relationships (i.e. in a same integration execution graph).
1820 { # The task that is next in line to be executed, if the condition specified evaluated to true.
1821 &quot;condition&quot;: &quot;A String&quot;, # Standard filter expression for this task to become an eligible next task.
1822 &quot;description&quot;: &quot;A String&quot;, # User-provided description intended to give additional business context about the task.
1823 &quot;displayName&quot;: &quot;A String&quot;, # User-provided label that is attached to this edge in the UI.
1824 &quot;taskConfigId&quot;: &quot;A String&quot;, # ID of the next task.
1825 &quot;taskId&quot;: &quot;A String&quot;, # Task number of the next task.
1826 },
1827 ],
1828 &quot;trigger&quot;: &quot;A String&quot;, # Optional. Name of the trigger. Example: &quot;API Trigger&quot;, &quot;Cloud Pub Sub Trigger&quot; When set will be sent out to monitoring dashabord for tracking purpose.
1829 &quot;triggerId&quot;: &quot;A String&quot;, # Optional. Auto-generated trigger ID. The ID is based on the properties that you define in the trigger config. For example, for an API trigger, the trigger ID follows the format: api_trigger/TRIGGER_NAME Where trigger config has properties with value {&quot;Trigger name&quot;: TRIGGER_NAME}
1830 &quot;triggerNumber&quot;: &quot;A String&quot;, # Required. A number to uniquely identify each trigger config within the integration on UI.
1831 &quot;triggerType&quot;: &quot;A String&quot;, # Optional. Type of trigger
1832 },
1833 &quot;triggerId&quot;: &quot;A String&quot;, # Required. This defines the trigger ID in workflow which is considered to be executed as starting point of the test case
1834 &quot;updateTime&quot;: &quot;A String&quot;, # Auto-generated.
1835 }
1836
1837 updateMask: string, Optional. Field mask specifying the fields in the above integration that have been modified and need to be updated.
1838 x__xgafv: string, V1 error format.
1839 Allowed values
1840 1 - v1 error format
1841 2 - v2 error format
1842
1843 Returns:
1844 An object of the form:
1845
1846 { # Defines the functional test case for Application Integration. Next available id: 15
1847 &quot;createTime&quot;: &quot;A String&quot;, # Auto-generated.
1848 &quot;creatorEmail&quot;: &quot;A String&quot;, # Optional. The creator&#x27;s email address. Generated based on the End User Credentials/LOAS role of the user making the call.
1849 &quot;databasePersistencePolicy&quot;: &quot;A String&quot;, # Optional. Various policies for how to persist the test execution info including execution info, execution export info, execution metadata index and execution param index..
1850 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the test case.
1851 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of test case.
1852 &quot;lastModifierEmail&quot;: &quot;A String&quot;, # The last modifier&#x27;s email address. Generated based on the End User Credentials/LOAS role of the user making the call.
1853 &quot;lockHolderEmail&quot;: &quot;A String&quot;, # Optional. The edit lock holder&#x27;s email address. Generated based on the End User Credentials/LOAS role of the user making the call.
1854 &quot;name&quot;: &quot;A String&quot;, # Output only. Auto-generated primary key.
1855 &quot;testInputParameters&quot;: [ # Optional. Parameters that are expected to be passed to the test case when the test case is triggered. This gives the user the ability to provide default values. This should include all the output variables of the trigger as input variables.
1856 { # Integration Parameter is defined in the integration config and are used to provide information about data types of the expected parameters and provide any default values if needed. They can also be used to add custom attributes. These are static in nature and should not be used for dynamic event definition.
1857 &quot;containsLargeData&quot;: True or False, # Indicates whether this variable contains large data and need to be uploaded to Cloud Storage.
1858 &quot;dataType&quot;: &quot;A String&quot;, # Type of the parameter.
1859 &quot;defaultValue&quot;: { # The type of the parameter. # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object.
1860 &quot;booleanArray&quot;: { # This message only contains a field of boolean array. # Boolean Array.
1861 &quot;booleanValues&quot;: [ # Boolean array.
1862 True or False,
1863 ],
1864 },
1865 &quot;booleanValue&quot;: True or False, # Boolean.
1866 &quot;doubleArray&quot;: { # This message only contains a field of double number array. # Double Number Array.
1867 &quot;doubleValues&quot;: [ # Double number array.
1868 3.14,
1869 ],
1870 },
1871 &quot;doubleValue&quot;: 3.14, # Double Number.
1872 &quot;intArray&quot;: { # This message only contains a field of integer array. # Integer Array.
1873 &quot;intValues&quot;: [ # Integer array.
1874 &quot;A String&quot;,
1875 ],
1876 },
1877 &quot;intValue&quot;: &quot;A String&quot;, # Integer.
1878 &quot;jsonValue&quot;: &quot;A String&quot;, # Json.
1879 &quot;stringArray&quot;: { # This message only contains a field of string array. # String Array.
1880 &quot;stringValues&quot;: [ # String array.
1881 &quot;A String&quot;,
1882 ],
1883 },
1884 &quot;stringValue&quot;: &quot;A String&quot;, # String.
1885 },
1886 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the parameter.
1887 &quot;displayName&quot;: &quot;A String&quot;, # The name (without prefix) to be displayed in the UI for this parameter. E.g. if the key is &quot;foo.bar.myName&quot;, then the name would be &quot;myName&quot;.
1888 &quot;inputOutputType&quot;: &quot;A String&quot;, # Specifies the input/output type for the parameter.
1889 &quot;isTransient&quot;: True or False, # Whether this parameter is a transient parameter.
1890 &quot;jsonSchema&quot;: &quot;A String&quot;, # This schema will be used to validate runtime JSON-typed values of this parameter.
1891 &quot;key&quot;: &quot;A String&quot;, # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition.
1892 &quot;masked&quot;: True or False, # True if this parameter should be masked in the logs
1893 &quot;producer&quot;: &quot;A String&quot;, # The identifier of the node (TaskConfig/TriggerConfig) this parameter was produced by, if it is a transient param or a copy of an input param.
1894 &quot;searchable&quot;: True or False, # Searchable in the execution log or not.
1895 },
1896 ],
1897 &quot;testTaskConfigs&quot;: [ # Optional. However, the test case doesn&#x27;t mock or assert anything without test_task_configs.
1898 { # The task mock configuration details and assertions for functional tests. Next available id: 6
1899 &quot;assertions&quot;: [ # Optional. List of conditions or expressions which should be evaluated to true unless there is a bug/problem in the integration. These are evaluated one the task execution is completed as per the mock strategy in test case
1900 { # An assertion which will check for a condition over task execution status or an expression for task output variables
1901 &quot;assertionStrategy&quot;: &quot;A String&quot;, # Optional. The type of assertion to perform.
1902 &quot;condition&quot;: &quot;A String&quot;, # Optional. Standard filter expression for ASSERT_CONDITION to succeed
1903 &quot;parameter&quot;: { # This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Next available id: 4 # Optional. Key-value pair for ASSERT_EQUALS, ASSERT_NOT_EQUALS, ASSERT_CONTAINS to succeed
1904 &quot;key&quot;: &quot;A String&quot;, # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition.
1905 &quot;masked&quot;: True or False, # True if this parameter should be masked in the logs
1906 &quot;value&quot;: { # The type of the parameter. # Values for the defined keys. Each value can either be string, int, double or any proto message.
1907 &quot;booleanArray&quot;: { # This message only contains a field of boolean array. # Boolean Array.
1908 &quot;booleanValues&quot;: [ # Boolean array.
1909 True or False,
1910 ],
1911 },
1912 &quot;booleanValue&quot;: True or False, # Boolean.
1913 &quot;doubleArray&quot;: { # This message only contains a field of double number array. # Double Number Array.
1914 &quot;doubleValues&quot;: [ # Double number array.
1915 3.14,
1916 ],
1917 },
1918 &quot;doubleValue&quot;: 3.14, # Double Number.
1919 &quot;intArray&quot;: { # This message only contains a field of integer array. # Integer Array.
1920 &quot;intValues&quot;: [ # Integer array.
1921 &quot;A String&quot;,
1922 ],
1923 },
1924 &quot;intValue&quot;: &quot;A String&quot;, # Integer.
1925 &quot;jsonValue&quot;: &quot;A String&quot;, # Json.
1926 &quot;stringArray&quot;: { # This message only contains a field of string array. # String Array.
1927 &quot;stringValues&quot;: [ # String array.
1928 &quot;A String&quot;,
1929 ],
1930 },
1931 &quot;stringValue&quot;: &quot;A String&quot;, # String.
1932 },
1933 },
1934 &quot;retryCount&quot;: 42, # Number of times given task should be retried in case of ASSERT_FAILED_EXECUTION
1935 },
1936 ],
1937 &quot;mockConfig&quot;: { # The configuration for mocking of a task during test execution Next available id: 4 # Optional. Defines how to mock the given task during test execution
1938 &quot;failedExecutions&quot;: &quot;A String&quot;, # Optional. Number of times the given task should fail for failure mock strategy
1939 &quot;mockStrategy&quot;: &quot;A String&quot;, # Mockstrategy defines how the particular task should be mocked during test execution
1940 &quot;parameters&quot;: [ # Optional. List of key-value pairs for specific mock strategy
1941 { # This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Next available id: 4
1942 &quot;key&quot;: &quot;A String&quot;, # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition.
1943 &quot;masked&quot;: True or False, # True if this parameter should be masked in the logs
1944 &quot;value&quot;: { # The type of the parameter. # Values for the defined keys. Each value can either be string, int, double or any proto message.
1945 &quot;booleanArray&quot;: { # This message only contains a field of boolean array. # Boolean Array.
1946 &quot;booleanValues&quot;: [ # Boolean array.
1947 True or False,
1948 ],
1949 },
1950 &quot;booleanValue&quot;: True or False, # Boolean.
1951 &quot;doubleArray&quot;: { # This message only contains a field of double number array. # Double Number Array.
1952 &quot;doubleValues&quot;: [ # Double number array.
1953 3.14,
1954 ],
1955 },
1956 &quot;doubleValue&quot;: 3.14, # Double Number.
1957 &quot;intArray&quot;: { # This message only contains a field of integer array. # Integer Array.
1958 &quot;intValues&quot;: [ # Integer array.
1959 &quot;A String&quot;,
1960 ],
1961 },
1962 &quot;intValue&quot;: &quot;A String&quot;, # Integer.
1963 &quot;jsonValue&quot;: &quot;A String&quot;, # Json.
1964 &quot;stringArray&quot;: { # This message only contains a field of string array. # String Array.
1965 &quot;stringValues&quot;: [ # String array.
1966 &quot;A String&quot;,
1967 ],
1968 },
1969 &quot;stringValue&quot;: &quot;A String&quot;, # String.
1970 },
1971 },
1972 ],
1973 },
1974 &quot;task&quot;: &quot;A String&quot;, # Required. This defines in the test case, the task name in integration which will be mocked by this test task config
1975 &quot;taskConfig&quot;: { # The task configuration details. This is not the implementation of Task. There might be multiple TaskConfigs for the same Task. # Optional. Auto-generated.
1976 &quot;conditionalFailurePolicies&quot;: { # Conditional task failur retry strategies # Optional. The list of conditional failure policies that will be applied to the task in order.
1977 &quot;defaultFailurePolicy&quot;: { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # The default failure policy to be applied if no conditional failure policy matches.
1978 &quot;condition&quot;: &quot;A String&quot;, # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy.
1979 &quot;intervalTime&quot;: &quot;A String&quot;, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff.
1980 &quot;maxRetries&quot;: 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed.
1981 &quot;retryStrategy&quot;: &quot;A String&quot;, # Defines what happens to the task upon failure.
1982 },
1983 &quot;failurePolicies&quot;: [ # The list of failure policies that will be applied to the task in order.
1984 { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied).
1985 &quot;condition&quot;: &quot;A String&quot;, # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy.
1986 &quot;intervalTime&quot;: &quot;A String&quot;, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff.
1987 &quot;maxRetries&quot;: 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed.
1988 &quot;retryStrategy&quot;: &quot;A String&quot;, # Defines what happens to the task upon failure.
1989 },
1990 ],
1991 },
1992 &quot;description&quot;: &quot;A String&quot;, # Optional. User-provided description intended to give additional business context about the task.
1993 &quot;displayName&quot;: &quot;A String&quot;, # Optional. User-provided label that is attached to this TaskConfig in the UI.
1994 &quot;errorCatcherId&quot;: &quot;A String&quot;, # Optional. Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task
1995 &quot;externalTaskType&quot;: &quot;A String&quot;, # Optional. External task type of the task
1996 &quot;failurePolicy&quot;: { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for asynchronous calls to Eventbus alone (Post To Queue, Schedule etc.).
1997 &quot;condition&quot;: &quot;A String&quot;, # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy.
1998 &quot;intervalTime&quot;: &quot;A String&quot;, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff.
1999 &quot;maxRetries&quot;: 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed.
2000 &quot;retryStrategy&quot;: &quot;A String&quot;, # Defines what happens to the task upon failure.
2001 },
2002 &quot;jsonValidationOption&quot;: &quot;A String&quot;, # Optional. If set, overrides the option configured in the Task implementation class.
2003 &quot;nextTasks&quot;: [ # Optional. The set of tasks that are next in line to be executed as per the execution graph defined for the parent event, specified by `event_config_id`. Each of these next tasks are executed only if the condition associated with them evaluates to true.
2004 { # The task that is next in line to be executed, if the condition specified evaluated to true.
2005 &quot;condition&quot;: &quot;A String&quot;, # Standard filter expression for this task to become an eligible next task.
2006 &quot;description&quot;: &quot;A String&quot;, # User-provided description intended to give additional business context about the task.
2007 &quot;displayName&quot;: &quot;A String&quot;, # User-provided label that is attached to this edge in the UI.
2008 &quot;taskConfigId&quot;: &quot;A String&quot;, # ID of the next task.
2009 &quot;taskId&quot;: &quot;A String&quot;, # Task number of the next task.
2010 },
2011 ],
2012 &quot;nextTasksExecutionPolicy&quot;: &quot;A String&quot;, # Optional. The policy dictating the execution of the next set of tasks for the current task.
2013 &quot;parameters&quot;: { # Optional. The customized parameters the user can pass to this task.
2014 &quot;a_key&quot;: { # This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Next available id: 4
2015 &quot;key&quot;: &quot;A String&quot;, # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition.
2016 &quot;masked&quot;: True or False, # True if this parameter should be masked in the logs
2017 &quot;value&quot;: { # The type of the parameter. # Values for the defined keys. Each value can either be string, int, double or any proto message.
2018 &quot;booleanArray&quot;: { # This message only contains a field of boolean array. # Boolean Array.
2019 &quot;booleanValues&quot;: [ # Boolean array.
2020 True or False,
2021 ],
2022 },
2023 &quot;booleanValue&quot;: True or False, # Boolean.
2024 &quot;doubleArray&quot;: { # This message only contains a field of double number array. # Double Number Array.
2025 &quot;doubleValues&quot;: [ # Double number array.
2026 3.14,
2027 ],
2028 },
2029 &quot;doubleValue&quot;: 3.14, # Double Number.
2030 &quot;intArray&quot;: { # This message only contains a field of integer array. # Integer Array.
2031 &quot;intValues&quot;: [ # Integer array.
2032 &quot;A String&quot;,
2033 ],
2034 },
2035 &quot;intValue&quot;: &quot;A String&quot;, # Integer.
2036 &quot;jsonValue&quot;: &quot;A String&quot;, # Json.
2037 &quot;stringArray&quot;: { # This message only contains a field of string array. # String Array.
2038 &quot;stringValues&quot;: [ # String array.
2039 &quot;A String&quot;,
2040 ],
2041 },
2042 &quot;stringValue&quot;: &quot;A String&quot;, # String.
2043 },
2044 },
2045 },
2046 &quot;position&quot;: { # Configuration detail of coordinate, it used for UI # Optional. Informs the front-end application where to draw this error catcher config on the UI.
2047 &quot;x&quot;: 42, # Required. X axis of the coordinate
2048 &quot;y&quot;: 42, # Required. Y axis of the coordinate
2049 },
2050 &quot;successPolicy&quot;: { # Policy that dictates the behavior for the task after it completes successfully. # Optional. Determines what action to take upon successful task completion.
2051 &quot;finalState&quot;: &quot;A String&quot;, # State to which the execution snapshot status will be set if the task succeeds.
2052 },
2053 &quot;synchronousCallFailurePolicy&quot;: { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for synchronous calls to Eventbus alone (Post).
2054 &quot;condition&quot;: &quot;A String&quot;, # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy.
2055 &quot;intervalTime&quot;: &quot;A String&quot;, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff.
2056 &quot;maxRetries&quot;: 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed.
2057 &quot;retryStrategy&quot;: &quot;A String&quot;, # Defines what happens to the task upon failure.
2058 },
2059 &quot;task&quot;: &quot;A String&quot;, # Optional. The name for the task.
2060 &quot;taskExecutionStrategy&quot;: &quot;A String&quot;, # Optional. The policy dictating the execution strategy of this task.
2061 &quot;taskId&quot;: &quot;A String&quot;, # Required. The identifier of this task within its parent event config, specified by the client. This should be unique among all the tasks belong to the same event config. We use this field as the identifier to find next tasks (via field `next_tasks.task_id`).
2062 &quot;taskTemplate&quot;: &quot;A String&quot;, # Optional. Used to define task-template name if task is of type task-template
2063 },
2064 &quot;taskNumber&quot;: &quot;A String&quot;, # Required. This defines in the test case, the task in integration which will be mocked by this test task config
2065 },
2066 ],
2067 &quot;triggerConfig&quot;: { # Configuration detail of a trigger. # Optional. Auto-generated.
2068 &quot;alertConfig&quot;: [ # Optional. An alert threshold configuration for the [trigger + client + integration] tuple. If these values are not specified in the trigger config, default values will be populated by the system. Note that there must be exactly one alert threshold configured per [client + trigger + integration] when published.
2069 { # Message to be used to configure custom alerting in the {@code EventConfig} protos for an event.
2070 &quot;aggregationPeriod&quot;: &quot;A String&quot;, # The period over which the metric value should be aggregated and evaluated. Format is , where integer should be a positive integer and unit should be one of (s,m,h,d,w) meaning (second, minute, hour, day, week). For an EXPECTED_MIN threshold, this aggregation_period must be lesser than 24 hours.
2071 &quot;alertThreshold&quot;: 42, # For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired.
2072 &quot;disableAlert&quot;: True or False, # Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this integration alert.
2073 &quot;displayName&quot;: &quot;A String&quot;, # Name of the alert. This will be displayed in the alert subject. If set, this name should be unique within the scope of the integration.
2074 &quot;durationThreshold&quot;: &quot;A String&quot;, # Should be specified only for *AVERAGE_DURATION and *PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger.
2075 &quot;metricType&quot;: &quot;A String&quot;, # The type of metric.
2076 &quot;onlyFinalAttempt&quot;: True or False, # For either events or tasks, depending on the type of alert, count only final attempts, not retries.
2077 &quot;thresholdType&quot;: &quot;A String&quot;, # The threshold type, whether lower(expected_min) or upper(expected_max), for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired.
2078 &quot;thresholdValue&quot;: { # The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. # The metric value, above or below which the alert should be triggered.
2079 &quot;absolute&quot;: &quot;A String&quot;, # Absolute value threshold.
2080 &quot;percentage&quot;: 42, # Percentage threshold.
2081 },
2082 },
2083 ],
2084 &quot;cloudSchedulerConfig&quot;: { # Cloud Scheduler Trigger configuration # Optional. Cloud Scheduler Trigger related metadata
2085 &quot;cronTab&quot;: &quot;A String&quot;, # Required. The cron tab of cloud scheduler trigger.
2086 &quot;errorMessage&quot;: &quot;A String&quot;, # Optional. When the job was deleted from Pantheon UI, error_message will be populated when Get/List integrations
2087 &quot;location&quot;: &quot;A String&quot;, # Required. The location where associated cloud scheduler job will be created
2088 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # Required. Service account used by Cloud Scheduler to trigger the integration at scheduled time
2089 },
2090 &quot;description&quot;: &quot;A String&quot;, # Optional. User-provided description intended to give additional business context about the task.
2091 &quot;errorCatcherId&quot;: &quot;A String&quot;, # Optional. Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task
2092 &quot;inputVariables&quot;: { # Variables names mapped to api trigger. # Optional. List of input variables for the api trigger.
2093 &quot;names&quot;: [ # Optional. List of variable names.
2094 &quot;A String&quot;,
2095 ],
2096 },
2097 &quot;label&quot;: &quot;A String&quot;, # Optional. The user created label for a particular trigger.
2098 &quot;nextTasksExecutionPolicy&quot;: &quot;A String&quot;, # Optional. Dictates how next tasks will be executed.
2099 &quot;outputVariables&quot;: { # Variables names mapped to api trigger. # Optional. List of output variables for the api trigger.
2100 &quot;names&quot;: [ # Optional. List of variable names.
2101 &quot;A String&quot;,
2102 ],
2103 },
2104 &quot;position&quot;: { # Configuration detail of coordinate, it used for UI # Optional. Informs the front-end application where to draw this error catcher config on the UI.
2105 &quot;x&quot;: 42, # Required. X axis of the coordinate
2106 &quot;y&quot;: 42, # Required. Y axis of the coordinate
2107 },
2108 &quot;properties&quot;: { # Optional. Configurable properties of the trigger, not to be confused with integration parameters. E.g. &quot;name&quot; is a property for API triggers and &quot;subscription&quot; is a property for Pub/sub triggers.
2109 &quot;a_key&quot;: &quot;A String&quot;,
2110 },
2111 &quot;startTasks&quot;: [ # Optional. Set of tasks numbers from where the integration execution is started by this trigger. If this is empty, then integration is executed with default start tasks. In the list of start tasks, none of two tasks can have direct ancestor-descendant relationships (i.e. in a same integration execution graph).
2112 { # The task that is next in line to be executed, if the condition specified evaluated to true.
2113 &quot;condition&quot;: &quot;A String&quot;, # Standard filter expression for this task to become an eligible next task.
2114 &quot;description&quot;: &quot;A String&quot;, # User-provided description intended to give additional business context about the task.
2115 &quot;displayName&quot;: &quot;A String&quot;, # User-provided label that is attached to this edge in the UI.
2116 &quot;taskConfigId&quot;: &quot;A String&quot;, # ID of the next task.
2117 &quot;taskId&quot;: &quot;A String&quot;, # Task number of the next task.
2118 },
2119 ],
2120 &quot;trigger&quot;: &quot;A String&quot;, # Optional. Name of the trigger. Example: &quot;API Trigger&quot;, &quot;Cloud Pub Sub Trigger&quot; When set will be sent out to monitoring dashabord for tracking purpose.
2121 &quot;triggerId&quot;: &quot;A String&quot;, # Optional. Auto-generated trigger ID. The ID is based on the properties that you define in the trigger config. For example, for an API trigger, the trigger ID follows the format: api_trigger/TRIGGER_NAME Where trigger config has properties with value {&quot;Trigger name&quot;: TRIGGER_NAME}
2122 &quot;triggerNumber&quot;: &quot;A String&quot;, # Required. A number to uniquely identify each trigger config within the integration on UI.
2123 &quot;triggerType&quot;: &quot;A String&quot;, # Optional. Type of trigger
2124 },
2125 &quot;triggerId&quot;: &quot;A String&quot;, # Required. This defines the trigger ID in workflow which is considered to be executed as starting point of the test case
2126 &quot;updateTime&quot;: &quot;A String&quot;, # Auto-generated.
2127 }</pre>
2128 </div>
2129
2130 <div class="method">
2131 <code class="details" id="takeoverEditLock">takeoverEditLock(name, body=None, x__xgafv=None)</code>
2132 <pre>Clear the lock fields and assign them to current user
2133
2134 Args:
2135 name: string, Required. The ID of test case to takeover edit lock. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{integration_version}/testCases/{test_case_id} (required)
2136 body: object, The request body.
2137 The object takes the form of:
2138
2139 { # Request for TakeoverTestCaseEditLock.
2140 }
2141
2142 x__xgafv: string, V1 error format.
2143 Allowed values
2144 1 - v1 error format
2145 2 - v2 error format
2146
2147 Returns:
2148 An object of the form:
2149
2150 { # Defines the functional test case for Application Integration. Next available id: 15
2151 &quot;createTime&quot;: &quot;A String&quot;, # Auto-generated.
2152 &quot;creatorEmail&quot;: &quot;A String&quot;, # Optional. The creator&#x27;s email address. Generated based on the End User Credentials/LOAS role of the user making the call.
2153 &quot;databasePersistencePolicy&quot;: &quot;A String&quot;, # Optional. Various policies for how to persist the test execution info including execution info, execution export info, execution metadata index and execution param index..
2154 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the test case.
2155 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of test case.
2156 &quot;lastModifierEmail&quot;: &quot;A String&quot;, # The last modifier&#x27;s email address. Generated based on the End User Credentials/LOAS role of the user making the call.
2157 &quot;lockHolderEmail&quot;: &quot;A String&quot;, # Optional. The edit lock holder&#x27;s email address. Generated based on the End User Credentials/LOAS role of the user making the call.
2158 &quot;name&quot;: &quot;A String&quot;, # Output only. Auto-generated primary key.
2159 &quot;testInputParameters&quot;: [ # Optional. Parameters that are expected to be passed to the test case when the test case is triggered. This gives the user the ability to provide default values. This should include all the output variables of the trigger as input variables.
2160 { # Integration Parameter is defined in the integration config and are used to provide information about data types of the expected parameters and provide any default values if needed. They can also be used to add custom attributes. These are static in nature and should not be used for dynamic event definition.
2161 &quot;containsLargeData&quot;: True or False, # Indicates whether this variable contains large data and need to be uploaded to Cloud Storage.
2162 &quot;dataType&quot;: &quot;A String&quot;, # Type of the parameter.
2163 &quot;defaultValue&quot;: { # The type of the parameter. # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object.
2164 &quot;booleanArray&quot;: { # This message only contains a field of boolean array. # Boolean Array.
2165 &quot;booleanValues&quot;: [ # Boolean array.
2166 True or False,
2167 ],
2168 },
2169 &quot;booleanValue&quot;: True or False, # Boolean.
2170 &quot;doubleArray&quot;: { # This message only contains a field of double number array. # Double Number Array.
2171 &quot;doubleValues&quot;: [ # Double number array.
2172 3.14,
2173 ],
2174 },
2175 &quot;doubleValue&quot;: 3.14, # Double Number.
2176 &quot;intArray&quot;: { # This message only contains a field of integer array. # Integer Array.
2177 &quot;intValues&quot;: [ # Integer array.
2178 &quot;A String&quot;,
2179 ],
2180 },
2181 &quot;intValue&quot;: &quot;A String&quot;, # Integer.
2182 &quot;jsonValue&quot;: &quot;A String&quot;, # Json.
2183 &quot;stringArray&quot;: { # This message only contains a field of string array. # String Array.
2184 &quot;stringValues&quot;: [ # String array.
2185 &quot;A String&quot;,
2186 ],
2187 },
2188 &quot;stringValue&quot;: &quot;A String&quot;, # String.
2189 },
2190 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the parameter.
2191 &quot;displayName&quot;: &quot;A String&quot;, # The name (without prefix) to be displayed in the UI for this parameter. E.g. if the key is &quot;foo.bar.myName&quot;, then the name would be &quot;myName&quot;.
2192 &quot;inputOutputType&quot;: &quot;A String&quot;, # Specifies the input/output type for the parameter.
2193 &quot;isTransient&quot;: True or False, # Whether this parameter is a transient parameter.
2194 &quot;jsonSchema&quot;: &quot;A String&quot;, # This schema will be used to validate runtime JSON-typed values of this parameter.
2195 &quot;key&quot;: &quot;A String&quot;, # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition.
2196 &quot;masked&quot;: True or False, # True if this parameter should be masked in the logs
2197 &quot;producer&quot;: &quot;A String&quot;, # The identifier of the node (TaskConfig/TriggerConfig) this parameter was produced by, if it is a transient param or a copy of an input param.
2198 &quot;searchable&quot;: True or False, # Searchable in the execution log or not.
2199 },
2200 ],
2201 &quot;testTaskConfigs&quot;: [ # Optional. However, the test case doesn&#x27;t mock or assert anything without test_task_configs.
2202 { # The task mock configuration details and assertions for functional tests. Next available id: 6
2203 &quot;assertions&quot;: [ # Optional. List of conditions or expressions which should be evaluated to true unless there is a bug/problem in the integration. These are evaluated one the task execution is completed as per the mock strategy in test case
2204 { # An assertion which will check for a condition over task execution status or an expression for task output variables
2205 &quot;assertionStrategy&quot;: &quot;A String&quot;, # Optional. The type of assertion to perform.
2206 &quot;condition&quot;: &quot;A String&quot;, # Optional. Standard filter expression for ASSERT_CONDITION to succeed
2207 &quot;parameter&quot;: { # This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Next available id: 4 # Optional. Key-value pair for ASSERT_EQUALS, ASSERT_NOT_EQUALS, ASSERT_CONTAINS to succeed
2208 &quot;key&quot;: &quot;A String&quot;, # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition.
2209 &quot;masked&quot;: True or False, # True if this parameter should be masked in the logs
2210 &quot;value&quot;: { # The type of the parameter. # Values for the defined keys. Each value can either be string, int, double or any proto message.
2211 &quot;booleanArray&quot;: { # This message only contains a field of boolean array. # Boolean Array.
2212 &quot;booleanValues&quot;: [ # Boolean array.
2213 True or False,
2214 ],
2215 },
2216 &quot;booleanValue&quot;: True or False, # Boolean.
2217 &quot;doubleArray&quot;: { # This message only contains a field of double number array. # Double Number Array.
2218 &quot;doubleValues&quot;: [ # Double number array.
2219 3.14,
2220 ],
2221 },
2222 &quot;doubleValue&quot;: 3.14, # Double Number.
2223 &quot;intArray&quot;: { # This message only contains a field of integer array. # Integer Array.
2224 &quot;intValues&quot;: [ # Integer array.
2225 &quot;A String&quot;,
2226 ],
2227 },
2228 &quot;intValue&quot;: &quot;A String&quot;, # Integer.
2229 &quot;jsonValue&quot;: &quot;A String&quot;, # Json.
2230 &quot;stringArray&quot;: { # This message only contains a field of string array. # String Array.
2231 &quot;stringValues&quot;: [ # String array.
2232 &quot;A String&quot;,
2233 ],
2234 },
2235 &quot;stringValue&quot;: &quot;A String&quot;, # String.
2236 },
2237 },
2238 &quot;retryCount&quot;: 42, # Number of times given task should be retried in case of ASSERT_FAILED_EXECUTION
2239 },
2240 ],
2241 &quot;mockConfig&quot;: { # The configuration for mocking of a task during test execution Next available id: 4 # Optional. Defines how to mock the given task during test execution
2242 &quot;failedExecutions&quot;: &quot;A String&quot;, # Optional. Number of times the given task should fail for failure mock strategy
2243 &quot;mockStrategy&quot;: &quot;A String&quot;, # Mockstrategy defines how the particular task should be mocked during test execution
2244 &quot;parameters&quot;: [ # Optional. List of key-value pairs for specific mock strategy
2245 { # This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Next available id: 4
2246 &quot;key&quot;: &quot;A String&quot;, # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition.
2247 &quot;masked&quot;: True or False, # True if this parameter should be masked in the logs
2248 &quot;value&quot;: { # The type of the parameter. # Values for the defined keys. Each value can either be string, int, double or any proto message.
2249 &quot;booleanArray&quot;: { # This message only contains a field of boolean array. # Boolean Array.
2250 &quot;booleanValues&quot;: [ # Boolean array.
2251 True or False,
2252 ],
2253 },
2254 &quot;booleanValue&quot;: True or False, # Boolean.
2255 &quot;doubleArray&quot;: { # This message only contains a field of double number array. # Double Number Array.
2256 &quot;doubleValues&quot;: [ # Double number array.
2257 3.14,
2258 ],
2259 },
2260 &quot;doubleValue&quot;: 3.14, # Double Number.
2261 &quot;intArray&quot;: { # This message only contains a field of integer array. # Integer Array.
2262 &quot;intValues&quot;: [ # Integer array.
2263 &quot;A String&quot;,
2264 ],
2265 },
2266 &quot;intValue&quot;: &quot;A String&quot;, # Integer.
2267 &quot;jsonValue&quot;: &quot;A String&quot;, # Json.
2268 &quot;stringArray&quot;: { # This message only contains a field of string array. # String Array.
2269 &quot;stringValues&quot;: [ # String array.
2270 &quot;A String&quot;,
2271 ],
2272 },
2273 &quot;stringValue&quot;: &quot;A String&quot;, # String.
2274 },
2275 },
2276 ],
2277 },
2278 &quot;task&quot;: &quot;A String&quot;, # Required. This defines in the test case, the task name in integration which will be mocked by this test task config
2279 &quot;taskConfig&quot;: { # The task configuration details. This is not the implementation of Task. There might be multiple TaskConfigs for the same Task. # Optional. Auto-generated.
2280 &quot;conditionalFailurePolicies&quot;: { # Conditional task failur retry strategies # Optional. The list of conditional failure policies that will be applied to the task in order.
2281 &quot;defaultFailurePolicy&quot;: { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # The default failure policy to be applied if no conditional failure policy matches.
2282 &quot;condition&quot;: &quot;A String&quot;, # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy.
2283 &quot;intervalTime&quot;: &quot;A String&quot;, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff.
2284 &quot;maxRetries&quot;: 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed.
2285 &quot;retryStrategy&quot;: &quot;A String&quot;, # Defines what happens to the task upon failure.
2286 },
2287 &quot;failurePolicies&quot;: [ # The list of failure policies that will be applied to the task in order.
2288 { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied).
2289 &quot;condition&quot;: &quot;A String&quot;, # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy.
2290 &quot;intervalTime&quot;: &quot;A String&quot;, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff.
2291 &quot;maxRetries&quot;: 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed.
2292 &quot;retryStrategy&quot;: &quot;A String&quot;, # Defines what happens to the task upon failure.
2293 },
2294 ],
2295 },
2296 &quot;description&quot;: &quot;A String&quot;, # Optional. User-provided description intended to give additional business context about the task.
2297 &quot;displayName&quot;: &quot;A String&quot;, # Optional. User-provided label that is attached to this TaskConfig in the UI.
2298 &quot;errorCatcherId&quot;: &quot;A String&quot;, # Optional. Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task
2299 &quot;externalTaskType&quot;: &quot;A String&quot;, # Optional. External task type of the task
2300 &quot;failurePolicy&quot;: { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for asynchronous calls to Eventbus alone (Post To Queue, Schedule etc.).
2301 &quot;condition&quot;: &quot;A String&quot;, # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy.
2302 &quot;intervalTime&quot;: &quot;A String&quot;, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff.
2303 &quot;maxRetries&quot;: 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed.
2304 &quot;retryStrategy&quot;: &quot;A String&quot;, # Defines what happens to the task upon failure.
2305 },
2306 &quot;jsonValidationOption&quot;: &quot;A String&quot;, # Optional. If set, overrides the option configured in the Task implementation class.
2307 &quot;nextTasks&quot;: [ # Optional. The set of tasks that are next in line to be executed as per the execution graph defined for the parent event, specified by `event_config_id`. Each of these next tasks are executed only if the condition associated with them evaluates to true.
2308 { # The task that is next in line to be executed, if the condition specified evaluated to true.
2309 &quot;condition&quot;: &quot;A String&quot;, # Standard filter expression for this task to become an eligible next task.
2310 &quot;description&quot;: &quot;A String&quot;, # User-provided description intended to give additional business context about the task.
2311 &quot;displayName&quot;: &quot;A String&quot;, # User-provided label that is attached to this edge in the UI.
2312 &quot;taskConfigId&quot;: &quot;A String&quot;, # ID of the next task.
2313 &quot;taskId&quot;: &quot;A String&quot;, # Task number of the next task.
2314 },
2315 ],
2316 &quot;nextTasksExecutionPolicy&quot;: &quot;A String&quot;, # Optional. The policy dictating the execution of the next set of tasks for the current task.
2317 &quot;parameters&quot;: { # Optional. The customized parameters the user can pass to this task.
2318 &quot;a_key&quot;: { # This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Next available id: 4
2319 &quot;key&quot;: &quot;A String&quot;, # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition.
2320 &quot;masked&quot;: True or False, # True if this parameter should be masked in the logs
2321 &quot;value&quot;: { # The type of the parameter. # Values for the defined keys. Each value can either be string, int, double or any proto message.
2322 &quot;booleanArray&quot;: { # This message only contains a field of boolean array. # Boolean Array.
2323 &quot;booleanValues&quot;: [ # Boolean array.
2324 True or False,
2325 ],
2326 },
2327 &quot;booleanValue&quot;: True or False, # Boolean.
2328 &quot;doubleArray&quot;: { # This message only contains a field of double number array. # Double Number Array.
2329 &quot;doubleValues&quot;: [ # Double number array.
2330 3.14,
2331 ],
2332 },
2333 &quot;doubleValue&quot;: 3.14, # Double Number.
2334 &quot;intArray&quot;: { # This message only contains a field of integer array. # Integer Array.
2335 &quot;intValues&quot;: [ # Integer array.
2336 &quot;A String&quot;,
2337 ],
2338 },
2339 &quot;intValue&quot;: &quot;A String&quot;, # Integer.
2340 &quot;jsonValue&quot;: &quot;A String&quot;, # Json.
2341 &quot;stringArray&quot;: { # This message only contains a field of string array. # String Array.
2342 &quot;stringValues&quot;: [ # String array.
2343 &quot;A String&quot;,
2344 ],
2345 },
2346 &quot;stringValue&quot;: &quot;A String&quot;, # String.
2347 },
2348 },
2349 },
2350 &quot;position&quot;: { # Configuration detail of coordinate, it used for UI # Optional. Informs the front-end application where to draw this error catcher config on the UI.
2351 &quot;x&quot;: 42, # Required. X axis of the coordinate
2352 &quot;y&quot;: 42, # Required. Y axis of the coordinate
2353 },
2354 &quot;successPolicy&quot;: { # Policy that dictates the behavior for the task after it completes successfully. # Optional. Determines what action to take upon successful task completion.
2355 &quot;finalState&quot;: &quot;A String&quot;, # State to which the execution snapshot status will be set if the task succeeds.
2356 },
2357 &quot;synchronousCallFailurePolicy&quot;: { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for synchronous calls to Eventbus alone (Post).
2358 &quot;condition&quot;: &quot;A String&quot;, # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy.
2359 &quot;intervalTime&quot;: &quot;A String&quot;, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff.
2360 &quot;maxRetries&quot;: 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed.
2361 &quot;retryStrategy&quot;: &quot;A String&quot;, # Defines what happens to the task upon failure.
2362 },
2363 &quot;task&quot;: &quot;A String&quot;, # Optional. The name for the task.
2364 &quot;taskExecutionStrategy&quot;: &quot;A String&quot;, # Optional. The policy dictating the execution strategy of this task.
2365 &quot;taskId&quot;: &quot;A String&quot;, # Required. The identifier of this task within its parent event config, specified by the client. This should be unique among all the tasks belong to the same event config. We use this field as the identifier to find next tasks (via field `next_tasks.task_id`).
2366 &quot;taskTemplate&quot;: &quot;A String&quot;, # Optional. Used to define task-template name if task is of type task-template
2367 },
2368 &quot;taskNumber&quot;: &quot;A String&quot;, # Required. This defines in the test case, the task in integration which will be mocked by this test task config
2369 },
2370 ],
2371 &quot;triggerConfig&quot;: { # Configuration detail of a trigger. # Optional. Auto-generated.
2372 &quot;alertConfig&quot;: [ # Optional. An alert threshold configuration for the [trigger + client + integration] tuple. If these values are not specified in the trigger config, default values will be populated by the system. Note that there must be exactly one alert threshold configured per [client + trigger + integration] when published.
2373 { # Message to be used to configure custom alerting in the {@code EventConfig} protos for an event.
2374 &quot;aggregationPeriod&quot;: &quot;A String&quot;, # The period over which the metric value should be aggregated and evaluated. Format is , where integer should be a positive integer and unit should be one of (s,m,h,d,w) meaning (second, minute, hour, day, week). For an EXPECTED_MIN threshold, this aggregation_period must be lesser than 24 hours.
2375 &quot;alertThreshold&quot;: 42, # For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired.
2376 &quot;disableAlert&quot;: True or False, # Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this integration alert.
2377 &quot;displayName&quot;: &quot;A String&quot;, # Name of the alert. This will be displayed in the alert subject. If set, this name should be unique within the scope of the integration.
2378 &quot;durationThreshold&quot;: &quot;A String&quot;, # Should be specified only for *AVERAGE_DURATION and *PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger.
2379 &quot;metricType&quot;: &quot;A String&quot;, # The type of metric.
2380 &quot;onlyFinalAttempt&quot;: True or False, # For either events or tasks, depending on the type of alert, count only final attempts, not retries.
2381 &quot;thresholdType&quot;: &quot;A String&quot;, # The threshold type, whether lower(expected_min) or upper(expected_max), for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired.
2382 &quot;thresholdValue&quot;: { # The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. # The metric value, above or below which the alert should be triggered.
2383 &quot;absolute&quot;: &quot;A String&quot;, # Absolute value threshold.
2384 &quot;percentage&quot;: 42, # Percentage threshold.
2385 },
2386 },
2387 ],
2388 &quot;cloudSchedulerConfig&quot;: { # Cloud Scheduler Trigger configuration # Optional. Cloud Scheduler Trigger related metadata
2389 &quot;cronTab&quot;: &quot;A String&quot;, # Required. The cron tab of cloud scheduler trigger.
2390 &quot;errorMessage&quot;: &quot;A String&quot;, # Optional. When the job was deleted from Pantheon UI, error_message will be populated when Get/List integrations
2391 &quot;location&quot;: &quot;A String&quot;, # Required. The location where associated cloud scheduler job will be created
2392 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # Required. Service account used by Cloud Scheduler to trigger the integration at scheduled time
2393 },
2394 &quot;description&quot;: &quot;A String&quot;, # Optional. User-provided description intended to give additional business context about the task.
2395 &quot;errorCatcherId&quot;: &quot;A String&quot;, # Optional. Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task
2396 &quot;inputVariables&quot;: { # Variables names mapped to api trigger. # Optional. List of input variables for the api trigger.
2397 &quot;names&quot;: [ # Optional. List of variable names.
2398 &quot;A String&quot;,
2399 ],
2400 },
2401 &quot;label&quot;: &quot;A String&quot;, # Optional. The user created label for a particular trigger.
2402 &quot;nextTasksExecutionPolicy&quot;: &quot;A String&quot;, # Optional. Dictates how next tasks will be executed.
2403 &quot;outputVariables&quot;: { # Variables names mapped to api trigger. # Optional. List of output variables for the api trigger.
2404 &quot;names&quot;: [ # Optional. List of variable names.
2405 &quot;A String&quot;,
2406 ],
2407 },
2408 &quot;position&quot;: { # Configuration detail of coordinate, it used for UI # Optional. Informs the front-end application where to draw this error catcher config on the UI.
2409 &quot;x&quot;: 42, # Required. X axis of the coordinate
2410 &quot;y&quot;: 42, # Required. Y axis of the coordinate
2411 },
2412 &quot;properties&quot;: { # Optional. Configurable properties of the trigger, not to be confused with integration parameters. E.g. &quot;name&quot; is a property for API triggers and &quot;subscription&quot; is a property for Pub/sub triggers.
2413 &quot;a_key&quot;: &quot;A String&quot;,
2414 },
2415 &quot;startTasks&quot;: [ # Optional. Set of tasks numbers from where the integration execution is started by this trigger. If this is empty, then integration is executed with default start tasks. In the list of start tasks, none of two tasks can have direct ancestor-descendant relationships (i.e. in a same integration execution graph).
2416 { # The task that is next in line to be executed, if the condition specified evaluated to true.
2417 &quot;condition&quot;: &quot;A String&quot;, # Standard filter expression for this task to become an eligible next task.
2418 &quot;description&quot;: &quot;A String&quot;, # User-provided description intended to give additional business context about the task.
2419 &quot;displayName&quot;: &quot;A String&quot;, # User-provided label that is attached to this edge in the UI.
2420 &quot;taskConfigId&quot;: &quot;A String&quot;, # ID of the next task.
2421 &quot;taskId&quot;: &quot;A String&quot;, # Task number of the next task.
2422 },
2423 ],
2424 &quot;trigger&quot;: &quot;A String&quot;, # Optional. Name of the trigger. Example: &quot;API Trigger&quot;, &quot;Cloud Pub Sub Trigger&quot; When set will be sent out to monitoring dashabord for tracking purpose.
2425 &quot;triggerId&quot;: &quot;A String&quot;, # Optional. Auto-generated trigger ID. The ID is based on the properties that you define in the trigger config. For example, for an API trigger, the trigger ID follows the format: api_trigger/TRIGGER_NAME Where trigger config has properties with value {&quot;Trigger name&quot;: TRIGGER_NAME}
2426 &quot;triggerNumber&quot;: &quot;A String&quot;, # Required. A number to uniquely identify each trigger config within the integration on UI.
2427 &quot;triggerType&quot;: &quot;A String&quot;, # Optional. Type of trigger
2428 },
2429 &quot;triggerId&quot;: &quot;A String&quot;, # Required. This defines the trigger ID in workflow which is considered to be executed as starting point of the test case
2430 &quot;updateTime&quot;: &quot;A String&quot;, # Auto-generated.
2431 }</pre>
2432 </div>
2433
2434 <div class="method">
2435 <code class="details" id="upload">upload(parent, body=None, x__xgafv=None)</code>
2436 <pre>Uploads a test case. The content can be a previously downloaded test case. Performs the same function as CreateTestCase, but accepts input in a string format, which holds the complete representation of the TestCase content.
2437
2438 Args:
2439 parent: string, Required. The test case to upload. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{integration_version} (required)
2440 body: object, The request body.
2441 The object takes the form of:
2442
2443 { # Request for UploadTestCase.
2444 &quot;content&quot;: &quot;A String&quot;, # The textproto of the test case.
2445 &quot;fileFormat&quot;: &quot;A String&quot;, # File format for upload request.
2446 }
2447
2448 x__xgafv: string, V1 error format.
2449 Allowed values
2450 1 - v1 error format
2451 2 - v2 error format
2452
2453 Returns:
2454 An object of the form:
2455
2456 { # Response for UploadTestCase.
2457 &quot;testCase&quot;: { # Defines the functional test case for Application Integration. Next available id: 15 # The uploaded TestCase
2458 &quot;createTime&quot;: &quot;A String&quot;, # Auto-generated.
2459 &quot;creatorEmail&quot;: &quot;A String&quot;, # Optional. The creator&#x27;s email address. Generated based on the End User Credentials/LOAS role of the user making the call.
2460 &quot;databasePersistencePolicy&quot;: &quot;A String&quot;, # Optional. Various policies for how to persist the test execution info including execution info, execution export info, execution metadata index and execution param index..
2461 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the test case.
2462 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of test case.
2463 &quot;lastModifierEmail&quot;: &quot;A String&quot;, # The last modifier&#x27;s email address. Generated based on the End User Credentials/LOAS role of the user making the call.
2464 &quot;lockHolderEmail&quot;: &quot;A String&quot;, # Optional. The edit lock holder&#x27;s email address. Generated based on the End User Credentials/LOAS role of the user making the call.
2465 &quot;name&quot;: &quot;A String&quot;, # Output only. Auto-generated primary key.
2466 &quot;testInputParameters&quot;: [ # Optional. Parameters that are expected to be passed to the test case when the test case is triggered. This gives the user the ability to provide default values. This should include all the output variables of the trigger as input variables.
2467 { # Integration Parameter is defined in the integration config and are used to provide information about data types of the expected parameters and provide any default values if needed. They can also be used to add custom attributes. These are static in nature and should not be used for dynamic event definition.
2468 &quot;containsLargeData&quot;: True or False, # Indicates whether this variable contains large data and need to be uploaded to Cloud Storage.
2469 &quot;dataType&quot;: &quot;A String&quot;, # Type of the parameter.
2470 &quot;defaultValue&quot;: { # The type of the parameter. # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object.
2471 &quot;booleanArray&quot;: { # This message only contains a field of boolean array. # Boolean Array.
2472 &quot;booleanValues&quot;: [ # Boolean array.
2473 True or False,
2474 ],
2475 },
2476 &quot;booleanValue&quot;: True or False, # Boolean.
2477 &quot;doubleArray&quot;: { # This message only contains a field of double number array. # Double Number Array.
2478 &quot;doubleValues&quot;: [ # Double number array.
2479 3.14,
2480 ],
2481 },
2482 &quot;doubleValue&quot;: 3.14, # Double Number.
2483 &quot;intArray&quot;: { # This message only contains a field of integer array. # Integer Array.
2484 &quot;intValues&quot;: [ # Integer array.
2485 &quot;A String&quot;,
2486 ],
2487 },
2488 &quot;intValue&quot;: &quot;A String&quot;, # Integer.
2489 &quot;jsonValue&quot;: &quot;A String&quot;, # Json.
2490 &quot;stringArray&quot;: { # This message only contains a field of string array. # String Array.
2491 &quot;stringValues&quot;: [ # String array.
2492 &quot;A String&quot;,
2493 ],
2494 },
2495 &quot;stringValue&quot;: &quot;A String&quot;, # String.
2496 },
2497 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the parameter.
2498 &quot;displayName&quot;: &quot;A String&quot;, # The name (without prefix) to be displayed in the UI for this parameter. E.g. if the key is &quot;foo.bar.myName&quot;, then the name would be &quot;myName&quot;.
2499 &quot;inputOutputType&quot;: &quot;A String&quot;, # Specifies the input/output type for the parameter.
2500 &quot;isTransient&quot;: True or False, # Whether this parameter is a transient parameter.
2501 &quot;jsonSchema&quot;: &quot;A String&quot;, # This schema will be used to validate runtime JSON-typed values of this parameter.
2502 &quot;key&quot;: &quot;A String&quot;, # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition.
2503 &quot;masked&quot;: True or False, # True if this parameter should be masked in the logs
2504 &quot;producer&quot;: &quot;A String&quot;, # The identifier of the node (TaskConfig/TriggerConfig) this parameter was produced by, if it is a transient param or a copy of an input param.
2505 &quot;searchable&quot;: True or False, # Searchable in the execution log or not.
2506 },
2507 ],
2508 &quot;testTaskConfigs&quot;: [ # Optional. However, the test case doesn&#x27;t mock or assert anything without test_task_configs.
2509 { # The task mock configuration details and assertions for functional tests. Next available id: 6
2510 &quot;assertions&quot;: [ # Optional. List of conditions or expressions which should be evaluated to true unless there is a bug/problem in the integration. These are evaluated one the task execution is completed as per the mock strategy in test case
2511 { # An assertion which will check for a condition over task execution status or an expression for task output variables
2512 &quot;assertionStrategy&quot;: &quot;A String&quot;, # Optional. The type of assertion to perform.
2513 &quot;condition&quot;: &quot;A String&quot;, # Optional. Standard filter expression for ASSERT_CONDITION to succeed
2514 &quot;parameter&quot;: { # This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Next available id: 4 # Optional. Key-value pair for ASSERT_EQUALS, ASSERT_NOT_EQUALS, ASSERT_CONTAINS to succeed
2515 &quot;key&quot;: &quot;A String&quot;, # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition.
2516 &quot;masked&quot;: True or False, # True if this parameter should be masked in the logs
2517 &quot;value&quot;: { # The type of the parameter. # Values for the defined keys. Each value can either be string, int, double or any proto message.
2518 &quot;booleanArray&quot;: { # This message only contains a field of boolean array. # Boolean Array.
2519 &quot;booleanValues&quot;: [ # Boolean array.
2520 True or False,
2521 ],
2522 },
2523 &quot;booleanValue&quot;: True or False, # Boolean.
2524 &quot;doubleArray&quot;: { # This message only contains a field of double number array. # Double Number Array.
2525 &quot;doubleValues&quot;: [ # Double number array.
2526 3.14,
2527 ],
2528 },
2529 &quot;doubleValue&quot;: 3.14, # Double Number.
2530 &quot;intArray&quot;: { # This message only contains a field of integer array. # Integer Array.
2531 &quot;intValues&quot;: [ # Integer array.
2532 &quot;A String&quot;,
2533 ],
2534 },
2535 &quot;intValue&quot;: &quot;A String&quot;, # Integer.
2536 &quot;jsonValue&quot;: &quot;A String&quot;, # Json.
2537 &quot;stringArray&quot;: { # This message only contains a field of string array. # String Array.
2538 &quot;stringValues&quot;: [ # String array.
2539 &quot;A String&quot;,
2540 ],
2541 },
2542 &quot;stringValue&quot;: &quot;A String&quot;, # String.
2543 },
2544 },
2545 &quot;retryCount&quot;: 42, # Number of times given task should be retried in case of ASSERT_FAILED_EXECUTION
2546 },
2547 ],
2548 &quot;mockConfig&quot;: { # The configuration for mocking of a task during test execution Next available id: 4 # Optional. Defines how to mock the given task during test execution
2549 &quot;failedExecutions&quot;: &quot;A String&quot;, # Optional. Number of times the given task should fail for failure mock strategy
2550 &quot;mockStrategy&quot;: &quot;A String&quot;, # Mockstrategy defines how the particular task should be mocked during test execution
2551 &quot;parameters&quot;: [ # Optional. List of key-value pairs for specific mock strategy
2552 { # This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Next available id: 4
2553 &quot;key&quot;: &quot;A String&quot;, # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition.
2554 &quot;masked&quot;: True or False, # True if this parameter should be masked in the logs
2555 &quot;value&quot;: { # The type of the parameter. # Values for the defined keys. Each value can either be string, int, double or any proto message.
2556 &quot;booleanArray&quot;: { # This message only contains a field of boolean array. # Boolean Array.
2557 &quot;booleanValues&quot;: [ # Boolean array.
2558 True or False,
2559 ],
2560 },
2561 &quot;booleanValue&quot;: True or False, # Boolean.
2562 &quot;doubleArray&quot;: { # This message only contains a field of double number array. # Double Number Array.
2563 &quot;doubleValues&quot;: [ # Double number array.
2564 3.14,
2565 ],
2566 },
2567 &quot;doubleValue&quot;: 3.14, # Double Number.
2568 &quot;intArray&quot;: { # This message only contains a field of integer array. # Integer Array.
2569 &quot;intValues&quot;: [ # Integer array.
2570 &quot;A String&quot;,
2571 ],
2572 },
2573 &quot;intValue&quot;: &quot;A String&quot;, # Integer.
2574 &quot;jsonValue&quot;: &quot;A String&quot;, # Json.
2575 &quot;stringArray&quot;: { # This message only contains a field of string array. # String Array.
2576 &quot;stringValues&quot;: [ # String array.
2577 &quot;A String&quot;,
2578 ],
2579 },
2580 &quot;stringValue&quot;: &quot;A String&quot;, # String.
2581 },
2582 },
2583 ],
2584 },
2585 &quot;task&quot;: &quot;A String&quot;, # Required. This defines in the test case, the task name in integration which will be mocked by this test task config
2586 &quot;taskConfig&quot;: { # The task configuration details. This is not the implementation of Task. There might be multiple TaskConfigs for the same Task. # Optional. Auto-generated.
2587 &quot;conditionalFailurePolicies&quot;: { # Conditional task failur retry strategies # Optional. The list of conditional failure policies that will be applied to the task in order.
2588 &quot;defaultFailurePolicy&quot;: { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # The default failure policy to be applied if no conditional failure policy matches.
2589 &quot;condition&quot;: &quot;A String&quot;, # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy.
2590 &quot;intervalTime&quot;: &quot;A String&quot;, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff.
2591 &quot;maxRetries&quot;: 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed.
2592 &quot;retryStrategy&quot;: &quot;A String&quot;, # Defines what happens to the task upon failure.
2593 },
2594 &quot;failurePolicies&quot;: [ # The list of failure policies that will be applied to the task in order.
2595 { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied).
2596 &quot;condition&quot;: &quot;A String&quot;, # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy.
2597 &quot;intervalTime&quot;: &quot;A String&quot;, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff.
2598 &quot;maxRetries&quot;: 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed.
2599 &quot;retryStrategy&quot;: &quot;A String&quot;, # Defines what happens to the task upon failure.
2600 },
2601 ],
2602 },
2603 &quot;description&quot;: &quot;A String&quot;, # Optional. User-provided description intended to give additional business context about the task.
2604 &quot;displayName&quot;: &quot;A String&quot;, # Optional. User-provided label that is attached to this TaskConfig in the UI.
2605 &quot;errorCatcherId&quot;: &quot;A String&quot;, # Optional. Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task
2606 &quot;externalTaskType&quot;: &quot;A String&quot;, # Optional. External task type of the task
2607 &quot;failurePolicy&quot;: { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for asynchronous calls to Eventbus alone (Post To Queue, Schedule etc.).
2608 &quot;condition&quot;: &quot;A String&quot;, # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy.
2609 &quot;intervalTime&quot;: &quot;A String&quot;, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff.
2610 &quot;maxRetries&quot;: 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed.
2611 &quot;retryStrategy&quot;: &quot;A String&quot;, # Defines what happens to the task upon failure.
2612 },
2613 &quot;jsonValidationOption&quot;: &quot;A String&quot;, # Optional. If set, overrides the option configured in the Task implementation class.
2614 &quot;nextTasks&quot;: [ # Optional. The set of tasks that are next in line to be executed as per the execution graph defined for the parent event, specified by `event_config_id`. Each of these next tasks are executed only if the condition associated with them evaluates to true.
2615 { # The task that is next in line to be executed, if the condition specified evaluated to true.
2616 &quot;condition&quot;: &quot;A String&quot;, # Standard filter expression for this task to become an eligible next task.
2617 &quot;description&quot;: &quot;A String&quot;, # User-provided description intended to give additional business context about the task.
2618 &quot;displayName&quot;: &quot;A String&quot;, # User-provided label that is attached to this edge in the UI.
2619 &quot;taskConfigId&quot;: &quot;A String&quot;, # ID of the next task.
2620 &quot;taskId&quot;: &quot;A String&quot;, # Task number of the next task.
2621 },
2622 ],
2623 &quot;nextTasksExecutionPolicy&quot;: &quot;A String&quot;, # Optional. The policy dictating the execution of the next set of tasks for the current task.
2624 &quot;parameters&quot;: { # Optional. The customized parameters the user can pass to this task.
2625 &quot;a_key&quot;: { # This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Next available id: 4
2626 &quot;key&quot;: &quot;A String&quot;, # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition.
2627 &quot;masked&quot;: True or False, # True if this parameter should be masked in the logs
2628 &quot;value&quot;: { # The type of the parameter. # Values for the defined keys. Each value can either be string, int, double or any proto message.
2629 &quot;booleanArray&quot;: { # This message only contains a field of boolean array. # Boolean Array.
2630 &quot;booleanValues&quot;: [ # Boolean array.
2631 True or False,
2632 ],
2633 },
2634 &quot;booleanValue&quot;: True or False, # Boolean.
2635 &quot;doubleArray&quot;: { # This message only contains a field of double number array. # Double Number Array.
2636 &quot;doubleValues&quot;: [ # Double number array.
2637 3.14,
2638 ],
2639 },
2640 &quot;doubleValue&quot;: 3.14, # Double Number.
2641 &quot;intArray&quot;: { # This message only contains a field of integer array. # Integer Array.
2642 &quot;intValues&quot;: [ # Integer array.
2643 &quot;A String&quot;,
2644 ],
2645 },
2646 &quot;intValue&quot;: &quot;A String&quot;, # Integer.
2647 &quot;jsonValue&quot;: &quot;A String&quot;, # Json.
2648 &quot;stringArray&quot;: { # This message only contains a field of string array. # String Array.
2649 &quot;stringValues&quot;: [ # String array.
2650 &quot;A String&quot;,
2651 ],
2652 },
2653 &quot;stringValue&quot;: &quot;A String&quot;, # String.
2654 },
2655 },
2656 },
2657 &quot;position&quot;: { # Configuration detail of coordinate, it used for UI # Optional. Informs the front-end application where to draw this error catcher config on the UI.
2658 &quot;x&quot;: 42, # Required. X axis of the coordinate
2659 &quot;y&quot;: 42, # Required. Y axis of the coordinate
2660 },
2661 &quot;successPolicy&quot;: { # Policy that dictates the behavior for the task after it completes successfully. # Optional. Determines what action to take upon successful task completion.
2662 &quot;finalState&quot;: &quot;A String&quot;, # State to which the execution snapshot status will be set if the task succeeds.
2663 },
2664 &quot;synchronousCallFailurePolicy&quot;: { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for synchronous calls to Eventbus alone (Post).
2665 &quot;condition&quot;: &quot;A String&quot;, # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy.
2666 &quot;intervalTime&quot;: &quot;A String&quot;, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff.
2667 &quot;maxRetries&quot;: 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed.
2668 &quot;retryStrategy&quot;: &quot;A String&quot;, # Defines what happens to the task upon failure.
2669 },
2670 &quot;task&quot;: &quot;A String&quot;, # Optional. The name for the task.
2671 &quot;taskExecutionStrategy&quot;: &quot;A String&quot;, # Optional. The policy dictating the execution strategy of this task.
2672 &quot;taskId&quot;: &quot;A String&quot;, # Required. The identifier of this task within its parent event config, specified by the client. This should be unique among all the tasks belong to the same event config. We use this field as the identifier to find next tasks (via field `next_tasks.task_id`).
2673 &quot;taskTemplate&quot;: &quot;A String&quot;, # Optional. Used to define task-template name if task is of type task-template
2674 },
2675 &quot;taskNumber&quot;: &quot;A String&quot;, # Required. This defines in the test case, the task in integration which will be mocked by this test task config
2676 },
2677 ],
2678 &quot;triggerConfig&quot;: { # Configuration detail of a trigger. # Optional. Auto-generated.
2679 &quot;alertConfig&quot;: [ # Optional. An alert threshold configuration for the [trigger + client + integration] tuple. If these values are not specified in the trigger config, default values will be populated by the system. Note that there must be exactly one alert threshold configured per [client + trigger + integration] when published.
2680 { # Message to be used to configure custom alerting in the {@code EventConfig} protos for an event.
2681 &quot;aggregationPeriod&quot;: &quot;A String&quot;, # The period over which the metric value should be aggregated and evaluated. Format is , where integer should be a positive integer and unit should be one of (s,m,h,d,w) meaning (second, minute, hour, day, week). For an EXPECTED_MIN threshold, this aggregation_period must be lesser than 24 hours.
2682 &quot;alertThreshold&quot;: 42, # For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired.
2683 &quot;disableAlert&quot;: True or False, # Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this integration alert.
2684 &quot;displayName&quot;: &quot;A String&quot;, # Name of the alert. This will be displayed in the alert subject. If set, this name should be unique within the scope of the integration.
2685 &quot;durationThreshold&quot;: &quot;A String&quot;, # Should be specified only for *AVERAGE_DURATION and *PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger.
2686 &quot;metricType&quot;: &quot;A String&quot;, # The type of metric.
2687 &quot;onlyFinalAttempt&quot;: True or False, # For either events or tasks, depending on the type of alert, count only final attempts, not retries.
2688 &quot;thresholdType&quot;: &quot;A String&quot;, # The threshold type, whether lower(expected_min) or upper(expected_max), for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired.
2689 &quot;thresholdValue&quot;: { # The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. # The metric value, above or below which the alert should be triggered.
2690 &quot;absolute&quot;: &quot;A String&quot;, # Absolute value threshold.
2691 &quot;percentage&quot;: 42, # Percentage threshold.
2692 },
2693 },
2694 ],
2695 &quot;cloudSchedulerConfig&quot;: { # Cloud Scheduler Trigger configuration # Optional. Cloud Scheduler Trigger related metadata
2696 &quot;cronTab&quot;: &quot;A String&quot;, # Required. The cron tab of cloud scheduler trigger.
2697 &quot;errorMessage&quot;: &quot;A String&quot;, # Optional. When the job was deleted from Pantheon UI, error_message will be populated when Get/List integrations
2698 &quot;location&quot;: &quot;A String&quot;, # Required. The location where associated cloud scheduler job will be created
2699 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # Required. Service account used by Cloud Scheduler to trigger the integration at scheduled time
2700 },
2701 &quot;description&quot;: &quot;A String&quot;, # Optional. User-provided description intended to give additional business context about the task.
2702 &quot;errorCatcherId&quot;: &quot;A String&quot;, # Optional. Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task
2703 &quot;inputVariables&quot;: { # Variables names mapped to api trigger. # Optional. List of input variables for the api trigger.
2704 &quot;names&quot;: [ # Optional. List of variable names.
2705 &quot;A String&quot;,
2706 ],
2707 },
2708 &quot;label&quot;: &quot;A String&quot;, # Optional. The user created label for a particular trigger.
2709 &quot;nextTasksExecutionPolicy&quot;: &quot;A String&quot;, # Optional. Dictates how next tasks will be executed.
2710 &quot;outputVariables&quot;: { # Variables names mapped to api trigger. # Optional. List of output variables for the api trigger.
2711 &quot;names&quot;: [ # Optional. List of variable names.
2712 &quot;A String&quot;,
2713 ],
2714 },
2715 &quot;position&quot;: { # Configuration detail of coordinate, it used for UI # Optional. Informs the front-end application where to draw this error catcher config on the UI.
2716 &quot;x&quot;: 42, # Required. X axis of the coordinate
2717 &quot;y&quot;: 42, # Required. Y axis of the coordinate
2718 },
2719 &quot;properties&quot;: { # Optional. Configurable properties of the trigger, not to be confused with integration parameters. E.g. &quot;name&quot; is a property for API triggers and &quot;subscription&quot; is a property for Pub/sub triggers.
2720 &quot;a_key&quot;: &quot;A String&quot;,
2721 },
2722 &quot;startTasks&quot;: [ # Optional. Set of tasks numbers from where the integration execution is started by this trigger. If this is empty, then integration is executed with default start tasks. In the list of start tasks, none of two tasks can have direct ancestor-descendant relationships (i.e. in a same integration execution graph).
2723 { # The task that is next in line to be executed, if the condition specified evaluated to true.
2724 &quot;condition&quot;: &quot;A String&quot;, # Standard filter expression for this task to become an eligible next task.
2725 &quot;description&quot;: &quot;A String&quot;, # User-provided description intended to give additional business context about the task.
2726 &quot;displayName&quot;: &quot;A String&quot;, # User-provided label that is attached to this edge in the UI.
2727 &quot;taskConfigId&quot;: &quot;A String&quot;, # ID of the next task.
2728 &quot;taskId&quot;: &quot;A String&quot;, # Task number of the next task.
2729 },
2730 ],
2731 &quot;trigger&quot;: &quot;A String&quot;, # Optional. Name of the trigger. Example: &quot;API Trigger&quot;, &quot;Cloud Pub Sub Trigger&quot; When set will be sent out to monitoring dashabord for tracking purpose.
2732 &quot;triggerId&quot;: &quot;A String&quot;, # Optional. Auto-generated trigger ID. The ID is based on the properties that you define in the trigger config. For example, for an API trigger, the trigger ID follows the format: api_trigger/TRIGGER_NAME Where trigger config has properties with value {&quot;Trigger name&quot;: TRIGGER_NAME}
2733 &quot;triggerNumber&quot;: &quot;A String&quot;, # Required. A number to uniquely identify each trigger config within the integration on UI.
2734 &quot;triggerType&quot;: &quot;A String&quot;, # Optional. Type of trigger
2735 },
2736 &quot;triggerId&quot;: &quot;A String&quot;, # Required. This defines the trigger ID in workflow which is considered to be executed as starting point of the test case
2737 &quot;updateTime&quot;: &quot;A String&quot;, # Auto-generated.
2738 },
2739 }</pre>
2740 </div>
2741
2742 </body></html>