async def update_service_settings(
self,
linux_subscriptions_discovery: "capo_license_manager_linux_subscriptions.types.linux_subscriptions_discovery.LinuxSubscriptionsDiscovery",
linux_subscriptions_discovery_settings: "capo_license_manager_linux_subscriptions.types.linux_subscriptions_discovery_settings.LinuxSubscriptionsDiscoverySettings",
*,
config_overrides: Optional[
AsyncLicenseManagerLinuxSubscriptionsClientConfig
] = None,
allow_update: Optional[bool] = None,
) -> "capo_license_manager_linux_subscriptions.types.update_service_settings_response.UpdateServiceSettingsResponse":
"""<p>Updates the service settings for Linux subscriptions.</p>
Args:
linux_subscriptions_discovery: <p>Describes if the discovery of Linux subscriptions is enabled.</p>
linux_subscriptions_discovery_settings: <p>The settings defined for Linux subscriptions discovery. The settings include if Organizations integration has been enabled, and which Regions data will be aggregated from.</p>
allow_update: <p>Describes if updates are allowed to the service settings for Linux subscriptions. If you allow updates, you can aggregate Linux subscription data in more than one home Region.</p>
Raises:
capo_license_manager_linux_subscriptions.errors.internal_server_exception.InternalServerException: <p>An exception occurred with the service.</p>
capo_license_manager_linux_subscriptions.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling.</p>
capo_license_manager_linux_subscriptions.errors.validation_exception.ValidationException: <p>The provided input is not valid. Try your request again.</p>
capo_license_manager_linux_subscriptions.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_license_manager_linux_subscriptions.types.update_service_settings_request.UpdateServiceSettingsRequest]",
) -> AsyncOperationResponse[
"capo_license_manager_linux_subscriptions.types.update_service_settings_response.UpdateServiceSettingsResponse"
]:
import capo_license_manager_linux_subscriptions._operations.license_manager_linux_subscriptions.update_service_settings
(
output,
http_response,
) = await capo_license_manager_linux_subscriptions._operations.license_manager_linux_subscriptions.update_service_settings.async_update_service_settings(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("UpdateServiceSettings")
)
input_: capo_license_manager_linux_subscriptions.types.update_service_settings_request.UpdateServiceSettingsRequest = {
"linux_subscriptions_discovery": linux_subscriptions_discovery,
"linux_subscriptions_discovery_settings": linux_subscriptions_discovery_settings,
}
if allow_update is not None:
input_["allow_update"] = allow_update
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output