client.betaApIs.listCarbCtcVehicles() -> CarbCtcListCarbCtcVehiclesResponseBodyclient.betaApIs.listCarbCtcVehicleHistory() -> CarbCtcListCarbCtcVehicleHistoryResponseBodyclient.carbCtc.listCarbCtcVehicles() -> CarbCtcListCarbCtcVehiclesResponseBodyclient.carbCtc.listCarbCtcVehicleHistory() -> CarbCtcListCarbCtcVehicleHistoryResponseBodyRate limit: 5 requests/sec (learn more about rate limits here).
- *To use this endpoint, select Read CARB CTC Integration under the Closed Beta category when creating or editing an API token. Learn More.
- *Submit Feedback: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team.
- */ - public CompletableFutureRate limit: 5 requests/sec (learn more about rate limits here).
- *To use this endpoint, select Read CARB CTC Integration under the Closed Beta category when creating or editing an API token. Learn More.
- *Submit Feedback: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team.
- */ - public CompletableFutureRate limit: 5 requests/sec (learn more about rate limits here).
- *To use this endpoint, select Read CARB CTC Integration under the Closed Beta category when creating or editing an API token. Learn More.
- *Submit Feedback: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team.
- */ - public CompletableFutureRate limit: 5 requests/sec (learn more about rate limits here).
- *To use this endpoint, select Read CARB CTC Integration under the Closed Beta category when creating or editing an API token. Learn More.
- *Submit Feedback: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team.
- */ - public CompletableFutureRate limit: 5 requests/sec (learn more about rate limits here).
- *To use this endpoint, select Read CARB CTC Integration under the Closed Beta category when creating or editing an API token. Learn More.
- *Submit Feedback: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team.
- */ - public CompletableFutureRate limit: 5 requests/sec (learn more about rate limits here).
- *To use this endpoint, select Read CARB CTC Integration under the Closed Beta category when creating or editing an API token. Learn More.
- *Submit Feedback: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team.
- */ - public CompletableFutureRate limit: 100 requests/min (learn more about rate limits here).
diff --git a/src/main/java/com/samsara/api/resources/betaapis/AsyncRawBetaApIsClient.java b/src/main/java/com/samsara/api/resources/betaapis/AsyncRawBetaApIsClient.java index ed275bb..bc44908 100644 --- a/src/main/java/com/samsara/api/resources/betaapis/AsyncRawBetaApIsClient.java +++ b/src/main/java/com/samsara/api/resources/betaapis/AsyncRawBetaApIsClient.java @@ -68,8 +68,6 @@ import com.samsara.api.resources.betaapis.requests.JobsCreateJobRequestBody; import com.samsara.api.resources.betaapis.requests.JobsPatchJobRequestBody; import com.samsara.api.resources.betaapis.requests.ListAssociationsRequest; -import com.samsara.api.resources.betaapis.requests.ListCarbCtcVehicleHistoryRequest; -import com.samsara.api.resources.betaapis.requests.ListCarbCtcVehiclesRequest; import com.samsara.api.resources.betaapis.requests.ListDeviceRecoveryMissingAssetsRequest; import com.samsara.api.resources.betaapis.requests.ListHubCustomPropertiesRequest; import com.samsara.api.resources.betaapis.requests.ListMaintenanceVendorsRequest; @@ -96,8 +94,6 @@ import com.samsara.api.types.AempEquipmentGetAempEquipmentListResponseBody; import com.samsara.api.types.AssetsInputsGetAssetsInputsResponseBody; import com.samsara.api.types.AssociationsListAssociationsResponseBody; -import com.samsara.api.types.CarbCtcListCarbCtcVehicleHistoryResponseBody; -import com.samsara.api.types.CarbCtcListCarbCtcVehiclesResponseBody; import com.samsara.api.types.DepreciationGetDepreciationTransactionsResponseBody; import com.samsara.api.types.DetectionLogGetDetectionsResponseBody; import com.samsara.api.types.DeviceRecoveryListDeviceRecoveryMissingAssetsResponseBody; @@ -3049,294 +3045,6 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { return future; } - /** - * Returns a paginated list of vehicles enrolled in the CARB CTC program with their latest compliance status. Results can be filtered by tag IDs and test status. - *Rate limit: 5 requests/sec (learn more about rate limits here).
- *To use this endpoint, select Read CARB CTC Integration under the Closed Beta category when creating or editing an API token. Learn More.
- *Submit Feedback: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team.
- */ - public CompletableFutureRate limit: 5 requests/sec (learn more about rate limits here).
- *To use this endpoint, select Read CARB CTC Integration under the Closed Beta category when creating or editing an API token. Learn More.
- *Submit Feedback: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team.
- */ - public CompletableFutureRate limit: 5 requests/sec (learn more about rate limits here).
- *To use this endpoint, select Read CARB CTC Integration under the Closed Beta category when creating or editing an API token. Learn More.
- *Submit Feedback: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team.
- */ - public CompletableFutureRate limit: 5 requests/sec (learn more about rate limits here).
- *To use this endpoint, select Read CARB CTC Integration under the Closed Beta category when creating or editing an API token. Learn More.
- *Submit Feedback: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team.
- */ - public CompletableFutureRate limit: 5 requests/sec (learn more about rate limits here).
- *To use this endpoint, select Read CARB CTC Integration under the Closed Beta category when creating or editing an API token. Learn More.
- *Submit Feedback: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team.
- */ - public CompletableFutureRate limit: 5 requests/sec (learn more about rate limits here).
- *To use this endpoint, select Read CARB CTC Integration under the Closed Beta category when creating or editing an API token. Learn More.
- *Submit Feedback: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team.
- */ - public CompletableFutureRate limit: 100 requests/min (learn more about rate limits here).
diff --git a/src/main/java/com/samsara/api/resources/betaapis/BetaApIsClient.java b/src/main/java/com/samsara/api/resources/betaapis/BetaApIsClient.java index 450a94c..abbdce1 100644 --- a/src/main/java/com/samsara/api/resources/betaapis/BetaApIsClient.java +++ b/src/main/java/com/samsara/api/resources/betaapis/BetaApIsClient.java @@ -52,8 +52,6 @@ import com.samsara.api.resources.betaapis.requests.JobsCreateJobRequestBody; import com.samsara.api.resources.betaapis.requests.JobsPatchJobRequestBody; import com.samsara.api.resources.betaapis.requests.ListAssociationsRequest; -import com.samsara.api.resources.betaapis.requests.ListCarbCtcVehicleHistoryRequest; -import com.samsara.api.resources.betaapis.requests.ListCarbCtcVehiclesRequest; import com.samsara.api.resources.betaapis.requests.ListDeviceRecoveryMissingAssetsRequest; import com.samsara.api.resources.betaapis.requests.ListHubCustomPropertiesRequest; import com.samsara.api.resources.betaapis.requests.ListMaintenanceVendorsRequest; @@ -80,8 +78,6 @@ import com.samsara.api.types.AempEquipmentGetAempEquipmentListResponseBody; import com.samsara.api.types.AssetsInputsGetAssetsInputsResponseBody; import com.samsara.api.types.AssociationsListAssociationsResponseBody; -import com.samsara.api.types.CarbCtcListCarbCtcVehicleHistoryResponseBody; -import com.samsara.api.types.CarbCtcListCarbCtcVehiclesResponseBody; import com.samsara.api.types.DepreciationGetDepreciationTransactionsResponseBody; import com.samsara.api.types.DetectionLogGetDetectionsResponseBody; import com.samsara.api.types.DeviceRecoveryListDeviceRecoveryMissingAssetsResponseBody; @@ -765,69 +761,6 @@ public DeviceRecoveryRecoverAssetResponseBody recoverAsset( return this.rawClient.recoverAsset(id, request, requestOptions).body(); } - /** - * Returns a paginated list of vehicles enrolled in the CARB CTC program with their latest compliance status. Results can be filtered by tag IDs and test status. - *Rate limit: 5 requests/sec (learn more about rate limits here).
- *To use this endpoint, select Read CARB CTC Integration under the Closed Beta category when creating or editing an API token. Learn More.
- *Submit Feedback: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team.
- */ - public CarbCtcListCarbCtcVehiclesResponseBody listCarbCtcVehicles() { - return this.rawClient.listCarbCtcVehicles().body(); - } - - /** - * Returns a paginated list of vehicles enrolled in the CARB CTC program with their latest compliance status. Results can be filtered by tag IDs and test status. - *Rate limit: 5 requests/sec (learn more about rate limits here).
- *To use this endpoint, select Read CARB CTC Integration under the Closed Beta category when creating or editing an API token. Learn More.
- *Submit Feedback: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team.
- */ - public CarbCtcListCarbCtcVehiclesResponseBody listCarbCtcVehicles(RequestOptions requestOptions) { - return this.rawClient.listCarbCtcVehicles(requestOptions).body(); - } - - /** - * Returns a paginated list of vehicles enrolled in the CARB CTC program with their latest compliance status. Results can be filtered by tag IDs and test status. - *Rate limit: 5 requests/sec (learn more about rate limits here).
- *To use this endpoint, select Read CARB CTC Integration under the Closed Beta category when creating or editing an API token. Learn More.
- *Submit Feedback: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team.
- */ - public CarbCtcListCarbCtcVehiclesResponseBody listCarbCtcVehicles(ListCarbCtcVehiclesRequest request) { - return this.rawClient.listCarbCtcVehicles(request).body(); - } - - /** - * Returns a paginated list of vehicles enrolled in the CARB CTC program with their latest compliance status. Results can be filtered by tag IDs and test status. - *Rate limit: 5 requests/sec (learn more about rate limits here).
- *To use this endpoint, select Read CARB CTC Integration under the Closed Beta category when creating or editing an API token. Learn More.
- *Submit Feedback: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team.
- */ - public CarbCtcListCarbCtcVehiclesResponseBody listCarbCtcVehicles( - ListCarbCtcVehiclesRequest request, RequestOptions requestOptions) { - return this.rawClient.listCarbCtcVehicles(request, requestOptions).body(); - } - - /** - * Returns paginated collection history for a batch of vehicles enrolled in the CARB CTC program. Use vehicle IDs from the list enrolled vehicles endpoint. Optionally filter by time range. Results are ordered by happenedAtTime descending, with vehicle ID as a tiebreaker. - *Rate limit: 5 requests/sec (learn more about rate limits here).
- *To use this endpoint, select Read CARB CTC Integration under the Closed Beta category when creating or editing an API token. Learn More.
- *Submit Feedback: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team.
- */ - public CarbCtcListCarbCtcVehicleHistoryResponseBody listCarbCtcVehicleHistory( - ListCarbCtcVehicleHistoryRequest request) { - return this.rawClient.listCarbCtcVehicleHistory(request).body(); - } - - /** - * Returns paginated collection history for a batch of vehicles enrolled in the CARB CTC program. Use vehicle IDs from the list enrolled vehicles endpoint. Optionally filter by time range. Results are ordered by happenedAtTime descending, with vehicle ID as a tiebreaker. - *Rate limit: 5 requests/sec (learn more about rate limits here).
- *To use this endpoint, select Read CARB CTC Integration under the Closed Beta category when creating or editing an API token. Learn More.
- *Submit Feedback: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team.
- */ - public CarbCtcListCarbCtcVehicleHistoryResponseBody listCarbCtcVehicleHistory( - ListCarbCtcVehicleHistoryRequest request, RequestOptions requestOptions) { - return this.rawClient.listCarbCtcVehicleHistory(request, requestOptions).body(); - } - /** * Resolves a driver by name within an organization via voice sign-in, then creates a driver-vehicle assignment via the Driver Assignment Service. *Rate limit: 100 requests/min (learn more about rate limits here).
diff --git a/src/main/java/com/samsara/api/resources/betaapis/RawBetaApIsClient.java b/src/main/java/com/samsara/api/resources/betaapis/RawBetaApIsClient.java index 2dec50e..d8f4d8c 100644 --- a/src/main/java/com/samsara/api/resources/betaapis/RawBetaApIsClient.java +++ b/src/main/java/com/samsara/api/resources/betaapis/RawBetaApIsClient.java @@ -68,8 +68,6 @@ import com.samsara.api.resources.betaapis.requests.JobsCreateJobRequestBody; import com.samsara.api.resources.betaapis.requests.JobsPatchJobRequestBody; import com.samsara.api.resources.betaapis.requests.ListAssociationsRequest; -import com.samsara.api.resources.betaapis.requests.ListCarbCtcVehicleHistoryRequest; -import com.samsara.api.resources.betaapis.requests.ListCarbCtcVehiclesRequest; import com.samsara.api.resources.betaapis.requests.ListDeviceRecoveryMissingAssetsRequest; import com.samsara.api.resources.betaapis.requests.ListHubCustomPropertiesRequest; import com.samsara.api.resources.betaapis.requests.ListMaintenanceVendorsRequest; @@ -96,8 +94,6 @@ import com.samsara.api.types.AempEquipmentGetAempEquipmentListResponseBody; import com.samsara.api.types.AssetsInputsGetAssetsInputsResponseBody; import com.samsara.api.types.AssociationsListAssociationsResponseBody; -import com.samsara.api.types.CarbCtcListCarbCtcVehicleHistoryResponseBody; -import com.samsara.api.types.CarbCtcListCarbCtcVehiclesResponseBody; import com.samsara.api.types.DepreciationGetDepreciationTransactionsResponseBody; import com.samsara.api.types.DetectionLogGetDetectionsResponseBody; import com.samsara.api.types.DeviceRecoveryListDeviceRecoveryMissingAssetsResponseBody; @@ -2415,230 +2411,6 @@ public SamsaraApiHttpResponseRate limit: 5 requests/sec (learn more about rate limits here).
- *To use this endpoint, select Read CARB CTC Integration under the Closed Beta category when creating or editing an API token. Learn More.
- *Submit Feedback: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team.
- */ - public SamsaraApiHttpResponseRate limit: 5 requests/sec (learn more about rate limits here).
- *To use this endpoint, select Read CARB CTC Integration under the Closed Beta category when creating or editing an API token. Learn More.
- *Submit Feedback: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team.
- */ - public SamsaraApiHttpResponseRate limit: 5 requests/sec (learn more about rate limits here).
- *To use this endpoint, select Read CARB CTC Integration under the Closed Beta category when creating or editing an API token. Learn More.
- *Submit Feedback: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team.
- */ - public SamsaraApiHttpResponseRate limit: 5 requests/sec (learn more about rate limits here).
- *To use this endpoint, select Read CARB CTC Integration under the Closed Beta category when creating or editing an API token. Learn More.
- *Submit Feedback: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team.
- */ - public SamsaraApiHttpResponseRate limit: 5 requests/sec (learn more about rate limits here).
- *To use this endpoint, select Read CARB CTC Integration under the Closed Beta category when creating or editing an API token. Learn More.
- *Submit Feedback: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team.
- */ - public SamsaraApiHttpResponseRate limit: 5 requests/sec (learn more about rate limits here).
- *To use this endpoint, select Read CARB CTC Integration under the Closed Beta category when creating or editing an API token. Learn More.
- *Submit Feedback: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team.
- */ - public SamsaraApiHttpResponseRate limit: 100 requests/min (learn more about rate limits here).
diff --git a/src/main/java/com/samsara/api/resources/carbctc/AsyncCarbCtcClient.java b/src/main/java/com/samsara/api/resources/carbctc/AsyncCarbCtcClient.java new file mode 100644 index 0000000..26968d3 --- /dev/null +++ b/src/main/java/com/samsara/api/resources/carbctc/AsyncCarbCtcClient.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.samsara.api.resources.carbctc; + +import com.samsara.api.core.ClientOptions; +import com.samsara.api.core.RequestOptions; +import com.samsara.api.resources.carbctc.requests.ListCarbCtcVehicleHistoryRequest; +import com.samsara.api.resources.carbctc.requests.ListCarbCtcVehiclesRequest; +import com.samsara.api.types.CarbCtcListCarbCtcVehicleHistoryResponseBody; +import com.samsara.api.types.CarbCtcListCarbCtcVehiclesResponseBody; +import java.util.concurrent.CompletableFuture; + +public class AsyncCarbCtcClient { + protected final ClientOptions clientOptions; + + private final AsyncRawCarbCtcClient rawClient; + + public AsyncCarbCtcClient(ClientOptions clientOptions) { + this.clientOptions = clientOptions; + this.rawClient = new AsyncRawCarbCtcClient(clientOptions); + } + + /** + * Get responses with HTTP metadata like headers + */ + public AsyncRawCarbCtcClient withRawResponse() { + return this.rawClient; + } + + /** + * Returns a paginated list of vehicles enrolled in the CARB CTC program with their latest compliance status. Results can be filtered by tag IDs and test status. + *Rate limit: 5 requests/sec (learn more about rate limits here).
+ *To use this endpoint, select Read CARB CTC Integration under the CARB CTC Integration category when creating or editing an API token. Learn More.
+ *Submit Feedback: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team.
+ */ + public CompletableFutureRate limit: 5 requests/sec (learn more about rate limits here).
+ *To use this endpoint, select Read CARB CTC Integration under the CARB CTC Integration category when creating or editing an API token. Learn More.
+ *Submit Feedback: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team.
+ */ + public CompletableFutureRate limit: 5 requests/sec (learn more about rate limits here).
+ *To use this endpoint, select Read CARB CTC Integration under the CARB CTC Integration category when creating or editing an API token. Learn More.
+ *Submit Feedback: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team.
+ */ + public CompletableFutureRate limit: 5 requests/sec (learn more about rate limits here).
+ *To use this endpoint, select Read CARB CTC Integration under the CARB CTC Integration category when creating or editing an API token. Learn More.
+ *Submit Feedback: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team.
+ */ + public CompletableFutureRate limit: 5 requests/sec (learn more about rate limits here).
+ *To use this endpoint, select Read CARB CTC Integration under the CARB CTC Integration category when creating or editing an API token. Learn More.
+ *Submit Feedback: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team.
+ */ + public CompletableFutureRate limit: 5 requests/sec (learn more about rate limits here).
+ *To use this endpoint, select Read CARB CTC Integration under the CARB CTC Integration category when creating or editing an API token. Learn More.
+ *Submit Feedback: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team.
+ */ + public CompletableFutureRate limit: 5 requests/sec (learn more about rate limits here).
+ *To use this endpoint, select Read CARB CTC Integration under the CARB CTC Integration category when creating or editing an API token. Learn More.
+ *Submit Feedback: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team.
+ */ + public CompletableFutureRate limit: 5 requests/sec (learn more about rate limits here).
+ *To use this endpoint, select Read CARB CTC Integration under the CARB CTC Integration category when creating or editing an API token. Learn More.
+ *Submit Feedback: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team.
+ */ + public CompletableFutureRate limit: 5 requests/sec (learn more about rate limits here).
+ *To use this endpoint, select Read CARB CTC Integration under the CARB CTC Integration category when creating or editing an API token. Learn More.
+ *Submit Feedback: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team.
+ */ + public CompletableFutureRate limit: 5 requests/sec (learn more about rate limits here).
+ *To use this endpoint, select Read CARB CTC Integration under the CARB CTC Integration category when creating or editing an API token. Learn More.
+ *Submit Feedback: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team.
+ */ + public CompletableFutureRate limit: 5 requests/sec (learn more about rate limits here).
+ *To use this endpoint, select Read CARB CTC Integration under the CARB CTC Integration category when creating or editing an API token. Learn More.
+ *Submit Feedback: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team.
+ */ + public CompletableFutureRate limit: 5 requests/sec (learn more about rate limits here).
+ *To use this endpoint, select Read CARB CTC Integration under the CARB CTC Integration category when creating or editing an API token. Learn More.
+ *Submit Feedback: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team.
+ */ + public CompletableFutureRate limit: 5 requests/sec (learn more about rate limits here).
+ *To use this endpoint, select Read CARB CTC Integration under the CARB CTC Integration category when creating or editing an API token. Learn More.
+ *Submit Feedback: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team.
+ */ + public CarbCtcListCarbCtcVehiclesResponseBody listCarbCtcVehicles() { + return this.rawClient.listCarbCtcVehicles().body(); + } + + /** + * Returns a paginated list of vehicles enrolled in the CARB CTC program with their latest compliance status. Results can be filtered by tag IDs and test status. + *Rate limit: 5 requests/sec (learn more about rate limits here).
+ *To use this endpoint, select Read CARB CTC Integration under the CARB CTC Integration category when creating or editing an API token. Learn More.
+ *Submit Feedback: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team.
+ */ + public CarbCtcListCarbCtcVehiclesResponseBody listCarbCtcVehicles(RequestOptions requestOptions) { + return this.rawClient.listCarbCtcVehicles(requestOptions).body(); + } + + /** + * Returns a paginated list of vehicles enrolled in the CARB CTC program with their latest compliance status. Results can be filtered by tag IDs and test status. + *Rate limit: 5 requests/sec (learn more about rate limits here).
+ *To use this endpoint, select Read CARB CTC Integration under the CARB CTC Integration category when creating or editing an API token. Learn More.
+ *Submit Feedback: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team.
+ */ + public CarbCtcListCarbCtcVehiclesResponseBody listCarbCtcVehicles(ListCarbCtcVehiclesRequest request) { + return this.rawClient.listCarbCtcVehicles(request).body(); + } + + /** + * Returns a paginated list of vehicles enrolled in the CARB CTC program with their latest compliance status. Results can be filtered by tag IDs and test status. + *Rate limit: 5 requests/sec (learn more about rate limits here).
+ *To use this endpoint, select Read CARB CTC Integration under the CARB CTC Integration category when creating or editing an API token. Learn More.
+ *Submit Feedback: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team.
+ */ + public CarbCtcListCarbCtcVehiclesResponseBody listCarbCtcVehicles( + ListCarbCtcVehiclesRequest request, RequestOptions requestOptions) { + return this.rawClient.listCarbCtcVehicles(request, requestOptions).body(); + } + + /** + * Returns paginated collection history for a batch of vehicles enrolled in the CARB CTC program. Use vehicle IDs from the list enrolled vehicles endpoint. Optionally filter by time range. Results are ordered by happenedAtTime descending, with vehicle ID as a tiebreaker. + *Rate limit: 5 requests/sec (learn more about rate limits here).
+ *To use this endpoint, select Read CARB CTC Integration under the CARB CTC Integration category when creating or editing an API token. Learn More.
+ *Submit Feedback: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team.
+ */ + public CarbCtcListCarbCtcVehicleHistoryResponseBody listCarbCtcVehicleHistory( + ListCarbCtcVehicleHistoryRequest request) { + return this.rawClient.listCarbCtcVehicleHistory(request).body(); + } + + /** + * Returns paginated collection history for a batch of vehicles enrolled in the CARB CTC program. Use vehicle IDs from the list enrolled vehicles endpoint. Optionally filter by time range. Results are ordered by happenedAtTime descending, with vehicle ID as a tiebreaker. + *Rate limit: 5 requests/sec (learn more about rate limits here).
+ *To use this endpoint, select Read CARB CTC Integration under the CARB CTC Integration category when creating or editing an API token. Learn More.
+ *Submit Feedback: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team.
+ */ + public CarbCtcListCarbCtcVehicleHistoryResponseBody listCarbCtcVehicleHistory( + ListCarbCtcVehicleHistoryRequest request, RequestOptions requestOptions) { + return this.rawClient.listCarbCtcVehicleHistory(request, requestOptions).body(); + } +} diff --git a/src/main/java/com/samsara/api/resources/carbctc/RawCarbCtcClient.java b/src/main/java/com/samsara/api/resources/carbctc/RawCarbCtcClient.java new file mode 100644 index 0000000..52783f7 --- /dev/null +++ b/src/main/java/com/samsara/api/resources/carbctc/RawCarbCtcClient.java @@ -0,0 +1,265 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.samsara.api.resources.carbctc; + +import com.fasterxml.jackson.core.JsonProcessingException; +import com.samsara.api.core.ClientOptions; +import com.samsara.api.core.ObjectMappers; +import com.samsara.api.core.QueryStringMapper; +import com.samsara.api.core.RequestOptions; +import com.samsara.api.core.SamsaraApiApiException; +import com.samsara.api.core.SamsaraApiException; +import com.samsara.api.core.SamsaraApiHttpResponse; +import com.samsara.api.errors.BadGatewayError; +import com.samsara.api.errors.GatewayTimeoutError; +import com.samsara.api.errors.InternalServerError; +import com.samsara.api.errors.MethodNotAllowedError; +import com.samsara.api.errors.NotFoundError; +import com.samsara.api.errors.NotImplementedError; +import com.samsara.api.errors.ServiceUnavailableError; +import com.samsara.api.errors.TooManyRequestsError; +import com.samsara.api.errors.UnauthorizedError; +import com.samsara.api.resources.carbctc.requests.ListCarbCtcVehicleHistoryRequest; +import com.samsara.api.resources.carbctc.requests.ListCarbCtcVehiclesRequest; +import com.samsara.api.types.CarbCtcListCarbCtcVehicleHistoryResponseBody; +import com.samsara.api.types.CarbCtcListCarbCtcVehiclesResponseBody; +import java.io.IOException; +import okhttp3.Headers; +import okhttp3.HttpUrl; +import okhttp3.OkHttpClient; +import okhttp3.Request; +import okhttp3.Response; +import okhttp3.ResponseBody; + +public class RawCarbCtcClient { + protected final ClientOptions clientOptions; + + public RawCarbCtcClient(ClientOptions clientOptions) { + this.clientOptions = clientOptions; + } + + /** + * Returns a paginated list of vehicles enrolled in the CARB CTC program with their latest compliance status. Results can be filtered by tag IDs and test status. + *Rate limit: 5 requests/sec (learn more about rate limits here).
+ *To use this endpoint, select Read CARB CTC Integration under the CARB CTC Integration category when creating or editing an API token. Learn More.
+ *Submit Feedback: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team.
+ */ + public SamsaraApiHttpResponseRate limit: 5 requests/sec (learn more about rate limits here).
+ *To use this endpoint, select Read CARB CTC Integration under the CARB CTC Integration category when creating or editing an API token. Learn More.
+ *Submit Feedback: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team.
+ */ + public SamsaraApiHttpResponseRate limit: 5 requests/sec (learn more about rate limits here).
+ *To use this endpoint, select Read CARB CTC Integration under the CARB CTC Integration category when creating or editing an API token. Learn More.
+ *Submit Feedback: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team.
+ */ + public SamsaraApiHttpResponseRate limit: 5 requests/sec (learn more about rate limits here).
+ *To use this endpoint, select Read CARB CTC Integration under the CARB CTC Integration category when creating or editing an API token. Learn More.
+ *Submit Feedback: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team.
+ */ + public SamsaraApiHttpResponseRate limit: 5 requests/sec (learn more about rate limits here).
+ *To use this endpoint, select Read CARB CTC Integration under the CARB CTC Integration category when creating or editing an API token. Learn More.
+ *Submit Feedback: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team.
+ */ + public SamsaraApiHttpResponseRate limit: 5 requests/sec (learn more about rate limits here).
+ *To use this endpoint, select Read CARB CTC Integration under the CARB CTC Integration category when creating or editing an API token. Learn More.
+ *Submit Feedback: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team.
+ */ + public SamsaraApiHttpResponse