OdaClient¶
-
class
oci.oda.
OdaClient
(config, **kwargs)¶ API to create and maintain Oracle Digital Assistant service instances.
Methods
__init__
(config, **kwargs)Creates a new service client change_oda_instance_compartment
(…)Moves an Digital Assistant instance into a different compartment. create_oda_instance
(…)Starts an asynchronous job to create a Digital Assistant instance. create_oda_instance_attachment
(…)Starts an asynchronous job to create a Digital Assistant instance attachment. delete_oda_instance
(oda_instance_id, **kwargs)Starts an asynchronous job to delete the specified Digital Assistant instance. delete_oda_instance_attachment
(…)Starts an asynchronous job to delete the specified Digital Assistant instance attachment. get_oda_instance
(oda_instance_id, **kwargs)Gets the specified Digital Assistant instance. get_oda_instance_attachment
(oda_instance_id, …)Gets an ODA instance attachment by identifier get_work_request
(work_request_id, **kwargs)Gets information about the work request with the specified ID, including its status. list_oda_instance_attachments
(…)Returns a list of ODA instance attachments list_oda_instances
(compartment_id, **kwargs)Returns a page of Digital Assistant instances that belong to the specified compartment. list_work_request_errors
(work_request_id, …)Returns a page of errors for the specified work request. list_work_request_logs
(work_request_id, **kwargs)Returns a page of of log messages for a given work request. list_work_requests
(compartment_id, **kwargs)Returns a page of work requests for the specified compartment. start_oda_instance
(oda_instance_id, **kwargs)Starts an inactive Digital Assistant instance. stop_oda_instance
(oda_instance_id, **kwargs)Stops an active Digital Assistant instance. update_oda_instance
(oda_instance_id, …)Updates the specified Digital Assistant instance with the information in the request body. update_oda_instance_attachment
(…)Updates the ODA instance attachment -
__init__
(config, **kwargs)¶ Creates a new service client
Parameters: - config (dict) – Configuration keys and values as per SDK and Tool Configuration.
The
from_file()
method can be used to load configuration from a file. Alternatively, adict
can be passed. You can validate_config the dict usingvalidate_config()
- service_endpoint (str) – (optional)
The endpoint of the service to call using this client. For example
https://iaas.us-ashburn-1.oraclecloud.com
. If this keyword argument is not provided then it will be derived using the region in the config parameter. You should only provide this keyword argument if you have an explicit need to specify a service endpoint. - timeout (float or tuple(float, float)) – (optional) The connection and read timeouts for the client. The default values are connection timeout 10 seconds and read timeout 60 seconds. This keyword argument can be provided as a single float, in which case the value provided is used for both the read and connection timeouts, or as a tuple of two floats. If a tuple is provided then the first value is used as the connection timeout and the second value as the read timeout.
- signer (
AbstractBaseSigner
) –(optional) The signer to use when signing requests made by the service client. The default is to use a
Signer
based on the values provided in the config parameter.One use case for this parameter is for Instance Principals authentication by passing an instance of
InstancePrincipalsSecurityTokenSigner
as the value for this keyword argument - retry_strategy (obj) –
(optional) A retry strategy to apply to all calls made by this service client (i.e. at the client level). There is no retry strategy applied by default. Retry strategies can also be applied at the operation level by passing a
retry_strategy
keyword argument as part of calling the operation. Any value provided at the operation level will override whatever is specified at the client level.This should be one of the strategies available in the
retry
module. A convenienceDEFAULT_RETRY_STRATEGY
is also available. The specifics of the default retry strategy are described here. - circuit_breaker_strategy (obj) – (optional)
A circuit breaker strategy to apply to all calls made by this service client (i.e. at the client level).
This client uses
DEFAULT_CIRCUIT_BREAKER_STRATEGY
as default if no circuit breaker strategy is provided. The specifics of circuit breaker strategy are described here. - circuit_breaker_callback (function) – (optional) Callback function to receive any exceptions triggerred by the circuit breaker.
- client_level_realm_specific_endpoint_template_enabled (bool) – (optional) A boolean flag to indicate whether or not this client should be created with realm specific endpoint template enabled or disable. By default, this will be set as None.
- allow_control_chars – (optional) allow_control_chars is a boolean to indicate whether or not this client should allow control characters in the response object. By default, the client will not allow control characters to be in the response object.
- config (dict) – Configuration keys and values as per SDK and Tool Configuration.
The
-
change_oda_instance_compartment
(oda_instance_id, change_oda_instance_compartment_details, **kwargs)¶ Moves an Digital Assistant instance into a different compartment. When provided, If-Match is checked against ETag values of the resource.
Parameters: - oda_instance_id (str) – (required) Unique Digital Assistant instance identifier.
- change_oda_instance_compartment_details (oci.oda.models.ChangeOdaInstanceCompartmentDetails) – (required) The compartment to which the Digital Assistant instance should be moved.
- if_match (str) – (optional) For optimistic concurrency control in a PUT or DELETE call for a Digital Assistant instance, set the if-match query parameter to the value of the ETAG header from a previous GET or POST response for that instance. The service updates or deletes the instance only if the etag that you provide matches the instance’s current etag value.
- opc_request_id (str) – (optional) The client request ID for tracing. This value is included in the opc-request-id response header.
- opc_retry_token (str) –
(optional) A token that uniquely identifies a request so that you can retry the request if there’s a timeout or server error without the risk of executing that same action again.
Retry tokens expire after 24 hours, but they can become invalid before then if there are conflicting operations. For example, if an instance was deleted and purged from the system, then the service might reject a retry of the original creation request.
- retry_strategy (obj) –
(optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
This should be one of the strategies available in the
retry
module. This operation usesDEFAULT_RETRY_STRATEGY
as default if no retry strategy is provided. The specifics of the default retry strategy are described here.To have this operation explicitly not perform any retries, pass an instance of
NoneRetryStrategy
. - allow_control_chars (bool) – (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings
Returns: A
Response
object with data of type NoneReturn type: Example: Click here to see an example of how to use change_oda_instance_compartment API.
-
create_oda_instance
(create_oda_instance_details, **kwargs)¶ Starts an asynchronous job to create a Digital Assistant instance.
To monitor the status of the job, take the opc-work-request-id response header value and use it to call GET /workRequests/{workRequestId}.
Parameters: - create_oda_instance_details (oci.oda.models.CreateOdaInstanceDetails) – (required) Details for the new Digital Assistant instance.
- opc_request_id (str) – (optional) The client request ID for tracing. This value is included in the opc-request-id response header.
- opc_retry_token (str) –
(optional) A token that uniquely identifies a request so that you can retry the request if there’s a timeout or server error without the risk of executing that same action again.
Retry tokens expire after 24 hours, but they can become invalid before then if there are conflicting operations. For example, if an instance was deleted and purged from the system, then the service might reject a retry of the original creation request.
- retry_strategy (obj) –
(optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
This should be one of the strategies available in the
retry
module. This operation usesDEFAULT_RETRY_STRATEGY
as default if no retry strategy is provided. The specifics of the default retry strategy are described here.To have this operation explicitly not perform any retries, pass an instance of
NoneRetryStrategy
. - allow_control_chars (bool) – (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings
Returns: A
Response
object with data of typeOdaInstance
Return type: Example: Click here to see an example of how to use create_oda_instance API.
-
create_oda_instance_attachment
(oda_instance_id, create_oda_instance_attachment_details, **kwargs)¶ Starts an asynchronous job to create a Digital Assistant instance attachment.
To monitor the status of the job, take the opc-work-request-id response header value and use it to call GET /workRequests/{workRequestId}.
Parameters: - oda_instance_id (str) – (required) Unique Digital Assistant instance identifier.
- create_oda_instance_attachment_details (oci.oda.models.CreateOdaInstanceAttachmentDetails) – (required) Details for the new Digital Assistant instance attachment.
- opc_request_id (str) – (optional) The client request ID for tracing. This value is included in the opc-request-id response header.
- opc_retry_token (str) –
(optional) A token that uniquely identifies a request so that you can retry the request if there’s a timeout or server error without the risk of executing that same action again.
Retry tokens expire after 24 hours, but they can become invalid before then if there are conflicting operations. For example, if an instance was deleted and purged from the system, then the service might reject a retry of the original creation request.
- retry_strategy (obj) –
(optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
This should be one of the strategies available in the
retry
module. This operation usesDEFAULT_RETRY_STRATEGY
as default if no retry strategy is provided. The specifics of the default retry strategy are described here.To have this operation explicitly not perform any retries, pass an instance of
NoneRetryStrategy
. - allow_control_chars (bool) – (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings
Returns: A
Response
object with data of type NoneReturn type: Example: Click here to see an example of how to use create_oda_instance_attachment API.
-
delete_oda_instance
(oda_instance_id, **kwargs)¶ Starts an asynchronous job to delete the specified Digital Assistant instance. To monitor the status of the job, take the opc-work-request-id response header value and use it to call GET /workRequests/{workRequestId}.
Parameters: - oda_instance_id (str) – (required) Unique Digital Assistant instance identifier.
- retention_time (int) – (optional) Retain the ODA instance being deleted for the given number of days before hard-delete/purge.
- if_match (str) – (optional) For optimistic concurrency control in a PUT or DELETE call for a Digital Assistant instance, set the if-match query parameter to the value of the ETAG header from a previous GET or POST response for that instance. The service updates or deletes the instance only if the etag that you provide matches the instance’s current etag value.
- opc_request_id (str) – (optional) The client request ID for tracing. This value is included in the opc-request-id response header.
- retry_strategy (obj) –
(optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
This should be one of the strategies available in the
retry
module. This operation usesDEFAULT_RETRY_STRATEGY
as default if no retry strategy is provided. The specifics of the default retry strategy are described here.To have this operation explicitly not perform any retries, pass an instance of
NoneRetryStrategy
. - allow_control_chars (bool) – (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings
Returns: A
Response
object with data of type NoneReturn type: Example: Click here to see an example of how to use delete_oda_instance API.
-
delete_oda_instance_attachment
(oda_instance_id, attachment_id, **kwargs)¶ Starts an asynchronous job to delete the specified Digital Assistant instance attachment.
Parameters: - oda_instance_id (str) – (required) Unique Digital Assistant instance identifier.
- attachment_id (str) – (required) Unique Digital Assistant instance attachment identifier.
- if_match (str) – (optional) For optimistic concurrency control in a PUT or DELETE call for a Digital Assistant instance, set the if-match query parameter to the value of the ETAG header from a previous GET or POST response for that instance. The service updates or deletes the instance only if the etag that you provide matches the instance’s current etag value.
- opc_request_id (str) – (optional) The client request ID for tracing. This value is included in the opc-request-id response header.
- retry_strategy (obj) –
(optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
This should be one of the strategies available in the
retry
module. This operation usesDEFAULT_RETRY_STRATEGY
as default if no retry strategy is provided. The specifics of the default retry strategy are described here.To have this operation explicitly not perform any retries, pass an instance of
NoneRetryStrategy
. - allow_control_chars (bool) – (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings
Returns: A
Response
object with data of type NoneReturn type: Example: Click here to see an example of how to use delete_oda_instance_attachment API.
-
get_oda_instance
(oda_instance_id, **kwargs)¶ Gets the specified Digital Assistant instance.
Parameters: - oda_instance_id (str) – (required) Unique Digital Assistant instance identifier.
- opc_request_id (str) – (optional) The client request ID for tracing. This value is included in the opc-request-id response header.
- retry_strategy (obj) –
(optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
This should be one of the strategies available in the
retry
module. This operation usesDEFAULT_RETRY_STRATEGY
as default if no retry strategy is provided. The specifics of the default retry strategy are described here.To have this operation explicitly not perform any retries, pass an instance of
NoneRetryStrategy
. - allow_control_chars (bool) – (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings
Returns: A
Response
object with data of typeOdaInstance
Return type: Example: Click here to see an example of how to use get_oda_instance API.
-
get_oda_instance_attachment
(oda_instance_id, attachment_id, **kwargs)¶ Gets an ODA instance attachment by identifier
Parameters: - oda_instance_id (str) – (required) Unique Digital Assistant instance identifier.
- attachment_id (str) – (required) Unique Digital Assistant instance attachment identifier.
- include_owner_metadata (bool) – (optional) Whether to send attachment owner info during get/list call.
- opc_request_id (str) – (optional) The client request ID for tracing. This value is included in the opc-request-id response header.
- retry_strategy (obj) –
(optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
This should be one of the strategies available in the
retry
module. This operation usesDEFAULT_RETRY_STRATEGY
as default if no retry strategy is provided. The specifics of the default retry strategy are described here.To have this operation explicitly not perform any retries, pass an instance of
NoneRetryStrategy
. - allow_control_chars (bool) – (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings
Returns: A
Response
object with data of typeOdaInstanceAttachment
Return type: Example: Click here to see an example of how to use get_oda_instance_attachment API.
-
get_work_request
(work_request_id, **kwargs)¶ Gets information about the work request with the specified ID, including its status.
You can use this operation to monitor the status of jobs that you requested to create, delete, and update instances.
Parameters: - work_request_id (str) – (required) The identifier of the asynchronous work request.
- opc_request_id (str) – (optional) The client request ID for tracing. This value is included in the opc-request-id response header.
- retry_strategy (obj) –
(optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
This should be one of the strategies available in the
retry
module. This operation usesDEFAULT_RETRY_STRATEGY
as default if no retry strategy is provided. The specifics of the default retry strategy are described here.To have this operation explicitly not perform any retries, pass an instance of
NoneRetryStrategy
. - allow_control_chars (bool) – (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings
Returns: A
Response
object with data of typeWorkRequest
Return type: Example: Click here to see an example of how to use get_work_request API.
-
list_oda_instance_attachments
(oda_instance_id, **kwargs)¶ Returns a list of ODA instance attachments
Parameters: - oda_instance_id (str) – (required) Unique Digital Assistant instance identifier.
- include_owner_metadata (bool) – (optional) Whether to send attachment owner info during get/list call.
- limit (int) – (optional) The maximum number of items to return per page.
- page (str) –
(optional) The page at which to start retrieving results.
You get this value from the opc-next-page header in a previous list request. To retireve the first page, omit this query parameter.
Example: MToxMA==
- lifecycle_state (str) –
(optional) List only the ODA instance attachments that are in this lifecycle state.
Allowed values are: “ATTACHING”, “ACTIVE”, “DETACHING”, “INACTIVE”, “FAILED”
- sort_order (str) –
(optional) Sort the results in this order, use either ASC (ascending) or DESC (descending).
Allowed values are: “ASC”, “DESC”
- sort_by (str) –
(optional) Sort on this field. You can specify one sort order only. The default sort field is TIMECREATED. The default sort order for TIMECREATED is descending.
Allowed values are: “TIMECREATED”
- opc_request_id (str) – (optional) The client request ID for tracing. This value is included in the opc-request-id response header.
- retry_strategy (obj) –
(optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
This should be one of the strategies available in the
retry
module. This operation usesDEFAULT_RETRY_STRATEGY
as default if no retry strategy is provided. The specifics of the default retry strategy are described here.To have this operation explicitly not perform any retries, pass an instance of
NoneRetryStrategy
. - allow_control_chars (bool) – (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings
Returns: A
Response
object with data of typeOdaInstanceAttachmentCollection
Return type: Example: Click here to see an example of how to use list_oda_instance_attachments API.
-
list_oda_instances
(compartment_id, **kwargs)¶ Returns a page of Digital Assistant instances that belong to the specified compartment.
If the opc-next-page header appears in the response, then there are more items to retrieve. To get the next page in the subsequent GET request, include the header’s value as the page query parameter.
Parameters: - compartment_id (str) – (required) List the Digital Assistant instances that belong to this compartment.
- display_name (str) –
(optional) List only the information for the Digital Assistant instance with this user-friendly name. These names don’t have to be unique and may change.
Example: My new resource
- lifecycle_state (str) –
(optional) List only the Digital Assistant instances that are in this lifecycle state.
Allowed values are: “CREATING”, “UPDATING”, “ACTIVE”, “INACTIVE”, “DELETING”, “DELETED”, “FAILED”
- limit (int) – (optional) The maximum number of items to return per page.
- page (str) –
(optional) The page at which to start retrieving results.
You get this value from the opc-next-page header in a previous list request. To retireve the first page, omit this query parameter.
Example: MToxMA==
- sort_order (str) –
(optional) Sort the results in this order, use either ASC (ascending) or DESC (descending).
Allowed values are: “ASC”, “DESC”
- sort_by (str) –
(optional) Sort on this field. You can specify one sort order only. The default sort field is TIMECREATED.
The default sort order for TIMECREATED is descending, and the default sort order for DISPLAYNAME is ascending.
Allowed values are: “TIMECREATED”, “DISPLAYNAME”
- opc_request_id (str) – (optional) The client request ID for tracing. This value is included in the opc-request-id response header.
- retry_strategy (obj) –
(optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
This should be one of the strategies available in the
retry
module. This operation usesDEFAULT_RETRY_STRATEGY
as default if no retry strategy is provided. The specifics of the default retry strategy are described here.To have this operation explicitly not perform any retries, pass an instance of
NoneRetryStrategy
. - allow_control_chars (bool) – (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings
Returns: A
Response
object with data of type list ofOdaInstanceSummary
Return type: Example: Click here to see an example of how to use list_oda_instances API.
-
list_work_request_errors
(work_request_id, **kwargs)¶ Returns a page of errors for the specified work request.
If the opc-next-page header appears in the response, then there are more items to retrieve. To get the next page in the subsequent GET request, include the header’s value as the page query parameter.
Parameters: - work_request_id (str) – (required) The identifier of the asynchronous work request.
- opc_request_id (str) – (optional) The client request ID for tracing. This value is included in the opc-request-id response header.
- page (str) –
(optional) The page at which to start retrieving results.
You get this value from the opc-next-page header in a previous list request. To retireve the first page, omit this query parameter.
Example: MToxMA==
- limit (int) – (optional) The maximum number of items to return per page.
- sort_by (str) –
(optional) The field to sort by. You can specify only one sort order. If no value is specified, then the default is TIMESTAMP.
The default sort order for both TIMESTAMP and CODE is ascending.
Allowed values are: “CODE”, “TIMESTAMP”
- sort_order (str) –
(optional) Sort the results in this order, use either ASC (ascending) or DESC (descending).
Allowed values are: “ASC”, “DESC”
- retry_strategy (obj) –
(optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
This should be one of the strategies available in the
retry
module. This operation usesDEFAULT_RETRY_STRATEGY
as default if no retry strategy is provided. The specifics of the default retry strategy are described here.To have this operation explicitly not perform any retries, pass an instance of
NoneRetryStrategy
. - allow_control_chars (bool) – (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings
Returns: A
Response
object with data of type list ofWorkRequestError
Return type: Example: Click here to see an example of how to use list_work_request_errors API.
-
list_work_request_logs
(work_request_id, **kwargs)¶ Returns a page of of log messages for a given work request.
If the opc-next-page header appears in the response, then there are more items to retrieve. To get the next page in the subsequent GET request, include the header’s value as the page query parameter.
Parameters: - work_request_id (str) – (required) The identifier of the asynchronous work request.
- opc_request_id (str) – (optional) The client request ID for tracing. This value is included in the opc-request-id response header.
- page (str) –
(optional) The page at which to start retrieving results.
You get this value from the opc-next-page header in a previous list request. To retireve the first page, omit this query parameter.
Example: MToxMA==
- limit (int) – (optional) The maximum number of items to return per page.
- sort_by (str) –
(optional) The field to sort by. You can specify only one sort order. If no value is specified, then the default is TIMESTAMP.
The default sort order for both TIMESTAMP and MESSAGE is ascending.
Allowed values are: “MESSAGE”, “TIMESTAMP”
- sort_order (str) –
(optional) Sort the results in this order, use either ASC (ascending) or DESC (descending).
Allowed values are: “ASC”, “DESC”
- retry_strategy (obj) –
(optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
This should be one of the strategies available in the
retry
module. This operation usesDEFAULT_RETRY_STRATEGY
as default if no retry strategy is provided. The specifics of the default retry strategy are described here.To have this operation explicitly not perform any retries, pass an instance of
NoneRetryStrategy
. - allow_control_chars (bool) – (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings
Returns: A
Response
object with data of type list ofWorkRequestLogEntry
Return type: Example: Click here to see an example of how to use list_work_request_logs API.
-
list_work_requests
(compartment_id, **kwargs)¶ Returns a page of work requests for the specified compartment.
If the opc-next-page header appears in the response, then there are more items to retrieve. To get the next page in the subsequent GET request, include the header’s value as the page query parameter.
Parameters: - compartment_id (str) – (required) List the Digital Assistant instances that belong to this compartment.
- opc_request_id (str) – (optional) The client request ID for tracing. This value is included in the opc-request-id response header.
- oda_instance_id (str) – (optional) List only the information for this Digital Assistant instance.
- resource_id (str) – (optional) List only the information for this resource.
- page (str) –
(optional) The page at which to start retrieving results.
You get this value from the opc-next-page header in a previous list request. To retireve the first page, omit this query parameter.
Example: MToxMA==
- limit (int) – (optional) The maximum number of items to return per page.
- sort_by (str) –
(optional) The field to sort by. You can specify only one sort order. If no value is specified, then the default is TIME_ACCEPTED.
The default sort order for the time fields is descending. The default order for DISPLAYNAME and STATUS is ascending.default: TIME_ACCEPTED
Allowed values are: “OPERATION_TYPE”, “STATUS”, “TIME_ACCEPTED”, “TIME_STARTED”, “TIME_FINISHED”
- sort_order (str) –
(optional) Sort the results in this order, use either ASC (ascending) or DESC (descending).
Allowed values are: “ASC”, “DESC”
- retry_strategy (obj) –
(optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
This should be one of the strategies available in the
retry
module. This operation usesDEFAULT_RETRY_STRATEGY
as default if no retry strategy is provided. The specifics of the default retry strategy are described here.To have this operation explicitly not perform any retries, pass an instance of
NoneRetryStrategy
. - allow_control_chars (bool) – (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings
Returns: A
Response
object with data of type list ofWorkRequestSummary
Return type: Example: Click here to see an example of how to use list_work_requests API.
-
start_oda_instance
(oda_instance_id, **kwargs)¶ Starts an inactive Digital Assistant instance. Once active, the instance will be accessible and metering of requests will be started again.
Parameters: - oda_instance_id (str) – (required) Unique Digital Assistant instance identifier.
- opc_request_id (str) – (optional) The client request ID for tracing. This value is included in the opc-request-id response header.
- if_match (str) – (optional) For optimistic concurrency control in a PUT or DELETE call for a Digital Assistant instance, set the if-match query parameter to the value of the ETAG header from a previous GET or POST response for that instance. The service updates or deletes the instance only if the etag that you provide matches the instance’s current etag value.
- opc_retry_token (str) –
(optional) A token that uniquely identifies a request so that you can retry the request if there’s a timeout or server error without the risk of executing that same action again.
Retry tokens expire after 24 hours, but they can become invalid before then if there are conflicting operations. For example, if an instance was deleted and purged from the system, then the service might reject a retry of the original creation request.
- retry_strategy (obj) –
(optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
This should be one of the strategies available in the
retry
module. This operation usesDEFAULT_RETRY_STRATEGY
as default if no retry strategy is provided. The specifics of the default retry strategy are described here.To have this operation explicitly not perform any retries, pass an instance of
NoneRetryStrategy
. - allow_control_chars (bool) – (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings
Returns: A
Response
object with data of type NoneReturn type: Example: Click here to see an example of how to use start_oda_instance API.
-
stop_oda_instance
(oda_instance_id, **kwargs)¶ Stops an active Digital Assistant instance. Once inactive, the instance will not be accessible and metering of requests will be stopped until the instance is started again. Data associated with the instance is not affected.
Parameters: - oda_instance_id (str) – (required) Unique Digital Assistant instance identifier.
- opc_request_id (str) – (optional) The client request ID for tracing. This value is included in the opc-request-id response header.
- if_match (str) – (optional) For optimistic concurrency control in a PUT or DELETE call for a Digital Assistant instance, set the if-match query parameter to the value of the ETAG header from a previous GET or POST response for that instance. The service updates or deletes the instance only if the etag that you provide matches the instance’s current etag value.
- opc_retry_token (str) –
(optional) A token that uniquely identifies a request so that you can retry the request if there’s a timeout or server error without the risk of executing that same action again.
Retry tokens expire after 24 hours, but they can become invalid before then if there are conflicting operations. For example, if an instance was deleted and purged from the system, then the service might reject a retry of the original creation request.
- retry_strategy (obj) –
(optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
This should be one of the strategies available in the
retry
module. This operation usesDEFAULT_RETRY_STRATEGY
as default if no retry strategy is provided. The specifics of the default retry strategy are described here.To have this operation explicitly not perform any retries, pass an instance of
NoneRetryStrategy
. - allow_control_chars (bool) – (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings
Returns: A
Response
object with data of type NoneReturn type: Example: Click here to see an example of how to use stop_oda_instance API.
-
update_oda_instance
(oda_instance_id, update_oda_instance_details, **kwargs)¶ Updates the specified Digital Assistant instance with the information in the request body.
Parameters: - oda_instance_id (str) – (required) Unique Digital Assistant instance identifier.
- update_oda_instance_details (oci.oda.models.UpdateOdaInstanceDetails) – (required) The information to update.
- if_match (str) – (optional) For optimistic concurrency control in a PUT or DELETE call for a Digital Assistant instance, set the if-match query parameter to the value of the ETAG header from a previous GET or POST response for that instance. The service updates or deletes the instance only if the etag that you provide matches the instance’s current etag value.
- opc_request_id (str) – (optional) The client request ID for tracing. This value is included in the opc-request-id response header.
- retry_strategy (obj) –
(optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
This should be one of the strategies available in the
retry
module. This operation usesDEFAULT_RETRY_STRATEGY
as default if no retry strategy is provided. The specifics of the default retry strategy are described here.To have this operation explicitly not perform any retries, pass an instance of
NoneRetryStrategy
. - allow_control_chars (bool) – (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings
Returns: A
Response
object with data of typeOdaInstance
Return type: Example: Click here to see an example of how to use update_oda_instance API.
-
update_oda_instance_attachment
(oda_instance_id, attachment_id, update_oda_instance_attachment_details, **kwargs)¶ Updates the ODA instance attachment
Parameters: - oda_instance_id (str) – (required) Unique Digital Assistant instance identifier.
- attachment_id (str) – (required) Unique Digital Assistant instance attachment identifier.
- update_oda_instance_attachment_details (oci.oda.models.UpdateOdaInstanceAttachmentDetails) – (required) The information to be updated.
- if_match (str) – (optional) For optimistic concurrency control in a PUT or DELETE call for a Digital Assistant instance, set the if-match query parameter to the value of the ETAG header from a previous GET or POST response for that instance. The service updates or deletes the instance only if the etag that you provide matches the instance’s current etag value.
- opc_request_id (str) – (optional) The client request ID for tracing. This value is included in the opc-request-id response header.
- retry_strategy (obj) –
(optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
This should be one of the strategies available in the
retry
module. This operation usesDEFAULT_RETRY_STRATEGY
as default if no retry strategy is provided. The specifics of the default retry strategy are described here.To have this operation explicitly not perform any retries, pass an instance of
NoneRetryStrategy
. - allow_control_chars (bool) – (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings
Returns: A
Response
object with data of type NoneReturn type: Example: Click here to see an example of how to use update_oda_instance_attachment API.
-