You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
help='Creates or updates an entity using OpenAPI. If the YAML refers to an entity that already exists (as referenced by the x-cortex-tag), this API will merge the specified changes into the existing entity.')
1168
+
add_argument_file(sp, 'File containing openapi descriptor for entity')
1169
+
sp.add_argument(
1170
+
'-m',
1171
+
'--delete-marker-value',
1172
+
dest='deleteMarkerValue',
1173
+
help='Delete keys with this value from the merged yaml, e.g. __delete__, if any values match this, they will not be included in merged YAML. For example my_value: __delete__ will remove my_value from the merged YAML.',
1174
+
required=False,
1175
+
default="__delete__",
1176
+
metavar=''
1177
+
)
1178
+
sp.add_argument(
1179
+
'-d',
1180
+
'--dry-run',
1181
+
dest="dryRun",
1182
+
help='When true, this endpoint only validates the descriptor contents and returns any errors or warnings.',
1183
+
action='store_true',
1184
+
default='false'
1185
+
)
1186
+
sp.add_argument(
1187
+
'-a',
1188
+
'--append-arrays',
1189
+
dest="appendArrays",
1190
+
help='Default merge behavior is to replace arrays, set this to true to append arrays instead. For simple types, duplicate values will be removed from the merged array',
1191
+
action='store_true',
1192
+
default='false'
1193
+
)
1194
+
sp.add_argument(
1195
+
'-n',
1196
+
'--fail-if-entity-does-not-exist',
1197
+
dest="failIfEntityDoesNotExist",
1198
+
help='Default behavior is to upsert the entity, if set command will fail (404) if the entity specified in x-cortex-tag does not exist.',
0 commit comments