Retrieves information about a Selenium testing project.
Parameters:
Raises:
Source code in docs_src/capo_device_farm/_services/device_farm.py
| def get_test_grid_project(
self,
project_arn: "capo_device_farm.types.device_farm_arn.DeviceFarmArn",
*,
config_overrides: Optional[DeviceFarmClientConfig] = None,
) -> "capo_device_farm.types.get_test_grid_project_result.GetTestGridProjectResult":
"""<p>Retrieves information about a Selenium testing project.</p>
Args:
project_arn: <p>The ARN of the Selenium testing project, from either <a>CreateTestGridProject</a> or <a>ListTestGridProjects</a>.</p>
Raises:
capo_device_farm.errors.argument_exception.ArgumentException: <p>An invalid argument was specified.</p>
capo_device_farm.errors.internal_service_exception.InternalServiceException: <p>An internal exception was raised in the service. Contact <a href="mailto:[email protected]">[email protected]</a> if you see this error. </p>
capo_device_farm.errors.not_found_exception.NotFoundException: <p>The specified entity was not found.</p>
capo_device_farm.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_device_farm.types.get_test_grid_project_request.GetTestGridProjectRequest]",
) -> OperationResponse[
"capo_device_farm.types.get_test_grid_project_result.GetTestGridProjectResult"
]:
import capo_device_farm._operations.device_farm_20150623.get_test_grid_project
output, http_response = (
capo_device_farm._operations.device_farm_20150623.get_test_grid_project.get_test_grid_project(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetTestGridProject")
)
input_: capo_device_farm.types.get_test_grid_project_request.GetTestGridProjectRequest = {
"project_arn": project_arn
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|