Resource

class oci.resource_scheduler.models.Resource(**kwargs)

Bases: object

This is the schedule resource entity.

Methods

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

Attributes

id [Required] Gets the id of this Resource.
metadata Gets the metadata of this Resource.
__init__(**kwargs)

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

Parameters:
  • id (str) – The value to assign to the id property of this Resource.
  • metadata (dict(str, str)) – The value to assign to the metadata property of this Resource.
id

[Required] Gets the id of this Resource. This is the resource OCID.

Returns:The id of this Resource.
Return type:str
metadata

Gets the metadata of this Resource. This is additional information that helps to identity the resource for the schedule.

{

“id”: “<OCID_of_bucket>” “metadata”: {

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

}

}

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