udpate openapi spec

This commit is contained in:
2026-08-04 15:28:33 +02:00
parent e4acb6918a
commit fa7835c7e6
32 changed files with 2946 additions and 229 deletions

View File

@@ -33,7 +33,7 @@ import (
)
func main() {
accessAuthorizationCreate := *openapiclient.NewAccessAuthorizationCreate("Name_example", false, []openapiclient.TimetableCreate{*openapiclient.NewTimetableCreate(int32(123), "Starttime_example", int32(123))}) // AccessAuthorizationCreate |
accessAuthorizationCreate := *openapiclient.NewAccessAuthorizationCreate("Name_example", "Type_example", false) // AccessAuthorizationCreate |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)

View File

@@ -5,14 +5,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | **string** | |
**Type** | **string** | |
**IsActive** | **bool** | |
**Timetables** | [**[]TimetableCreate**](TimetableCreate.md) | |
**Timetables** | Pointer to [**[]TimetableCreate**](TimetableCreate.md) | | [optional] [default to {}]
**Oneshot** | Pointer to [**NullableOneShotAccessBase**](OneShotAccessBase.md) | | [optional]
## Methods
### NewAccessAuthorizationCreate
`func NewAccessAuthorizationCreate(name string, isActive bool, timetables []TimetableCreate, ) *AccessAuthorizationCreate`
`func NewAccessAuthorizationCreate(name string, type_ string, isActive bool, ) *AccessAuthorizationCreate`
NewAccessAuthorizationCreate instantiates a new AccessAuthorizationCreate object
This constructor will assign default values to properties that have it defined,
@@ -47,6 +49,26 @@ and a boolean to check if the value has been set.
SetName sets Name field to given value.
### GetType
`func (o *AccessAuthorizationCreate) GetType() string`
GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
`func (o *AccessAuthorizationCreate) GetTypeOk() (*string, bool)`
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetType
`func (o *AccessAuthorizationCreate) SetType(v string)`
SetType sets Type field to given value.
### GetIsActive
`func (o *AccessAuthorizationCreate) GetIsActive() bool`
@@ -86,7 +108,47 @@ and a boolean to check if the value has been set.
SetTimetables sets Timetables field to given value.
### HasTimetables
`func (o *AccessAuthorizationCreate) HasTimetables() bool`
HasTimetables returns a boolean if a field has been set.
### GetOneshot
`func (o *AccessAuthorizationCreate) GetOneshot() OneShotAccessBase`
GetOneshot returns the Oneshot field if non-nil, zero value otherwise.
### GetOneshotOk
`func (o *AccessAuthorizationCreate) GetOneshotOk() (*OneShotAccessBase, bool)`
GetOneshotOk returns a tuple with the Oneshot field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetOneshot
`func (o *AccessAuthorizationCreate) SetOneshot(v OneShotAccessBase)`
SetOneshot sets Oneshot field to given value.
### HasOneshot
`func (o *AccessAuthorizationCreate) HasOneshot() bool`
HasOneshot returns a boolean if a field has been set.
### SetOneshotNil
`func (o *AccessAuthorizationCreate) SetOneshotNil(b bool)`
SetOneshotNil sets the value for Oneshot to be an explicit nil
### UnsetOneshot
`func (o *AccessAuthorizationCreate) UnsetOneshot()`
UnsetOneshot ensures that no value is present for Oneshot, not even an explicit nil
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@@ -5,6 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | **string** | |
**Type** | **string** | |
**IsActive** | **bool** | |
**Id** | Pointer to **NullableInt32** | | [optional]
@@ -12,7 +13,7 @@ Name | Type | Description | Notes
### NewAccessAuthorizationDB
`func NewAccessAuthorizationDB(name string, isActive bool, ) *AccessAuthorizationDB`
`func NewAccessAuthorizationDB(name string, type_ string, isActive bool, ) *AccessAuthorizationDB`
NewAccessAuthorizationDB instantiates a new AccessAuthorizationDB object
This constructor will assign default values to properties that have it defined,
@@ -47,6 +48,26 @@ and a boolean to check if the value has been set.
SetName sets Name field to given value.
### GetType
`func (o *AccessAuthorizationDB) GetType() string`
GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
`func (o *AccessAuthorizationDB) GetTypeOk() (*string, bool)`
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetType
`func (o *AccessAuthorizationDB) SetType(v string)`
SetType sets Type field to given value.
### GetIsActive
`func (o *AccessAuthorizationDB) GetIsActive() bool`

View File

@@ -5,16 +5,18 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | **string** | |
**Type** | **string** | |
**IsActive** | **bool** | |
**Id** | **int32** | |
**Timetables** | [**[]Timetable**](Timetable.md) | |
**Timetables** | Pointer to [**[]Timetable**](Timetable.md) | | [optional] [default to {}]
**Oneshot** | Pointer to [**NullableOneShotAccessBase**](OneShotAccessBase.md) | | [optional]
**Groups** | [**[]GroupDB**](GroupDB.md) | |
## Methods
### NewAccessAuthorizationResponse
`func NewAccessAuthorizationResponse(name string, isActive bool, id int32, timetables []Timetable, groups []GroupDB, ) *AccessAuthorizationResponse`
`func NewAccessAuthorizationResponse(name string, type_ string, isActive bool, id int32, groups []GroupDB, ) *AccessAuthorizationResponse`
NewAccessAuthorizationResponse instantiates a new AccessAuthorizationResponse object
This constructor will assign default values to properties that have it defined,
@@ -49,6 +51,26 @@ and a boolean to check if the value has been set.
SetName sets Name field to given value.
### GetType
`func (o *AccessAuthorizationResponse) GetType() string`
GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
`func (o *AccessAuthorizationResponse) GetTypeOk() (*string, bool)`
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetType
`func (o *AccessAuthorizationResponse) SetType(v string)`
SetType sets Type field to given value.
### GetIsActive
`func (o *AccessAuthorizationResponse) GetIsActive() bool`
@@ -108,7 +130,47 @@ and a boolean to check if the value has been set.
SetTimetables sets Timetables field to given value.
### HasTimetables
`func (o *AccessAuthorizationResponse) HasTimetables() bool`
HasTimetables returns a boolean if a field has been set.
### GetOneshot
`func (o *AccessAuthorizationResponse) GetOneshot() OneShotAccessBase`
GetOneshot returns the Oneshot field if non-nil, zero value otherwise.
### GetOneshotOk
`func (o *AccessAuthorizationResponse) GetOneshotOk() (*OneShotAccessBase, bool)`
GetOneshotOk returns a tuple with the Oneshot field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetOneshot
`func (o *AccessAuthorizationResponse) SetOneshot(v OneShotAccessBase)`
SetOneshot sets Oneshot field to given value.
### HasOneshot
`func (o *AccessAuthorizationResponse) HasOneshot() bool`
HasOneshot returns a boolean if a field has been set.
### SetOneshotNil
`func (o *AccessAuthorizationResponse) SetOneshotNil(b bool)`
SetOneshotNil sets the value for Oneshot to be an explicit nil
### UnsetOneshot
`func (o *AccessAuthorizationResponse) UnsetOneshot()`
UnsetOneshot ensures that no value is present for Oneshot, not even an explicit nil
### GetGroups
`func (o *AccessAuthorizationResponse) GetGroups() []GroupDB`

View File

@@ -5,8 +5,10 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | Pointer to **NullableString** | | [optional]
**Type** | Pointer to **NullableString** | | [optional]
**IsActive** | Pointer to **NullableBool** | | [optional]
**Timetables** | Pointer to [**[]TimetableCreate**](TimetableCreate.md) | | [optional]
**Oneshot** | Pointer to [**NullableOneShotAccessBase**](OneShotAccessBase.md) | | [optional]
## Methods
@@ -62,6 +64,41 @@ HasName returns a boolean if a field has been set.
`func (o *AccessAuthorizationUpdate) UnsetName()`
UnsetName ensures that no value is present for Name, not even an explicit nil
### GetType
`func (o *AccessAuthorizationUpdate) GetType() string`
GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
`func (o *AccessAuthorizationUpdate) GetTypeOk() (*string, bool)`
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetType
`func (o *AccessAuthorizationUpdate) SetType(v string)`
SetType sets Type field to given value.
### HasType
`func (o *AccessAuthorizationUpdate) HasType() bool`
HasType returns a boolean if a field has been set.
### SetTypeNil
`func (o *AccessAuthorizationUpdate) SetTypeNil(b bool)`
SetTypeNil sets the value for Type to be an explicit nil
### UnsetType
`func (o *AccessAuthorizationUpdate) UnsetType()`
UnsetType ensures that no value is present for Type, not even an explicit nil
### GetIsActive
`func (o *AccessAuthorizationUpdate) GetIsActive() bool`
@@ -132,6 +169,41 @@ HasTimetables returns a boolean if a field has been set.
`func (o *AccessAuthorizationUpdate) UnsetTimetables()`
UnsetTimetables ensures that no value is present for Timetables, not even an explicit nil
### GetOneshot
`func (o *AccessAuthorizationUpdate) GetOneshot() OneShotAccessBase`
GetOneshot returns the Oneshot field if non-nil, zero value otherwise.
### GetOneshotOk
`func (o *AccessAuthorizationUpdate) GetOneshotOk() (*OneShotAccessBase, bool)`
GetOneshotOk returns a tuple with the Oneshot field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetOneshot
`func (o *AccessAuthorizationUpdate) SetOneshot(v OneShotAccessBase)`
SetOneshot sets Oneshot field to given value.
### HasOneshot
`func (o *AccessAuthorizationUpdate) HasOneshot() bool`
HasOneshot returns a boolean if a field has been set.
### SetOneshotNil
`func (o *AccessAuthorizationUpdate) SetOneshotNil(b bool)`
SetOneshotNil sets the value for Oneshot to be an explicit nil
### UnsetOneshot
`func (o *AccessAuthorizationUpdate) UnsetOneshot()`
UnsetOneshot ensures that no value is present for Oneshot, not even an explicit nil
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@@ -5,14 +5,17 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Id** | Pointer to **NullableInt32** | | [optional]
**Uuid** | **string** | |
**Key** | **string** | |
**CardSerial** | **string** | |
**Enabled** | Pointer to **bool** | | [optional] [default to true]
**Name** | **string** | |
**GroupId** | Pointer to **NullableInt32** | | [optional]
## Methods
### NewCard
`func NewCard(uuid string, ) *Card`
`func NewCard(key string, cardSerial string, name string, ) *Card`
NewCard instantiates a new Card object
This constructor will assign default values to properties that have it defined,
@@ -62,24 +65,89 @@ HasId returns a boolean if a field has been set.
`func (o *Card) UnsetId()`
UnsetId ensures that no value is present for Id, not even an explicit nil
### GetUuid
### GetKey
`func (o *Card) GetUuid() string`
`func (o *Card) GetKey() string`
GetUuid returns the Uuid field if non-nil, zero value otherwise.
GetKey returns the Key field if non-nil, zero value otherwise.
### GetUuidOk
### GetKeyOk
`func (o *Card) GetUuidOk() (*string, bool)`
`func (o *Card) GetKeyOk() (*string, bool)`
GetUuidOk returns a tuple with the Uuid field if it's non-nil, zero value otherwise
GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetUuid
### SetKey
`func (o *Card) SetUuid(v string)`
`func (o *Card) SetKey(v string)`
SetUuid sets Uuid field to given value.
SetKey sets Key field to given value.
### GetCardSerial
`func (o *Card) GetCardSerial() string`
GetCardSerial returns the CardSerial field if non-nil, zero value otherwise.
### GetCardSerialOk
`func (o *Card) GetCardSerialOk() (*string, bool)`
GetCardSerialOk returns a tuple with the CardSerial field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetCardSerial
`func (o *Card) SetCardSerial(v string)`
SetCardSerial sets CardSerial field to given value.
### GetEnabled
`func (o *Card) GetEnabled() bool`
GetEnabled returns the Enabled field if non-nil, zero value otherwise.
### GetEnabledOk
`func (o *Card) GetEnabledOk() (*bool, bool)`
GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetEnabled
`func (o *Card) SetEnabled(v bool)`
SetEnabled sets Enabled field to given value.
### HasEnabled
`func (o *Card) HasEnabled() bool`
HasEnabled returns a boolean if a field has been set.
### GetName
`func (o *Card) GetName() string`
GetName returns the Name field if non-nil, zero value otherwise.
### GetNameOk
`func (o *Card) GetNameOk() (*string, bool)`
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetName
`func (o *Card) SetName(v string)`
SetName sets Name field to given value.
### GetGroupId

View File

@@ -4,15 +4,16 @@ All URIs are relative to *http://localhost*
Method | HTTP request | Description
------------- | ------------- | -------------
[**AddCardApiV1CardsGroupIdPost**](CardAPI.md#AddCardApiV1CardsGroupIdPost) | **Post** /api/v1/cards/{group_id} | Add Card
[**DelCardApiV1CardsDeleteGet**](CardAPI.md#DelCardApiV1CardsDeleteGet) | **Get** /api/v1/cards/delete | Del Card
[**AddCardApiV1CardsPost**](CardAPI.md#AddCardApiV1CardsPost) | **Post** /api/v1/cards/ | Add Card
[**DelCardApiV1CardsDelete**](CardAPI.md#DelCardApiV1CardsDelete) | **Delete** /api/v1/cards/ | Del Card
[**GetCardsApiV1CardsGroupIdGet**](CardAPI.md#GetCardsApiV1CardsGroupIdGet) | **Get** /api/v1/cards/{group_id} | Get Cards
[**UpdateCardApiV1CardsCardIdPatch**](CardAPI.md#UpdateCardApiV1CardsCardIdPatch) | **Patch** /api/v1/cards/{card_id} | Update Card
## AddCardApiV1CardsGroupIdPost
## AddCardApiV1CardsPost
> Card AddCardApiV1CardsGroupIdPost(ctx, groupId).Execute()
> Card AddCardApiV1CardsPost(ctx).CardCreate(cardCreate).Execute()
Add Card
@@ -29,36 +30,32 @@ import (
)
func main() {
groupId := int32(56) // int32 |
cardCreate := *openapiclient.NewCardCreate("Name_example", int32(123)) // CardCreate |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.CardAPI.AddCardApiV1CardsGroupIdPost(context.Background(), groupId).Execute()
resp, r, err := apiClient.CardAPI.AddCardApiV1CardsPost(context.Background()).CardCreate(cardCreate).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CardAPI.AddCardApiV1CardsGroupIdPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Error when calling `CardAPI.AddCardApiV1CardsPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AddCardApiV1CardsGroupIdPost`: Card
fmt.Fprintf(os.Stdout, "Response from `CardAPI.AddCardApiV1CardsGroupIdPost`: %v\n", resp)
// response from `AddCardApiV1CardsPost`: Card
fmt.Fprintf(os.Stdout, "Response from `CardAPI.AddCardApiV1CardsPost`: %v\n", resp)
}
```
### Path Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
**groupId** | **int32** | |
### Other Parameters
Other parameters are passed through a pointer to a apiAddCardApiV1CardsGroupIdPostRequest struct via the builder pattern
Other parameters are passed through a pointer to a apiAddCardApiV1CardsPostRequest struct via the builder pattern
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**cardCreate** | [**CardCreate**](CardCreate.md) | |
### Return type
@@ -70,7 +67,7 @@ Name | Type | Description | Notes
### HTTP request headers
- **Content-Type**: Not defined
- **Content-Type**: application/json
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
@@ -78,9 +75,9 @@ Name | Type | Description | Notes
[[Back to README]](../README.md)
## DelCardApiV1CardsDeleteGet
## DelCardApiV1CardsDelete
> interface{} DelCardApiV1CardsDeleteGet(ctx).Execute()
> interface{} DelCardApiV1CardsDelete(ctx).Execute()
Del Card
@@ -100,13 +97,13 @@ func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.CardAPI.DelCardApiV1CardsDeleteGet(context.Background()).Execute()
resp, r, err := apiClient.CardAPI.DelCardApiV1CardsDelete(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CardAPI.DelCardApiV1CardsDeleteGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Error when calling `CardAPI.DelCardApiV1CardsDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DelCardApiV1CardsDeleteGet`: interface{}
fmt.Fprintf(os.Stdout, "Response from `CardAPI.DelCardApiV1CardsDeleteGet`: %v\n", resp)
// response from `DelCardApiV1CardsDelete`: interface{}
fmt.Fprintf(os.Stdout, "Response from `CardAPI.DelCardApiV1CardsDelete`: %v\n", resp)
}
```
@@ -116,7 +113,7 @@ This endpoint does not need any parameter.
### Other Parameters
Other parameters are passed through a pointer to a apiDelCardApiV1CardsDeleteGetRequest struct via the builder pattern
Other parameters are passed through a pointer to a apiDelCardApiV1CardsDeleteRequest struct via the builder pattern
### Return type
@@ -204,3 +201,73 @@ Name | Type | Description | Notes
[[Back to Model list]](../README.md#documentation-for-models)
[[Back to README]](../README.md)
## UpdateCardApiV1CardsCardIdPatch
> Card UpdateCardApiV1CardsCardIdPatch(ctx, cardId).CardUpdate(cardUpdate).Execute()
Update Card
### Example
```go
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
cardId := int32(56) // int32 |
cardUpdate := *openapiclient.NewCardUpdate() // CardUpdate |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.CardAPI.UpdateCardApiV1CardsCardIdPatch(context.Background(), cardId).CardUpdate(cardUpdate).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CardAPI.UpdateCardApiV1CardsCardIdPatch``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UpdateCardApiV1CardsCardIdPatch`: Card
fmt.Fprintf(os.Stdout, "Response from `CardAPI.UpdateCardApiV1CardsCardIdPatch`: %v\n", resp)
}
```
### Path Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
**cardId** | **int32** | |
### Other Parameters
Other parameters are passed through a pointer to a apiUpdateCardApiV1CardsCardIdPatchRequest struct via the builder pattern
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**cardUpdate** | [**CardUpdate**](CardUpdate.md) | |
### Return type
[**Card**](Card.md)
### Authorization
[OAuth2PasswordBearer](../README.md#OAuth2PasswordBearer)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to Model list]](../README.md#documentation-for-models)
[[Back to README]](../README.md)

View File

@@ -0,0 +1,98 @@
# CardCreate
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | **string** | |
**Enabled** | Pointer to **bool** | | [optional] [default to true]
**GroupId** | **int32** | |
## Methods
### NewCardCreate
`func NewCardCreate(name string, groupId int32, ) *CardCreate`
NewCardCreate instantiates a new CardCreate object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed
### NewCardCreateWithDefaults
`func NewCardCreateWithDefaults() *CardCreate`
NewCardCreateWithDefaults instantiates a new CardCreate object
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set
### GetName
`func (o *CardCreate) GetName() string`
GetName returns the Name field if non-nil, zero value otherwise.
### GetNameOk
`func (o *CardCreate) GetNameOk() (*string, bool)`
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetName
`func (o *CardCreate) SetName(v string)`
SetName sets Name field to given value.
### GetEnabled
`func (o *CardCreate) GetEnabled() bool`
GetEnabled returns the Enabled field if non-nil, zero value otherwise.
### GetEnabledOk
`func (o *CardCreate) GetEnabledOk() (*bool, bool)`
GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetEnabled
`func (o *CardCreate) SetEnabled(v bool)`
SetEnabled sets Enabled field to given value.
### HasEnabled
`func (o *CardCreate) HasEnabled() bool`
HasEnabled returns a boolean if a field has been set.
### GetGroupId
`func (o *CardCreate) GetGroupId() int32`
GetGroupId returns the GroupId field if non-nil, zero value otherwise.
### GetGroupIdOk
`func (o *CardCreate) GetGroupIdOk() (*int32, bool)`
GetGroupIdOk returns a tuple with the GroupId field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetGroupId
`func (o *CardCreate) SetGroupId(v int32)`
SetGroupId sets GroupId field to given value.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

138
openapi/docs/CardUpdate.md Normal file
View File

@@ -0,0 +1,138 @@
# CardUpdate
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | Pointer to **NullableString** | | [optional]
**Enabled** | Pointer to **NullableBool** | | [optional]
**GroupId** | Pointer to **NullableInt32** | | [optional]
## Methods
### NewCardUpdate
`func NewCardUpdate() *CardUpdate`
NewCardUpdate instantiates a new CardUpdate object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed
### NewCardUpdateWithDefaults
`func NewCardUpdateWithDefaults() *CardUpdate`
NewCardUpdateWithDefaults instantiates a new CardUpdate object
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set
### GetName
`func (o *CardUpdate) GetName() string`
GetName returns the Name field if non-nil, zero value otherwise.
### GetNameOk
`func (o *CardUpdate) GetNameOk() (*string, bool)`
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetName
`func (o *CardUpdate) SetName(v string)`
SetName sets Name field to given value.
### HasName
`func (o *CardUpdate) HasName() bool`
HasName returns a boolean if a field has been set.
### SetNameNil
`func (o *CardUpdate) SetNameNil(b bool)`
SetNameNil sets the value for Name to be an explicit nil
### UnsetName
`func (o *CardUpdate) UnsetName()`
UnsetName ensures that no value is present for Name, not even an explicit nil
### GetEnabled
`func (o *CardUpdate) GetEnabled() bool`
GetEnabled returns the Enabled field if non-nil, zero value otherwise.
### GetEnabledOk
`func (o *CardUpdate) GetEnabledOk() (*bool, bool)`
GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetEnabled
`func (o *CardUpdate) SetEnabled(v bool)`
SetEnabled sets Enabled field to given value.
### HasEnabled
`func (o *CardUpdate) HasEnabled() bool`
HasEnabled returns a boolean if a field has been set.
### SetEnabledNil
`func (o *CardUpdate) SetEnabledNil(b bool)`
SetEnabledNil sets the value for Enabled to be an explicit nil
### UnsetEnabled
`func (o *CardUpdate) UnsetEnabled()`
UnsetEnabled ensures that no value is present for Enabled, not even an explicit nil
### GetGroupId
`func (o *CardUpdate) GetGroupId() int32`
GetGroupId returns the GroupId field if non-nil, zero value otherwise.
### GetGroupIdOk
`func (o *CardUpdate) GetGroupIdOk() (*int32, bool)`
GetGroupIdOk returns a tuple with the GroupId field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetGroupId
`func (o *CardUpdate) SetGroupId(v int32)`
SetGroupId sets GroupId field to given value.
### HasGroupId
`func (o *CardUpdate) HasGroupId() bool`
HasGroupId returns a boolean if a field has been set.
### SetGroupIdNil
`func (o *CardUpdate) SetGroupIdNil(b bool)`
SetGroupIdNil sets the value for GroupId to be an explicit nil
### UnsetGroupId
`func (o *CardUpdate) UnsetGroupId()`
UnsetGroupId ensures that no value is present for GroupId, not even an explicit nil
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@@ -4,15 +4,15 @@ All URIs are relative to *http://localhost*
Method | HTTP request | Description
------------- | ------------- | -------------
[**AddCardManuallyApiV1DebugAddcardGroupidCardKeyGet**](DebugItemsMaybeDontShowThisInUIAPI.md#AddCardManuallyApiV1DebugAddcardGroupidCardKeyGet) | **Get** /api/v1/debug/addcard/{groupid}/{card_key} | Add Card Manually
[**AddCardManuallyApiV1DebugAddcardPut**](DebugItemsMaybeDontShowThisInUIAPI.md#AddCardManuallyApiV1DebugAddcardPut) | **Put** /api/v1/debug/addcard/ | Add Card Manually
[**ListAllCardsApiV1DebugGetcardsPut**](DebugItemsMaybeDontShowThisInUIAPI.md#ListAllCardsApiV1DebugGetcardsPut) | **Put** /api/v1/debug/getcards | List All Cards
[**RemoveCardManuallyApiV1DebugRmcardCardKeyGet**](DebugItemsMaybeDontShowThisInUIAPI.md#RemoveCardManuallyApiV1DebugRmcardCardKeyGet) | **Get** /api/v1/debug/rmcard/{card_key} | Remove Card Manually
[**RemoveCardManuallyApiV1DebugRmcardCardIdGet**](DebugItemsMaybeDontShowThisInUIAPI.md#RemoveCardManuallyApiV1DebugRmcardCardIdGet) | **Get** /api/v1/debug/rmcard/{card_id} | Remove Card Manually
## AddCardManuallyApiV1DebugAddcardGroupidCardKeyGet
## AddCardManuallyApiV1DebugAddcardPut
> interface{} AddCardManuallyApiV1DebugAddcardGroupidCardKeyGet(ctx, groupid, cardKey).Execute()
> interface{} AddCardManuallyApiV1DebugAddcardPut(ctx).Groupid(groupid).CardKey(cardKey).Name(name).Enabled(enabled).Execute()
Add Card Manually
@@ -33,37 +33,36 @@ import (
func main() {
groupid := int32(56) // int32 |
cardKey := "cardKey_example" // string |
name := "name_example" // string |
enabled := true // bool |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DebugItemsMaybeDontShowThisInUIAPI.AddCardManuallyApiV1DebugAddcardGroupidCardKeyGet(context.Background(), groupid, cardKey).Execute()
resp, r, err := apiClient.DebugItemsMaybeDontShowThisInUIAPI.AddCardManuallyApiV1DebugAddcardPut(context.Background()).Groupid(groupid).CardKey(cardKey).Name(name).Enabled(enabled).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DebugItemsMaybeDontShowThisInUIAPI.AddCardManuallyApiV1DebugAddcardGroupidCardKeyGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Error when calling `DebugItemsMaybeDontShowThisInUIAPI.AddCardManuallyApiV1DebugAddcardPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AddCardManuallyApiV1DebugAddcardGroupidCardKeyGet`: interface{}
fmt.Fprintf(os.Stdout, "Response from `DebugItemsMaybeDontShowThisInUIAPI.AddCardManuallyApiV1DebugAddcardGroupidCardKeyGet`: %v\n", resp)
// response from `AddCardManuallyApiV1DebugAddcardPut`: interface{}
fmt.Fprintf(os.Stdout, "Response from `DebugItemsMaybeDontShowThisInUIAPI.AddCardManuallyApiV1DebugAddcardPut`: %v\n", resp)
}
```
### Path Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
**groupid** | **int32** | |
**cardKey** | **string** | |
### Other Parameters
Other parameters are passed through a pointer to a apiAddCardManuallyApiV1DebugAddcardGroupidCardKeyGetRequest struct via the builder pattern
Other parameters are passed through a pointer to a apiAddCardManuallyApiV1DebugAddcardPutRequest struct via the builder pattern
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**groupid** | **int32** | |
**cardKey** | **string** | |
**name** | **string** | |
**enabled** | **bool** | |
### Return type
@@ -142,9 +141,9 @@ Other parameters are passed through a pointer to a apiListAllCardsApiV1DebugGetc
[[Back to README]](../README.md)
## RemoveCardManuallyApiV1DebugRmcardCardKeyGet
## RemoveCardManuallyApiV1DebugRmcardCardIdGet
> interface{} RemoveCardManuallyApiV1DebugRmcardCardKeyGet(ctx, cardKey).Execute()
> interface{} RemoveCardManuallyApiV1DebugRmcardCardIdGet(ctx, cardId).Execute()
Remove Card Manually
@@ -161,17 +160,17 @@ import (
)
func main() {
cardKey := "cardKey_example" // string |
cardId := "cardId_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DebugItemsMaybeDontShowThisInUIAPI.RemoveCardManuallyApiV1DebugRmcardCardKeyGet(context.Background(), cardKey).Execute()
resp, r, err := apiClient.DebugItemsMaybeDontShowThisInUIAPI.RemoveCardManuallyApiV1DebugRmcardCardIdGet(context.Background(), cardId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DebugItemsMaybeDontShowThisInUIAPI.RemoveCardManuallyApiV1DebugRmcardCardKeyGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Error when calling `DebugItemsMaybeDontShowThisInUIAPI.RemoveCardManuallyApiV1DebugRmcardCardIdGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `RemoveCardManuallyApiV1DebugRmcardCardKeyGet`: interface{}
fmt.Fprintf(os.Stdout, "Response from `DebugItemsMaybeDontShowThisInUIAPI.RemoveCardManuallyApiV1DebugRmcardCardKeyGet`: %v\n", resp)
// response from `RemoveCardManuallyApiV1DebugRmcardCardIdGet`: interface{}
fmt.Fprintf(os.Stdout, "Response from `DebugItemsMaybeDontShowThisInUIAPI.RemoveCardManuallyApiV1DebugRmcardCardIdGet`: %v\n", resp)
}
```
@@ -181,11 +180,11 @@ func main() {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
**cardKey** | **string** | |
**cardId** | **string** | |
### Other Parameters
Other parameters are passed through a pointer to a apiRemoveCardManuallyApiV1DebugRmcardCardKeyGetRequest struct via the builder pattern
Other parameters are passed through a pointer to a apiRemoveCardManuallyApiV1DebugRmcardCardIdGetRequest struct via the builder pattern
Name | Type | Description | Notes

View File

@@ -4,17 +4,18 @@ All URIs are relative to *http://localhost*
Method | HTTP request | Description
------------- | ------------- | -------------
[**OpenDoorApiV1DoorClosePut**](DoorAPI.md#OpenDoorApiV1DoorClosePut) | **Put** /api/v1/door/close | Open Door
[**CloseDoorApiV1DoorClosePut**](DoorAPI.md#CloseDoorApiV1DoorClosePut) | **Put** /api/v1/door/close | Close Door
[**IsDoorOpenApiV1DoorStatusPut**](DoorAPI.md#IsDoorOpenApiV1DoorStatusPut) | **Put** /api/v1/door/status | Is Door Open
[**OpenDoorApiV1DoorOpenPut**](DoorAPI.md#OpenDoorApiV1DoorOpenPut) | **Put** /api/v1/door/open | Open Door
[**TestAccessApiV1DoorTestPost**](DoorAPI.md#TestAccessApiV1DoorTestPost) | **Post** /api/v1/door/test | Test Access
## OpenDoorApiV1DoorClosePut
## CloseDoorApiV1DoorClosePut
> interface{} OpenDoorApiV1DoorClosePut(ctx).Execute()
> interface{} CloseDoorApiV1DoorClosePut(ctx).Execute()
Open Door
Close Door
### Example
@@ -32,13 +33,13 @@ func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DoorAPI.OpenDoorApiV1DoorClosePut(context.Background()).Execute()
resp, r, err := apiClient.DoorAPI.CloseDoorApiV1DoorClosePut(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DoorAPI.OpenDoorApiV1DoorClosePut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Error when calling `DoorAPI.CloseDoorApiV1DoorClosePut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `OpenDoorApiV1DoorClosePut`: interface{}
fmt.Fprintf(os.Stdout, "Response from `DoorAPI.OpenDoorApiV1DoorClosePut`: %v\n", resp)
// response from `CloseDoorApiV1DoorClosePut`: interface{}
fmt.Fprintf(os.Stdout, "Response from `DoorAPI.CloseDoorApiV1DoorClosePut`: %v\n", resp)
}
```
@@ -48,7 +49,66 @@ This endpoint does not need any parameter.
### Other Parameters
Other parameters are passed through a pointer to a apiOpenDoorApiV1DoorClosePutRequest struct via the builder pattern
Other parameters are passed through a pointer to a apiCloseDoorApiV1DoorClosePutRequest struct via the builder pattern
### Return type
**interface{}**
### Authorization
[OAuth2PasswordBearer](../README.md#OAuth2PasswordBearer)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to Model list]](../README.md#documentation-for-models)
[[Back to README]](../README.md)
## IsDoorOpenApiV1DoorStatusPut
> interface{} IsDoorOpenApiV1DoorStatusPut(ctx).Execute()
Is Door Open
### Example
```go
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DoorAPI.IsDoorOpenApiV1DoorStatusPut(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DoorAPI.IsDoorOpenApiV1DoorStatusPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `IsDoorOpenApiV1DoorStatusPut`: interface{}
fmt.Fprintf(os.Stdout, "Response from `DoorAPI.IsDoorOpenApiV1DoorStatusPut`: %v\n", resp)
}
```
### Path Parameters
This endpoint does not need any parameter.
### Other Parameters
Other parameters are passed through a pointer to a apiIsDoorOpenApiV1DoorStatusPutRequest struct via the builder pattern
### Return type

View File

@@ -0,0 +1,77 @@
# OneShotAccessBase
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Uses** | Pointer to **int32** | | [optional] [default to 1]
**EndsAt** | **time.Time** | |
## Methods
### NewOneShotAccessBase
`func NewOneShotAccessBase(endsAt time.Time, ) *OneShotAccessBase`
NewOneShotAccessBase instantiates a new OneShotAccessBase object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed
### NewOneShotAccessBaseWithDefaults
`func NewOneShotAccessBaseWithDefaults() *OneShotAccessBase`
NewOneShotAccessBaseWithDefaults instantiates a new OneShotAccessBase object
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set
### GetUses
`func (o *OneShotAccessBase) GetUses() int32`
GetUses returns the Uses field if non-nil, zero value otherwise.
### GetUsesOk
`func (o *OneShotAccessBase) GetUsesOk() (*int32, bool)`
GetUsesOk returns a tuple with the Uses field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetUses
`func (o *OneShotAccessBase) SetUses(v int32)`
SetUses sets Uses field to given value.
### HasUses
`func (o *OneShotAccessBase) HasUses() bool`
HasUses returns a boolean if a field has been set.
### GetEndsAt
`func (o *OneShotAccessBase) GetEndsAt() time.Time`
GetEndsAt returns the EndsAt field if non-nil, zero value otherwise.
### GetEndsAtOk
`func (o *OneShotAccessBase) GetEndsAtOk() (*time.Time, bool)`
GetEndsAtOk returns a tuple with the EndsAt field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetEndsAt
`func (o *OneShotAccessBase) SetEndsAt(v time.Time)`
SetEndsAt sets EndsAt field to given value.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)