Operations

class oci.identity_domains.models.Operations(**kwargs)

Bases: object

Each patch operation object MUST have exactly one “op” member, whose value indicates the operation to perform and MAY be one of “add”, “remove”, or “replace”. See Section 3.5.2 for details.

Attributes

OP_ADD A constant which can be used with the op property of a Operations.
OP_REMOVE A constant which can be used with the op property of a Operations.
OP_REPLACE A constant which can be used with the op property of a Operations.
op [Required] Gets the op of this Operations.
path [Required] Gets the path of this Operations.
value Gets the value of this Operations.

Methods

__init__(**kwargs) Initializes a new Operations object with values from keyword arguments.
OP_ADD = 'ADD'

A constant which can be used with the op property of a Operations. This constant has a value of “ADD”

OP_REMOVE = 'REMOVE'

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

OP_REPLACE = 'REPLACE'

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

__init__(**kwargs)

Initializes a new Operations object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • op (str) – The value to assign to the op property of this Operations. Allowed values for this property are: “ADD”, “REMOVE”, “REPLACE”
  • path (str) – The value to assign to the path property of this Operations.
  • value (object) – The value to assign to the value property of this Operations.
op

[Required] Gets the op of this Operations. Defines the operation to be performed for this Patch. If op=remove, value is not required.

Allowed values for this property are: “ADD”, “REMOVE”, “REPLACE”

Returns:The op of this Operations.
Return type:str
path

[Required] Gets the path of this Operations. String containing an attribute path describing the target of the operation. The “path” attribute is OPTIONAL for “add” and “replace” and is REQUIRED for “remove” operations. See Section 3.5.2 for details

Returns:The path of this Operations.
Return type:str
value

Gets the value of this Operations. The value could be either a simple value attribute e.g. string or number OR complex like map of the attributes to be added or replaced OR multivalues complex attributes.q1

Returns:The value of this Operations.
Return type:object