Skip to content

Commit

Permalink
chore: rebuild project due to codegen change (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Nov 5, 2024
1 parent c60d81b commit 265f2f1
Show file tree
Hide file tree
Showing 5 changed files with 168 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,21 @@ class OmnistackOkHttpClient private constructor() {
clientOptions.putAllHeaders(headers)
}

fun removeHeader(name: String) = apply { clientOptions.removeHeader(name) }
fun replaceHeaders(name: String, value: String) = apply {
clientOptions.replaceHeaders(name, value)
}

fun replaceHeaders(name: String, values: Iterable<String>) = apply {
clientOptions.replaceHeaders(name, values)
}

fun replaceAllHeaders(headers: Map<String, Iterable<String>>) = apply {
clientOptions.replaceAllHeaders(headers)
}

fun removeHeaders(name: String) = apply { clientOptions.removeHeaders(name) }

fun removeAllHeaders(names: Set<String>) = apply { clientOptions.removeAllHeaders(names) }

fun queryParams(queryParams: Map<String, Iterable<String>>) = apply {
clientOptions.queryParams(queryParams)
Expand All @@ -68,7 +82,23 @@ class OmnistackOkHttpClient private constructor() {
clientOptions.putAllQueryParams(queryParams)
}

fun removeQueryParam(key: String) = apply { clientOptions.removeQueryParam(key) }
fun replaceQueryParams(key: String, value: String) = apply {
clientOptions.replaceQueryParams(key, value)
}

fun replaceQueryParams(key: String, values: Iterable<String>) = apply {
clientOptions.replaceQueryParams(key, values)
}

fun replaceAllQueryParams(queryParams: Map<String, Iterable<String>>) = apply {
clientOptions.replaceAllQueryParams(queryParams)
}

fun removeQueryParams(key: String) = apply { clientOptions.removeQueryParams(key) }

fun removeAllQueryParams(keys: Set<String>) = apply {
clientOptions.removeAllQueryParams(keys)
}

fun timeout(timeout: Duration) = apply { this.timeout = timeout }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,21 @@ class OmnistackOkHttpClientAsync private constructor() {
clientOptions.putAllHeaders(headers)
}

fun removeHeader(name: String) = apply { clientOptions.removeHeader(name) }
fun replaceHeaders(name: String, value: String) = apply {
clientOptions.replaceHeaders(name, value)
}

fun replaceHeaders(name: String, values: Iterable<String>) = apply {
clientOptions.replaceHeaders(name, values)
}

fun replaceAllHeaders(headers: Map<String, Iterable<String>>) = apply {
clientOptions.replaceAllHeaders(headers)
}

fun removeHeaders(name: String) = apply { clientOptions.removeHeaders(name) }

fun removeAllHeaders(names: Set<String>) = apply { clientOptions.removeAllHeaders(names) }

fun queryParams(queryParams: Map<String, Iterable<String>>) = apply {
clientOptions.queryParams(queryParams)
Expand All @@ -68,7 +82,23 @@ class OmnistackOkHttpClientAsync private constructor() {
clientOptions.putAllQueryParams(queryParams)
}

fun removeQueryParam(key: String) = apply { clientOptions.removeQueryParam(key) }
fun replaceQueryParams(key: String, value: String) = apply {
clientOptions.replaceQueryParams(key, value)
}

fun replaceQueryParams(key: String, values: Iterable<String>) = apply {
clientOptions.replaceQueryParams(key, values)
}

fun replaceAllQueryParams(queryParams: Map<String, Iterable<String>>) = apply {
clientOptions.replaceAllQueryParams(queryParams)
}

fun removeQueryParams(key: String) = apply { clientOptions.removeQueryParams(key) }

fun removeAllQueryParams(keys: Set<String>) = apply {
clientOptions.removeAllQueryParams(keys)
}

fun timeout(timeout: Duration) = apply { this.timeout = timeout }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,21 @@ private constructor(
headers.forEach(::putHeaders)
}

fun removeHeader(name: String) = apply { headers.removeAll(name) }
fun replaceHeaders(name: String, value: String) = apply {
headers.replaceValues(name, listOf(value))
}

fun replaceHeaders(name: String, values: Iterable<String>) = apply {
headers.replaceValues(name, values)
}

fun replaceAllHeaders(headers: Map<String, Iterable<String>>) = apply {
headers.forEach(::replaceHeaders)
}

fun removeHeaders(name: String) = apply { headers.removeAll(name) }

fun removeAllHeaders(names: Set<String>) = apply { names.forEach(::removeHeaders) }

fun queryParams(queryParams: Map<String, Iterable<String>>) = apply {
this.queryParams.clear()
Expand All @@ -99,7 +113,21 @@ private constructor(
queryParams.forEach(::putQueryParams)
}

fun removeQueryParam(key: String) = apply { queryParams.removeAll(key) }
fun replaceQueryParams(key: String, value: String) = apply {
queryParams.replaceValues(key, listOf(value))
}

fun replaceQueryParams(key: String, values: Iterable<String>) = apply {
queryParams.replaceValues(key, values)
}

fun replaceAllQueryParams(queryParams: Map<String, Iterable<String>>) = apply {
queryParams.forEach(::replaceQueryParams)
}

fun removeQueryParams(key: String) = apply { queryParams.removeAll(key) }

fun removeAllQueryParams(keys: Set<String>) = apply { keys.forEach(::removeQueryParams) }

fun responseValidation(responseValidation: Boolean) = apply {
this.responseValidation = responseValidation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1278,7 +1278,23 @@ constructor(
additionalHeaders.forEach(::putAdditionalHeaders)
}

fun removeAdditionalHeader(name: String) = apply { additionalHeaders.removeAll(name) }
fun replaceAdditionalHeaders(name: String, value: String) = apply {
additionalHeaders.replaceValues(name, listOf(value))
}

fun replaceAdditionalHeaders(name: String, values: Iterable<String>) = apply {
additionalHeaders.replaceValues(name, values)
}

fun replaceAllAdditionalHeaders(additionalHeaders: Map<String, Iterable<String>>) = apply {
additionalHeaders.forEach(::replaceAdditionalHeaders)
}

fun removeAdditionalHeaders(name: String) = apply { additionalHeaders.removeAll(name) }

fun removeAllAdditionalHeaders(names: Set<String>) = apply {
names.forEach(::removeAdditionalHeaders)
}

fun additionalQueryParams(additionalQueryParams: Map<String, Iterable<String>>) = apply {
this.additionalQueryParams.clear()
Expand All @@ -1298,7 +1314,26 @@ constructor(
additionalQueryParams.forEach(::putAdditionalQueryParams)
}

fun removeAdditionalQueryParam(key: String) = apply { additionalQueryParams.removeAll(key) }
fun replaceAdditionalQueryParams(key: String, value: String) = apply {
additionalQueryParams.replaceValues(key, listOf(value))
}

fun replaceAdditionalQueryParams(key: String, values: Iterable<String>) = apply {
additionalQueryParams.replaceValues(key, values)
}

fun replaceAllAdditionalQueryParams(additionalQueryParams: Map<String, Iterable<String>>) =
apply {
additionalQueryParams.forEach(::replaceAdditionalQueryParams)
}

fun removeAdditionalQueryParams(key: String) = apply {
additionalQueryParams.removeAll(key)
}

fun removeAllAdditionalQueryParams(keys: Set<String>) = apply {
keys.forEach(::removeAdditionalQueryParams)
}

fun additionalBodyProperties(additionalBodyProperties: Map<String, JsonValue>) = apply {
this.additionalBodyProperties.clear()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -903,7 +903,23 @@ constructor(
additionalHeaders.forEach(::putAdditionalHeaders)
}

fun removeAdditionalHeader(name: String) = apply { additionalHeaders.removeAll(name) }
fun replaceAdditionalHeaders(name: String, value: String) = apply {
additionalHeaders.replaceValues(name, listOf(value))
}

fun replaceAdditionalHeaders(name: String, values: Iterable<String>) = apply {
additionalHeaders.replaceValues(name, values)
}

fun replaceAllAdditionalHeaders(additionalHeaders: Map<String, Iterable<String>>) = apply {
additionalHeaders.forEach(::replaceAdditionalHeaders)
}

fun removeAdditionalHeaders(name: String) = apply { additionalHeaders.removeAll(name) }

fun removeAllAdditionalHeaders(names: Set<String>) = apply {
names.forEach(::removeAdditionalHeaders)
}

fun additionalQueryParams(additionalQueryParams: Map<String, Iterable<String>>) = apply {
this.additionalQueryParams.clear()
Expand All @@ -923,7 +939,26 @@ constructor(
additionalQueryParams.forEach(::putAdditionalQueryParams)
}

fun removeAdditionalQueryParam(key: String) = apply { additionalQueryParams.removeAll(key) }
fun replaceAdditionalQueryParams(key: String, value: String) = apply {
additionalQueryParams.replaceValues(key, listOf(value))
}

fun replaceAdditionalQueryParams(key: String, values: Iterable<String>) = apply {
additionalQueryParams.replaceValues(key, values)
}

fun replaceAllAdditionalQueryParams(additionalQueryParams: Map<String, Iterable<String>>) =
apply {
additionalQueryParams.forEach(::replaceAdditionalQueryParams)
}

fun removeAdditionalQueryParams(key: String) = apply {
additionalQueryParams.removeAll(key)
}

fun removeAllAdditionalQueryParams(keys: Set<String>) = apply {
keys.forEach(::removeAdditionalQueryParams)
}

fun additionalBodyProperties(additionalBodyProperties: Map<String, JsonValue>) = apply {
this.additionalBodyProperties.clear()
Expand Down

0 comments on commit 265f2f1

Please sign in to comment.