PatchInsertMultipleInstruction

class oci.capacity_management.models.PatchInsertMultipleInstruction(**kwargs)

Bases: PatchInstruction

An operation that inserts multiple consecutive values into an array, shifting array items as necessary and handling NOT_FOUND exceptions by creating the implied containing structure.

Attributes:

OPERATION_INSERT

A constant which can be used with the operation property of a PatchInstruction.

OPERATION_MERGE

A constant which can be used with the operation property of a PatchInstruction.

OPERATION_MOVE

A constant which can be used with the operation property of a PatchInstruction.

OPERATION_PROHIBIT

A constant which can be used with the operation property of a PatchInstruction.

OPERATION_REMOVE

A constant which can be used with the operation property of a PatchInstruction.

OPERATION_REPLACE

A constant which can be used with the operation property of a PatchInstruction.

OPERATION_REQUIRE

A constant which can be used with the operation property of a PatchInstruction.

POSITION_AFTER

A constant which can be used with the position property of a PatchInsertMultipleInstruction.

POSITION_BEFORE

A constant which can be used with the position property of a PatchInsertMultipleInstruction.

operation

[Required] Gets the operation of this PatchInstruction.

position

Gets the position of this PatchInsertMultipleInstruction.

selected_item

Gets the selected_item of this PatchInsertMultipleInstruction.

selection

[Required] Gets the selection of this PatchInstruction.

values

[Required] Gets the values of this PatchInsertMultipleInstruction.

Methods:

__init__(**kwargs)

Initializes a new PatchInsertMultipleInstruction object with values from keyword arguments.

get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

OPERATION_INSERT = 'INSERT'

A constant which can be used with the operation property of a PatchInstruction. This constant has a value of “INSERT”

OPERATION_MERGE = 'MERGE'

A constant which can be used with the operation property of a PatchInstruction. This constant has a value of “MERGE”

OPERATION_MOVE = 'MOVE'

A constant which can be used with the operation property of a PatchInstruction. This constant has a value of “MOVE”

OPERATION_PROHIBIT = 'PROHIBIT'

A constant which can be used with the operation property of a PatchInstruction. This constant has a value of “PROHIBIT”

OPERATION_REMOVE = 'REMOVE'

A constant which can be used with the operation property of a PatchInstruction. This constant has a value of “REMOVE”

OPERATION_REPLACE = 'REPLACE'

A constant which can be used with the operation property of a PatchInstruction. This constant has a value of “REPLACE”

OPERATION_REQUIRE = 'REQUIRE'

A constant which can be used with the operation property of a PatchInstruction. This constant has a value of “REQUIRE”

POSITION_AFTER = 'AFTER'

A constant which can be used with the position property of a PatchInsertMultipleInstruction. This constant has a value of “AFTER”

POSITION_BEFORE = 'BEFORE'

A constant which can be used with the position property of a PatchInsertMultipleInstruction. This constant has a value of “BEFORE”

__init__(**kwargs)

Initializes a new PatchInsertMultipleInstruction object with values from keyword arguments. The default value of the operation attribute of this class is INSERT_MULTIPLE and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters
  • operation (str) – The value to assign to the operation property of this PatchInsertMultipleInstruction. Allowed values for this property are: “REQUIRE”, “PROHIBIT”, “REPLACE”, “INSERT”, “REMOVE”, “MOVE”, “MERGE”

  • selection (str) – The value to assign to the selection property of this PatchInsertMultipleInstruction.

  • values (list[object]) – The value to assign to the values property of this PatchInsertMultipleInstruction.

  • selected_item (str) – The value to assign to the selected_item property of this PatchInsertMultipleInstruction.

  • position (str) – The value to assign to the position property of this PatchInsertMultipleInstruction. Allowed values for this property are: “BEFORE”, “AFTER”

static get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

property operation

[Required] Gets the operation of this PatchInstruction. Allowed values for this property are: “REQUIRE”, “PROHIBIT”, “REPLACE”, “INSERT”, “REMOVE”, “MOVE”, “MERGE”

Returns

The operation of this PatchInstruction.

Return type

str

property position

Gets the position of this PatchInsertMultipleInstruction. Where to insert the values, relative to the first item matched by selectedItem. If selectedItem is unspecified, then “BEFORE” specifies insertion at the first position in an array and “AFTER” specifies insertion at the last position. If selectedItem is specified but results in an empty selection, then both values specify insertion at the last position.

Allowed values for this property are: “BEFORE”, “AFTER”

Returns

The position of this PatchInsertMultipleInstruction.

Return type

str

property selected_item

Gets the selected_item of this PatchInsertMultipleInstruction. A selection to be evaluated against the array for identifying a particular reference item within it, with the same format and semantics as selection.

Returns

The selected_item of this PatchInsertMultipleInstruction.

Return type

str

property selection

[Required] Gets the selection of this PatchInstruction. The set of values to which the operation applies as a JMESPath expression for evaluation against the context resource. An operation fails if the selection yields an exception, except as otherwise specified. Note that comparisons involving non-primitive values (objects or arrays) are not supported and will always evaluate to false.

Returns

The selection of this PatchInstruction.

Return type

str

property values

[Required] Gets the values of this PatchInsertMultipleInstruction. A list of consecutive values to be inserted into the target.

Returns

The values of this PatchInsertMultipleInstruction.

Return type

list[object]