peak-sdk 1.9.0__py3-none-any.whl → 1.11.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- peak/_version.py +1 -1
- peak/cli/press/blocks/specs.py +252 -7
- peak/cli/resources/workflows.py +320 -18
- peak/press/blocks.py +305 -1
- peak/resources/workflows.py +476 -8
- peak/sample_yaml/press/blocks/specs/workflow/create_block_spec.yaml +49 -1
- peak/sample_yaml/press/blocks/specs/workflow/create_block_spec_release.yaml +49 -1
- peak/sample_yaml/resources/images/dockerfile/create_image.yaml +2 -2
- peak/sample_yaml/resources/images/dockerfile/create_image_version.yaml +1 -1
- peak/sample_yaml/resources/images/dockerfile/update_version.yaml +1 -1
- peak/sample_yaml/resources/images/github/create_image.yaml +1 -1
- peak/sample_yaml/resources/images/github/create_image_version.yaml +1 -1
- peak/sample_yaml/resources/images/github/update_version.yaml +1 -1
- peak/sample_yaml/resources/images/upload/create_image.yaml +3 -3
- peak/sample_yaml/resources/images/upload/create_image_version.yaml +4 -4
- peak/sample_yaml/resources/images/upload/create_or_update_image.yaml +4 -4
- peak/sample_yaml/resources/images/upload/update_version.yaml +4 -4
- peak/sample_yaml/resources/services/test_service.yaml +1 -1
- peak/sample_yaml/resources/workflows/create_or_update_workflow.yaml +36 -3
- peak/sample_yaml/resources/workflows/create_workflow.yaml +33 -4
- peak/sample_yaml/resources/workflows/patch_workflow.yaml +16 -4
- peak/sample_yaml/resources/workflows/update_workflow.yaml +35 -2
- peak/sample_yaml/resources/workflows/workflow_auto_retry.yaml +59 -12
- peak/sample_yaml/resources/workflows/workflow_execution_parameters.yaml +75 -10
- peak/sample_yaml/resources/workflows/workflow_input_parameters.yaml +42 -2
- peak/sample_yaml/resources/workflows/workflow_input_parameters_inherit.yaml +64 -0
- peak/sample_yaml/resources/workflows/workflow_output_parameters.yaml +20 -3
- peak/sample_yaml/resources/workflows/workflow_skippable_steps.yaml +45 -12
- {peak_sdk-1.9.0.dist-info → peak_sdk-1.11.0.dist-info}/METADATA +1 -1
- {peak_sdk-1.9.0.dist-info → peak_sdk-1.11.0.dist-info}/RECORD +33 -32
- {peak_sdk-1.9.0.dist-info → peak_sdk-1.11.0.dist-info}/LICENSE +0 -0
- {peak_sdk-1.9.0.dist-info → peak_sdk-1.11.0.dist-info}/WHEEL +0 -0
- {peak_sdk-1.9.0.dist-info → peak_sdk-1.11.0.dist-info}/entry_points.txt +0 -0
peak/_version.py
CHANGED
peak/cli/press/blocks/specs.py
CHANGED
@@ -127,7 +127,8 @@ def create(
|
|
127
127
|
release (map):
|
128
128
|
version (string): A valid semantic release version of the spec.
|
129
129
|
notes (string | required: false): Notes for the release version.
|
130
|
-
|
130
|
+
# Workflow Block
|
131
|
+
config (map):
|
131
132
|
images(map | required: false):
|
132
133
|
image-name (map): Dictionary containing the image configuration. Here the key is name of the image.
|
133
134
|
version (string | required: false): A valid semantic image version.
|
@@ -138,6 +139,7 @@ def create(
|
|
138
139
|
secrets (list(str)) | required: false): List of secret names to be passed.
|
139
140
|
steps (map | required: false):
|
140
141
|
<stepName> (map): Dictionary containing the step configuration. Here the key is name of the step.
|
142
|
+
# Standard Step
|
141
143
|
image: (map | required: false):
|
142
144
|
version (string | required: false): A valid semantic image version.
|
143
145
|
dockerfile (string | required: false): Path to the Dockerfile inside artifact.
|
@@ -149,7 +151,7 @@ def create(
|
|
149
151
|
id (int): ID of the existing image.
|
150
152
|
versionId: (int): ID of the existing image version.
|
151
153
|
imageRef (string | required: false): Name of the image defined above.
|
152
|
-
type (string | required: false): Type of workflow step.
|
154
|
+
type (string | required: false): Type of workflow step. This should be 'standard' for a Standard Step which is the default value.
|
153
155
|
command (string): Command to run when step is executed.
|
154
156
|
clearImageCache (boolean | required: false): Whether to clear image cache on workflow execution.
|
155
157
|
stepTimeout (int | required: false): Time after which the step timeouts.
|
@@ -164,6 +166,125 @@ def create(
|
|
164
166
|
resources (map | required: false):
|
165
167
|
instanceTypeId (int): ID of the instance type to be used in the step.
|
166
168
|
storage (string): Storage in GB. For example, "10GB".
|
169
|
+
outputParameters (map | required: false):
|
170
|
+
<keyName> (string | required: false): Represents a key-value pair where the key is the parameter name, and the value is the file name where the output is stored.
|
171
|
+
executionParameters (map | required: false):
|
172
|
+
conditional (list(map) | required: false): # List of conditions to be evaluated based on the output params of the parent steps.
|
173
|
+
- condition (string): The evaluation condition, either 'equals' or 'not-equals'.
|
174
|
+
paramName (string): Name of the output parameter to be evaluated.
|
175
|
+
stepName (string): Name of the step containing the output parameter.
|
176
|
+
value (string): Value to be compared with the output parameter.
|
177
|
+
parentStatus (list(map) | required: false): # List of conditions to be evaluated based on the status of the parent steps.
|
178
|
+
- condition (string): The evaluation condition, either 'all-of' or 'one-of'.
|
179
|
+
parents (list(str)): List of parent step names.
|
180
|
+
status (list(str)): List of parent step statuses, with valid values being 'success' and 'failure'.
|
181
|
+
runConfiguration (map | required: false):
|
182
|
+
retryOptions (map | required: false): # Step level retry options which will override the workflow level retry options.
|
183
|
+
duration (int | required: false): Duration in seconds after which the step is retried if it fails. Default is 5 seconds and maximum is 120 seconds.
|
184
|
+
exitCodes (list(int) | required: false): List of exit codes for which the step is retried. If not provided, the step is retried for all exit codes.
|
185
|
+
exponentialBackoff (boolean | required: false): Whether to use exponential backoff for retrying the step. If provided as true, the factor used will be 2.
|
186
|
+
numberOfRetries (int | required: false): Number of times the step should be retried. Default is 3 and maximum is 5.
|
187
|
+
skipConfiguration (map | required: false):
|
188
|
+
skip (boolean | required: false): Indicates whether to skip the step. Default is false.
|
189
|
+
skipDAG (boolean | required: false): Indicates whether to skip dependent steps, including the current step. Default is false.
|
190
|
+
# HTTP Step
|
191
|
+
type (string | required: false): Type of workflow step. This should be 'http' for a HTTP Step.
|
192
|
+
method (string | required: true): The HTTP method to be used for the API call. Should be one of - get, post, put, patch, and delete
|
193
|
+
url (string | required: true): The URL to make the HTTP API call to.
|
194
|
+
payload (string | required: false): Stringified JSON payload to be sent in case of non-get requests.
|
195
|
+
headers (map | required: false):
|
196
|
+
absolute (map | required: false): Key-Value pair where key is the name of the header and value is the value of the header.
|
197
|
+
secrets (map | required: false): Key-Value pair where key is the name of the header and value is the name of the secret to get the value from.
|
198
|
+
auth (map | required: false):
|
199
|
+
type (string | required: true): The type of authentication to use. Should be one of - no-auth, oauth, basic, api-key, and bearer-token.
|
200
|
+
clientId (string | required: false): The Client ID used to get the access token in case of OAuth. Value should be the name of a secret. Required when type is oauth.
|
201
|
+
clientSecret (string | required: false): The Client Secret used to get the access token in case of OAuth. Value should be the name of a secret. Required when type is oauth.
|
202
|
+
authUrl (string | required: false): The URL that is hit to get the access token in case of OAuth. Required when type is oauth.
|
203
|
+
username (string | required: false): The username used for basic authentication. Required when type is basic.
|
204
|
+
password (string | required: false): The password used for basic authentication. Value should be the name of a secret. Required when type is basic.
|
205
|
+
apiKey (string | required: false): The API Key used for authentication. Value should be the name of a secret. Required when type is api-key.
|
206
|
+
bearerToken (string | required: false): The bearer token used for authentication. Value should be the name of a secret. Required when type is bearer-token.
|
207
|
+
parameters (map | required: false):
|
208
|
+
env (map | required: false): Key-Value pair where key is the name of the env.
|
209
|
+
inherit (map | required: false): Key-Value pair where key is the name of the env and value is the name of the output parameter.
|
210
|
+
secrets (list(str) | required: false): List of secret names to be passed.
|
211
|
+
outputParameters (map | required: false):
|
212
|
+
<keyName> (string | required: false): Represents a key-value pair where the key is the parameter name. Note that in case of HTTP step, value should always be "response.txt", otherwise this parameter would be rejected.
|
213
|
+
executionParameters (map | required: false):
|
214
|
+
conditional (list(map) | required: false): # List of conditions to be evaluated based on the output params of the parent steps.
|
215
|
+
- condition (string): The evaluation condition, either 'equals' or 'not-equals'.
|
216
|
+
paramName (string): Name of the output parameter to be evaluated.
|
217
|
+
stepName (string): Name of the step containing the output parameter.
|
218
|
+
value (string): Value to be compared with the output parameter.
|
219
|
+
parentStatus (list(map) | required: false): # List of conditions to be evaluated based on the status of the parent steps.
|
220
|
+
- condition (string): The evaluation condition, either 'all-of' or 'one-of'.
|
221
|
+
parents (list(str)): List of parent step names.
|
222
|
+
status (list(str)): List of parent step statuses, with valid values being 'success' and 'failure'.
|
223
|
+
runConfiguration (map | required: false):
|
224
|
+
retryOptions (map | required: false): # Step level retry options which will override the workflow level retry options.
|
225
|
+
duration (int | required: false): Duration in seconds after which the step is retried if it fails. Default is 5 seconds and maximum is 120 seconds.
|
226
|
+
exitCodes (list(int) | required: false): List of exit codes for which the step is retried. If not provided, the step is retried for all exit codes.
|
227
|
+
exponentialBackoff (boolean | required: false): Whether to use exponential backoff for retrying the step. If provided as true, the factor used will be 2.
|
228
|
+
numberOfRetries (int | required: false): Number of times the step should be retried. Default is 3 and maximum is 5.
|
229
|
+
skipConfiguration (map | required: false):
|
230
|
+
skip (boolean | required: false): Indicates whether to skip the step. Default is false.
|
231
|
+
skipDAG (boolean | required: false): Indicates whether to skip dependent steps, including the current step. Default is false.
|
232
|
+
# Export Step
|
233
|
+
type (string | required: true): Type of workflow step. This should be 'export' for a export Step.
|
234
|
+
schema (string | required: true): Schema from which the data is to be exported.
|
235
|
+
table (string | required: true): Table from which the data is to be exported.
|
236
|
+
sortBy (string | required: true): Column name by which the data is to be sorted.
|
237
|
+
sortOrder (string | required: false): Order in which the data is to be sorted. Should be one of - asc, desc. Default is asc.
|
238
|
+
compression (boolean | required: false): Whether to compress the files to '.gz' format while exporting. Default is false.
|
239
|
+
executionParameters (map | required: false):
|
240
|
+
conditional (list(map) | required: false): # List of conditions to be evaluated based on the output params of the parent steps.
|
241
|
+
- condition (string): The evaluation condition, either 'equals' or 'not-equals'.
|
242
|
+
paramName (string): Name of the output parameter to be evaluated.
|
243
|
+
stepName (string): Name of the step containing the output parameter.
|
244
|
+
value (string): Value to be compared with the output parameter.
|
245
|
+
parentStatus (list(map) | required: false): # List of conditions to be evaluated based on the status of the parent steps.
|
246
|
+
- condition (string): The evaluation condition, either 'all-of' or 'one-of'.
|
247
|
+
parents (list(str)): List of parent step names.
|
248
|
+
status (list(str)): List of parent step statuses, with valid values being 'success' and 'failure'.
|
249
|
+
runConfiguration (map | required: false):
|
250
|
+
retryOptions (map | required: false): # Step level retry options which will override the workflow level retry options.
|
251
|
+
duration (int | required: false): Duration in seconds after which the step is retried if it fails. Default is 5 seconds and maximum is 120 seconds.
|
252
|
+
exitCodes (list(int) | required: false): List of exit codes for which the step is retried. If not provided, the step is retried for all exit codes.
|
253
|
+
exponentialBackoff (boolean | required: false): Whether to use exponential backoff for retrying the step. If provided as true, the factor used will be 2.
|
254
|
+
numberOfRetries (int | required: false): Number of times the step should be retried. Default is 3 and maximum is 5.
|
255
|
+
skipConfiguration (map | required: false):
|
256
|
+
skip (boolean | required: false): Indicates whether to skip the step. Default is false.
|
257
|
+
skipDAG (boolean | required: false): Indicates whether to skip dependent steps, including the current step. Default is false.
|
258
|
+
# SQL Step
|
259
|
+
type (string | required: true): Type of workflow step. This should be 'sql' for a sql Step.
|
260
|
+
sqlQueryPath (string | required: false): Path to the SQL query file. One of the 'sqlQueryPath' or 'repository' is required.
|
261
|
+
repository (map | required: false):
|
262
|
+
branch (string | required: true): Branch of the repository containing the required files.
|
263
|
+
token (string | required: false): The token to be used to clone the repository.
|
264
|
+
url (string | required: true): URL of the repository.
|
265
|
+
filePath (string | required: true): Path to the file containing the SQL query.
|
266
|
+
parameters (map | required: false):
|
267
|
+
env (map | required: false): Key-Value pair where key is the name of the env.
|
268
|
+
inherit (map | required: false): Key-Value pair where key is the name of the env and value is the name of the output parameter.
|
269
|
+
executionParameters (map | required: false):
|
270
|
+
conditional (list(map) | required: false): # List of conditions to be evaluated based on the output params of the parent steps.
|
271
|
+
- condition (string): The evaluation condition, either 'equals' or 'not-equals'.
|
272
|
+
paramName (string): Name of the output parameter to be evaluated.
|
273
|
+
stepName (string): Name of the step containing the output parameter.
|
274
|
+
value (string): Value to be compared with the output parameter.
|
275
|
+
parentStatus (list(map) | required: false): # List of conditions to be evaluated based on the status of the parent steps.
|
276
|
+
- condition (string): The evaluation condition, either 'all-of' or 'one-of'.
|
277
|
+
parents (list(str)): List of parent step names.
|
278
|
+
status (list(str)): List of parent step statuses, with valid values being 'success' and 'failure'.
|
279
|
+
runConfiguration (map | required: false):
|
280
|
+
retryOptions (map | required: false): # Step level retry options which will override the workflow level retry options.
|
281
|
+
duration (int | required: false): Duration in seconds after which the step is retried if it fails. Default is 5 seconds and maximum is 120 seconds.
|
282
|
+
exitCodes (list(int) | required: false): List of exit codes for which the step is retried. If not provided, the step is retried for all exit codes.
|
283
|
+
exponentialBackoff (boolean | required: false): Whether to use exponential backoff for retrying the step. If provided as true, the factor used will be 2.
|
284
|
+
numberOfRetries (int | required: false): Number of times the step should be retried. Default is 3 and maximum is 5.
|
285
|
+
skipConfiguration (map | required: false):
|
286
|
+
skip (boolean | required: false): Indicates whether to skip the step. Default is false.
|
287
|
+
skipDAG (boolean | required: false): Indicates whether to skip dependent steps, including the current step. Default is false.
|
167
288
|
triggers (list(map)):
|
168
289
|
- cron (string | required: false): A valid cron expression.
|
169
290
|
webhook (boolean | required: false): Should be true if webhook type trigger is to be used.
|
@@ -190,7 +311,8 @@ def create(
|
|
190
311
|
name (string): Name of the email watcher.
|
191
312
|
recipients (map):
|
192
313
|
to (list(str)): List of email addresses to send the email to. Email can be sent only to the users who are added in the tenant.
|
193
|
-
|
314
|
+
# Service Block
|
315
|
+
config (map): # One of "image" or "imageDetails" is required.
|
194
316
|
serviceType (string): Type of the service. Should be one of "web-app" or "api". It is "web-app" by default.
|
195
317
|
image (map | required: false):
|
196
318
|
version (string | required: false): A valid semantic image version.
|
@@ -422,7 +544,8 @@ def create_release(
|
|
422
544
|
release (map):
|
423
545
|
version (string): A valid semantic release version of the spec. Must be greater than previous release version.
|
424
546
|
notes (string | required: false): Notes for the release version.
|
425
|
-
|
547
|
+
# Workflow Block
|
548
|
+
config (map):
|
426
549
|
images(map | required: false):
|
427
550
|
image-name(map): Dictionary containing the image configuration. Here the key is name of the image.
|
428
551
|
version (string | required: false): A valid semantic image version.
|
@@ -432,7 +555,8 @@ def create_release(
|
|
432
555
|
buildArguments (map | required: false): Dictionary containing build args. Here the key is the name of the arg and value is the value of the arg.
|
433
556
|
secrets (list(str)) | required: false): List of secret names to be passed.
|
434
557
|
steps(map | required: false):
|
435
|
-
<stepName> (map): Dictionary containing the step configuration. Here the key is name of the step.
|
558
|
+
<stepName> (map): # Dictionary containing the step configuration. Here the key is name of the step.
|
559
|
+
# Standard Step
|
436
560
|
image: (map | required: false):
|
437
561
|
version (string | required: false): A valid semantic image version.
|
438
562
|
dockerfile (string | required: false): Path to the Dockerfile inside artifact.
|
@@ -444,13 +568,16 @@ def create_release(
|
|
444
568
|
id (int): ID of the existing image.
|
445
569
|
versionId: (int): ID of the existing image version.
|
446
570
|
imageRef (string | required: false): Name of the image defined above.
|
447
|
-
type (string | required: false): Type of workflow step.
|
571
|
+
type (string | required: false): Type of workflow step. This should be 'standard' for a Standard Step which is the default value.
|
448
572
|
command (string): Command to run when step is executed.
|
449
573
|
clearImageCache (boolean | required: false): Whether to clear image cache on workflow execution.
|
450
574
|
stepTimeout (int | required: false): Time after which the step timeouts.
|
451
575
|
parameters (map | required: false):
|
452
576
|
env (map | required: false): Key-Value pair where key is the name of the env.
|
577
|
+
inherit (map | required: false): Key-Value pair where key is the name of the env and value is the name of the output parameter.
|
453
578
|
secrets (list(str) | required: false): List of secret names to be passed.
|
579
|
+
outputParameters (map | required: false):
|
580
|
+
<keyName> (string | required: false): Represents a key-value pair where the key is the parameter name, and the value is the file name where the output is stored.
|
454
581
|
parents (list(str) | required: false): List containing names of steps on which this step is dependent on.
|
455
582
|
repository (map | required: false):
|
456
583
|
branch (string): Branch of the repository containing the required files.
|
@@ -459,6 +586,123 @@ def create_release(
|
|
459
586
|
resources (map | required: false):
|
460
587
|
instanceTypeId (int): ID of the instance type to be used in the step.
|
461
588
|
storage (string): Storage in GB. For example, "10GB".
|
589
|
+
executionParameters (map | required: false):
|
590
|
+
conditional (list(map) | required: false): # List of conditions to be evaluated based on the output params of the parent steps.
|
591
|
+
- condition (string): The evaluation condition, either 'equals' or 'not-equals'.
|
592
|
+
paramName (string): Name of the output parameter to be evaluated.
|
593
|
+
stepName (string): Name of the step containing the output parameter.
|
594
|
+
value (string): Value to be compared with the output parameter.
|
595
|
+
parentStatus (list(map) | required: false): # List of conditions to be evaluated based on the status of the parent steps.
|
596
|
+
- condition (string): The evaluation condition, either 'all-of' or 'one-of'.
|
597
|
+
parents (list(str)): List of parent step names.
|
598
|
+
status (list(str)): List of parent step statuses, with valid values being 'success' and 'failure'.
|
599
|
+
runConfiguration (map | required: false):
|
600
|
+
retryOptions (map | required: false): # Step level retry options which will override the workflow level retry options.
|
601
|
+
duration (int | required: false): Duration in seconds after which the step is retried if it fails. Default is 5 seconds and maximum is 120 seconds.
|
602
|
+
exitCodes (list(int) | required: false): List of exit codes for which the step is retried. If not provided, the step is retried for all exit codes.
|
603
|
+
exponentialBackoff (boolean | required: false): Whether to use exponential backoff for retrying the step. If provided as true, the factor used will be 2.
|
604
|
+
numberOfRetries (int | required: false): Number of times the step should be retried. Default is 3 and maximum is 5.
|
605
|
+
skipConfiguration (map | required: false):
|
606
|
+
skip (boolean | required: false): Indicates whether to skip the step. Default is false.
|
607
|
+
skipDAG (boolean | required: false): Indicates whether to skip dependent steps, including the current step. Default is false.
|
608
|
+
# HTTP Step
|
609
|
+
type (string | required: false): Type of workflow step. This should be 'http' for a HTTP Step.
|
610
|
+
method (string | required: true): The HTTP method to be used for the API call. Should be one of - get, post, put, patch, and delete
|
611
|
+
url (string | required: true): The URL to make the HTTP API call to.
|
612
|
+
payload (string | required: false): Stringified JSON payload to be sent in case of non-get requests.
|
613
|
+
headers (map | required: false):
|
614
|
+
absolute (map | required: false): Key-Value pair where key is the name of the header and value is the value of the header.
|
615
|
+
secrets (map | required: false): Key-Value pair where key is the name of the header and value is the name of the secret to get the value from.
|
616
|
+
auth (map | required: false):
|
617
|
+
type (string | required: true): The type of authentication to use. Should be one of - no-auth, oauth, basic, api-key, and bearer-token.
|
618
|
+
clientId (string | required: false): The Client ID used to get the access token in case of OAuth. Value should be the name of a secret. Required when type is oauth.
|
619
|
+
clientSecret (string | required: false): The Client Secret used to get the access token in case of OAuth. Value should be the name of a secret. Required when type is oauth.
|
620
|
+
authUrl (string | required: false): The URL that is hit to get the access token in case of OAuth. Required when type is oauth.
|
621
|
+
username (string | required: false): The username used for basic authentication. Required when type is basic.
|
622
|
+
password (string | required: false): The password used for basic authentication. Value should be the name of a secret. Required when type is basic.
|
623
|
+
apiKey (string | required: false): The API Key used for authentication. Value should be the name of a secret. Required when type is api-key.
|
624
|
+
bearerToken (string | required: false): The bearer token used for authentication. Value should be the name of a secret. Required when type is bearer-token.
|
625
|
+
parameters (map | required: false):
|
626
|
+
env (map | required: false): Key-Value pair where key is the name of the env.
|
627
|
+
inherit (map | required: false): Key-Value pair where key is the name of the env and value is the name of the output parameter.
|
628
|
+
secrets (list(str) | required: false): List of secret names to be passed.
|
629
|
+
outputParameters (map | required: false):
|
630
|
+
<keyName> (string | required: false): Represents a key-value pair where the key is the parameter name. Note that in case of HTTP step, value should always be "response.txt", otherwise this parameter would be rejected.
|
631
|
+
executionParameters (map | required: false):
|
632
|
+
conditional (list(map) | required: false): # List of conditions to be evaluated based on the output params of the parent steps.
|
633
|
+
- condition (string): The evaluation condition, either 'equals' or 'not-equals'.
|
634
|
+
paramName (string): Name of the output parameter to be evaluated.
|
635
|
+
stepName (string): Name of the step containing the output parameter.
|
636
|
+
value (string): Value to be compared with the output parameter.
|
637
|
+
parentStatus (list(map) | required: false): # List of conditions to be evaluated based on the status of the parent steps.
|
638
|
+
- condition (string): The evaluation condition, either 'all-of' or 'one-of'.
|
639
|
+
parents (list(str)): List of parent step names.
|
640
|
+
status (list(str)): List of parent step statuses, with valid values being 'success' and 'failure'.
|
641
|
+
runConfiguration (map | required: false):
|
642
|
+
retryOptions (map | required: false): # Step level retry options which will override the workflow level retry options.
|
643
|
+
duration (int | required: false): Duration in seconds after which the step is retried if it fails. Default is 5 seconds and maximum is 120 seconds.
|
644
|
+
exitCodes (list(int) | required: false): List of exit codes for which the step is retried. If not provided, the step is retried for all exit codes.
|
645
|
+
exponentialBackoff (boolean | required: false): Whether to use exponential backoff for retrying the step. If provided as true, the factor used will be 2.
|
646
|
+
numberOfRetries (int | required: false): Number of times the step should be retried. Default is 3 and maximum is 5.
|
647
|
+
skipConfiguration (map | required: false):
|
648
|
+
skip (boolean | required: false): Indicates whether to skip the step. Default is false.
|
649
|
+
skipDAG (boolean | required: false): Indicates whether to skip dependent steps, including the current step. Default is false.
|
650
|
+
# Export Step
|
651
|
+
type (string | required: true): Type of workflow step. This should be 'export' for a export Step.
|
652
|
+
schema (string | required: true): Schema from which the data is to be exported.
|
653
|
+
table (string | required: true): Table from which the data is to be exported.
|
654
|
+
sortBy (string | required: true): Column name by which the data is to be sorted.
|
655
|
+
sortOrder (string | required: false): Order in which the data is to be sorted. Should be one of - asc, desc. Default is asc.
|
656
|
+
compression (boolean | required: false): Whether to compress the files to '.gz' format while exporting. Default is false.
|
657
|
+
executionParameters (map | required: false):
|
658
|
+
conditional (list(map) | required: false): # List of conditions to be evaluated based on the output params of the parent steps.
|
659
|
+
- condition (string): The evaluation condition, either 'equals' or 'not-equals'.
|
660
|
+
paramName (string): Name of the output parameter to be evaluated.
|
661
|
+
stepName (string): Name of the step containing the output parameter.
|
662
|
+
value (string): Value to be compared with the output parameter.
|
663
|
+
parentStatus (list(map) | required: false): # List of conditions to be evaluated based on the status of the parent steps.
|
664
|
+
- condition (string): The evaluation condition, either 'all-of' or 'one-of'.
|
665
|
+
parents (list(str)): List of parent step names.
|
666
|
+
status (list(str)): List of parent step statuses, with valid values being 'success' and 'failure'.
|
667
|
+
runConfiguration (map | required: false):
|
668
|
+
retryOptions (map | required: false): # Step level retry options which will override the workflow level retry options.
|
669
|
+
duration (int | required: false): Duration in seconds after which the step is retried if it fails. Default is 5 seconds and maximum is 120 seconds.
|
670
|
+
exitCodes (list(int) | required: false): List of exit codes for which the step is retried. If not provided, the step is retried for all exit codes.
|
671
|
+
exponentialBackoff (boolean | required: false): Whether to use exponential backoff for retrying the step. If provided as true, the factor used will be 2.
|
672
|
+
numberOfRetries (int | required: false): Number of times the step should be retried. Default is 3 and maximum is 5.
|
673
|
+
skipConfiguration (map | required: false):
|
674
|
+
skip (boolean | required: false): Indicates whether to skip the step. Default is false.
|
675
|
+
skipDAG (boolean | required: false): Indicates whether to skip dependent steps, including the current step. Default is false.
|
676
|
+
# SQL Step
|
677
|
+
type (string | required: true): Type of workflow step. This should be 'sql' for a sql Step.
|
678
|
+
sqlQueryPath (string | required: false): Path to the SQL query file. One of the 'sqlQueryPath' or 'repository' is required.
|
679
|
+
repository (map | required: false):
|
680
|
+
branch (string | required: true): Branch of the repository containing the required files.
|
681
|
+
token (string | required: false): The token to be used to clone the repository.
|
682
|
+
url (string | required: true): URL of the repository.
|
683
|
+
filePath (string | required: true): Path to the file containing the SQL query.
|
684
|
+
parameters (map | required: false):
|
685
|
+
env (map | required: false): Key-Value pair where key is the name of the env.
|
686
|
+
inherit (map | required: false): Key-Value pair where key is the name of the env and value is the name of the output parameter.
|
687
|
+
executionParameters (map | required: false):
|
688
|
+
conditional (list(map) | required: false): # List of conditions to be evaluated based on the output params of the parent steps.
|
689
|
+
- condition (string): The evaluation condition, either 'equals' or 'not-equals'.
|
690
|
+
paramName (string): Name of the output parameter to be evaluated.
|
691
|
+
stepName (string): Name of the step containing the output parameter.
|
692
|
+
value (string): Value to be compared with the output parameter.
|
693
|
+
parentStatus (list(map) | required: false): # List of conditions to be evaluated based on the status of the parent steps.
|
694
|
+
- condition (string): The evaluation condition, either 'all-of' or 'one-of'.
|
695
|
+
parents (list(str)): List of parent step names.
|
696
|
+
status (list(str)): List of parent step statuses, with valid values being 'success' and 'failure'.
|
697
|
+
runConfiguration (map | required: false):
|
698
|
+
retryOptions (map | required: false): # Step level retry options which will override the workflow level retry options.
|
699
|
+
duration (int | required: false): Duration in seconds after which the step is retried if it fails. Default is 5 seconds and maximum is 120 seconds.
|
700
|
+
exitCodes (list(int) | required: false): List of exit codes for which the step is retried. If not provided, the step is retried for all exit codes.
|
701
|
+
exponentialBackoff (boolean | required: false): Whether to use exponential backoff for retrying the step. If provided as true, the factor used will be 2.
|
702
|
+
numberOfRetries (int | required: false): Number of times the step should be retried. Default is 3 and maximum is 5.
|
703
|
+
skipConfiguration (map | required: false):
|
704
|
+
skip (boolean | required: false): Indicates whether to skip the step. Default is false.
|
705
|
+
skipDAG (boolean | required: false): Indicates whether to skip dependent steps, including the current step. Default is false.
|
462
706
|
triggers (list(map)):
|
463
707
|
cron (string | required: false): A valid cron expression.
|
464
708
|
webhook (boolean | required: false): Should be true if webhook type trigger is to be used.
|
@@ -485,7 +729,8 @@ def create_release(
|
|
485
729
|
name (string): Name of the email watcher.
|
486
730
|
recipients (map):
|
487
731
|
to (list(str)): List of email addresses to send the email to. Email can be sent only to the users who are added in the tenant.
|
488
|
-
|
732
|
+
# Service Block
|
733
|
+
config (map): # One of "image" or "imageDetails" is required.
|
489
734
|
serviceType (string): Type of the service. Should be one of "web-app" or "api". It is "web-app" by default.
|
490
735
|
image (map | required: false):
|
491
736
|
version (string | required: false): A valid semantic image version.
|