This operation updates a data set.
Parameters:
-
data_set_id
(Id)
–
The unique identifier for a data set.
-
description
(Optional[Description], default:
None
)
–
The description for the data set.
-
name
(Optional[Name], default:
None
)
–
The name of the data set.
Raises:
Source code in docs_src/capo_dataexchange/_services/data_exchange.py
| def update_data_set(
self,
data_set_id: "capo_dataexchange.types.id.Id",
*,
config_overrides: Optional[DataExchangeClientConfig] = None,
description: Optional["capo_dataexchange.types.description.Description"] = None,
name: Optional["capo_dataexchange.types.name.Name"] = None,
) -> "capo_dataexchange.types.update_data_set_response.UpdateDataSetResponse":
"""<p>This operation updates a data set.</p>
Args:
data_set_id: <p>The unique identifier for a data set.</p>
description: <p>The description for the data set.</p>
name: <p>The name of the data set.</p>
Raises:
capo_dataexchange.errors.access_denied_exception.AccessDeniedException: <p>Access to the resource is denied.</p>
capo_dataexchange.errors.internal_server_exception.InternalServerException: <p>An exception occurred with the service.</p>
capo_dataexchange.errors.resource_not_found_exception.ResourceNotFoundException: <p>The resource couldn't be found.</p>
capo_dataexchange.errors.throttling_exception.ThrottlingException: <p>The limit on the number of requests per second was exceeded.</p>
capo_dataexchange.errors.validation_exception.ValidationException: <p>The request was invalid.</p>
capo_dataexchange.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_dataexchange.types.update_data_set_request.UpdateDataSetRequest]",
) -> OperationResponse[
"capo_dataexchange.types.update_data_set_response.UpdateDataSetResponse"
]:
import capo_dataexchange._operations.data_exchange.update_data_set
output, http_response = (
capo_dataexchange._operations.data_exchange.update_data_set.update_data_set(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("UpdateDataSet")
)
input_: capo_dataexchange.types.update_data_set_request.UpdateDataSetRequest = {
"data_set_id": data_set_id
}
if description is not None:
input_["description"] = description
if name is not None:
input_["name"] = name
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|