PrevalidatePayload

class oci.globally_distributed_database.models.PrevalidatePayload(**kwargs)

Bases: object

Payload required to run prevalidation operation for create sharded database or patch sharded database, based on operation selected.

Attributes

OPERATION_CREATE A constant which can be used with the operation property of a PrevalidatePayload.
OPERATION_PATCH A constant which can be used with the operation property of a PrevalidatePayload.
operation [Required] Gets the operation of this PrevalidatePayload.

Methods

__init__(**kwargs) Initializes a new PrevalidatePayload 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_CREATE = 'CREATE'

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

OPERATION_PATCH = 'PATCH'

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

__init__(**kwargs)

Initializes a new PrevalidatePayload object with values from keyword arguments. This class has the following subclasses and if you are using this class as input to a service operations then you should favor using a subclass over the base class:

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 PrevalidatePayload. Allowed values for this property are: “CREATE”, “PATCH”
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.

operation

[Required] Gets the operation of this PrevalidatePayload. The operation on sharded database that need to be pre-validated.

Allowed values for this property are: “CREATE”, “PATCH”

Returns:The operation of this PrevalidatePayload.
Return type:str