BulkActionResource

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

Bases: object

The bulk action resource entity.

Methods

__init__(**kwargs) Initializes a new BulkActionResource object with values from keyword arguments.

Attributes

entity_type [Required] Gets the entity_type of this BulkActionResource.
identifier [Required] Gets the identifier of this BulkActionResource.
metadata Gets the metadata of this BulkActionResource.
__init__(**kwargs)

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

Parameters:
  • identifier (str) – The value to assign to the identifier property of this BulkActionResource.
  • entity_type (str) – The value to assign to the entity_type property of this BulkActionResource.
  • metadata (dict(str, str)) – The value to assign to the metadata property of this BulkActionResource.
entity_type

[Required] Gets the entity_type of this BulkActionResource. The resource-type. To get the list of supported resource-types use list_bulk_action_resource_types().

Returns:The entity_type of this BulkActionResource.
Return type:str
identifier

[Required] Gets the identifier of this BulkActionResource. The resource OCID.

Returns:The identifier of this BulkActionResource.
Return type:str
metadata

Gets the metadata of this BulkActionResource. Additional information that helps to identity the resource for bulk action.

The APIs to delete and move most resource types only require the resource identifier (ocid). But some resource-types require additional identifying information.

This information is provided in the resource’s public API document. It is also available through the list_bulk_action_resource_types().

Example: The APIs to delete or move the buckets resource-type require namespaceName and bucketName to identify the resource, as shown in the APIs, delete_bucket() and update_bucket().

To add a bucket for bulk actions, specify namespaceName and bucketName in the metadata property as shown in this example

{

“identifier”: “<OCID_of_bucket>” “entityType”: “bucket”, “metadata”: {

“namespaceName”: “sampleNamespace”, “bucketName”: “sampleBucket”

}

}

Returns:The metadata of this BulkActionResource.
Return type:dict(str, str)