override suspend fun handle()

in google-cloud-server/src/main/kotlin/jetbrains/buildServer/clouds/google/web/GoogleResourceHandler.kt [16:30]


    override suspend fun handle(parameters: Map<String, String>): Content {
        val propsBean = BasePropertiesBean(null)
        PluginPropertiesUtil.bindPropertiesFromRequest(parameters, propsBean, true)

        val props = propsBean.properties
        val credentialsType = props[GoogleConstants.CREDENTIALS_TYPE]
        val apiConnector = if (credentialsType != GoogleConstants.CREDENTIALS_ENVIRONMENT) {
            val accessKey = props[GoogleConstants.ACCESS_KEY]!!
            GoogleApiConnectorImpl(accessKey)
        } else {
            GoogleApiConnectorImpl()
        }

        return handle(apiConnector, parameters)
    }