PatchModelOperation

class oci.ai_document.models.PatchModelOperation(**kwargs)

Bases: object

The metadata which can be edited after model creation.

Attributes

OPERATION_ADD A constant which can be used with the operation property of a PatchModelOperation.
OPERATION_DELETE A constant which can be used with the operation property of a PatchModelOperation.
OPERATION_REPLACE A constant which can be used with the operation property of a PatchModelOperation.
operation Gets the operation of this PatchModelOperation.
path Gets the path of this PatchModelOperation.
value Gets the value of this PatchModelOperation.

Methods

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

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

OPERATION_DELETE = 'DELETE'

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

OPERATION_REPLACE = 'REPLACE'

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

__init__(**kwargs)

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

Parameters:
  • path (str) – The value to assign to the path property of this PatchModelOperation.
  • value (str) – The value to assign to the value property of this PatchModelOperation.
  • operation (str) – The value to assign to the operation property of this PatchModelOperation. Allowed values for this property are: “DELETE”, “ADD”, “REPLACE”
operation

Gets the operation of this PatchModelOperation. The value of the parameter to be updated.

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

Returns:The operation of this PatchModelOperation.
Return type:str
path

Gets the path of this PatchModelOperation. The parameter of the resource to be changed.

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

Gets the value of this PatchModelOperation. The value of the parameter to be updated.

Returns:The value of this PatchModelOperation.
Return type:str