Resource¶
- class oci.resource_scheduler.models.Resource(**kwargs)¶
Bases:
objectThis is the schedule resource entity.
Methods:
__init__(**kwargs)Initializes a new Resource object with values from keyword arguments.
Attributes:
[Required] Gets the id of this Resource.
Gets the metadata of this Resource.
Gets the parameters 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.
parameters (list[oci.resource_scheduler.models.Parameter]) – The value to assign to the parameters property of this Resource.
- property id¶
[Required] Gets the id of this Resource. This is the resource OCID.
- Returns
The id of this Resource.
- Return type
str
- property 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)
- property parameters¶
Gets the parameters of this Resource. This is the user input parameters to use when acting on the resource.
- {
- “parameters”: [
- {
“parameterType”: “BODY”, “value”: {
“ip”: “192.168.44.44”, “memory”: “1024”, “synced_folders”: [
- {
“host_path”: “data/”, “guest_path”: “/var/www”, “type”: “default”
}
], “forwarded_ports”: []
}
}, {
“parameterType”: “PATH”, “value”: {
“compartmentId”: “ocid1.compartment.oc1..xxxxx”, “instanceId”: “ocid1.vcn.oc1..yyyy”
}
}, {
“parameterType”: “QUERY”, “value”: {
“limit”: “10”, “tenantId”: “ocid1.tenant.oc1..zzzz”
}
}, {
“parameterType”: “HEADER”, “value”: {
“token”: “xxxx”
}
}
]
}
- Returns
The parameters of this Resource.
- Return type