Returns the number of unmetered iOS or unmetered Android devices that have been purchased by the account.
Raises:
Examples:
To get information about account settings
The following example returns information about your Device Farm account settings.
>>> client.get_account_settings()
Source code in docs_src/capo_device_farm/_services/device_farm.py
| def get_account_settings(
self, *, config_overrides: Optional[DeviceFarmClientConfig] = None
) -> "capo_device_farm.types.get_account_settings_result.GetAccountSettingsResult":
"""<p>Returns the number of unmetered iOS or unmetered Android devices that have been purchased by the account.</p>
Raises:
capo_device_farm.errors.argument_exception.ArgumentException: <p>An invalid argument was specified.</p>
capo_device_farm.errors.limit_exceeded_exception.LimitExceededException: <p>A limit was exceeded.</p>
capo_device_farm.errors.not_found_exception.NotFoundException: <p>The specified entity was not found.</p>
capo_device_farm.errors.service_account_exception.ServiceAccountException: <p>There was a problem with the service account.</p>
capo_device_farm.errors.UnknownServiceError: The service returned an error code this client does not model.
Examples:
To get information about account settings
The following example returns information about your Device Farm account settings.
>>> client.get_account_settings()
"""
def _handler(
req: "OperationRequest[capo_device_farm.types.get_account_settings_request.GetAccountSettingsRequest]",
) -> OperationResponse[
"capo_device_farm.types.get_account_settings_result.GetAccountSettingsResult"
]:
import capo_device_farm._operations.device_farm_20150623.get_account_settings
output, http_response = (
capo_device_farm._operations.device_farm_20150623.get_account_settings.get_account_settings(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetAccountSettings")
)
input_: capo_device_farm.types.get_account_settings_request.GetAccountSettingsRequest = {}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|