BulkEditOperationDetails

class oci.identity.models.BulkEditOperationDetails(**kwargs)

Bases: object

BulkEditOperationDetails model.

Attributes:

OPERATION_TYPE_ADD_OR_SET

A constant which can be used with the operation_type property of a BulkEditOperationDetails.

OPERATION_TYPE_ADD_WHERE_ABSENT

A constant which can be used with the operation_type property of a BulkEditOperationDetails.

OPERATION_TYPE_REMOVE

A constant which can be used with the operation_type property of a BulkEditOperationDetails.

OPERATION_TYPE_SET_WHERE_PRESENT

A constant which can be used with the operation_type property of a BulkEditOperationDetails.

defined_tags

[Required] Gets the defined_tags of this BulkEditOperationDetails.

operation_type

[Required] Gets the operation_type of this BulkEditOperationDetails.

Methods:

__init__(**kwargs)

Initializes a new BulkEditOperationDetails object with values from keyword arguments.

OPERATION_TYPE_ADD_OR_SET = 'ADD_OR_SET'

A constant which can be used with the operation_type property of a BulkEditOperationDetails. This constant has a value of “ADD_OR_SET”

OPERATION_TYPE_ADD_WHERE_ABSENT = 'ADD_WHERE_ABSENT'

A constant which can be used with the operation_type property of a BulkEditOperationDetails. This constant has a value of “ADD_WHERE_ABSENT”

OPERATION_TYPE_REMOVE = 'REMOVE'

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

OPERATION_TYPE_SET_WHERE_PRESENT = 'SET_WHERE_PRESENT'

A constant which can be used with the operation_type property of a BulkEditOperationDetails. This constant has a value of “SET_WHERE_PRESENT”

__init__(**kwargs)

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

Parameters
  • operation_type (str) – The value to assign to the operation_type property of this BulkEditOperationDetails. Allowed values for this property are: “ADD_WHERE_ABSENT”, “SET_WHERE_PRESENT”, “ADD_OR_SET”, “REMOVE”

  • defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this BulkEditOperationDetails.

property defined_tags

[Required] Gets the defined_tags of this BulkEditOperationDetails. Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {“Operations”: {“CostCenter”: “42”}}

Returns

The defined_tags of this BulkEditOperationDetails.

Return type

dict(str, dict(str, object))

property operation_type

[Required] Gets the operation_type of this BulkEditOperationDetails. An enum-like description of the type of operation.

  • ADD_WHERE_ABSENT adds a defined tag only if the tag does not already exist on the resource.

  • SET_WHERE_PRESENT updates the value for a defined tag only if the tag is present on the resource.

  • ADD_OR_SET combines the first two operations to add a defined tag if it does not already exist on the resource

or update the value for a defined tag only if the tag is present on the resource. * REMOVE removes the defined tag from the resource. The tag is removed from the resource regardless of the tag value.

Allowed values for this property are: “ADD_WHERE_ABSENT”, “SET_WHERE_PRESENT”, “ADD_OR_SET”, “REMOVE”

Returns

The operation_type of this BulkEditOperationDetails.

Return type

str