-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #89 from OneBusAway/release-please--branches--main…
…--changes--next release: 0.1.0-alpha.31
- Loading branch information
Showing
23 changed files
with
915 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
".": "0.1.0-alpha.30" | ||
".": "0.1.0-alpha.31" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
configured_endpoints: 28 | ||
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/open-transit%2Fopen-transit-d04668d97c66a80708cb1896ce9638dc2b55670ed447b67d9833f6a5349cc210.yml | ||
configured_endpoints: 29 | ||
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/open-transit%2Fopen-transit-6f08502508c8ad25235971add3124a1cde4f1c3ec705d5df455d750e0adcb90b.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
175 changes: 175 additions & 0 deletions
175
onebusaway-sdk-kotlin-core/src/main/kotlin/org/onebusaway/models/StopsForAgencyListParams.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,175 @@ | ||
// File generated from our OpenAPI spec by Stainless. | ||
|
||
package org.onebusaway.models | ||
|
||
import java.util.Objects | ||
import org.onebusaway.core.NoAutoDetect | ||
import org.onebusaway.core.http.Headers | ||
import org.onebusaway.core.http.QueryParams | ||
import org.onebusaway.models.* | ||
|
||
class StopsForAgencyListParams | ||
constructor( | ||
private val agencyId: String, | ||
private val additionalHeaders: Headers, | ||
private val additionalQueryParams: QueryParams, | ||
) { | ||
|
||
fun agencyId(): String = agencyId | ||
|
||
fun _additionalHeaders(): Headers = additionalHeaders | ||
|
||
fun _additionalQueryParams(): QueryParams = additionalQueryParams | ||
|
||
internal fun getHeaders(): Headers = additionalHeaders | ||
|
||
internal fun getQueryParams(): QueryParams = additionalQueryParams | ||
|
||
fun getPathParam(index: Int): String { | ||
return when (index) { | ||
0 -> agencyId | ||
else -> "" | ||
} | ||
} | ||
|
||
fun toBuilder() = Builder().from(this) | ||
|
||
companion object { | ||
|
||
fun builder() = Builder() | ||
} | ||
|
||
@NoAutoDetect | ||
class Builder { | ||
|
||
private var agencyId: String? = null | ||
private var additionalHeaders: Headers.Builder = Headers.builder() | ||
private var additionalQueryParams: QueryParams.Builder = QueryParams.builder() | ||
|
||
internal fun from(stopsForAgencyListParams: StopsForAgencyListParams) = apply { | ||
agencyId = stopsForAgencyListParams.agencyId | ||
additionalHeaders = stopsForAgencyListParams.additionalHeaders.toBuilder() | ||
additionalQueryParams = stopsForAgencyListParams.additionalQueryParams.toBuilder() | ||
} | ||
|
||
fun agencyId(agencyId: String) = apply { this.agencyId = agencyId } | ||
|
||
fun additionalHeaders(additionalHeaders: Headers) = apply { | ||
this.additionalHeaders.clear() | ||
putAllAdditionalHeaders(additionalHeaders) | ||
} | ||
|
||
fun additionalHeaders(additionalHeaders: Map<String, Iterable<String>>) = apply { | ||
this.additionalHeaders.clear() | ||
putAllAdditionalHeaders(additionalHeaders) | ||
} | ||
|
||
fun putAdditionalHeader(name: String, value: String) = apply { | ||
additionalHeaders.put(name, value) | ||
} | ||
|
||
fun putAdditionalHeaders(name: String, values: Iterable<String>) = apply { | ||
additionalHeaders.put(name, values) | ||
} | ||
|
||
fun putAllAdditionalHeaders(additionalHeaders: Headers) = apply { | ||
this.additionalHeaders.putAll(additionalHeaders) | ||
} | ||
|
||
fun putAllAdditionalHeaders(additionalHeaders: Map<String, Iterable<String>>) = apply { | ||
this.additionalHeaders.putAll(additionalHeaders) | ||
} | ||
|
||
fun replaceAdditionalHeaders(name: String, value: String) = apply { | ||
additionalHeaders.replace(name, value) | ||
} | ||
|
||
fun replaceAdditionalHeaders(name: String, values: Iterable<String>) = apply { | ||
additionalHeaders.replace(name, values) | ||
} | ||
|
||
fun replaceAllAdditionalHeaders(additionalHeaders: Headers) = apply { | ||
this.additionalHeaders.replaceAll(additionalHeaders) | ||
} | ||
|
||
fun replaceAllAdditionalHeaders(additionalHeaders: Map<String, Iterable<String>>) = apply { | ||
this.additionalHeaders.replaceAll(additionalHeaders) | ||
} | ||
|
||
fun removeAdditionalHeaders(name: String) = apply { additionalHeaders.remove(name) } | ||
|
||
fun removeAllAdditionalHeaders(names: Set<String>) = apply { | ||
additionalHeaders.removeAll(names) | ||
} | ||
|
||
fun additionalQueryParams(additionalQueryParams: QueryParams) = apply { | ||
this.additionalQueryParams.clear() | ||
putAllAdditionalQueryParams(additionalQueryParams) | ||
} | ||
|
||
fun additionalQueryParams(additionalQueryParams: Map<String, Iterable<String>>) = apply { | ||
this.additionalQueryParams.clear() | ||
putAllAdditionalQueryParams(additionalQueryParams) | ||
} | ||
|
||
fun putAdditionalQueryParam(key: String, value: String) = apply { | ||
additionalQueryParams.put(key, value) | ||
} | ||
|
||
fun putAdditionalQueryParams(key: String, values: Iterable<String>) = apply { | ||
additionalQueryParams.put(key, values) | ||
} | ||
|
||
fun putAllAdditionalQueryParams(additionalQueryParams: QueryParams) = apply { | ||
this.additionalQueryParams.putAll(additionalQueryParams) | ||
} | ||
|
||
fun putAllAdditionalQueryParams(additionalQueryParams: Map<String, Iterable<String>>) = | ||
apply { | ||
this.additionalQueryParams.putAll(additionalQueryParams) | ||
} | ||
|
||
fun replaceAdditionalQueryParams(key: String, value: String) = apply { | ||
additionalQueryParams.replace(key, value) | ||
} | ||
|
||
fun replaceAdditionalQueryParams(key: String, values: Iterable<String>) = apply { | ||
additionalQueryParams.replace(key, values) | ||
} | ||
|
||
fun replaceAllAdditionalQueryParams(additionalQueryParams: QueryParams) = apply { | ||
this.additionalQueryParams.replaceAll(additionalQueryParams) | ||
} | ||
|
||
fun replaceAllAdditionalQueryParams(additionalQueryParams: Map<String, Iterable<String>>) = | ||
apply { | ||
this.additionalQueryParams.replaceAll(additionalQueryParams) | ||
} | ||
|
||
fun removeAdditionalQueryParams(key: String) = apply { additionalQueryParams.remove(key) } | ||
|
||
fun removeAllAdditionalQueryParams(keys: Set<String>) = apply { | ||
additionalQueryParams.removeAll(keys) | ||
} | ||
|
||
fun build(): StopsForAgencyListParams = | ||
StopsForAgencyListParams( | ||
checkNotNull(agencyId) { "`agencyId` is required but was not set" }, | ||
additionalHeaders.build(), | ||
additionalQueryParams.build(), | ||
) | ||
} | ||
|
||
override fun equals(other: Any?): Boolean { | ||
if (this === other) { | ||
return true | ||
} | ||
|
||
return /* spotless:off */ other is StopsForAgencyListParams && agencyId == other.agencyId && additionalHeaders == other.additionalHeaders && additionalQueryParams == other.additionalQueryParams /* spotless:on */ | ||
} | ||
|
||
override fun hashCode(): Int = /* spotless:off */ Objects.hash(agencyId, additionalHeaders, additionalQueryParams) /* spotless:on */ | ||
|
||
override fun toString() = | ||
"StopsForAgencyListParams{agencyId=$agencyId, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams}" | ||
} |
Oops, something went wrong.