Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.74.18
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Aug 29, 2023
1 parent 093455c commit 4498497
Show file tree
Hide file tree
Showing 82 changed files with 2,389 additions and 560 deletions.
18 changes: 14 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,17 @@ import(
func main() {
s := smartcar.New(
smartcar.WithSecurity(shared.Security{
BearerAuth: "",
BasicAuth: &shared.SchemeBasicAuth{
Password: "",
Username: "",
},
}),
)
vehicleID := "36ab27d0-fd9d-4455-823a-ce30af709ffc"

ctx := context.Background()
res, err := s.Vehicles.GetLocation(ctx, vehicleID)
res, err := s.Vehicles.GetLocation(ctx, operations.GetLocationRequest{
VehicleID: "36ab27d0-fd9d-4455-823a-ce30af709ffc",
})
if err != nil {
log.Fatal(err)
}
Expand Down Expand Up @@ -73,7 +77,7 @@ func main() {
* [GetChargingLimit](docs/sdks/evs/README.md#getcharginglimit) - EV Charging Limit
* [GetChargingStatus](docs/sdks/evs/README.md#getchargingstatus) - EV Charging Status
* [SetChargingLimit](docs/sdks/evs/README.md#setcharginglimit) - Set EV Charging Limit
* [StartStopCharge](docs/sdks/evs/README.md#startstopcharge) - Start or stop charging an electric vehicle. Please contact us to request early access.
* [StartStopCharge](docs/sdks/evs/README.md#startstopcharge) - Start or stop charging an electric vehicle.

### [Tesla](docs/sdks/tesla/README.md)

Expand All @@ -91,6 +95,11 @@ func main() {

* [GetInfo](docs/sdks/user/README.md#getinfo) - User Info

### [VehicleManagement](docs/sdks/vehiclemanagement/README.md)

* [DeleteManagementVehicleConnections](docs/sdks/vehiclemanagement/README.md#deletemanagementvehicleconnections) - Delete vehicle connections by user_id or vehicle_id
* [GetManagementVehicleConnections](docs/sdks/vehiclemanagement/README.md#getmanagementvehicleconnections) - Retrieve vehicle connections

### [Vehicles](docs/sdks/vehicles/README.md)

* [Batch](docs/sdks/vehicles/README.md#batch) - Batch
Expand All @@ -103,6 +112,7 @@ func main() {
* [GetPermissions](docs/sdks/vehicles/README.md#getpermissions) - Application Permissions
* [GetTirePressure](docs/sdks/vehicles/README.md#gettirepressure) - Tire Pressure
* [GetVin](docs/sdks/vehicles/README.md#getvin) - Returns the vehicle’s manufacturer identifier.
* [GetVehiclesVehicleIDSecurity](docs/sdks/vehicles/README.md#getvehiclesvehicleidsecurity) - Returns the lock status for a vehicle and the open status of its doors, windows, storage units, sunroof and charging port where available. The open status array(s) will be empty if a vehicle has partial support. The request will error if lock status can not be retrieved from the vehicle or the brand is not supported.
* [ListVehicles](docs/sdks/vehicles/README.md#listvehicles) - All Vehicles
* [LockUnlock](docs/sdks/vehicles/README.md#lockunlock) - Lock/Unlock Vehicle

Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,14 @@ Based on:
- OpenAPI Doc 1.0.0
- Speakeasy CLI 1.65.2 (2.75.1) https://github.com/speakeasy-api/speakeasy
### Releases
- [Go v1.2.0] https://github.com/smartcar/go-sdk-v2/releases/tag/v1.2.0 - .
- [Go v1.2.0] https://github.com/smartcar/go-sdk-v2/releases/tag/v1.2.0 - .

## 2023-08-29 07:01:43
### Changes
Based on:
- OpenAPI Doc 1.0.0
- Speakeasy CLI 1.74.18 (2.88.6) https://github.com/speakeasy-api/speakeasy
### Generated
- [go v1.3.0] .
### Releases
- [Go v1.3.0] https://github.com/smartcar/go-sdk-v2/releases/tag/v1.3.0 - .
10 changes: 7 additions & 3 deletions USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,17 @@ import(
func main() {
s := smartcar.New(
smartcar.WithSecurity(shared.Security{
BearerAuth: "",
BasicAuth: &shared.SchemeBasicAuth{
Password: "",
Username: "",
},
}),
)
vehicleID := "36ab27d0-fd9d-4455-823a-ce30af709ffc"

ctx := context.Background()
res, err := s.Vehicles.GetLocation(ctx, vehicleID)
res, err := s.Vehicles.GetLocation(ctx, operations.GetLocationRequest{
VehicleID: "36ab27d0-fd9d-4455-823a-ce30af709ffc",
})
if err != nil {
log.Fatal(err)
}
Expand Down
20 changes: 10 additions & 10 deletions cadillac.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 10 additions & 10 deletions chevrolet.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 5 additions & 7 deletions compatibility.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs/models/operations/batchrequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@

| Field | Type | Required | Description |
| ------------------ | ------------------ | ------------------ | ------------------ |
| `VehicleID` | *string* | :heavy_check_mark: | N/A |
| `RequestBody` | []*string* | :heavy_minus_sign: | N/A |
| `RequestBody` | []*string* | :heavy_minus_sign: | N/A |
| `VehicleID` | *string* | :heavy_check_mark: | N/A |
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# DeleteManagementVehicleConnectionsRequest


## Fields

| Field | Type | Required | Description |
| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ |
| `UserID` | **string* | :heavy_minus_sign: | Delete all connections containing this user ID (UUID v4). |
| `VehicleID` | **string* | :heavy_minus_sign: | Delete all connections containing this vehicle ID (UUID v4). |
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# DeleteManagementVehicleConnectionsResponse


## Fields

| Field | Type | Required | Description |
| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- |
| `ContentType` | *string* | :heavy_check_mark: | N/A |
| `DeletedConnectionsResponse` | [][shared.DeletedConnection](../../models/shared/deletedconnection.md) | :heavy_minus_sign: | returns all deleted connections |
| `StatusCode` | *int* | :heavy_check_mark: | N/A |
| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | N/A |
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# DeleteManagementVehicleConnectionsSecurity


## Fields

| Field | Type | Required | Description | Example |
| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ |
| `Password` | *string* | :heavy_check_mark: | N/A | |
| `Username` | *string* | :heavy_check_mark: | N/A | |
11 changes: 11 additions & 0 deletions docs/models/operations/getmanagementvehicleconnectionsrequest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# GetManagementVehicleConnectionsRequest


## Fields

| Field | Type | Required | Description |
| -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
| `Cursor` | **int64* | :heavy_minus_sign: | Used for accessing pages other than the first page. Each page returned has a cursor value that can be passed here to fetch the “next” page. |
| `Limit` | **int64* | :heavy_minus_sign: | Number of connections to return (default: 10, maximum: 100). |
| `UserID` | **string* | :heavy_minus_sign: | Filter for connections created by the provider user ID. |
| `VehicleID` | **string* | :heavy_minus_sign: | Filter for connections to the provided vehicle ID. |
Loading

0 comments on commit 4498497

Please sign in to comment.