mirror of
https://github.com/GlueOps/autoglue.git
synced 2026-02-13 04:40:05 +01:00
feat: complete node pool api, sdk and ui
Signed-off-by: allanice001 <allanice001@gmail.com>
This commit is contained in:
@@ -10,6 +10,7 @@ api_health.go
|
||||
api_labels.go
|
||||
api_me.go
|
||||
api_me_api_keys.go
|
||||
api_node_pools.go
|
||||
api_orgs.go
|
||||
api_servers.go
|
||||
api_ssh.go
|
||||
@@ -20,9 +21,14 @@ docs/AnnotationsAPI.md
|
||||
docs/ArcherAdminAPI.md
|
||||
docs/AuthAPI.md
|
||||
docs/DtoAnnotationResponse.md
|
||||
docs/DtoAttachAnnotationsRequest.md
|
||||
docs/DtoAttachLabelsRequest.md
|
||||
docs/DtoAttachServersRequest.md
|
||||
docs/DtoAttachTaintsRequest.md
|
||||
docs/DtoAuthStartResponse.md
|
||||
docs/DtoCreateAnnotationRequest.md
|
||||
docs/DtoCreateLabelRequest.md
|
||||
docs/DtoCreateNodePoolRequest.md
|
||||
docs/DtoCreateSSHRequest.md
|
||||
docs/DtoCreateServerRequest.md
|
||||
docs/DtoCreateTaintRequest.md
|
||||
@@ -32,6 +38,7 @@ docs/DtoJob.md
|
||||
docs/DtoJobStatus.md
|
||||
docs/DtoLabelResponse.md
|
||||
docs/DtoLogoutRequest.md
|
||||
docs/DtoNodePoolResponse.md
|
||||
docs/DtoPageJob.md
|
||||
docs/DtoQueueInfo.md
|
||||
docs/DtoRefreshRequest.md
|
||||
@@ -42,6 +49,7 @@ docs/DtoTaintResponse.md
|
||||
docs/DtoTokenPair.md
|
||||
docs/DtoUpdateAnnotationRequest.md
|
||||
docs/DtoUpdateLabelRequest.md
|
||||
docs/DtoUpdateNodePoolRequest.md
|
||||
docs/DtoUpdateServerRequest.md
|
||||
docs/DtoUpdateTaintRequest.md
|
||||
docs/HandlersCreateUserKeyRequest.md
|
||||
@@ -63,6 +71,7 @@ docs/ModelsAPIKey.md
|
||||
docs/ModelsOrganization.md
|
||||
docs/ModelsUser.md
|
||||
docs/ModelsUserEmail.md
|
||||
docs/NodePoolsAPI.md
|
||||
docs/OrgsAPI.md
|
||||
docs/ServersAPI.md
|
||||
docs/SshAPI.md
|
||||
@@ -72,9 +81,14 @@ git_push.sh
|
||||
go.mod
|
||||
go.sum
|
||||
model_dto_annotation_response.go
|
||||
model_dto_attach_annotations_request.go
|
||||
model_dto_attach_labels_request.go
|
||||
model_dto_attach_servers_request.go
|
||||
model_dto_attach_taints_request.go
|
||||
model_dto_auth_start_response.go
|
||||
model_dto_create_annotation_request.go
|
||||
model_dto_create_label_request.go
|
||||
model_dto_create_node_pool_request.go
|
||||
model_dto_create_server_request.go
|
||||
model_dto_create_ssh_request.go
|
||||
model_dto_create_taint_request.go
|
||||
@@ -84,6 +98,7 @@ model_dto_jwk.go
|
||||
model_dto_jwks.go
|
||||
model_dto_label_response.go
|
||||
model_dto_logout_request.go
|
||||
model_dto_node_pool_response.go
|
||||
model_dto_page_job.go
|
||||
model_dto_queue_info.go
|
||||
model_dto_refresh_request.go
|
||||
@@ -94,6 +109,7 @@ model_dto_taint_response.go
|
||||
model_dto_token_pair.go
|
||||
model_dto_update_annotation_request.go
|
||||
model_dto_update_label_request.go
|
||||
model_dto_update_node_pool_request.go
|
||||
model_dto_update_server_request.go
|
||||
model_dto_update_taint_request.go
|
||||
model_handlers_create_user_key_request.go
|
||||
@@ -120,6 +136,7 @@ test/api_health_test.go
|
||||
test/api_labels_test.go
|
||||
test/api_me_api_keys_test.go
|
||||
test/api_me_test.go
|
||||
test/api_node_pools_test.go
|
||||
test/api_orgs_test.go
|
||||
test/api_servers_test.go
|
||||
test/api_ssh_test.go
|
||||
|
||||
@@ -74,7 +74,7 @@ ctx = context.WithValue(context.Background(), autoglue.ContextOperationServerVar
|
||||
|
||||
## Documentation for API Endpoints
|
||||
|
||||
All URIs are relative to *http://localhost:8080/api/v1*
|
||||
All URIs are relative to */api/v1*
|
||||
|
||||
Class | Method | HTTP request | Description
|
||||
------------ | ------------- | ------------- | -------------
|
||||
@@ -104,6 +104,23 @@ Class | Method | HTTP request | Description
|
||||
*MeAPIKeysAPI* | [**CreateUserAPIKey**](docs/MeAPIKeysAPI.md#createuserapikey) | **Post** /me/api-keys | Create a new user API key
|
||||
*MeAPIKeysAPI* | [**DeleteUserAPIKey**](docs/MeAPIKeysAPI.md#deleteuserapikey) | **Delete** /me/api-keys/{id} | Delete a user API key
|
||||
*MeAPIKeysAPI* | [**ListUserAPIKeys**](docs/MeAPIKeysAPI.md#listuserapikeys) | **Get** /me/api-keys | List my API keys
|
||||
*NodePoolsAPI* | [**AttachNodePoolAnnotations**](docs/NodePoolsAPI.md#attachnodepoolannotations) | **Post** /node-pools/{id}/annotations | Attach annotation to a node pool (org scoped)
|
||||
*NodePoolsAPI* | [**AttachNodePoolLabels**](docs/NodePoolsAPI.md#attachnodepoollabels) | **Post** /node-pools/{id}/labels | Attach labels to a node pool (org scoped)
|
||||
*NodePoolsAPI* | [**AttachNodePoolServers**](docs/NodePoolsAPI.md#attachnodepoolservers) | **Post** /node-pools/{id}/servers | Attach servers to a node pool (org scoped)
|
||||
*NodePoolsAPI* | [**AttachNodePoolTaints**](docs/NodePoolsAPI.md#attachnodepooltaints) | **Post** /node-pools/{id}/taints | Attach taints to a node pool (org scoped)
|
||||
*NodePoolsAPI* | [**CreateNodePool**](docs/NodePoolsAPI.md#createnodepool) | **Post** /node-pools | Create node pool (org scoped)
|
||||
*NodePoolsAPI* | [**DeleteNodePool**](docs/NodePoolsAPI.md#deletenodepool) | **Delete** /node-pools/{id} | Delete node pool (org scoped)
|
||||
*NodePoolsAPI* | [**DetachNodePoolAnnotation**](docs/NodePoolsAPI.md#detachnodepoolannotation) | **Delete** /node-pools/{id}/annotations/{annotationId} | Detach one annotation from a node pool (org scoped)
|
||||
*NodePoolsAPI* | [**DetachNodePoolLabel**](docs/NodePoolsAPI.md#detachnodepoollabel) | **Delete** /node-pools/{id}/labels/{labelId} | Detach one label from a node pool (org scoped)
|
||||
*NodePoolsAPI* | [**DetachNodePoolServer**](docs/NodePoolsAPI.md#detachnodepoolserver) | **Delete** /node-pools/{id}/servers/{serverId} | Detach one server from a node pool (org scoped)
|
||||
*NodePoolsAPI* | [**DetachNodePoolTaint**](docs/NodePoolsAPI.md#detachnodepooltaint) | **Delete** /node-pools/{id}/taints/{taintId} | Detach one taint from a node pool (org scoped)
|
||||
*NodePoolsAPI* | [**GetNodePool**](docs/NodePoolsAPI.md#getnodepool) | **Get** /node-pools/{id} | Get node pool by ID (org scoped)
|
||||
*NodePoolsAPI* | [**ListNodePoolAnnotations**](docs/NodePoolsAPI.md#listnodepoolannotations) | **Get** /node-pools/{id}/annotations | List annotations attached to a node pool (org scoped)
|
||||
*NodePoolsAPI* | [**ListNodePoolLabels**](docs/NodePoolsAPI.md#listnodepoollabels) | **Get** /node-pools/{id}/labels | List labels attached to a node pool (org scoped)
|
||||
*NodePoolsAPI* | [**ListNodePoolServers**](docs/NodePoolsAPI.md#listnodepoolservers) | **Get** /node-pools/{id}/servers | List servers attached to a node pool (org scoped)
|
||||
*NodePoolsAPI* | [**ListNodePoolTaints**](docs/NodePoolsAPI.md#listnodepooltaints) | **Get** /node-pools/{id}/taints | List taints attached to a node pool (org scoped)
|
||||
*NodePoolsAPI* | [**ListNodePools**](docs/NodePoolsAPI.md#listnodepools) | **Get** /node-pools | List node pools (org scoped)
|
||||
*NodePoolsAPI* | [**UpdateNodePool**](docs/NodePoolsAPI.md#updatenodepool) | **Patch** /node-pools/{id} | Update node pool (org scoped)
|
||||
*OrgsAPI* | [**AddOrUpdateMember**](docs/OrgsAPI.md#addorupdatemember) | **Post** /orgs/{id}/members | Add or update a member (owner/admin)
|
||||
*OrgsAPI* | [**CreateOrg**](docs/OrgsAPI.md#createorg) | **Post** /orgs | Create organization
|
||||
*OrgsAPI* | [**CreateOrgKey**](docs/OrgsAPI.md#createorgkey) | **Post** /orgs/{id}/api-keys | Create org key/secret pair (owner/admin)
|
||||
@@ -135,9 +152,14 @@ Class | Method | HTTP request | Description
|
||||
## Documentation For Models
|
||||
|
||||
- [DtoAnnotationResponse](docs/DtoAnnotationResponse.md)
|
||||
- [DtoAttachAnnotationsRequest](docs/DtoAttachAnnotationsRequest.md)
|
||||
- [DtoAttachLabelsRequest](docs/DtoAttachLabelsRequest.md)
|
||||
- [DtoAttachServersRequest](docs/DtoAttachServersRequest.md)
|
||||
- [DtoAttachTaintsRequest](docs/DtoAttachTaintsRequest.md)
|
||||
- [DtoAuthStartResponse](docs/DtoAuthStartResponse.md)
|
||||
- [DtoCreateAnnotationRequest](docs/DtoCreateAnnotationRequest.md)
|
||||
- [DtoCreateLabelRequest](docs/DtoCreateLabelRequest.md)
|
||||
- [DtoCreateNodePoolRequest](docs/DtoCreateNodePoolRequest.md)
|
||||
- [DtoCreateSSHRequest](docs/DtoCreateSSHRequest.md)
|
||||
- [DtoCreateServerRequest](docs/DtoCreateServerRequest.md)
|
||||
- [DtoCreateTaintRequest](docs/DtoCreateTaintRequest.md)
|
||||
@@ -147,6 +169,7 @@ Class | Method | HTTP request | Description
|
||||
- [DtoJobStatus](docs/DtoJobStatus.md)
|
||||
- [DtoLabelResponse](docs/DtoLabelResponse.md)
|
||||
- [DtoLogoutRequest](docs/DtoLogoutRequest.md)
|
||||
- [DtoNodePoolResponse](docs/DtoNodePoolResponse.md)
|
||||
- [DtoPageJob](docs/DtoPageJob.md)
|
||||
- [DtoQueueInfo](docs/DtoQueueInfo.md)
|
||||
- [DtoRefreshRequest](docs/DtoRefreshRequest.md)
|
||||
@@ -157,6 +180,7 @@ Class | Method | HTTP request | Description
|
||||
- [DtoTokenPair](docs/DtoTokenPair.md)
|
||||
- [DtoUpdateAnnotationRequest](docs/DtoUpdateAnnotationRequest.md)
|
||||
- [DtoUpdateLabelRequest](docs/DtoUpdateLabelRequest.md)
|
||||
- [DtoUpdateNodePoolRequest](docs/DtoUpdateNodePoolRequest.md)
|
||||
- [DtoUpdateServerRequest](docs/DtoUpdateServerRequest.md)
|
||||
- [DtoUpdateTaintRequest](docs/DtoUpdateTaintRequest.md)
|
||||
- [HandlersCreateUserKeyRequest](docs/HandlersCreateUserKeyRequest.md)
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
3615
sdk/go/api_node_pools.go
Normal file
3615
sdk/go/api_node_pools.go
Normal file
File diff suppressed because it is too large
Load Diff
@@ -62,6 +62,8 @@ type APIClient struct {
|
||||
|
||||
MeAPIKeysAPI *MeAPIKeysAPIService
|
||||
|
||||
NodePoolsAPI *NodePoolsAPIService
|
||||
|
||||
OrgsAPI *OrgsAPIService
|
||||
|
||||
ServersAPI *ServersAPIService
|
||||
@@ -94,6 +96,7 @@ func NewAPIClient(cfg *Configuration) *APIClient {
|
||||
c.LabelsAPI = (*LabelsAPIService)(&c.common)
|
||||
c.MeAPI = (*MeAPIService)(&c.common)
|
||||
c.MeAPIKeysAPI = (*MeAPIKeysAPIService)(&c.common)
|
||||
c.NodePoolsAPI = (*NodePoolsAPIService)(&c.common)
|
||||
c.OrgsAPI = (*OrgsAPIService)(&c.common)
|
||||
c.ServersAPI = (*ServersAPIService)(&c.common)
|
||||
c.SshAPI = (*SshAPIService)(&c.common)
|
||||
|
||||
@@ -93,11 +93,7 @@ func NewConfiguration() *Configuration {
|
||||
Debug: false,
|
||||
Servers: ServerConfigurations{
|
||||
{
|
||||
URL: "http://localhost:8080/api/v1",
|
||||
Description: "No description provided",
|
||||
},
|
||||
{
|
||||
URL: "https://localhost:8080/api/v1",
|
||||
URL: "/api/v1",
|
||||
Description: "No description provided",
|
||||
},
|
||||
},
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# \AnnotationsAPI
|
||||
|
||||
All URIs are relative to *http://localhost:8080/api/v1*
|
||||
All URIs are relative to */api/v1*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# \ArcherAdminAPI
|
||||
|
||||
All URIs are relative to *http://localhost:8080/api/v1*
|
||||
All URIs are relative to */api/v1*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# \AuthAPI
|
||||
|
||||
All URIs are relative to *http://localhost:8080/api/v1*
|
||||
All URIs are relative to */api/v1*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
|
||||
56
sdk/go/docs/DtoAttachAnnotationsRequest.md
Normal file
56
sdk/go/docs/DtoAttachAnnotationsRequest.md
Normal file
@@ -0,0 +1,56 @@
|
||||
# DtoAttachAnnotationsRequest
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**AnnotationIds** | Pointer to **[]string** | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewDtoAttachAnnotationsRequest
|
||||
|
||||
`func NewDtoAttachAnnotationsRequest() *DtoAttachAnnotationsRequest`
|
||||
|
||||
NewDtoAttachAnnotationsRequest instantiates a new DtoAttachAnnotationsRequest 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
|
||||
|
||||
### NewDtoAttachAnnotationsRequestWithDefaults
|
||||
|
||||
`func NewDtoAttachAnnotationsRequestWithDefaults() *DtoAttachAnnotationsRequest`
|
||||
|
||||
NewDtoAttachAnnotationsRequestWithDefaults instantiates a new DtoAttachAnnotationsRequest 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
|
||||
|
||||
### GetAnnotationIds
|
||||
|
||||
`func (o *DtoAttachAnnotationsRequest) GetAnnotationIds() []string`
|
||||
|
||||
GetAnnotationIds returns the AnnotationIds field if non-nil, zero value otherwise.
|
||||
|
||||
### GetAnnotationIdsOk
|
||||
|
||||
`func (o *DtoAttachAnnotationsRequest) GetAnnotationIdsOk() (*[]string, bool)`
|
||||
|
||||
GetAnnotationIdsOk returns a tuple with the AnnotationIds field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetAnnotationIds
|
||||
|
||||
`func (o *DtoAttachAnnotationsRequest) SetAnnotationIds(v []string)`
|
||||
|
||||
SetAnnotationIds sets AnnotationIds field to given value.
|
||||
|
||||
### HasAnnotationIds
|
||||
|
||||
`func (o *DtoAttachAnnotationsRequest) HasAnnotationIds() bool`
|
||||
|
||||
HasAnnotationIds returns a boolean if a field has been set.
|
||||
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
56
sdk/go/docs/DtoAttachLabelsRequest.md
Normal file
56
sdk/go/docs/DtoAttachLabelsRequest.md
Normal file
@@ -0,0 +1,56 @@
|
||||
# DtoAttachLabelsRequest
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**LabelIds** | Pointer to **[]string** | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewDtoAttachLabelsRequest
|
||||
|
||||
`func NewDtoAttachLabelsRequest() *DtoAttachLabelsRequest`
|
||||
|
||||
NewDtoAttachLabelsRequest instantiates a new DtoAttachLabelsRequest 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
|
||||
|
||||
### NewDtoAttachLabelsRequestWithDefaults
|
||||
|
||||
`func NewDtoAttachLabelsRequestWithDefaults() *DtoAttachLabelsRequest`
|
||||
|
||||
NewDtoAttachLabelsRequestWithDefaults instantiates a new DtoAttachLabelsRequest 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
|
||||
|
||||
### GetLabelIds
|
||||
|
||||
`func (o *DtoAttachLabelsRequest) GetLabelIds() []string`
|
||||
|
||||
GetLabelIds returns the LabelIds field if non-nil, zero value otherwise.
|
||||
|
||||
### GetLabelIdsOk
|
||||
|
||||
`func (o *DtoAttachLabelsRequest) GetLabelIdsOk() (*[]string, bool)`
|
||||
|
||||
GetLabelIdsOk returns a tuple with the LabelIds field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetLabelIds
|
||||
|
||||
`func (o *DtoAttachLabelsRequest) SetLabelIds(v []string)`
|
||||
|
||||
SetLabelIds sets LabelIds field to given value.
|
||||
|
||||
### HasLabelIds
|
||||
|
||||
`func (o *DtoAttachLabelsRequest) HasLabelIds() bool`
|
||||
|
||||
HasLabelIds returns a boolean if a field has been set.
|
||||
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
56
sdk/go/docs/DtoAttachServersRequest.md
Normal file
56
sdk/go/docs/DtoAttachServersRequest.md
Normal file
@@ -0,0 +1,56 @@
|
||||
# DtoAttachServersRequest
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**ServerIds** | Pointer to **[]string** | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewDtoAttachServersRequest
|
||||
|
||||
`func NewDtoAttachServersRequest() *DtoAttachServersRequest`
|
||||
|
||||
NewDtoAttachServersRequest instantiates a new DtoAttachServersRequest 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
|
||||
|
||||
### NewDtoAttachServersRequestWithDefaults
|
||||
|
||||
`func NewDtoAttachServersRequestWithDefaults() *DtoAttachServersRequest`
|
||||
|
||||
NewDtoAttachServersRequestWithDefaults instantiates a new DtoAttachServersRequest 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
|
||||
|
||||
### GetServerIds
|
||||
|
||||
`func (o *DtoAttachServersRequest) GetServerIds() []string`
|
||||
|
||||
GetServerIds returns the ServerIds field if non-nil, zero value otherwise.
|
||||
|
||||
### GetServerIdsOk
|
||||
|
||||
`func (o *DtoAttachServersRequest) GetServerIdsOk() (*[]string, bool)`
|
||||
|
||||
GetServerIdsOk returns a tuple with the ServerIds field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetServerIds
|
||||
|
||||
`func (o *DtoAttachServersRequest) SetServerIds(v []string)`
|
||||
|
||||
SetServerIds sets ServerIds field to given value.
|
||||
|
||||
### HasServerIds
|
||||
|
||||
`func (o *DtoAttachServersRequest) HasServerIds() bool`
|
||||
|
||||
HasServerIds returns a boolean if a field has been set.
|
||||
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
56
sdk/go/docs/DtoAttachTaintsRequest.md
Normal file
56
sdk/go/docs/DtoAttachTaintsRequest.md
Normal file
@@ -0,0 +1,56 @@
|
||||
# DtoAttachTaintsRequest
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**TaintIds** | Pointer to **[]string** | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewDtoAttachTaintsRequest
|
||||
|
||||
`func NewDtoAttachTaintsRequest() *DtoAttachTaintsRequest`
|
||||
|
||||
NewDtoAttachTaintsRequest instantiates a new DtoAttachTaintsRequest 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
|
||||
|
||||
### NewDtoAttachTaintsRequestWithDefaults
|
||||
|
||||
`func NewDtoAttachTaintsRequestWithDefaults() *DtoAttachTaintsRequest`
|
||||
|
||||
NewDtoAttachTaintsRequestWithDefaults instantiates a new DtoAttachTaintsRequest 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
|
||||
|
||||
### GetTaintIds
|
||||
|
||||
`func (o *DtoAttachTaintsRequest) GetTaintIds() []string`
|
||||
|
||||
GetTaintIds returns the TaintIds field if non-nil, zero value otherwise.
|
||||
|
||||
### GetTaintIdsOk
|
||||
|
||||
`func (o *DtoAttachTaintsRequest) GetTaintIdsOk() (*[]string, bool)`
|
||||
|
||||
GetTaintIdsOk returns a tuple with the TaintIds field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetTaintIds
|
||||
|
||||
`func (o *DtoAttachTaintsRequest) SetTaintIds(v []string)`
|
||||
|
||||
SetTaintIds sets TaintIds field to given value.
|
||||
|
||||
### HasTaintIds
|
||||
|
||||
`func (o *DtoAttachTaintsRequest) HasTaintIds() bool`
|
||||
|
||||
HasTaintIds returns a boolean if a field has been set.
|
||||
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
82
sdk/go/docs/DtoCreateNodePoolRequest.md
Normal file
82
sdk/go/docs/DtoCreateNodePoolRequest.md
Normal file
@@ -0,0 +1,82 @@
|
||||
# DtoCreateNodePoolRequest
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Name** | Pointer to **string** | | [optional]
|
||||
**Role** | Pointer to **string** | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewDtoCreateNodePoolRequest
|
||||
|
||||
`func NewDtoCreateNodePoolRequest() *DtoCreateNodePoolRequest`
|
||||
|
||||
NewDtoCreateNodePoolRequest instantiates a new DtoCreateNodePoolRequest 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
|
||||
|
||||
### NewDtoCreateNodePoolRequestWithDefaults
|
||||
|
||||
`func NewDtoCreateNodePoolRequestWithDefaults() *DtoCreateNodePoolRequest`
|
||||
|
||||
NewDtoCreateNodePoolRequestWithDefaults instantiates a new DtoCreateNodePoolRequest 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 *DtoCreateNodePoolRequest) GetName() string`
|
||||
|
||||
GetName returns the Name field if non-nil, zero value otherwise.
|
||||
|
||||
### GetNameOk
|
||||
|
||||
`func (o *DtoCreateNodePoolRequest) 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 *DtoCreateNodePoolRequest) SetName(v string)`
|
||||
|
||||
SetName sets Name field to given value.
|
||||
|
||||
### HasName
|
||||
|
||||
`func (o *DtoCreateNodePoolRequest) HasName() bool`
|
||||
|
||||
HasName returns a boolean if a field has been set.
|
||||
|
||||
### GetRole
|
||||
|
||||
`func (o *DtoCreateNodePoolRequest) GetRole() string`
|
||||
|
||||
GetRole returns the Role field if non-nil, zero value otherwise.
|
||||
|
||||
### GetRoleOk
|
||||
|
||||
`func (o *DtoCreateNodePoolRequest) GetRoleOk() (*string, bool)`
|
||||
|
||||
GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetRole
|
||||
|
||||
`func (o *DtoCreateNodePoolRequest) SetRole(v string)`
|
||||
|
||||
SetRole sets Role field to given value.
|
||||
|
||||
### HasRole
|
||||
|
||||
`func (o *DtoCreateNodePoolRequest) HasRole() bool`
|
||||
|
||||
HasRole returns a boolean if a field has been set.
|
||||
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
290
sdk/go/docs/DtoNodePoolResponse.md
Normal file
290
sdk/go/docs/DtoNodePoolResponse.md
Normal file
@@ -0,0 +1,290 @@
|
||||
# DtoNodePoolResponse
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Annotations** | Pointer to [**[]DtoAnnotationResponse**](DtoAnnotationResponse.md) | | [optional]
|
||||
**CreatedAt** | Pointer to **string** | | [optional]
|
||||
**Id** | Pointer to **string** | | [optional]
|
||||
**Labels** | Pointer to [**[]DtoLabelResponse**](DtoLabelResponse.md) | | [optional]
|
||||
**Name** | Pointer to **string** | | [optional]
|
||||
**OrganizationId** | Pointer to **string** | | [optional]
|
||||
**Role** | Pointer to **string** | | [optional]
|
||||
**Servers** | Pointer to [**[]DtoServerResponse**](DtoServerResponse.md) | | [optional]
|
||||
**Taints** | Pointer to [**[]DtoTaintResponse**](DtoTaintResponse.md) | | [optional]
|
||||
**UpdatedAt** | Pointer to **string** | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewDtoNodePoolResponse
|
||||
|
||||
`func NewDtoNodePoolResponse() *DtoNodePoolResponse`
|
||||
|
||||
NewDtoNodePoolResponse instantiates a new DtoNodePoolResponse 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
|
||||
|
||||
### NewDtoNodePoolResponseWithDefaults
|
||||
|
||||
`func NewDtoNodePoolResponseWithDefaults() *DtoNodePoolResponse`
|
||||
|
||||
NewDtoNodePoolResponseWithDefaults instantiates a new DtoNodePoolResponse 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
|
||||
|
||||
### GetAnnotations
|
||||
|
||||
`func (o *DtoNodePoolResponse) GetAnnotations() []DtoAnnotationResponse`
|
||||
|
||||
GetAnnotations returns the Annotations field if non-nil, zero value otherwise.
|
||||
|
||||
### GetAnnotationsOk
|
||||
|
||||
`func (o *DtoNodePoolResponse) GetAnnotationsOk() (*[]DtoAnnotationResponse, bool)`
|
||||
|
||||
GetAnnotationsOk returns a tuple with the Annotations field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetAnnotations
|
||||
|
||||
`func (o *DtoNodePoolResponse) SetAnnotations(v []DtoAnnotationResponse)`
|
||||
|
||||
SetAnnotations sets Annotations field to given value.
|
||||
|
||||
### HasAnnotations
|
||||
|
||||
`func (o *DtoNodePoolResponse) HasAnnotations() bool`
|
||||
|
||||
HasAnnotations returns a boolean if a field has been set.
|
||||
|
||||
### GetCreatedAt
|
||||
|
||||
`func (o *DtoNodePoolResponse) GetCreatedAt() string`
|
||||
|
||||
GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise.
|
||||
|
||||
### GetCreatedAtOk
|
||||
|
||||
`func (o *DtoNodePoolResponse) GetCreatedAtOk() (*string, bool)`
|
||||
|
||||
GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetCreatedAt
|
||||
|
||||
`func (o *DtoNodePoolResponse) SetCreatedAt(v string)`
|
||||
|
||||
SetCreatedAt sets CreatedAt field to given value.
|
||||
|
||||
### HasCreatedAt
|
||||
|
||||
`func (o *DtoNodePoolResponse) HasCreatedAt() bool`
|
||||
|
||||
HasCreatedAt returns a boolean if a field has been set.
|
||||
|
||||
### GetId
|
||||
|
||||
`func (o *DtoNodePoolResponse) GetId() string`
|
||||
|
||||
GetId returns the Id field if non-nil, zero value otherwise.
|
||||
|
||||
### GetIdOk
|
||||
|
||||
`func (o *DtoNodePoolResponse) GetIdOk() (*string, bool)`
|
||||
|
||||
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetId
|
||||
|
||||
`func (o *DtoNodePoolResponse) SetId(v string)`
|
||||
|
||||
SetId sets Id field to given value.
|
||||
|
||||
### HasId
|
||||
|
||||
`func (o *DtoNodePoolResponse) HasId() bool`
|
||||
|
||||
HasId returns a boolean if a field has been set.
|
||||
|
||||
### GetLabels
|
||||
|
||||
`func (o *DtoNodePoolResponse) GetLabels() []DtoLabelResponse`
|
||||
|
||||
GetLabels returns the Labels field if non-nil, zero value otherwise.
|
||||
|
||||
### GetLabelsOk
|
||||
|
||||
`func (o *DtoNodePoolResponse) GetLabelsOk() (*[]DtoLabelResponse, bool)`
|
||||
|
||||
GetLabelsOk returns a tuple with the Labels field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetLabels
|
||||
|
||||
`func (o *DtoNodePoolResponse) SetLabels(v []DtoLabelResponse)`
|
||||
|
||||
SetLabels sets Labels field to given value.
|
||||
|
||||
### HasLabels
|
||||
|
||||
`func (o *DtoNodePoolResponse) HasLabels() bool`
|
||||
|
||||
HasLabels returns a boolean if a field has been set.
|
||||
|
||||
### GetName
|
||||
|
||||
`func (o *DtoNodePoolResponse) GetName() string`
|
||||
|
||||
GetName returns the Name field if non-nil, zero value otherwise.
|
||||
|
||||
### GetNameOk
|
||||
|
||||
`func (o *DtoNodePoolResponse) 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 *DtoNodePoolResponse) SetName(v string)`
|
||||
|
||||
SetName sets Name field to given value.
|
||||
|
||||
### HasName
|
||||
|
||||
`func (o *DtoNodePoolResponse) HasName() bool`
|
||||
|
||||
HasName returns a boolean if a field has been set.
|
||||
|
||||
### GetOrganizationId
|
||||
|
||||
`func (o *DtoNodePoolResponse) GetOrganizationId() string`
|
||||
|
||||
GetOrganizationId returns the OrganizationId field if non-nil, zero value otherwise.
|
||||
|
||||
### GetOrganizationIdOk
|
||||
|
||||
`func (o *DtoNodePoolResponse) GetOrganizationIdOk() (*string, bool)`
|
||||
|
||||
GetOrganizationIdOk returns a tuple with the OrganizationId field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetOrganizationId
|
||||
|
||||
`func (o *DtoNodePoolResponse) SetOrganizationId(v string)`
|
||||
|
||||
SetOrganizationId sets OrganizationId field to given value.
|
||||
|
||||
### HasOrganizationId
|
||||
|
||||
`func (o *DtoNodePoolResponse) HasOrganizationId() bool`
|
||||
|
||||
HasOrganizationId returns a boolean if a field has been set.
|
||||
|
||||
### GetRole
|
||||
|
||||
`func (o *DtoNodePoolResponse) GetRole() string`
|
||||
|
||||
GetRole returns the Role field if non-nil, zero value otherwise.
|
||||
|
||||
### GetRoleOk
|
||||
|
||||
`func (o *DtoNodePoolResponse) GetRoleOk() (*string, bool)`
|
||||
|
||||
GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetRole
|
||||
|
||||
`func (o *DtoNodePoolResponse) SetRole(v string)`
|
||||
|
||||
SetRole sets Role field to given value.
|
||||
|
||||
### HasRole
|
||||
|
||||
`func (o *DtoNodePoolResponse) HasRole() bool`
|
||||
|
||||
HasRole returns a boolean if a field has been set.
|
||||
|
||||
### GetServers
|
||||
|
||||
`func (o *DtoNodePoolResponse) GetServers() []DtoServerResponse`
|
||||
|
||||
GetServers returns the Servers field if non-nil, zero value otherwise.
|
||||
|
||||
### GetServersOk
|
||||
|
||||
`func (o *DtoNodePoolResponse) GetServersOk() (*[]DtoServerResponse, bool)`
|
||||
|
||||
GetServersOk returns a tuple with the Servers field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetServers
|
||||
|
||||
`func (o *DtoNodePoolResponse) SetServers(v []DtoServerResponse)`
|
||||
|
||||
SetServers sets Servers field to given value.
|
||||
|
||||
### HasServers
|
||||
|
||||
`func (o *DtoNodePoolResponse) HasServers() bool`
|
||||
|
||||
HasServers returns a boolean if a field has been set.
|
||||
|
||||
### GetTaints
|
||||
|
||||
`func (o *DtoNodePoolResponse) GetTaints() []DtoTaintResponse`
|
||||
|
||||
GetTaints returns the Taints field if non-nil, zero value otherwise.
|
||||
|
||||
### GetTaintsOk
|
||||
|
||||
`func (o *DtoNodePoolResponse) GetTaintsOk() (*[]DtoTaintResponse, bool)`
|
||||
|
||||
GetTaintsOk returns a tuple with the Taints field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetTaints
|
||||
|
||||
`func (o *DtoNodePoolResponse) SetTaints(v []DtoTaintResponse)`
|
||||
|
||||
SetTaints sets Taints field to given value.
|
||||
|
||||
### HasTaints
|
||||
|
||||
`func (o *DtoNodePoolResponse) HasTaints() bool`
|
||||
|
||||
HasTaints returns a boolean if a field has been set.
|
||||
|
||||
### GetUpdatedAt
|
||||
|
||||
`func (o *DtoNodePoolResponse) GetUpdatedAt() string`
|
||||
|
||||
GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise.
|
||||
|
||||
### GetUpdatedAtOk
|
||||
|
||||
`func (o *DtoNodePoolResponse) GetUpdatedAtOk() (*string, bool)`
|
||||
|
||||
GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetUpdatedAt
|
||||
|
||||
`func (o *DtoNodePoolResponse) SetUpdatedAt(v string)`
|
||||
|
||||
SetUpdatedAt sets UpdatedAt field to given value.
|
||||
|
||||
### HasUpdatedAt
|
||||
|
||||
`func (o *DtoNodePoolResponse) HasUpdatedAt() bool`
|
||||
|
||||
HasUpdatedAt returns a boolean if a field has been set.
|
||||
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
82
sdk/go/docs/DtoUpdateNodePoolRequest.md
Normal file
82
sdk/go/docs/DtoUpdateNodePoolRequest.md
Normal file
@@ -0,0 +1,82 @@
|
||||
# DtoUpdateNodePoolRequest
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Name** | Pointer to **string** | | [optional]
|
||||
**Role** | Pointer to **string** | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewDtoUpdateNodePoolRequest
|
||||
|
||||
`func NewDtoUpdateNodePoolRequest() *DtoUpdateNodePoolRequest`
|
||||
|
||||
NewDtoUpdateNodePoolRequest instantiates a new DtoUpdateNodePoolRequest 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
|
||||
|
||||
### NewDtoUpdateNodePoolRequestWithDefaults
|
||||
|
||||
`func NewDtoUpdateNodePoolRequestWithDefaults() *DtoUpdateNodePoolRequest`
|
||||
|
||||
NewDtoUpdateNodePoolRequestWithDefaults instantiates a new DtoUpdateNodePoolRequest 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 *DtoUpdateNodePoolRequest) GetName() string`
|
||||
|
||||
GetName returns the Name field if non-nil, zero value otherwise.
|
||||
|
||||
### GetNameOk
|
||||
|
||||
`func (o *DtoUpdateNodePoolRequest) 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 *DtoUpdateNodePoolRequest) SetName(v string)`
|
||||
|
||||
SetName sets Name field to given value.
|
||||
|
||||
### HasName
|
||||
|
||||
`func (o *DtoUpdateNodePoolRequest) HasName() bool`
|
||||
|
||||
HasName returns a boolean if a field has been set.
|
||||
|
||||
### GetRole
|
||||
|
||||
`func (o *DtoUpdateNodePoolRequest) GetRole() string`
|
||||
|
||||
GetRole returns the Role field if non-nil, zero value otherwise.
|
||||
|
||||
### GetRoleOk
|
||||
|
||||
`func (o *DtoUpdateNodePoolRequest) GetRoleOk() (*string, bool)`
|
||||
|
||||
GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetRole
|
||||
|
||||
`func (o *DtoUpdateNodePoolRequest) SetRole(v string)`
|
||||
|
||||
SetRole sets Role field to given value.
|
||||
|
||||
### HasRole
|
||||
|
||||
`func (o *DtoUpdateNodePoolRequest) HasRole() bool`
|
||||
|
||||
HasRole returns a boolean if a field has been set.
|
||||
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# \HealthAPI
|
||||
|
||||
All URIs are relative to *http://localhost:8080/api/v1*
|
||||
All URIs are relative to */api/v1*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# \LabelsAPI
|
||||
|
||||
All URIs are relative to *http://localhost:8080/api/v1*
|
||||
All URIs are relative to */api/v1*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# \MeAPI
|
||||
|
||||
All URIs are relative to *http://localhost:8080/api/v1*
|
||||
All URIs are relative to */api/v1*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# \MeAPIKeysAPI
|
||||
|
||||
All URIs are relative to *http://localhost:8080/api/v1*
|
||||
All URIs are relative to */api/v1*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
|
||||
1239
sdk/go/docs/NodePoolsAPI.md
Normal file
1239
sdk/go/docs/NodePoolsAPI.md
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1,6 +1,6 @@
|
||||
# \OrgsAPI
|
||||
|
||||
All URIs are relative to *http://localhost:8080/api/v1*
|
||||
All URIs are relative to */api/v1*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# \ServersAPI
|
||||
|
||||
All URIs are relative to *http://localhost:8080/api/v1*
|
||||
All URIs are relative to */api/v1*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# \SshAPI
|
||||
|
||||
All URIs are relative to *http://localhost:8080/api/v1*
|
||||
All URIs are relative to */api/v1*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# \TaintsAPI
|
||||
|
||||
All URIs are relative to *http://localhost:8080/api/v1*
|
||||
All URIs are relative to */api/v1*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
module github.com/glueops/autoglue-sdk-go
|
||||
|
||||
go 1.25.3
|
||||
go 1.25.4
|
||||
|
||||
require github.com/stretchr/testify v1.11.1
|
||||
|
||||
|
||||
124
sdk/go/model_dto_attach_annotations_request.go
Normal file
124
sdk/go/model_dto_attach_annotations_request.go
Normal file
@@ -0,0 +1,124 @@
|
||||
/*
|
||||
AutoGlue API
|
||||
|
||||
API for managing K3s clusters across cloud providers
|
||||
|
||||
API version: 1.0
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package autoglue
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// checks if the DtoAttachAnnotationsRequest type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &DtoAttachAnnotationsRequest{}
|
||||
|
||||
// DtoAttachAnnotationsRequest struct for DtoAttachAnnotationsRequest
|
||||
type DtoAttachAnnotationsRequest struct {
|
||||
AnnotationIds []string `json:"annotation_ids,omitempty"`
|
||||
}
|
||||
|
||||
// NewDtoAttachAnnotationsRequest instantiates a new DtoAttachAnnotationsRequest 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
|
||||
func NewDtoAttachAnnotationsRequest() *DtoAttachAnnotationsRequest {
|
||||
this := DtoAttachAnnotationsRequest{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewDtoAttachAnnotationsRequestWithDefaults instantiates a new DtoAttachAnnotationsRequest 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
|
||||
func NewDtoAttachAnnotationsRequestWithDefaults() *DtoAttachAnnotationsRequest {
|
||||
this := DtoAttachAnnotationsRequest{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetAnnotationIds returns the AnnotationIds field value if set, zero value otherwise.
|
||||
func (o *DtoAttachAnnotationsRequest) GetAnnotationIds() []string {
|
||||
if o == nil || IsNil(o.AnnotationIds) {
|
||||
var ret []string
|
||||
return ret
|
||||
}
|
||||
return o.AnnotationIds
|
||||
}
|
||||
|
||||
// GetAnnotationIdsOk returns a tuple with the AnnotationIds field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *DtoAttachAnnotationsRequest) GetAnnotationIdsOk() ([]string, bool) {
|
||||
if o == nil || IsNil(o.AnnotationIds) {
|
||||
return nil, false
|
||||
}
|
||||
return o.AnnotationIds, true
|
||||
}
|
||||
|
||||
// HasAnnotationIds returns a boolean if a field has been set.
|
||||
func (o *DtoAttachAnnotationsRequest) HasAnnotationIds() bool {
|
||||
if o != nil && !IsNil(o.AnnotationIds) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetAnnotationIds gets a reference to the given []string and assigns it to the AnnotationIds field.
|
||||
func (o *DtoAttachAnnotationsRequest) SetAnnotationIds(v []string) {
|
||||
o.AnnotationIds = v
|
||||
}
|
||||
|
||||
func (o DtoAttachAnnotationsRequest) MarshalJSON() ([]byte, error) {
|
||||
toSerialize, err := o.ToMap()
|
||||
if err != nil {
|
||||
return []byte{}, err
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
func (o DtoAttachAnnotationsRequest) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if !IsNil(o.AnnotationIds) {
|
||||
toSerialize["annotation_ids"] = o.AnnotationIds
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableDtoAttachAnnotationsRequest struct {
|
||||
value *DtoAttachAnnotationsRequest
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableDtoAttachAnnotationsRequest) Get() *DtoAttachAnnotationsRequest {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableDtoAttachAnnotationsRequest) Set(val *DtoAttachAnnotationsRequest) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableDtoAttachAnnotationsRequest) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableDtoAttachAnnotationsRequest) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableDtoAttachAnnotationsRequest(val *DtoAttachAnnotationsRequest) *NullableDtoAttachAnnotationsRequest {
|
||||
return &NullableDtoAttachAnnotationsRequest{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableDtoAttachAnnotationsRequest) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableDtoAttachAnnotationsRequest) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
124
sdk/go/model_dto_attach_labels_request.go
Normal file
124
sdk/go/model_dto_attach_labels_request.go
Normal file
@@ -0,0 +1,124 @@
|
||||
/*
|
||||
AutoGlue API
|
||||
|
||||
API for managing K3s clusters across cloud providers
|
||||
|
||||
API version: 1.0
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package autoglue
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// checks if the DtoAttachLabelsRequest type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &DtoAttachLabelsRequest{}
|
||||
|
||||
// DtoAttachLabelsRequest struct for DtoAttachLabelsRequest
|
||||
type DtoAttachLabelsRequest struct {
|
||||
LabelIds []string `json:"label_ids,omitempty"`
|
||||
}
|
||||
|
||||
// NewDtoAttachLabelsRequest instantiates a new DtoAttachLabelsRequest 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
|
||||
func NewDtoAttachLabelsRequest() *DtoAttachLabelsRequest {
|
||||
this := DtoAttachLabelsRequest{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewDtoAttachLabelsRequestWithDefaults instantiates a new DtoAttachLabelsRequest 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
|
||||
func NewDtoAttachLabelsRequestWithDefaults() *DtoAttachLabelsRequest {
|
||||
this := DtoAttachLabelsRequest{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetLabelIds returns the LabelIds field value if set, zero value otherwise.
|
||||
func (o *DtoAttachLabelsRequest) GetLabelIds() []string {
|
||||
if o == nil || IsNil(o.LabelIds) {
|
||||
var ret []string
|
||||
return ret
|
||||
}
|
||||
return o.LabelIds
|
||||
}
|
||||
|
||||
// GetLabelIdsOk returns a tuple with the LabelIds field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *DtoAttachLabelsRequest) GetLabelIdsOk() ([]string, bool) {
|
||||
if o == nil || IsNil(o.LabelIds) {
|
||||
return nil, false
|
||||
}
|
||||
return o.LabelIds, true
|
||||
}
|
||||
|
||||
// HasLabelIds returns a boolean if a field has been set.
|
||||
func (o *DtoAttachLabelsRequest) HasLabelIds() bool {
|
||||
if o != nil && !IsNil(o.LabelIds) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetLabelIds gets a reference to the given []string and assigns it to the LabelIds field.
|
||||
func (o *DtoAttachLabelsRequest) SetLabelIds(v []string) {
|
||||
o.LabelIds = v
|
||||
}
|
||||
|
||||
func (o DtoAttachLabelsRequest) MarshalJSON() ([]byte, error) {
|
||||
toSerialize, err := o.ToMap()
|
||||
if err != nil {
|
||||
return []byte{}, err
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
func (o DtoAttachLabelsRequest) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if !IsNil(o.LabelIds) {
|
||||
toSerialize["label_ids"] = o.LabelIds
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableDtoAttachLabelsRequest struct {
|
||||
value *DtoAttachLabelsRequest
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableDtoAttachLabelsRequest) Get() *DtoAttachLabelsRequest {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableDtoAttachLabelsRequest) Set(val *DtoAttachLabelsRequest) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableDtoAttachLabelsRequest) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableDtoAttachLabelsRequest) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableDtoAttachLabelsRequest(val *DtoAttachLabelsRequest) *NullableDtoAttachLabelsRequest {
|
||||
return &NullableDtoAttachLabelsRequest{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableDtoAttachLabelsRequest) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableDtoAttachLabelsRequest) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
124
sdk/go/model_dto_attach_servers_request.go
Normal file
124
sdk/go/model_dto_attach_servers_request.go
Normal file
@@ -0,0 +1,124 @@
|
||||
/*
|
||||
AutoGlue API
|
||||
|
||||
API for managing K3s clusters across cloud providers
|
||||
|
||||
API version: 1.0
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package autoglue
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// checks if the DtoAttachServersRequest type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &DtoAttachServersRequest{}
|
||||
|
||||
// DtoAttachServersRequest struct for DtoAttachServersRequest
|
||||
type DtoAttachServersRequest struct {
|
||||
ServerIds []string `json:"server_ids,omitempty"`
|
||||
}
|
||||
|
||||
// NewDtoAttachServersRequest instantiates a new DtoAttachServersRequest 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
|
||||
func NewDtoAttachServersRequest() *DtoAttachServersRequest {
|
||||
this := DtoAttachServersRequest{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewDtoAttachServersRequestWithDefaults instantiates a new DtoAttachServersRequest 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
|
||||
func NewDtoAttachServersRequestWithDefaults() *DtoAttachServersRequest {
|
||||
this := DtoAttachServersRequest{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetServerIds returns the ServerIds field value if set, zero value otherwise.
|
||||
func (o *DtoAttachServersRequest) GetServerIds() []string {
|
||||
if o == nil || IsNil(o.ServerIds) {
|
||||
var ret []string
|
||||
return ret
|
||||
}
|
||||
return o.ServerIds
|
||||
}
|
||||
|
||||
// GetServerIdsOk returns a tuple with the ServerIds field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *DtoAttachServersRequest) GetServerIdsOk() ([]string, bool) {
|
||||
if o == nil || IsNil(o.ServerIds) {
|
||||
return nil, false
|
||||
}
|
||||
return o.ServerIds, true
|
||||
}
|
||||
|
||||
// HasServerIds returns a boolean if a field has been set.
|
||||
func (o *DtoAttachServersRequest) HasServerIds() bool {
|
||||
if o != nil && !IsNil(o.ServerIds) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetServerIds gets a reference to the given []string and assigns it to the ServerIds field.
|
||||
func (o *DtoAttachServersRequest) SetServerIds(v []string) {
|
||||
o.ServerIds = v
|
||||
}
|
||||
|
||||
func (o DtoAttachServersRequest) MarshalJSON() ([]byte, error) {
|
||||
toSerialize, err := o.ToMap()
|
||||
if err != nil {
|
||||
return []byte{}, err
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
func (o DtoAttachServersRequest) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if !IsNil(o.ServerIds) {
|
||||
toSerialize["server_ids"] = o.ServerIds
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableDtoAttachServersRequest struct {
|
||||
value *DtoAttachServersRequest
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableDtoAttachServersRequest) Get() *DtoAttachServersRequest {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableDtoAttachServersRequest) Set(val *DtoAttachServersRequest) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableDtoAttachServersRequest) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableDtoAttachServersRequest) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableDtoAttachServersRequest(val *DtoAttachServersRequest) *NullableDtoAttachServersRequest {
|
||||
return &NullableDtoAttachServersRequest{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableDtoAttachServersRequest) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableDtoAttachServersRequest) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
124
sdk/go/model_dto_attach_taints_request.go
Normal file
124
sdk/go/model_dto_attach_taints_request.go
Normal file
@@ -0,0 +1,124 @@
|
||||
/*
|
||||
AutoGlue API
|
||||
|
||||
API for managing K3s clusters across cloud providers
|
||||
|
||||
API version: 1.0
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package autoglue
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// checks if the DtoAttachTaintsRequest type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &DtoAttachTaintsRequest{}
|
||||
|
||||
// DtoAttachTaintsRequest struct for DtoAttachTaintsRequest
|
||||
type DtoAttachTaintsRequest struct {
|
||||
TaintIds []string `json:"taint_ids,omitempty"`
|
||||
}
|
||||
|
||||
// NewDtoAttachTaintsRequest instantiates a new DtoAttachTaintsRequest 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
|
||||
func NewDtoAttachTaintsRequest() *DtoAttachTaintsRequest {
|
||||
this := DtoAttachTaintsRequest{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewDtoAttachTaintsRequestWithDefaults instantiates a new DtoAttachTaintsRequest 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
|
||||
func NewDtoAttachTaintsRequestWithDefaults() *DtoAttachTaintsRequest {
|
||||
this := DtoAttachTaintsRequest{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetTaintIds returns the TaintIds field value if set, zero value otherwise.
|
||||
func (o *DtoAttachTaintsRequest) GetTaintIds() []string {
|
||||
if o == nil || IsNil(o.TaintIds) {
|
||||
var ret []string
|
||||
return ret
|
||||
}
|
||||
return o.TaintIds
|
||||
}
|
||||
|
||||
// GetTaintIdsOk returns a tuple with the TaintIds field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *DtoAttachTaintsRequest) GetTaintIdsOk() ([]string, bool) {
|
||||
if o == nil || IsNil(o.TaintIds) {
|
||||
return nil, false
|
||||
}
|
||||
return o.TaintIds, true
|
||||
}
|
||||
|
||||
// HasTaintIds returns a boolean if a field has been set.
|
||||
func (o *DtoAttachTaintsRequest) HasTaintIds() bool {
|
||||
if o != nil && !IsNil(o.TaintIds) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetTaintIds gets a reference to the given []string and assigns it to the TaintIds field.
|
||||
func (o *DtoAttachTaintsRequest) SetTaintIds(v []string) {
|
||||
o.TaintIds = v
|
||||
}
|
||||
|
||||
func (o DtoAttachTaintsRequest) MarshalJSON() ([]byte, error) {
|
||||
toSerialize, err := o.ToMap()
|
||||
if err != nil {
|
||||
return []byte{}, err
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
func (o DtoAttachTaintsRequest) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if !IsNil(o.TaintIds) {
|
||||
toSerialize["taint_ids"] = o.TaintIds
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableDtoAttachTaintsRequest struct {
|
||||
value *DtoAttachTaintsRequest
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableDtoAttachTaintsRequest) Get() *DtoAttachTaintsRequest {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableDtoAttachTaintsRequest) Set(val *DtoAttachTaintsRequest) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableDtoAttachTaintsRequest) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableDtoAttachTaintsRequest) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableDtoAttachTaintsRequest(val *DtoAttachTaintsRequest) *NullableDtoAttachTaintsRequest {
|
||||
return &NullableDtoAttachTaintsRequest{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableDtoAttachTaintsRequest) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableDtoAttachTaintsRequest) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
160
sdk/go/model_dto_create_node_pool_request.go
Normal file
160
sdk/go/model_dto_create_node_pool_request.go
Normal file
@@ -0,0 +1,160 @@
|
||||
/*
|
||||
AutoGlue API
|
||||
|
||||
API for managing K3s clusters across cloud providers
|
||||
|
||||
API version: 1.0
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package autoglue
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// checks if the DtoCreateNodePoolRequest type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &DtoCreateNodePoolRequest{}
|
||||
|
||||
// DtoCreateNodePoolRequest struct for DtoCreateNodePoolRequest
|
||||
type DtoCreateNodePoolRequest struct {
|
||||
Name *string `json:"name,omitempty"`
|
||||
Role *string `json:"role,omitempty"`
|
||||
}
|
||||
|
||||
// NewDtoCreateNodePoolRequest instantiates a new DtoCreateNodePoolRequest 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
|
||||
func NewDtoCreateNodePoolRequest() *DtoCreateNodePoolRequest {
|
||||
this := DtoCreateNodePoolRequest{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewDtoCreateNodePoolRequestWithDefaults instantiates a new DtoCreateNodePoolRequest 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
|
||||
func NewDtoCreateNodePoolRequestWithDefaults() *DtoCreateNodePoolRequest {
|
||||
this := DtoCreateNodePoolRequest{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetName returns the Name field value if set, zero value otherwise.
|
||||
func (o *DtoCreateNodePoolRequest) GetName() string {
|
||||
if o == nil || IsNil(o.Name) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Name
|
||||
}
|
||||
|
||||
// GetNameOk returns a tuple with the Name field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *DtoCreateNodePoolRequest) GetNameOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.Name) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Name, true
|
||||
}
|
||||
|
||||
// HasName returns a boolean if a field has been set.
|
||||
func (o *DtoCreateNodePoolRequest) HasName() bool {
|
||||
if o != nil && !IsNil(o.Name) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetName gets a reference to the given string and assigns it to the Name field.
|
||||
func (o *DtoCreateNodePoolRequest) SetName(v string) {
|
||||
o.Name = &v
|
||||
}
|
||||
|
||||
// GetRole returns the Role field value if set, zero value otherwise.
|
||||
func (o *DtoCreateNodePoolRequest) GetRole() string {
|
||||
if o == nil || IsNil(o.Role) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Role
|
||||
}
|
||||
|
||||
// GetRoleOk returns a tuple with the Role field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *DtoCreateNodePoolRequest) GetRoleOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.Role) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Role, true
|
||||
}
|
||||
|
||||
// HasRole returns a boolean if a field has been set.
|
||||
func (o *DtoCreateNodePoolRequest) HasRole() bool {
|
||||
if o != nil && !IsNil(o.Role) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetRole gets a reference to the given string and assigns it to the Role field.
|
||||
func (o *DtoCreateNodePoolRequest) SetRole(v string) {
|
||||
o.Role = &v
|
||||
}
|
||||
|
||||
func (o DtoCreateNodePoolRequest) MarshalJSON() ([]byte, error) {
|
||||
toSerialize, err := o.ToMap()
|
||||
if err != nil {
|
||||
return []byte{}, err
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
func (o DtoCreateNodePoolRequest) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if !IsNil(o.Name) {
|
||||
toSerialize["name"] = o.Name
|
||||
}
|
||||
if !IsNil(o.Role) {
|
||||
toSerialize["role"] = o.Role
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableDtoCreateNodePoolRequest struct {
|
||||
value *DtoCreateNodePoolRequest
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableDtoCreateNodePoolRequest) Get() *DtoCreateNodePoolRequest {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableDtoCreateNodePoolRequest) Set(val *DtoCreateNodePoolRequest) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableDtoCreateNodePoolRequest) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableDtoCreateNodePoolRequest) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableDtoCreateNodePoolRequest(val *DtoCreateNodePoolRequest) *NullableDtoCreateNodePoolRequest {
|
||||
return &NullableDtoCreateNodePoolRequest{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableDtoCreateNodePoolRequest) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableDtoCreateNodePoolRequest) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
448
sdk/go/model_dto_node_pool_response.go
Normal file
448
sdk/go/model_dto_node_pool_response.go
Normal file
@@ -0,0 +1,448 @@
|
||||
/*
|
||||
AutoGlue API
|
||||
|
||||
API for managing K3s clusters across cloud providers
|
||||
|
||||
API version: 1.0
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package autoglue
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// checks if the DtoNodePoolResponse type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &DtoNodePoolResponse{}
|
||||
|
||||
// DtoNodePoolResponse struct for DtoNodePoolResponse
|
||||
type DtoNodePoolResponse struct {
|
||||
Annotations []DtoAnnotationResponse `json:"annotations,omitempty"`
|
||||
CreatedAt *string `json:"created_at,omitempty"`
|
||||
Id *string `json:"id,omitempty"`
|
||||
Labels []DtoLabelResponse `json:"labels,omitempty"`
|
||||
Name *string `json:"name,omitempty"`
|
||||
OrganizationId *string `json:"organization_id,omitempty"`
|
||||
Role *string `json:"role,omitempty"`
|
||||
Servers []DtoServerResponse `json:"servers,omitempty"`
|
||||
Taints []DtoTaintResponse `json:"taints,omitempty"`
|
||||
UpdatedAt *string `json:"updated_at,omitempty"`
|
||||
}
|
||||
|
||||
// NewDtoNodePoolResponse instantiates a new DtoNodePoolResponse 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
|
||||
func NewDtoNodePoolResponse() *DtoNodePoolResponse {
|
||||
this := DtoNodePoolResponse{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewDtoNodePoolResponseWithDefaults instantiates a new DtoNodePoolResponse 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
|
||||
func NewDtoNodePoolResponseWithDefaults() *DtoNodePoolResponse {
|
||||
this := DtoNodePoolResponse{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetAnnotations returns the Annotations field value if set, zero value otherwise.
|
||||
func (o *DtoNodePoolResponse) GetAnnotations() []DtoAnnotationResponse {
|
||||
if o == nil || IsNil(o.Annotations) {
|
||||
var ret []DtoAnnotationResponse
|
||||
return ret
|
||||
}
|
||||
return o.Annotations
|
||||
}
|
||||
|
||||
// GetAnnotationsOk returns a tuple with the Annotations field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *DtoNodePoolResponse) GetAnnotationsOk() ([]DtoAnnotationResponse, bool) {
|
||||
if o == nil || IsNil(o.Annotations) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Annotations, true
|
||||
}
|
||||
|
||||
// HasAnnotations returns a boolean if a field has been set.
|
||||
func (o *DtoNodePoolResponse) HasAnnotations() bool {
|
||||
if o != nil && !IsNil(o.Annotations) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetAnnotations gets a reference to the given []DtoAnnotationResponse and assigns it to the Annotations field.
|
||||
func (o *DtoNodePoolResponse) SetAnnotations(v []DtoAnnotationResponse) {
|
||||
o.Annotations = v
|
||||
}
|
||||
|
||||
// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.
|
||||
func (o *DtoNodePoolResponse) GetCreatedAt() string {
|
||||
if o == nil || IsNil(o.CreatedAt) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.CreatedAt
|
||||
}
|
||||
|
||||
// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *DtoNodePoolResponse) GetCreatedAtOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.CreatedAt) {
|
||||
return nil, false
|
||||
}
|
||||
return o.CreatedAt, true
|
||||
}
|
||||
|
||||
// HasCreatedAt returns a boolean if a field has been set.
|
||||
func (o *DtoNodePoolResponse) HasCreatedAt() bool {
|
||||
if o != nil && !IsNil(o.CreatedAt) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetCreatedAt gets a reference to the given string and assigns it to the CreatedAt field.
|
||||
func (o *DtoNodePoolResponse) SetCreatedAt(v string) {
|
||||
o.CreatedAt = &v
|
||||
}
|
||||
|
||||
// GetId returns the Id field value if set, zero value otherwise.
|
||||
func (o *DtoNodePoolResponse) GetId() string {
|
||||
if o == nil || IsNil(o.Id) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Id
|
||||
}
|
||||
|
||||
// GetIdOk returns a tuple with the Id field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *DtoNodePoolResponse) GetIdOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.Id) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Id, true
|
||||
}
|
||||
|
||||
// HasId returns a boolean if a field has been set.
|
||||
func (o *DtoNodePoolResponse) HasId() bool {
|
||||
if o != nil && !IsNil(o.Id) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetId gets a reference to the given string and assigns it to the Id field.
|
||||
func (o *DtoNodePoolResponse) SetId(v string) {
|
||||
o.Id = &v
|
||||
}
|
||||
|
||||
// GetLabels returns the Labels field value if set, zero value otherwise.
|
||||
func (o *DtoNodePoolResponse) GetLabels() []DtoLabelResponse {
|
||||
if o == nil || IsNil(o.Labels) {
|
||||
var ret []DtoLabelResponse
|
||||
return ret
|
||||
}
|
||||
return o.Labels
|
||||
}
|
||||
|
||||
// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *DtoNodePoolResponse) GetLabelsOk() ([]DtoLabelResponse, bool) {
|
||||
if o == nil || IsNil(o.Labels) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Labels, true
|
||||
}
|
||||
|
||||
// HasLabels returns a boolean if a field has been set.
|
||||
func (o *DtoNodePoolResponse) HasLabels() bool {
|
||||
if o != nil && !IsNil(o.Labels) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetLabels gets a reference to the given []DtoLabelResponse and assigns it to the Labels field.
|
||||
func (o *DtoNodePoolResponse) SetLabels(v []DtoLabelResponse) {
|
||||
o.Labels = v
|
||||
}
|
||||
|
||||
// GetName returns the Name field value if set, zero value otherwise.
|
||||
func (o *DtoNodePoolResponse) GetName() string {
|
||||
if o == nil || IsNil(o.Name) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Name
|
||||
}
|
||||
|
||||
// GetNameOk returns a tuple with the Name field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *DtoNodePoolResponse) GetNameOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.Name) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Name, true
|
||||
}
|
||||
|
||||
// HasName returns a boolean if a field has been set.
|
||||
func (o *DtoNodePoolResponse) HasName() bool {
|
||||
if o != nil && !IsNil(o.Name) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetName gets a reference to the given string and assigns it to the Name field.
|
||||
func (o *DtoNodePoolResponse) SetName(v string) {
|
||||
o.Name = &v
|
||||
}
|
||||
|
||||
// GetOrganizationId returns the OrganizationId field value if set, zero value otherwise.
|
||||
func (o *DtoNodePoolResponse) GetOrganizationId() string {
|
||||
if o == nil || IsNil(o.OrganizationId) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.OrganizationId
|
||||
}
|
||||
|
||||
// GetOrganizationIdOk returns a tuple with the OrganizationId field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *DtoNodePoolResponse) GetOrganizationIdOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.OrganizationId) {
|
||||
return nil, false
|
||||
}
|
||||
return o.OrganizationId, true
|
||||
}
|
||||
|
||||
// HasOrganizationId returns a boolean if a field has been set.
|
||||
func (o *DtoNodePoolResponse) HasOrganizationId() bool {
|
||||
if o != nil && !IsNil(o.OrganizationId) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetOrganizationId gets a reference to the given string and assigns it to the OrganizationId field.
|
||||
func (o *DtoNodePoolResponse) SetOrganizationId(v string) {
|
||||
o.OrganizationId = &v
|
||||
}
|
||||
|
||||
// GetRole returns the Role field value if set, zero value otherwise.
|
||||
func (o *DtoNodePoolResponse) GetRole() string {
|
||||
if o == nil || IsNil(o.Role) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Role
|
||||
}
|
||||
|
||||
// GetRoleOk returns a tuple with the Role field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *DtoNodePoolResponse) GetRoleOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.Role) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Role, true
|
||||
}
|
||||
|
||||
// HasRole returns a boolean if a field has been set.
|
||||
func (o *DtoNodePoolResponse) HasRole() bool {
|
||||
if o != nil && !IsNil(o.Role) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetRole gets a reference to the given string and assigns it to the Role field.
|
||||
func (o *DtoNodePoolResponse) SetRole(v string) {
|
||||
o.Role = &v
|
||||
}
|
||||
|
||||
// GetServers returns the Servers field value if set, zero value otherwise.
|
||||
func (o *DtoNodePoolResponse) GetServers() []DtoServerResponse {
|
||||
if o == nil || IsNil(o.Servers) {
|
||||
var ret []DtoServerResponse
|
||||
return ret
|
||||
}
|
||||
return o.Servers
|
||||
}
|
||||
|
||||
// GetServersOk returns a tuple with the Servers field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *DtoNodePoolResponse) GetServersOk() ([]DtoServerResponse, bool) {
|
||||
if o == nil || IsNil(o.Servers) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Servers, true
|
||||
}
|
||||
|
||||
// HasServers returns a boolean if a field has been set.
|
||||
func (o *DtoNodePoolResponse) HasServers() bool {
|
||||
if o != nil && !IsNil(o.Servers) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetServers gets a reference to the given []DtoServerResponse and assigns it to the Servers field.
|
||||
func (o *DtoNodePoolResponse) SetServers(v []DtoServerResponse) {
|
||||
o.Servers = v
|
||||
}
|
||||
|
||||
// GetTaints returns the Taints field value if set, zero value otherwise.
|
||||
func (o *DtoNodePoolResponse) GetTaints() []DtoTaintResponse {
|
||||
if o == nil || IsNil(o.Taints) {
|
||||
var ret []DtoTaintResponse
|
||||
return ret
|
||||
}
|
||||
return o.Taints
|
||||
}
|
||||
|
||||
// GetTaintsOk returns a tuple with the Taints field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *DtoNodePoolResponse) GetTaintsOk() ([]DtoTaintResponse, bool) {
|
||||
if o == nil || IsNil(o.Taints) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Taints, true
|
||||
}
|
||||
|
||||
// HasTaints returns a boolean if a field has been set.
|
||||
func (o *DtoNodePoolResponse) HasTaints() bool {
|
||||
if o != nil && !IsNil(o.Taints) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetTaints gets a reference to the given []DtoTaintResponse and assigns it to the Taints field.
|
||||
func (o *DtoNodePoolResponse) SetTaints(v []DtoTaintResponse) {
|
||||
o.Taints = v
|
||||
}
|
||||
|
||||
// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise.
|
||||
func (o *DtoNodePoolResponse) GetUpdatedAt() string {
|
||||
if o == nil || IsNil(o.UpdatedAt) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.UpdatedAt
|
||||
}
|
||||
|
||||
// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *DtoNodePoolResponse) GetUpdatedAtOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.UpdatedAt) {
|
||||
return nil, false
|
||||
}
|
||||
return o.UpdatedAt, true
|
||||
}
|
||||
|
||||
// HasUpdatedAt returns a boolean if a field has been set.
|
||||
func (o *DtoNodePoolResponse) HasUpdatedAt() bool {
|
||||
if o != nil && !IsNil(o.UpdatedAt) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetUpdatedAt gets a reference to the given string and assigns it to the UpdatedAt field.
|
||||
func (o *DtoNodePoolResponse) SetUpdatedAt(v string) {
|
||||
o.UpdatedAt = &v
|
||||
}
|
||||
|
||||
func (o DtoNodePoolResponse) MarshalJSON() ([]byte, error) {
|
||||
toSerialize, err := o.ToMap()
|
||||
if err != nil {
|
||||
return []byte{}, err
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
func (o DtoNodePoolResponse) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if !IsNil(o.Annotations) {
|
||||
toSerialize["annotations"] = o.Annotations
|
||||
}
|
||||
if !IsNil(o.CreatedAt) {
|
||||
toSerialize["created_at"] = o.CreatedAt
|
||||
}
|
||||
if !IsNil(o.Id) {
|
||||
toSerialize["id"] = o.Id
|
||||
}
|
||||
if !IsNil(o.Labels) {
|
||||
toSerialize["labels"] = o.Labels
|
||||
}
|
||||
if !IsNil(o.Name) {
|
||||
toSerialize["name"] = o.Name
|
||||
}
|
||||
if !IsNil(o.OrganizationId) {
|
||||
toSerialize["organization_id"] = o.OrganizationId
|
||||
}
|
||||
if !IsNil(o.Role) {
|
||||
toSerialize["role"] = o.Role
|
||||
}
|
||||
if !IsNil(o.Servers) {
|
||||
toSerialize["servers"] = o.Servers
|
||||
}
|
||||
if !IsNil(o.Taints) {
|
||||
toSerialize["taints"] = o.Taints
|
||||
}
|
||||
if !IsNil(o.UpdatedAt) {
|
||||
toSerialize["updated_at"] = o.UpdatedAt
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableDtoNodePoolResponse struct {
|
||||
value *DtoNodePoolResponse
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableDtoNodePoolResponse) Get() *DtoNodePoolResponse {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableDtoNodePoolResponse) Set(val *DtoNodePoolResponse) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableDtoNodePoolResponse) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableDtoNodePoolResponse) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableDtoNodePoolResponse(val *DtoNodePoolResponse) *NullableDtoNodePoolResponse {
|
||||
return &NullableDtoNodePoolResponse{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableDtoNodePoolResponse) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableDtoNodePoolResponse) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
160
sdk/go/model_dto_update_node_pool_request.go
Normal file
160
sdk/go/model_dto_update_node_pool_request.go
Normal file
@@ -0,0 +1,160 @@
|
||||
/*
|
||||
AutoGlue API
|
||||
|
||||
API for managing K3s clusters across cloud providers
|
||||
|
||||
API version: 1.0
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package autoglue
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// checks if the DtoUpdateNodePoolRequest type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &DtoUpdateNodePoolRequest{}
|
||||
|
||||
// DtoUpdateNodePoolRequest struct for DtoUpdateNodePoolRequest
|
||||
type DtoUpdateNodePoolRequest struct {
|
||||
Name *string `json:"name,omitempty"`
|
||||
Role *string `json:"role,omitempty"`
|
||||
}
|
||||
|
||||
// NewDtoUpdateNodePoolRequest instantiates a new DtoUpdateNodePoolRequest 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
|
||||
func NewDtoUpdateNodePoolRequest() *DtoUpdateNodePoolRequest {
|
||||
this := DtoUpdateNodePoolRequest{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewDtoUpdateNodePoolRequestWithDefaults instantiates a new DtoUpdateNodePoolRequest 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
|
||||
func NewDtoUpdateNodePoolRequestWithDefaults() *DtoUpdateNodePoolRequest {
|
||||
this := DtoUpdateNodePoolRequest{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetName returns the Name field value if set, zero value otherwise.
|
||||
func (o *DtoUpdateNodePoolRequest) GetName() string {
|
||||
if o == nil || IsNil(o.Name) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Name
|
||||
}
|
||||
|
||||
// GetNameOk returns a tuple with the Name field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *DtoUpdateNodePoolRequest) GetNameOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.Name) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Name, true
|
||||
}
|
||||
|
||||
// HasName returns a boolean if a field has been set.
|
||||
func (o *DtoUpdateNodePoolRequest) HasName() bool {
|
||||
if o != nil && !IsNil(o.Name) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetName gets a reference to the given string and assigns it to the Name field.
|
||||
func (o *DtoUpdateNodePoolRequest) SetName(v string) {
|
||||
o.Name = &v
|
||||
}
|
||||
|
||||
// GetRole returns the Role field value if set, zero value otherwise.
|
||||
func (o *DtoUpdateNodePoolRequest) GetRole() string {
|
||||
if o == nil || IsNil(o.Role) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Role
|
||||
}
|
||||
|
||||
// GetRoleOk returns a tuple with the Role field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *DtoUpdateNodePoolRequest) GetRoleOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.Role) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Role, true
|
||||
}
|
||||
|
||||
// HasRole returns a boolean if a field has been set.
|
||||
func (o *DtoUpdateNodePoolRequest) HasRole() bool {
|
||||
if o != nil && !IsNil(o.Role) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetRole gets a reference to the given string and assigns it to the Role field.
|
||||
func (o *DtoUpdateNodePoolRequest) SetRole(v string) {
|
||||
o.Role = &v
|
||||
}
|
||||
|
||||
func (o DtoUpdateNodePoolRequest) MarshalJSON() ([]byte, error) {
|
||||
toSerialize, err := o.ToMap()
|
||||
if err != nil {
|
||||
return []byte{}, err
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
func (o DtoUpdateNodePoolRequest) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if !IsNil(o.Name) {
|
||||
toSerialize["name"] = o.Name
|
||||
}
|
||||
if !IsNil(o.Role) {
|
||||
toSerialize["role"] = o.Role
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableDtoUpdateNodePoolRequest struct {
|
||||
value *DtoUpdateNodePoolRequest
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableDtoUpdateNodePoolRequest) Get() *DtoUpdateNodePoolRequest {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableDtoUpdateNodePoolRequest) Set(val *DtoUpdateNodePoolRequest) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableDtoUpdateNodePoolRequest) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableDtoUpdateNodePoolRequest) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableDtoUpdateNodePoolRequest(val *DtoUpdateNodePoolRequest) *NullableDtoUpdateNodePoolRequest {
|
||||
return &NullableDtoUpdateNodePoolRequest{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableDtoUpdateNodePoolRequest) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableDtoUpdateNodePoolRequest) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
264
sdk/go/test/api_node_pools_test.go
Normal file
264
sdk/go/test/api_node_pools_test.go
Normal file
@@ -0,0 +1,264 @@
|
||||
/*
|
||||
AutoGlue API
|
||||
|
||||
Testing NodePoolsAPIService
|
||||
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech);
|
||||
|
||||
package autoglue
|
||||
|
||||
import (
|
||||
"context"
|
||||
"testing"
|
||||
|
||||
openapiclient "github.com/glueops/autoglue-sdk-go"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
func Test_autoglue_NodePoolsAPIService(t *testing.T) {
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
|
||||
t.Run("Test NodePoolsAPIService AttachNodePoolAnnotations", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
var id string
|
||||
|
||||
resp, httpRes, err := apiClient.NodePoolsAPI.AttachNodePoolAnnotations(context.Background(), id).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
assert.Equal(t, 200, httpRes.StatusCode)
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test NodePoolsAPIService AttachNodePoolLabels", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
var id string
|
||||
|
||||
resp, httpRes, err := apiClient.NodePoolsAPI.AttachNodePoolLabels(context.Background(), id).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
assert.Equal(t, 200, httpRes.StatusCode)
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test NodePoolsAPIService AttachNodePoolServers", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
var id string
|
||||
|
||||
resp, httpRes, err := apiClient.NodePoolsAPI.AttachNodePoolServers(context.Background(), id).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
assert.Equal(t, 200, httpRes.StatusCode)
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test NodePoolsAPIService AttachNodePoolTaints", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
var id string
|
||||
|
||||
resp, httpRes, err := apiClient.NodePoolsAPI.AttachNodePoolTaints(context.Background(), id).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
assert.Equal(t, 200, httpRes.StatusCode)
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test NodePoolsAPIService CreateNodePool", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.NodePoolsAPI.CreateNodePool(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
assert.Equal(t, 200, httpRes.StatusCode)
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test NodePoolsAPIService DeleteNodePool", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
var id string
|
||||
|
||||
resp, httpRes, err := apiClient.NodePoolsAPI.DeleteNodePool(context.Background(), id).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
assert.Equal(t, 200, httpRes.StatusCode)
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test NodePoolsAPIService DetachNodePoolAnnotation", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
var id string
|
||||
var annotationId string
|
||||
|
||||
resp, httpRes, err := apiClient.NodePoolsAPI.DetachNodePoolAnnotation(context.Background(), id, annotationId).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
assert.Equal(t, 200, httpRes.StatusCode)
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test NodePoolsAPIService DetachNodePoolLabel", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
var id string
|
||||
var labelId string
|
||||
|
||||
resp, httpRes, err := apiClient.NodePoolsAPI.DetachNodePoolLabel(context.Background(), id, labelId).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
assert.Equal(t, 200, httpRes.StatusCode)
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test NodePoolsAPIService DetachNodePoolServer", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
var id string
|
||||
var serverId string
|
||||
|
||||
resp, httpRes, err := apiClient.NodePoolsAPI.DetachNodePoolServer(context.Background(), id, serverId).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
assert.Equal(t, 200, httpRes.StatusCode)
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test NodePoolsAPIService DetachNodePoolTaint", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
var id string
|
||||
var taintId string
|
||||
|
||||
resp, httpRes, err := apiClient.NodePoolsAPI.DetachNodePoolTaint(context.Background(), id, taintId).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
assert.Equal(t, 200, httpRes.StatusCode)
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test NodePoolsAPIService GetNodePool", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
var id string
|
||||
|
||||
resp, httpRes, err := apiClient.NodePoolsAPI.GetNodePool(context.Background(), id).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
assert.Equal(t, 200, httpRes.StatusCode)
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test NodePoolsAPIService ListNodePoolAnnotations", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
var id string
|
||||
|
||||
resp, httpRes, err := apiClient.NodePoolsAPI.ListNodePoolAnnotations(context.Background(), id).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
assert.Equal(t, 200, httpRes.StatusCode)
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test NodePoolsAPIService ListNodePoolLabels", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
var id string
|
||||
|
||||
resp, httpRes, err := apiClient.NodePoolsAPI.ListNodePoolLabels(context.Background(), id).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
assert.Equal(t, 200, httpRes.StatusCode)
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test NodePoolsAPIService ListNodePoolServers", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
var id string
|
||||
|
||||
resp, httpRes, err := apiClient.NodePoolsAPI.ListNodePoolServers(context.Background(), id).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
assert.Equal(t, 200, httpRes.StatusCode)
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test NodePoolsAPIService ListNodePoolTaints", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
var id string
|
||||
|
||||
resp, httpRes, err := apiClient.NodePoolsAPI.ListNodePoolTaints(context.Background(), id).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
assert.Equal(t, 200, httpRes.StatusCode)
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test NodePoolsAPIService ListNodePools", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.NodePoolsAPI.ListNodePools(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
assert.Equal(t, 200, httpRes.StatusCode)
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test NodePoolsAPIService UpdateNodePool", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
var id string
|
||||
|
||||
resp, httpRes, err := apiClient.NodePoolsAPI.UpdateNodePool(context.Background(), id).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
assert.Equal(t, 200, httpRes.StatusCode)
|
||||
|
||||
})
|
||||
|
||||
}
|
||||
@@ -6,9 +6,14 @@ docs/AnnotationsApi.md
|
||||
docs/ArcherAdminApi.md
|
||||
docs/AuthApi.md
|
||||
docs/DtoAnnotationResponse.md
|
||||
docs/DtoAttachAnnotationsRequest.md
|
||||
docs/DtoAttachLabelsRequest.md
|
||||
docs/DtoAttachServersRequest.md
|
||||
docs/DtoAttachTaintsRequest.md
|
||||
docs/DtoAuthStartResponse.md
|
||||
docs/DtoCreateAnnotationRequest.md
|
||||
docs/DtoCreateLabelRequest.md
|
||||
docs/DtoCreateNodePoolRequest.md
|
||||
docs/DtoCreateSSHRequest.md
|
||||
docs/DtoCreateServerRequest.md
|
||||
docs/DtoCreateTaintRequest.md
|
||||
@@ -18,6 +23,7 @@ docs/DtoJob.md
|
||||
docs/DtoJobStatus.md
|
||||
docs/DtoLabelResponse.md
|
||||
docs/DtoLogoutRequest.md
|
||||
docs/DtoNodePoolResponse.md
|
||||
docs/DtoPageJob.md
|
||||
docs/DtoQueueInfo.md
|
||||
docs/DtoRefreshRequest.md
|
||||
@@ -28,6 +34,7 @@ docs/DtoTaintResponse.md
|
||||
docs/DtoTokenPair.md
|
||||
docs/DtoUpdateAnnotationRequest.md
|
||||
docs/DtoUpdateLabelRequest.md
|
||||
docs/DtoUpdateNodePoolRequest.md
|
||||
docs/DtoUpdateServerRequest.md
|
||||
docs/DtoUpdateTaintRequest.md
|
||||
docs/HandlersCreateUserKeyRequest.md
|
||||
@@ -49,6 +56,7 @@ docs/ModelsAPIKey.md
|
||||
docs/ModelsOrganization.md
|
||||
docs/ModelsUser.md
|
||||
docs/ModelsUserEmail.md
|
||||
docs/NodePoolsApi.md
|
||||
docs/OrgsApi.md
|
||||
docs/ServersApi.md
|
||||
docs/SshApi.md
|
||||
@@ -62,6 +70,7 @@ src/apis/HealthApi.ts
|
||||
src/apis/LabelsApi.ts
|
||||
src/apis/MeAPIKeysApi.ts
|
||||
src/apis/MeApi.ts
|
||||
src/apis/NodePoolsApi.ts
|
||||
src/apis/OrgsApi.ts
|
||||
src/apis/ServersApi.ts
|
||||
src/apis/SshApi.ts
|
||||
@@ -69,9 +78,14 @@ src/apis/TaintsApi.ts
|
||||
src/apis/index.ts
|
||||
src/index.ts
|
||||
src/models/DtoAnnotationResponse.ts
|
||||
src/models/DtoAttachAnnotationsRequest.ts
|
||||
src/models/DtoAttachLabelsRequest.ts
|
||||
src/models/DtoAttachServersRequest.ts
|
||||
src/models/DtoAttachTaintsRequest.ts
|
||||
src/models/DtoAuthStartResponse.ts
|
||||
src/models/DtoCreateAnnotationRequest.ts
|
||||
src/models/DtoCreateLabelRequest.ts
|
||||
src/models/DtoCreateNodePoolRequest.ts
|
||||
src/models/DtoCreateSSHRequest.ts
|
||||
src/models/DtoCreateServerRequest.ts
|
||||
src/models/DtoCreateTaintRequest.ts
|
||||
@@ -81,6 +95,7 @@ src/models/DtoJob.ts
|
||||
src/models/DtoJobStatus.ts
|
||||
src/models/DtoLabelResponse.ts
|
||||
src/models/DtoLogoutRequest.ts
|
||||
src/models/DtoNodePoolResponse.ts
|
||||
src/models/DtoPageJob.ts
|
||||
src/models/DtoQueueInfo.ts
|
||||
src/models/DtoRefreshRequest.ts
|
||||
@@ -91,6 +106,7 @@ src/models/DtoTaintResponse.ts
|
||||
src/models/DtoTokenPair.ts
|
||||
src/models/DtoUpdateAnnotationRequest.ts
|
||||
src/models/DtoUpdateLabelRequest.ts
|
||||
src/models/DtoUpdateNodePoolRequest.ts
|
||||
src/models/DtoUpdateServerRequest.ts
|
||||
src/models/DtoUpdateTaintRequest.ts
|
||||
src/models/HandlersCreateUserKeyRequest.ts
|
||||
|
||||
134
sdk/ts/README.md
134
sdk/ts/README.md
@@ -54,69 +54,91 @@ example().catch(console.error);
|
||||
|
||||
### API Endpoints
|
||||
|
||||
All URIs are relative to _http://localhost:8080/api/v1_
|
||||
All URIs are relative to _/api/v1_
|
||||
|
||||
| Class | Method | HTTP request | Description |
|
||||
| ---------------- | ------------------------------------------------------------------------- | --------------------------------------- | ----------------------------------------------- |
|
||||
| _AnnotationsApi_ | [**createAnnotation**](docs/AnnotationsApi.md#createannotation) | **POST** /annotations | Create annotation (org scoped) |
|
||||
| _AnnotationsApi_ | [**deleteAnnotation**](docs/AnnotationsApi.md#deleteannotation) | **DELETE** /annotations/{id} | Delete annotation (org scoped) |
|
||||
| _AnnotationsApi_ | [**getAnnotation**](docs/AnnotationsApi.md#getannotation) | **GET** /annotations/{id} | Get annotation by ID (org scoped) |
|
||||
| _AnnotationsApi_ | [**listAnnotations**](docs/AnnotationsApi.md#listannotations) | **GET** /annotations | List annotations (org scoped) |
|
||||
| _AnnotationsApi_ | [**updateAnnotation**](docs/AnnotationsApi.md#updateannotation) | **PATCH** /annotations/{id} | Update annotation (org scoped) |
|
||||
| _ArcherAdminApi_ | [**adminCancelArcherJob**](docs/ArcherAdminApi.md#admincancelarcherjob) | **POST** /admin/archer/jobs/{id}/cancel | Cancel an Archer job (admin) |
|
||||
| _ArcherAdminApi_ | [**adminEnqueueArcherJob**](docs/ArcherAdminApi.md#adminenqueuearcherjob) | **POST** /admin/archer/jobs | Enqueue a new Archer job (admin) |
|
||||
| _ArcherAdminApi_ | [**adminListArcherJobs**](docs/ArcherAdminApi.md#adminlistarcherjobs) | **GET** /admin/archer/jobs | List Archer jobs (admin) |
|
||||
| _ArcherAdminApi_ | [**adminListArcherQueues**](docs/ArcherAdminApi.md#adminlistarcherqueues) | **GET** /admin/archer/queues | List Archer queues (admin) |
|
||||
| _ArcherAdminApi_ | [**adminRetryArcherJob**](docs/ArcherAdminApi.md#adminretryarcherjob) | **POST** /admin/archer/jobs/{id}/retry | Retry a failed/canceled Archer job (admin) |
|
||||
| _AuthApi_ | [**authCallback**](docs/AuthApi.md#authcallback) | **GET** /auth/{provider}/callback | Handle social login callback |
|
||||
| _AuthApi_ | [**authStart**](docs/AuthApi.md#authstart) | **POST** /auth/{provider}/start | Begin social login |
|
||||
| _AuthApi_ | [**getJWKS**](docs/AuthApi.md#getjwks) | **GET** /.well-known/jwks.json | Get JWKS |
|
||||
| _AuthApi_ | [**logout**](docs/AuthApi.md#logout) | **POST** /auth/logout | Revoke refresh token family (logout everywhere) |
|
||||
| _AuthApi_ | [**refresh**](docs/AuthApi.md#refresh) | **POST** /auth/refresh | Rotate refresh token |
|
||||
| _HealthApi_ | [**healthCheckOperationId**](docs/HealthApi.md#healthcheckoperationid) | **GET** /healthz | Basic health check |
|
||||
| _LabelsApi_ | [**createLabel**](docs/LabelsApi.md#createlabel) | **POST** /labels | Create label (org scoped) |
|
||||
| _LabelsApi_ | [**deleteLabel**](docs/LabelsApi.md#deletelabel) | **DELETE** /labels/{id} | Delete label (org scoped) |
|
||||
| _LabelsApi_ | [**getLabel**](docs/LabelsApi.md#getlabel) | **GET** /labels/{id} | Get label by ID (org scoped) |
|
||||
| _LabelsApi_ | [**listLabels**](docs/LabelsApi.md#listlabels) | **GET** /labels | List node labels (org scoped) |
|
||||
| _LabelsApi_ | [**updateLabel**](docs/LabelsApi.md#updatelabel) | **PATCH** /labels/{id} | Update label (org scoped) |
|
||||
| _MeApi_ | [**getMe**](docs/MeApi.md#getme) | **GET** /me | Get current user profile |
|
||||
| _MeApi_ | [**updateMe**](docs/MeApi.md#updateme) | **PATCH** /me | Update current user profile |
|
||||
| _MeAPIKeysApi_ | [**createUserAPIKey**](docs/MeAPIKeysApi.md#createuserapikey) | **POST** /me/api-keys | Create a new user API key |
|
||||
| _MeAPIKeysApi_ | [**deleteUserAPIKey**](docs/MeAPIKeysApi.md#deleteuserapikey) | **DELETE** /me/api-keys/{id} | Delete a user API key |
|
||||
| _MeAPIKeysApi_ | [**listUserAPIKeys**](docs/MeAPIKeysApi.md#listuserapikeys) | **GET** /me/api-keys | List my API keys |
|
||||
| _OrgsApi_ | [**addOrUpdateMember**](docs/OrgsApi.md#addorupdatemember) | **POST** /orgs/{id}/members | Add or update a member (owner/admin) |
|
||||
| _OrgsApi_ | [**createOrg**](docs/OrgsApi.md#createorg) | **POST** /orgs | Create organization |
|
||||
| _OrgsApi_ | [**createOrgKey**](docs/OrgsApi.md#createorgkey) | **POST** /orgs/{id}/api-keys | Create org key/secret pair (owner/admin) |
|
||||
| _OrgsApi_ | [**deleteOrg**](docs/OrgsApi.md#deleteorg) | **DELETE** /orgs/{id} | Delete organization (owner) |
|
||||
| _OrgsApi_ | [**deleteOrgKey**](docs/OrgsApi.md#deleteorgkey) | **DELETE** /orgs/{id}/api-keys/{key_id} | Delete org key (owner/admin) |
|
||||
| _OrgsApi_ | [**getOrg**](docs/OrgsApi.md#getorg) | **GET** /orgs/{id} | Get organization |
|
||||
| _OrgsApi_ | [**listMembers**](docs/OrgsApi.md#listmembers) | **GET** /orgs/{id}/members | List members in org |
|
||||
| _OrgsApi_ | [**listMyOrgs**](docs/OrgsApi.md#listmyorgs) | **GET** /orgs | List organizations I belong to |
|
||||
| _OrgsApi_ | [**listOrgKeys**](docs/OrgsApi.md#listorgkeys) | **GET** /orgs/{id}/api-keys | List org-scoped API keys (no secrets) |
|
||||
| _OrgsApi_ | [**removeMember**](docs/OrgsApi.md#removemember) | **DELETE** /orgs/{id}/members/{user_id} | Remove a member (owner/admin) |
|
||||
| _OrgsApi_ | [**updateOrg**](docs/OrgsApi.md#updateorg) | **PATCH** /orgs/{id} | Update organization (owner/admin) |
|
||||
| _ServersApi_ | [**createServer**](docs/ServersApi.md#createserver) | **POST** /servers | Create server (org scoped) |
|
||||
| _ServersApi_ | [**deleteServer**](docs/ServersApi.md#deleteserver) | **DELETE** /servers/{id} | Delete server (org scoped) |
|
||||
| _ServersApi_ | [**getServer**](docs/ServersApi.md#getserver) | **GET** /servers/{id} | Get server by ID (org scoped) |
|
||||
| _ServersApi_ | [**listServers**](docs/ServersApi.md#listservers) | **GET** /servers | List servers (org scoped) |
|
||||
| _ServersApi_ | [**updateServer**](docs/ServersApi.md#updateserver) | **PATCH** /servers/{id} | Update server (org scoped) |
|
||||
| _SshApi_ | [**createSSHKey**](docs/SshApi.md#createsshkey) | **POST** /ssh | Create ssh keypair (org scoped) |
|
||||
| _SshApi_ | [**deleteSSHKey**](docs/SshApi.md#deletesshkey) | **DELETE** /ssh/{id} | Delete ssh keypair (org scoped) |
|
||||
| _SshApi_ | [**downloadSSHKey**](docs/SshApi.md#downloadsshkey) | **GET** /ssh/{id}/download | Download ssh key files by ID (org scoped) |
|
||||
| _SshApi_ | [**getSSHKey**](docs/SshApi.md#getsshkey) | **GET** /ssh/{id} | Get ssh key by ID (org scoped) |
|
||||
| _SshApi_ | [**listPublicSshKeys**](docs/SshApi.md#listpublicsshkeys) | **GET** /ssh | List ssh keys (org scoped) |
|
||||
| _TaintsApi_ | [**createTaint**](docs/TaintsApi.md#createtaint) | **POST** /taints | Create node taint (org scoped) |
|
||||
| _TaintsApi_ | [**deleteTaint**](docs/TaintsApi.md#deletetaint) | **DELETE** /taints/{id} | Delete taint (org scoped) |
|
||||
| _TaintsApi_ | [**getTaint**](docs/TaintsApi.md#gettaint) | **GET** /taints/{id} | Get node taint by ID (org scoped) |
|
||||
| _TaintsApi_ | [**listTaints**](docs/TaintsApi.md#listtaints) | **GET** /taints | List node pool taints (org scoped) |
|
||||
| _TaintsApi_ | [**updateTaint**](docs/TaintsApi.md#updatetaint) | **PATCH** /taints/{id} | Update node taint (org scoped) |
|
||||
| Class | Method | HTTP request | Description |
|
||||
| ---------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------ | ----------------------------------------------------- |
|
||||
| _AnnotationsApi_ | [**createAnnotation**](docs/AnnotationsApi.md#createannotation) | **POST** /annotations | Create annotation (org scoped) |
|
||||
| _AnnotationsApi_ | [**deleteAnnotation**](docs/AnnotationsApi.md#deleteannotation) | **DELETE** /annotations/{id} | Delete annotation (org scoped) |
|
||||
| _AnnotationsApi_ | [**getAnnotation**](docs/AnnotationsApi.md#getannotation) | **GET** /annotations/{id} | Get annotation by ID (org scoped) |
|
||||
| _AnnotationsApi_ | [**listAnnotations**](docs/AnnotationsApi.md#listannotations) | **GET** /annotations | List annotations (org scoped) |
|
||||
| _AnnotationsApi_ | [**updateAnnotation**](docs/AnnotationsApi.md#updateannotation) | **PATCH** /annotations/{id} | Update annotation (org scoped) |
|
||||
| _ArcherAdminApi_ | [**adminCancelArcherJob**](docs/ArcherAdminApi.md#admincancelarcherjob) | **POST** /admin/archer/jobs/{id}/cancel | Cancel an Archer job (admin) |
|
||||
| _ArcherAdminApi_ | [**adminEnqueueArcherJob**](docs/ArcherAdminApi.md#adminenqueuearcherjob) | **POST** /admin/archer/jobs | Enqueue a new Archer job (admin) |
|
||||
| _ArcherAdminApi_ | [**adminListArcherJobs**](docs/ArcherAdminApi.md#adminlistarcherjobs) | **GET** /admin/archer/jobs | List Archer jobs (admin) |
|
||||
| _ArcherAdminApi_ | [**adminListArcherQueues**](docs/ArcherAdminApi.md#adminlistarcherqueues) | **GET** /admin/archer/queues | List Archer queues (admin) |
|
||||
| _ArcherAdminApi_ | [**adminRetryArcherJob**](docs/ArcherAdminApi.md#adminretryarcherjob) | **POST** /admin/archer/jobs/{id}/retry | Retry a failed/canceled Archer job (admin) |
|
||||
| _AuthApi_ | [**authCallback**](docs/AuthApi.md#authcallback) | **GET** /auth/{provider}/callback | Handle social login callback |
|
||||
| _AuthApi_ | [**authStart**](docs/AuthApi.md#authstart) | **POST** /auth/{provider}/start | Begin social login |
|
||||
| _AuthApi_ | [**getJWKS**](docs/AuthApi.md#getjwks) | **GET** /.well-known/jwks.json | Get JWKS |
|
||||
| _AuthApi_ | [**logout**](docs/AuthApi.md#logout) | **POST** /auth/logout | Revoke refresh token family (logout everywhere) |
|
||||
| _AuthApi_ | [**refresh**](docs/AuthApi.md#refresh) | **POST** /auth/refresh | Rotate refresh token |
|
||||
| _HealthApi_ | [**healthCheckOperationId**](docs/HealthApi.md#healthcheckoperationid) | **GET** /healthz | Basic health check |
|
||||
| _LabelsApi_ | [**createLabel**](docs/LabelsApi.md#createlabel) | **POST** /labels | Create label (org scoped) |
|
||||
| _LabelsApi_ | [**deleteLabel**](docs/LabelsApi.md#deletelabel) | **DELETE** /labels/{id} | Delete label (org scoped) |
|
||||
| _LabelsApi_ | [**getLabel**](docs/LabelsApi.md#getlabel) | **GET** /labels/{id} | Get label by ID (org scoped) |
|
||||
| _LabelsApi_ | [**listLabels**](docs/LabelsApi.md#listlabels) | **GET** /labels | List node labels (org scoped) |
|
||||
| _LabelsApi_ | [**updateLabel**](docs/LabelsApi.md#updatelabel) | **PATCH** /labels/{id} | Update label (org scoped) |
|
||||
| _MeApi_ | [**getMe**](docs/MeApi.md#getme) | **GET** /me | Get current user profile |
|
||||
| _MeApi_ | [**updateMe**](docs/MeApi.md#updateme) | **PATCH** /me | Update current user profile |
|
||||
| _MeAPIKeysApi_ | [**createUserAPIKey**](docs/MeAPIKeysApi.md#createuserapikey) | **POST** /me/api-keys | Create a new user API key |
|
||||
| _MeAPIKeysApi_ | [**deleteUserAPIKey**](docs/MeAPIKeysApi.md#deleteuserapikey) | **DELETE** /me/api-keys/{id} | Delete a user API key |
|
||||
| _MeAPIKeysApi_ | [**listUserAPIKeys**](docs/MeAPIKeysApi.md#listuserapikeys) | **GET** /me/api-keys | List my API keys |
|
||||
| _NodePoolsApi_ | [**attachNodePoolAnnotations**](docs/NodePoolsApi.md#attachnodepoolannotations) | **POST** /node-pools/{id}/annotations | Attach annotation to a node pool (org scoped) |
|
||||
| _NodePoolsApi_ | [**attachNodePoolLabels**](docs/NodePoolsApi.md#attachnodepoollabels) | **POST** /node-pools/{id}/labels | Attach labels to a node pool (org scoped) |
|
||||
| _NodePoolsApi_ | [**attachNodePoolServers**](docs/NodePoolsApi.md#attachnodepoolservers) | **POST** /node-pools/{id}/servers | Attach servers to a node pool (org scoped) |
|
||||
| _NodePoolsApi_ | [**attachNodePoolTaints**](docs/NodePoolsApi.md#attachnodepooltaints) | **POST** /node-pools/{id}/taints | Attach taints to a node pool (org scoped) |
|
||||
| _NodePoolsApi_ | [**createNodePool**](docs/NodePoolsApi.md#createnodepool) | **POST** /node-pools | Create node pool (org scoped) |
|
||||
| _NodePoolsApi_ | [**deleteNodePool**](docs/NodePoolsApi.md#deletenodepool) | **DELETE** /node-pools/{id} | Delete node pool (org scoped) |
|
||||
| _NodePoolsApi_ | [**detachNodePoolAnnotation**](docs/NodePoolsApi.md#detachnodepoolannotation) | **DELETE** /node-pools/{id}/annotations/{annotationId} | Detach one annotation from a node pool (org scoped) |
|
||||
| _NodePoolsApi_ | [**detachNodePoolLabel**](docs/NodePoolsApi.md#detachnodepoollabel) | **DELETE** /node-pools/{id}/labels/{labelId} | Detach one label from a node pool (org scoped) |
|
||||
| _NodePoolsApi_ | [**detachNodePoolServer**](docs/NodePoolsApi.md#detachnodepoolserver) | **DELETE** /node-pools/{id}/servers/{serverId} | Detach one server from a node pool (org scoped) |
|
||||
| _NodePoolsApi_ | [**detachNodePoolTaint**](docs/NodePoolsApi.md#detachnodepooltaint) | **DELETE** /node-pools/{id}/taints/{taintId} | Detach one taint from a node pool (org scoped) |
|
||||
| _NodePoolsApi_ | [**getNodePool**](docs/NodePoolsApi.md#getnodepool) | **GET** /node-pools/{id} | Get node pool by ID (org scoped) |
|
||||
| _NodePoolsApi_ | [**listNodePoolAnnotations**](docs/NodePoolsApi.md#listnodepoolannotations) | **GET** /node-pools/{id}/annotations | List annotations attached to a node pool (org scoped) |
|
||||
| _NodePoolsApi_ | [**listNodePoolLabels**](docs/NodePoolsApi.md#listnodepoollabels) | **GET** /node-pools/{id}/labels | List labels attached to a node pool (org scoped) |
|
||||
| _NodePoolsApi_ | [**listNodePoolServers**](docs/NodePoolsApi.md#listnodepoolservers) | **GET** /node-pools/{id}/servers | List servers attached to a node pool (org scoped) |
|
||||
| _NodePoolsApi_ | [**listNodePoolTaints**](docs/NodePoolsApi.md#listnodepooltaints) | **GET** /node-pools/{id}/taints | List taints attached to a node pool (org scoped) |
|
||||
| _NodePoolsApi_ | [**listNodePools**](docs/NodePoolsApi.md#listnodepools) | **GET** /node-pools | List node pools (org scoped) |
|
||||
| _NodePoolsApi_ | [**updateNodePool**](docs/NodePoolsApi.md#updatenodepool) | **PATCH** /node-pools/{id} | Update node pool (org scoped) |
|
||||
| _OrgsApi_ | [**addOrUpdateMember**](docs/OrgsApi.md#addorupdatemember) | **POST** /orgs/{id}/members | Add or update a member (owner/admin) |
|
||||
| _OrgsApi_ | [**createOrg**](docs/OrgsApi.md#createorg) | **POST** /orgs | Create organization |
|
||||
| _OrgsApi_ | [**createOrgKey**](docs/OrgsApi.md#createorgkey) | **POST** /orgs/{id}/api-keys | Create org key/secret pair (owner/admin) |
|
||||
| _OrgsApi_ | [**deleteOrg**](docs/OrgsApi.md#deleteorg) | **DELETE** /orgs/{id} | Delete organization (owner) |
|
||||
| _OrgsApi_ | [**deleteOrgKey**](docs/OrgsApi.md#deleteorgkey) | **DELETE** /orgs/{id}/api-keys/{key_id} | Delete org key (owner/admin) |
|
||||
| _OrgsApi_ | [**getOrg**](docs/OrgsApi.md#getorg) | **GET** /orgs/{id} | Get organization |
|
||||
| _OrgsApi_ | [**listMembers**](docs/OrgsApi.md#listmembers) | **GET** /orgs/{id}/members | List members in org |
|
||||
| _OrgsApi_ | [**listMyOrgs**](docs/OrgsApi.md#listmyorgs) | **GET** /orgs | List organizations I belong to |
|
||||
| _OrgsApi_ | [**listOrgKeys**](docs/OrgsApi.md#listorgkeys) | **GET** /orgs/{id}/api-keys | List org-scoped API keys (no secrets) |
|
||||
| _OrgsApi_ | [**removeMember**](docs/OrgsApi.md#removemember) | **DELETE** /orgs/{id}/members/{user_id} | Remove a member (owner/admin) |
|
||||
| _OrgsApi_ | [**updateOrg**](docs/OrgsApi.md#updateorg) | **PATCH** /orgs/{id} | Update organization (owner/admin) |
|
||||
| _ServersApi_ | [**createServer**](docs/ServersApi.md#createserver) | **POST** /servers | Create server (org scoped) |
|
||||
| _ServersApi_ | [**deleteServer**](docs/ServersApi.md#deleteserver) | **DELETE** /servers/{id} | Delete server (org scoped) |
|
||||
| _ServersApi_ | [**getServer**](docs/ServersApi.md#getserver) | **GET** /servers/{id} | Get server by ID (org scoped) |
|
||||
| _ServersApi_ | [**listServers**](docs/ServersApi.md#listservers) | **GET** /servers | List servers (org scoped) |
|
||||
| _ServersApi_ | [**updateServer**](docs/ServersApi.md#updateserver) | **PATCH** /servers/{id} | Update server (org scoped) |
|
||||
| _SshApi_ | [**createSSHKey**](docs/SshApi.md#createsshkey) | **POST** /ssh | Create ssh keypair (org scoped) |
|
||||
| _SshApi_ | [**deleteSSHKey**](docs/SshApi.md#deletesshkey) | **DELETE** /ssh/{id} | Delete ssh keypair (org scoped) |
|
||||
| _SshApi_ | [**downloadSSHKey**](docs/SshApi.md#downloadsshkey) | **GET** /ssh/{id}/download | Download ssh key files by ID (org scoped) |
|
||||
| _SshApi_ | [**getSSHKey**](docs/SshApi.md#getsshkey) | **GET** /ssh/{id} | Get ssh key by ID (org scoped) |
|
||||
| _SshApi_ | [**listPublicSshKeys**](docs/SshApi.md#listpublicsshkeys) | **GET** /ssh | List ssh keys (org scoped) |
|
||||
| _TaintsApi_ | [**createTaint**](docs/TaintsApi.md#createtaint) | **POST** /taints | Create node taint (org scoped) |
|
||||
| _TaintsApi_ | [**deleteTaint**](docs/TaintsApi.md#deletetaint) | **DELETE** /taints/{id} | Delete taint (org scoped) |
|
||||
| _TaintsApi_ | [**getTaint**](docs/TaintsApi.md#gettaint) | **GET** /taints/{id} | Get node taint by ID (org scoped) |
|
||||
| _TaintsApi_ | [**listTaints**](docs/TaintsApi.md#listtaints) | **GET** /taints | List node pool taints (org scoped) |
|
||||
| _TaintsApi_ | [**updateTaint**](docs/TaintsApi.md#updatetaint) | **PATCH** /taints/{id} | Update node taint (org scoped) |
|
||||
|
||||
### Models
|
||||
|
||||
- [DtoAnnotationResponse](docs/DtoAnnotationResponse.md)
|
||||
- [DtoAttachAnnotationsRequest](docs/DtoAttachAnnotationsRequest.md)
|
||||
- [DtoAttachLabelsRequest](docs/DtoAttachLabelsRequest.md)
|
||||
- [DtoAttachServersRequest](docs/DtoAttachServersRequest.md)
|
||||
- [DtoAttachTaintsRequest](docs/DtoAttachTaintsRequest.md)
|
||||
- [DtoAuthStartResponse](docs/DtoAuthStartResponse.md)
|
||||
- [DtoCreateAnnotationRequest](docs/DtoCreateAnnotationRequest.md)
|
||||
- [DtoCreateLabelRequest](docs/DtoCreateLabelRequest.md)
|
||||
- [DtoCreateNodePoolRequest](docs/DtoCreateNodePoolRequest.md)
|
||||
- [DtoCreateSSHRequest](docs/DtoCreateSSHRequest.md)
|
||||
- [DtoCreateServerRequest](docs/DtoCreateServerRequest.md)
|
||||
- [DtoCreateTaintRequest](docs/DtoCreateTaintRequest.md)
|
||||
@@ -126,6 +148,7 @@ All URIs are relative to _http://localhost:8080/api/v1_
|
||||
- [DtoJobStatus](docs/DtoJobStatus.md)
|
||||
- [DtoLabelResponse](docs/DtoLabelResponse.md)
|
||||
- [DtoLogoutRequest](docs/DtoLogoutRequest.md)
|
||||
- [DtoNodePoolResponse](docs/DtoNodePoolResponse.md)
|
||||
- [DtoPageJob](docs/DtoPageJob.md)
|
||||
- [DtoQueueInfo](docs/DtoQueueInfo.md)
|
||||
- [DtoRefreshRequest](docs/DtoRefreshRequest.md)
|
||||
@@ -136,6 +159,7 @@ All URIs are relative to _http://localhost:8080/api/v1_
|
||||
- [DtoTokenPair](docs/DtoTokenPair.md)
|
||||
- [DtoUpdateAnnotationRequest](docs/DtoUpdateAnnotationRequest.md)
|
||||
- [DtoUpdateLabelRequest](docs/DtoUpdateLabelRequest.md)
|
||||
- [DtoUpdateNodePoolRequest](docs/DtoUpdateNodePoolRequest.md)
|
||||
- [DtoUpdateServerRequest](docs/DtoUpdateServerRequest.md)
|
||||
- [DtoUpdateTaintRequest](docs/DtoUpdateTaintRequest.md)
|
||||
- [HandlersCreateUserKeyRequest](docs/HandlersCreateUserKeyRequest.md)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# AnnotationsApi
|
||||
|
||||
All URIs are relative to _http://localhost:8080/api/v1_
|
||||
All URIs are relative to _/api/v1_
|
||||
|
||||
| Method | HTTP request | Description |
|
||||
| ---------------------------------------------------------- | ---------------------------- | --------------------------------- |
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# ArcherAdminApi
|
||||
|
||||
All URIs are relative to _http://localhost:8080/api/v1_
|
||||
All URIs are relative to _/api/v1_
|
||||
|
||||
| Method | HTTP request | Description |
|
||||
| -------------------------------------------------------------------- | --------------------------------------- | ------------------------------------------ |
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# AuthApi
|
||||
|
||||
All URIs are relative to _http://localhost:8080/api/v1_
|
||||
All URIs are relative to _/api/v1_
|
||||
|
||||
| Method | HTTP request | Description |
|
||||
| ------------------------------------------- | --------------------------------- | ----------------------------------------------- |
|
||||
|
||||
30
sdk/ts/docs/DtoAttachAnnotationsRequest.md
Normal file
30
sdk/ts/docs/DtoAttachAnnotationsRequest.md
Normal file
@@ -0,0 +1,30 @@
|
||||
# DtoAttachAnnotationsRequest
|
||||
|
||||
## Properties
|
||||
|
||||
| Name | Type |
|
||||
| ---------------- | ------------------- |
|
||||
| `annotation_ids` | Array<string> |
|
||||
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import type { DtoAttachAnnotationsRequest } from "@glueops/autoglue-sdk-go";
|
||||
|
||||
// TODO: Update the object below with actual values
|
||||
const example = {
|
||||
annotation_ids: null,
|
||||
} satisfies DtoAttachAnnotationsRequest;
|
||||
|
||||
console.log(example);
|
||||
|
||||
// Convert the instance to a JSON string
|
||||
const exampleJSON: string = JSON.stringify(example);
|
||||
console.log(exampleJSON);
|
||||
|
||||
// Parse the JSON string back to an object
|
||||
const exampleParsed = JSON.parse(exampleJSON) as DtoAttachAnnotationsRequest;
|
||||
console.log(exampleParsed);
|
||||
```
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
||||
30
sdk/ts/docs/DtoAttachLabelsRequest.md
Normal file
30
sdk/ts/docs/DtoAttachLabelsRequest.md
Normal file
@@ -0,0 +1,30 @@
|
||||
# DtoAttachLabelsRequest
|
||||
|
||||
## Properties
|
||||
|
||||
| Name | Type |
|
||||
| ----------- | ------------------- |
|
||||
| `label_ids` | Array<string> |
|
||||
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import type { DtoAttachLabelsRequest } from "@glueops/autoglue-sdk-go";
|
||||
|
||||
// TODO: Update the object below with actual values
|
||||
const example = {
|
||||
label_ids: null,
|
||||
} satisfies DtoAttachLabelsRequest;
|
||||
|
||||
console.log(example);
|
||||
|
||||
// Convert the instance to a JSON string
|
||||
const exampleJSON: string = JSON.stringify(example);
|
||||
console.log(exampleJSON);
|
||||
|
||||
// Parse the JSON string back to an object
|
||||
const exampleParsed = JSON.parse(exampleJSON) as DtoAttachLabelsRequest;
|
||||
console.log(exampleParsed);
|
||||
```
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
||||
30
sdk/ts/docs/DtoAttachServersRequest.md
Normal file
30
sdk/ts/docs/DtoAttachServersRequest.md
Normal file
@@ -0,0 +1,30 @@
|
||||
# DtoAttachServersRequest
|
||||
|
||||
## Properties
|
||||
|
||||
| Name | Type |
|
||||
| ------------ | ------------------- |
|
||||
| `server_ids` | Array<string> |
|
||||
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import type { DtoAttachServersRequest } from "@glueops/autoglue-sdk-go";
|
||||
|
||||
// TODO: Update the object below with actual values
|
||||
const example = {
|
||||
server_ids: null,
|
||||
} satisfies DtoAttachServersRequest;
|
||||
|
||||
console.log(example);
|
||||
|
||||
// Convert the instance to a JSON string
|
||||
const exampleJSON: string = JSON.stringify(example);
|
||||
console.log(exampleJSON);
|
||||
|
||||
// Parse the JSON string back to an object
|
||||
const exampleParsed = JSON.parse(exampleJSON) as DtoAttachServersRequest;
|
||||
console.log(exampleParsed);
|
||||
```
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
||||
30
sdk/ts/docs/DtoAttachTaintsRequest.md
Normal file
30
sdk/ts/docs/DtoAttachTaintsRequest.md
Normal file
@@ -0,0 +1,30 @@
|
||||
# DtoAttachTaintsRequest
|
||||
|
||||
## Properties
|
||||
|
||||
| Name | Type |
|
||||
| ----------- | ------------------- |
|
||||
| `taint_ids` | Array<string> |
|
||||
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import type { DtoAttachTaintsRequest } from "@glueops/autoglue-sdk-go";
|
||||
|
||||
// TODO: Update the object below with actual values
|
||||
const example = {
|
||||
taint_ids: null,
|
||||
} satisfies DtoAttachTaintsRequest;
|
||||
|
||||
console.log(example);
|
||||
|
||||
// Convert the instance to a JSON string
|
||||
const exampleJSON: string = JSON.stringify(example);
|
||||
console.log(exampleJSON);
|
||||
|
||||
// Parse the JSON string back to an object
|
||||
const exampleParsed = JSON.parse(exampleJSON) as DtoAttachTaintsRequest;
|
||||
console.log(exampleParsed);
|
||||
```
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
||||
32
sdk/ts/docs/DtoCreateNodePoolRequest.md
Normal file
32
sdk/ts/docs/DtoCreateNodePoolRequest.md
Normal file
@@ -0,0 +1,32 @@
|
||||
# DtoCreateNodePoolRequest
|
||||
|
||||
## Properties
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| `name` | string |
|
||||
| `role` | string |
|
||||
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import type { DtoCreateNodePoolRequest } from "@glueops/autoglue-sdk-go";
|
||||
|
||||
// TODO: Update the object below with actual values
|
||||
const example = {
|
||||
name: null,
|
||||
role: null,
|
||||
} satisfies DtoCreateNodePoolRequest;
|
||||
|
||||
console.log(example);
|
||||
|
||||
// Convert the instance to a JSON string
|
||||
const exampleJSON: string = JSON.stringify(example);
|
||||
console.log(exampleJSON);
|
||||
|
||||
// Parse the JSON string back to an object
|
||||
const exampleParsed = JSON.parse(exampleJSON) as DtoCreateNodePoolRequest;
|
||||
console.log(exampleParsed);
|
||||
```
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
||||
48
sdk/ts/docs/DtoNodePoolResponse.md
Normal file
48
sdk/ts/docs/DtoNodePoolResponse.md
Normal file
@@ -0,0 +1,48 @@
|
||||
# DtoNodePoolResponse
|
||||
|
||||
## Properties
|
||||
|
||||
| Name | Type |
|
||||
| ----------------- | -------------------------------------------------------------- |
|
||||
| `annotations` | [Array<DtoAnnotationResponse>](DtoAnnotationResponse.md) |
|
||||
| `created_at` | string |
|
||||
| `id` | string |
|
||||
| `labels` | [Array<DtoLabelResponse>](DtoLabelResponse.md) |
|
||||
| `name` | string |
|
||||
| `organization_id` | string |
|
||||
| `role` | string |
|
||||
| `servers` | [Array<DtoServerResponse>](DtoServerResponse.md) |
|
||||
| `taints` | [Array<DtoTaintResponse>](DtoTaintResponse.md) |
|
||||
| `updated_at` | string |
|
||||
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import type { DtoNodePoolResponse } from "@glueops/autoglue-sdk-go";
|
||||
|
||||
// TODO: Update the object below with actual values
|
||||
const example = {
|
||||
annotations: null,
|
||||
created_at: null,
|
||||
id: null,
|
||||
labels: null,
|
||||
name: null,
|
||||
organization_id: null,
|
||||
role: null,
|
||||
servers: null,
|
||||
taints: null,
|
||||
updated_at: null,
|
||||
} satisfies DtoNodePoolResponse;
|
||||
|
||||
console.log(example);
|
||||
|
||||
// Convert the instance to a JSON string
|
||||
const exampleJSON: string = JSON.stringify(example);
|
||||
console.log(exampleJSON);
|
||||
|
||||
// Parse the JSON string back to an object
|
||||
const exampleParsed = JSON.parse(exampleJSON) as DtoNodePoolResponse;
|
||||
console.log(exampleParsed);
|
||||
```
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
||||
@@ -29,10 +29,10 @@ const example = {
|
||||
organization_id: null,
|
||||
private_ip_address: null,
|
||||
public_ip_address: null,
|
||||
role: null,
|
||||
role: master | worker | bastion,
|
||||
ssh_key_id: null,
|
||||
ssh_user: null,
|
||||
status: null,
|
||||
status: pending | provisioning | ready | failed,
|
||||
updated_at: null,
|
||||
} satisfies DtoServerResponse;
|
||||
|
||||
|
||||
32
sdk/ts/docs/DtoUpdateNodePoolRequest.md
Normal file
32
sdk/ts/docs/DtoUpdateNodePoolRequest.md
Normal file
@@ -0,0 +1,32 @@
|
||||
# DtoUpdateNodePoolRequest
|
||||
|
||||
## Properties
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| `name` | string |
|
||||
| `role` | string |
|
||||
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import type { DtoUpdateNodePoolRequest } from "@glueops/autoglue-sdk-go";
|
||||
|
||||
// TODO: Update the object below with actual values
|
||||
const example = {
|
||||
name: null,
|
||||
role: null,
|
||||
} satisfies DtoUpdateNodePoolRequest;
|
||||
|
||||
console.log(example);
|
||||
|
||||
// Convert the instance to a JSON string
|
||||
const exampleJSON: string = JSON.stringify(example);
|
||||
console.log(exampleJSON);
|
||||
|
||||
// Parse the JSON string back to an object
|
||||
const exampleParsed = JSON.parse(exampleJSON) as DtoUpdateNodePoolRequest;
|
||||
console.log(exampleParsed);
|
||||
```
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
||||
@@ -1,6 +1,6 @@
|
||||
# HealthApi
|
||||
|
||||
All URIs are relative to _http://localhost:8080/api/v1_
|
||||
All URIs are relative to _/api/v1_
|
||||
|
||||
| Method | HTTP request | Description |
|
||||
| ----------------------------------------------------------------- | ---------------- | ------------------ |
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# LabelsApi
|
||||
|
||||
All URIs are relative to _http://localhost:8080/api/v1_
|
||||
All URIs are relative to _/api/v1_
|
||||
|
||||
| Method | HTTP request | Description |
|
||||
| ------------------------------------------- | ----------------------- | ----------------------------- |
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# MeAPIKeysApi
|
||||
|
||||
All URIs are relative to _http://localhost:8080/api/v1_
|
||||
All URIs are relative to _/api/v1_
|
||||
|
||||
| Method | HTTP request | Description |
|
||||
| -------------------------------------------------------- | ---------------------------- | ------------------------- |
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# MeApi
|
||||
|
||||
All URIs are relative to _http://localhost:8080/api/v1_
|
||||
All URIs are relative to _/api/v1_
|
||||
|
||||
| Method | HTTP request | Description |
|
||||
| --------------------------------- | ------------- | --------------------------- |
|
||||
|
||||
1366
sdk/ts/docs/NodePoolsApi.md
Normal file
1366
sdk/ts/docs/NodePoolsApi.md
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1,6 +1,6 @@
|
||||
# OrgsApi
|
||||
|
||||
All URIs are relative to _http://localhost:8080/api/v1_
|
||||
All URIs are relative to _/api/v1_
|
||||
|
||||
| Method | HTTP request | Description |
|
||||
| ----------------------------------------------------- | --------------------------------------- | ---------------------------------------- |
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# ServersApi
|
||||
|
||||
All URIs are relative to _http://localhost:8080/api/v1_
|
||||
All URIs are relative to _/api/v1_
|
||||
|
||||
| Method | HTTP request | Description |
|
||||
| ---------------------------------------------- | ------------------------ | ----------------------------- |
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# SshApi
|
||||
|
||||
All URIs are relative to _http://localhost:8080/api/v1_
|
||||
All URIs are relative to _/api/v1_
|
||||
|
||||
| Method | HTTP request | Description |
|
||||
| ---------------------------------------------------- | -------------------------- | ----------------------------------------- |
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# TaintsApi
|
||||
|
||||
All URIs are relative to _http://localhost:8080/api/v1_
|
||||
All URIs are relative to _/api/v1_
|
||||
|
||||
| Method | HTTP request | Description |
|
||||
| ------------------------------------------- | ----------------------- | ---------------------------------- |
|
||||
|
||||
@@ -16,6 +16,6 @@
|
||||
"prepare": "npm run build"
|
||||
},
|
||||
"devDependencies": {
|
||||
"typescript": "5.9.3"
|
||||
"typescript": "^4.0 || ^5.0"
|
||||
}
|
||||
}
|
||||
|
||||
1478
sdk/ts/src/apis/NodePoolsApi.ts
Normal file
1478
sdk/ts/src/apis/NodePoolsApi.ts
Normal file
File diff suppressed because it is too large
Load Diff
@@ -7,6 +7,7 @@ export * from "./HealthApi";
|
||||
export * from "./LabelsApi";
|
||||
export * from "./MeApi";
|
||||
export * from "./MeAPIKeysApi";
|
||||
export * from "./NodePoolsApi";
|
||||
export * from "./OrgsApi";
|
||||
export * from "./ServersApi";
|
||||
export * from "./SshApi";
|
||||
|
||||
74
sdk/ts/src/models/DtoAttachAnnotationsRequest.ts
Normal file
74
sdk/ts/src/models/DtoAttachAnnotationsRequest.ts
Normal file
@@ -0,0 +1,74 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* AutoGlue API
|
||||
* API for managing K3s clusters across cloud providers
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface DtoAttachAnnotationsRequest
|
||||
*/
|
||||
export interface DtoAttachAnnotationsRequest {
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof DtoAttachAnnotationsRequest
|
||||
*/
|
||||
annotation_ids?: Array<string>;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the DtoAttachAnnotationsRequest interface.
|
||||
*/
|
||||
export function instanceOfDtoAttachAnnotationsRequest(
|
||||
value: object,
|
||||
): value is DtoAttachAnnotationsRequest {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function DtoAttachAnnotationsRequestFromJSON(
|
||||
json: any,
|
||||
): DtoAttachAnnotationsRequest {
|
||||
return DtoAttachAnnotationsRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function DtoAttachAnnotationsRequestFromJSONTyped(
|
||||
json: any,
|
||||
ignoreDiscriminator: boolean,
|
||||
): DtoAttachAnnotationsRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
annotation_ids:
|
||||
json["annotation_ids"] == null ? undefined : json["annotation_ids"],
|
||||
};
|
||||
}
|
||||
|
||||
export function DtoAttachAnnotationsRequestToJSON(
|
||||
json: any,
|
||||
): DtoAttachAnnotationsRequest {
|
||||
return DtoAttachAnnotationsRequestToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function DtoAttachAnnotationsRequestToJSONTyped(
|
||||
value?: DtoAttachAnnotationsRequest | null,
|
||||
ignoreDiscriminator: boolean = false,
|
||||
): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
annotation_ids: value["annotation_ids"],
|
||||
};
|
||||
}
|
||||
73
sdk/ts/src/models/DtoAttachLabelsRequest.ts
Normal file
73
sdk/ts/src/models/DtoAttachLabelsRequest.ts
Normal file
@@ -0,0 +1,73 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* AutoGlue API
|
||||
* API for managing K3s clusters across cloud providers
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface DtoAttachLabelsRequest
|
||||
*/
|
||||
export interface DtoAttachLabelsRequest {
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof DtoAttachLabelsRequest
|
||||
*/
|
||||
label_ids?: Array<string>;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the DtoAttachLabelsRequest interface.
|
||||
*/
|
||||
export function instanceOfDtoAttachLabelsRequest(
|
||||
value: object,
|
||||
): value is DtoAttachLabelsRequest {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function DtoAttachLabelsRequestFromJSON(
|
||||
json: any,
|
||||
): DtoAttachLabelsRequest {
|
||||
return DtoAttachLabelsRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function DtoAttachLabelsRequestFromJSONTyped(
|
||||
json: any,
|
||||
ignoreDiscriminator: boolean,
|
||||
): DtoAttachLabelsRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
label_ids: json["label_ids"] == null ? undefined : json["label_ids"],
|
||||
};
|
||||
}
|
||||
|
||||
export function DtoAttachLabelsRequestToJSON(
|
||||
json: any,
|
||||
): DtoAttachLabelsRequest {
|
||||
return DtoAttachLabelsRequestToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function DtoAttachLabelsRequestToJSONTyped(
|
||||
value?: DtoAttachLabelsRequest | null,
|
||||
ignoreDiscriminator: boolean = false,
|
||||
): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
label_ids: value["label_ids"],
|
||||
};
|
||||
}
|
||||
73
sdk/ts/src/models/DtoAttachServersRequest.ts
Normal file
73
sdk/ts/src/models/DtoAttachServersRequest.ts
Normal file
@@ -0,0 +1,73 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* AutoGlue API
|
||||
* API for managing K3s clusters across cloud providers
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface DtoAttachServersRequest
|
||||
*/
|
||||
export interface DtoAttachServersRequest {
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof DtoAttachServersRequest
|
||||
*/
|
||||
server_ids?: Array<string>;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the DtoAttachServersRequest interface.
|
||||
*/
|
||||
export function instanceOfDtoAttachServersRequest(
|
||||
value: object,
|
||||
): value is DtoAttachServersRequest {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function DtoAttachServersRequestFromJSON(
|
||||
json: any,
|
||||
): DtoAttachServersRequest {
|
||||
return DtoAttachServersRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function DtoAttachServersRequestFromJSONTyped(
|
||||
json: any,
|
||||
ignoreDiscriminator: boolean,
|
||||
): DtoAttachServersRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
server_ids: json["server_ids"] == null ? undefined : json["server_ids"],
|
||||
};
|
||||
}
|
||||
|
||||
export function DtoAttachServersRequestToJSON(
|
||||
json: any,
|
||||
): DtoAttachServersRequest {
|
||||
return DtoAttachServersRequestToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function DtoAttachServersRequestToJSONTyped(
|
||||
value?: DtoAttachServersRequest | null,
|
||||
ignoreDiscriminator: boolean = false,
|
||||
): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
server_ids: value["server_ids"],
|
||||
};
|
||||
}
|
||||
73
sdk/ts/src/models/DtoAttachTaintsRequest.ts
Normal file
73
sdk/ts/src/models/DtoAttachTaintsRequest.ts
Normal file
@@ -0,0 +1,73 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* AutoGlue API
|
||||
* API for managing K3s clusters across cloud providers
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface DtoAttachTaintsRequest
|
||||
*/
|
||||
export interface DtoAttachTaintsRequest {
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof DtoAttachTaintsRequest
|
||||
*/
|
||||
taint_ids?: Array<string>;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the DtoAttachTaintsRequest interface.
|
||||
*/
|
||||
export function instanceOfDtoAttachTaintsRequest(
|
||||
value: object,
|
||||
): value is DtoAttachTaintsRequest {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function DtoAttachTaintsRequestFromJSON(
|
||||
json: any,
|
||||
): DtoAttachTaintsRequest {
|
||||
return DtoAttachTaintsRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function DtoAttachTaintsRequestFromJSONTyped(
|
||||
json: any,
|
||||
ignoreDiscriminator: boolean,
|
||||
): DtoAttachTaintsRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
taint_ids: json["taint_ids"] == null ? undefined : json["taint_ids"],
|
||||
};
|
||||
}
|
||||
|
||||
export function DtoAttachTaintsRequestToJSON(
|
||||
json: any,
|
||||
): DtoAttachTaintsRequest {
|
||||
return DtoAttachTaintsRequestToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function DtoAttachTaintsRequestToJSONTyped(
|
||||
value?: DtoAttachTaintsRequest | null,
|
||||
ignoreDiscriminator: boolean = false,
|
||||
): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
taint_ids: value["taint_ids"],
|
||||
};
|
||||
}
|
||||
91
sdk/ts/src/models/DtoCreateNodePoolRequest.ts
Normal file
91
sdk/ts/src/models/DtoCreateNodePoolRequest.ts
Normal file
@@ -0,0 +1,91 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* AutoGlue API
|
||||
* API for managing K3s clusters across cloud providers
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface DtoCreateNodePoolRequest
|
||||
*/
|
||||
export interface DtoCreateNodePoolRequest {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof DtoCreateNodePoolRequest
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof DtoCreateNodePoolRequest
|
||||
*/
|
||||
role?: DtoCreateNodePoolRequestRoleEnum;
|
||||
}
|
||||
|
||||
/**
|
||||
* @export
|
||||
*/
|
||||
export const DtoCreateNodePoolRequestRoleEnum = {
|
||||
master: "master",
|
||||
worker: "worker",
|
||||
} as const;
|
||||
export type DtoCreateNodePoolRequestRoleEnum =
|
||||
(typeof DtoCreateNodePoolRequestRoleEnum)[keyof typeof DtoCreateNodePoolRequestRoleEnum];
|
||||
|
||||
/**
|
||||
* Check if a given object implements the DtoCreateNodePoolRequest interface.
|
||||
*/
|
||||
export function instanceOfDtoCreateNodePoolRequest(
|
||||
value: object,
|
||||
): value is DtoCreateNodePoolRequest {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function DtoCreateNodePoolRequestFromJSON(
|
||||
json: any,
|
||||
): DtoCreateNodePoolRequest {
|
||||
return DtoCreateNodePoolRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function DtoCreateNodePoolRequestFromJSONTyped(
|
||||
json: any,
|
||||
ignoreDiscriminator: boolean,
|
||||
): DtoCreateNodePoolRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
name: json["name"] == null ? undefined : json["name"],
|
||||
role: json["role"] == null ? undefined : json["role"],
|
||||
};
|
||||
}
|
||||
|
||||
export function DtoCreateNodePoolRequestToJSON(
|
||||
json: any,
|
||||
): DtoCreateNodePoolRequest {
|
||||
return DtoCreateNodePoolRequestToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function DtoCreateNodePoolRequestToJSONTyped(
|
||||
value?: DtoCreateNodePoolRequest | null,
|
||||
ignoreDiscriminator: boolean = false,
|
||||
): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
name: value["name"],
|
||||
role: value["role"],
|
||||
};
|
||||
}
|
||||
@@ -12,7 +12,6 @@
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { mapValues } from "../runtime";
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
@@ -42,7 +41,7 @@ export interface DtoCreateServerRequest {
|
||||
* @type {string}
|
||||
* @memberof DtoCreateServerRequest
|
||||
*/
|
||||
role?: string;
|
||||
role?: DtoCreateServerRequestRoleEnum;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
@@ -60,9 +59,32 @@ export interface DtoCreateServerRequest {
|
||||
* @type {string}
|
||||
* @memberof DtoCreateServerRequest
|
||||
*/
|
||||
status?: string;
|
||||
status?: DtoCreateServerRequestStatusEnum;
|
||||
}
|
||||
|
||||
/**
|
||||
* @export
|
||||
*/
|
||||
export const DtoCreateServerRequestRoleEnum = {
|
||||
master: "master",
|
||||
worker: "worker",
|
||||
bastion: "bastion",
|
||||
} as const;
|
||||
export type DtoCreateServerRequestRoleEnum =
|
||||
(typeof DtoCreateServerRequestRoleEnum)[keyof typeof DtoCreateServerRequestRoleEnum];
|
||||
|
||||
/**
|
||||
* @export
|
||||
*/
|
||||
export const DtoCreateServerRequestStatusEnum = {
|
||||
pending: "pending",
|
||||
provisioning: "provisioning",
|
||||
ready: "ready",
|
||||
failed: "failed",
|
||||
} as const;
|
||||
export type DtoCreateServerRequestStatusEnum =
|
||||
(typeof DtoCreateServerRequestStatusEnum)[keyof typeof DtoCreateServerRequestStatusEnum];
|
||||
|
||||
/**
|
||||
* Check if a given object implements the DtoCreateServerRequest interface.
|
||||
*/
|
||||
|
||||
187
sdk/ts/src/models/DtoNodePoolResponse.ts
Normal file
187
sdk/ts/src/models/DtoNodePoolResponse.ts
Normal file
@@ -0,0 +1,187 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* AutoGlue API
|
||||
* API for managing K3s clusters across cloud providers
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import type {DtoTaintResponse} from "./DtoTaintResponse";
|
||||
import {DtoTaintResponseFromJSON, DtoTaintResponseToJSON,} from "./DtoTaintResponse";
|
||||
import type {DtoLabelResponse} from "./DtoLabelResponse";
|
||||
import {DtoLabelResponseFromJSON, DtoLabelResponseToJSON,} from "./DtoLabelResponse";
|
||||
import type {DtoServerResponse} from "./DtoServerResponse";
|
||||
import {DtoServerResponseFromJSON, DtoServerResponseToJSON,} from "./DtoServerResponse";
|
||||
import type {DtoAnnotationResponse} from "./DtoAnnotationResponse";
|
||||
import {DtoAnnotationResponseFromJSON, DtoAnnotationResponseToJSON,} from "./DtoAnnotationResponse";
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface DtoNodePoolResponse
|
||||
*/
|
||||
export interface DtoNodePoolResponse {
|
||||
/**
|
||||
*
|
||||
* @type {Array<DtoAnnotationResponse>}
|
||||
* @memberof DtoNodePoolResponse
|
||||
*/
|
||||
annotations?: Array<DtoAnnotationResponse>;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof DtoNodePoolResponse
|
||||
*/
|
||||
created_at?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof DtoNodePoolResponse
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Array<DtoLabelResponse>}
|
||||
* @memberof DtoNodePoolResponse
|
||||
*/
|
||||
labels?: Array<DtoLabelResponse>;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof DtoNodePoolResponse
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof DtoNodePoolResponse
|
||||
*/
|
||||
organization_id?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof DtoNodePoolResponse
|
||||
*/
|
||||
role?: DtoNodePoolResponseRoleEnum;
|
||||
/**
|
||||
*
|
||||
* @type {Array<DtoServerResponse>}
|
||||
* @memberof DtoNodePoolResponse
|
||||
*/
|
||||
servers?: Array<DtoServerResponse>;
|
||||
/**
|
||||
*
|
||||
* @type {Array<DtoTaintResponse>}
|
||||
* @memberof DtoNodePoolResponse
|
||||
*/
|
||||
taints?: Array<DtoTaintResponse>;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof DtoNodePoolResponse
|
||||
*/
|
||||
updated_at?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* @export
|
||||
*/
|
||||
export const DtoNodePoolResponseRoleEnum = {
|
||||
master: "master",
|
||||
worker: "worker",
|
||||
} as const;
|
||||
export type DtoNodePoolResponseRoleEnum =
|
||||
(typeof DtoNodePoolResponseRoleEnum)[keyof typeof DtoNodePoolResponseRoleEnum];
|
||||
|
||||
/**
|
||||
* Check if a given object implements the DtoNodePoolResponse interface.
|
||||
*/
|
||||
export function instanceOfDtoNodePoolResponse(
|
||||
value: object,
|
||||
): value is DtoNodePoolResponse {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function DtoNodePoolResponseFromJSON(json: any): DtoNodePoolResponse {
|
||||
return DtoNodePoolResponseFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function DtoNodePoolResponseFromJSONTyped(
|
||||
json: any,
|
||||
ignoreDiscriminator: boolean,
|
||||
): DtoNodePoolResponse {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
annotations:
|
||||
json["annotations"] == null
|
||||
? undefined
|
||||
: (json["annotations"] as Array<any>).map(
|
||||
DtoAnnotationResponseFromJSON,
|
||||
),
|
||||
created_at: json["created_at"] == null ? undefined : json["created_at"],
|
||||
id: json["id"] == null ? undefined : json["id"],
|
||||
labels:
|
||||
json["labels"] == null
|
||||
? undefined
|
||||
: (json["labels"] as Array<any>).map(DtoLabelResponseFromJSON),
|
||||
name: json["name"] == null ? undefined : json["name"],
|
||||
organization_id:
|
||||
json["organization_id"] == null ? undefined : json["organization_id"],
|
||||
role: json["role"] == null ? undefined : json["role"],
|
||||
servers:
|
||||
json["servers"] == null
|
||||
? undefined
|
||||
: (json["servers"] as Array<any>).map(DtoServerResponseFromJSON),
|
||||
taints:
|
||||
json["taints"] == null
|
||||
? undefined
|
||||
: (json["taints"] as Array<any>).map(DtoTaintResponseFromJSON),
|
||||
updated_at: json["updated_at"] == null ? undefined : json["updated_at"],
|
||||
};
|
||||
}
|
||||
|
||||
export function DtoNodePoolResponseToJSON(json: any): DtoNodePoolResponse {
|
||||
return DtoNodePoolResponseToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function DtoNodePoolResponseToJSONTyped(
|
||||
value?: DtoNodePoolResponse | null,
|
||||
ignoreDiscriminator: boolean = false,
|
||||
): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
annotations:
|
||||
value["annotations"] == null
|
||||
? undefined
|
||||
: (value["annotations"] as Array<any>).map(DtoAnnotationResponseToJSON),
|
||||
created_at: value["created_at"],
|
||||
id: value["id"],
|
||||
labels:
|
||||
value["labels"] == null
|
||||
? undefined
|
||||
: (value["labels"] as Array<any>).map(DtoLabelResponseToJSON),
|
||||
name: value["name"],
|
||||
organization_id: value["organization_id"],
|
||||
role: value["role"],
|
||||
servers:
|
||||
value["servers"] == null
|
||||
? undefined
|
||||
: (value["servers"] as Array<any>).map(DtoServerResponseToJSON),
|
||||
taints:
|
||||
value["taints"] == null
|
||||
? undefined
|
||||
: (value["taints"] as Array<any>).map(DtoTaintResponseToJSON),
|
||||
updated_at: value["updated_at"],
|
||||
};
|
||||
}
|
||||
@@ -12,7 +12,6 @@
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { mapValues } from "../runtime";
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
@@ -60,7 +59,7 @@ export interface DtoServerResponse {
|
||||
* @type {string}
|
||||
* @memberof DtoServerResponse
|
||||
*/
|
||||
role?: string;
|
||||
role?: DtoServerResponseRoleEnum;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
@@ -78,7 +77,7 @@ export interface DtoServerResponse {
|
||||
* @type {string}
|
||||
* @memberof DtoServerResponse
|
||||
*/
|
||||
status?: string;
|
||||
status?: DtoServerResponseStatusEnum;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
@@ -87,6 +86,29 @@ export interface DtoServerResponse {
|
||||
updated_at?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* @export
|
||||
*/
|
||||
export const DtoServerResponseRoleEnum = {
|
||||
master: "master",
|
||||
worker: "worker",
|
||||
bastion: "bastion",
|
||||
} as const;
|
||||
export type DtoServerResponseRoleEnum =
|
||||
(typeof DtoServerResponseRoleEnum)[keyof typeof DtoServerResponseRoleEnum];
|
||||
|
||||
/**
|
||||
* @export
|
||||
*/
|
||||
export const DtoServerResponseStatusEnum = {
|
||||
pending: "pending",
|
||||
provisioning: "provisioning",
|
||||
ready: "ready",
|
||||
failed: "failed",
|
||||
} as const;
|
||||
export type DtoServerResponseStatusEnum =
|
||||
(typeof DtoServerResponseStatusEnum)[keyof typeof DtoServerResponseStatusEnum];
|
||||
|
||||
/**
|
||||
* Check if a given object implements the DtoServerResponse interface.
|
||||
*/
|
||||
|
||||
91
sdk/ts/src/models/DtoUpdateNodePoolRequest.ts
Normal file
91
sdk/ts/src/models/DtoUpdateNodePoolRequest.ts
Normal file
@@ -0,0 +1,91 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* AutoGlue API
|
||||
* API for managing K3s clusters across cloud providers
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface DtoUpdateNodePoolRequest
|
||||
*/
|
||||
export interface DtoUpdateNodePoolRequest {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof DtoUpdateNodePoolRequest
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof DtoUpdateNodePoolRequest
|
||||
*/
|
||||
role?: DtoUpdateNodePoolRequestRoleEnum;
|
||||
}
|
||||
|
||||
/**
|
||||
* @export
|
||||
*/
|
||||
export const DtoUpdateNodePoolRequestRoleEnum = {
|
||||
master: "master",
|
||||
worker: "worker",
|
||||
} as const;
|
||||
export type DtoUpdateNodePoolRequestRoleEnum =
|
||||
(typeof DtoUpdateNodePoolRequestRoleEnum)[keyof typeof DtoUpdateNodePoolRequestRoleEnum];
|
||||
|
||||
/**
|
||||
* Check if a given object implements the DtoUpdateNodePoolRequest interface.
|
||||
*/
|
||||
export function instanceOfDtoUpdateNodePoolRequest(
|
||||
value: object,
|
||||
): value is DtoUpdateNodePoolRequest {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function DtoUpdateNodePoolRequestFromJSON(
|
||||
json: any,
|
||||
): DtoUpdateNodePoolRequest {
|
||||
return DtoUpdateNodePoolRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function DtoUpdateNodePoolRequestFromJSONTyped(
|
||||
json: any,
|
||||
ignoreDiscriminator: boolean,
|
||||
): DtoUpdateNodePoolRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
name: json["name"] == null ? undefined : json["name"],
|
||||
role: json["role"] == null ? undefined : json["role"],
|
||||
};
|
||||
}
|
||||
|
||||
export function DtoUpdateNodePoolRequestToJSON(
|
||||
json: any,
|
||||
): DtoUpdateNodePoolRequest {
|
||||
return DtoUpdateNodePoolRequestToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function DtoUpdateNodePoolRequestToJSONTyped(
|
||||
value?: DtoUpdateNodePoolRequest | null,
|
||||
ignoreDiscriminator: boolean = false,
|
||||
): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
name: value["name"],
|
||||
role: value["role"],
|
||||
};
|
||||
}
|
||||
@@ -12,7 +12,6 @@
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { mapValues } from "../runtime";
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
@@ -42,7 +41,7 @@ export interface DtoUpdateServerRequest {
|
||||
* @type {string}
|
||||
* @memberof DtoUpdateServerRequest
|
||||
*/
|
||||
role?: string;
|
||||
role?: DtoUpdateServerRequestRoleEnum;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
@@ -60,9 +59,32 @@ export interface DtoUpdateServerRequest {
|
||||
* @type {string}
|
||||
* @memberof DtoUpdateServerRequest
|
||||
*/
|
||||
status?: string;
|
||||
status?: DtoUpdateServerRequestStatusEnum;
|
||||
}
|
||||
|
||||
/**
|
||||
* @export
|
||||
*/
|
||||
export const DtoUpdateServerRequestRoleEnum = {
|
||||
master: "master",
|
||||
worker: "worker",
|
||||
bastion: "bastion",
|
||||
} as const;
|
||||
export type DtoUpdateServerRequestRoleEnum =
|
||||
(typeof DtoUpdateServerRequestRoleEnum)[keyof typeof DtoUpdateServerRequestRoleEnum];
|
||||
|
||||
/**
|
||||
* @export
|
||||
*/
|
||||
export const DtoUpdateServerRequestStatusEnum = {
|
||||
pending: "pending",
|
||||
provisioning: "provisioning",
|
||||
ready: "ready",
|
||||
failed: "failed",
|
||||
} as const;
|
||||
export type DtoUpdateServerRequestStatusEnum =
|
||||
(typeof DtoUpdateServerRequestStatusEnum)[keyof typeof DtoUpdateServerRequestStatusEnum];
|
||||
|
||||
/**
|
||||
* Check if a given object implements the DtoUpdateServerRequest interface.
|
||||
*/
|
||||
|
||||
@@ -1,9 +1,14 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export * from "./DtoAnnotationResponse";
|
||||
export * from "./DtoAttachAnnotationsRequest";
|
||||
export * from "./DtoAttachLabelsRequest";
|
||||
export * from "./DtoAttachServersRequest";
|
||||
export * from "./DtoAttachTaintsRequest";
|
||||
export * from "./DtoAuthStartResponse";
|
||||
export * from "./DtoCreateAnnotationRequest";
|
||||
export * from "./DtoCreateLabelRequest";
|
||||
export * from "./DtoCreateNodePoolRequest";
|
||||
export * from "./DtoCreateSSHRequest";
|
||||
export * from "./DtoCreateServerRequest";
|
||||
export * from "./DtoCreateTaintRequest";
|
||||
@@ -13,6 +18,7 @@ export * from "./DtoJob";
|
||||
export * from "./DtoJobStatus";
|
||||
export * from "./DtoLabelResponse";
|
||||
export * from "./DtoLogoutRequest";
|
||||
export * from "./DtoNodePoolResponse";
|
||||
export * from "./DtoPageJob";
|
||||
export * from "./DtoQueueInfo";
|
||||
export * from "./DtoRefreshRequest";
|
||||
@@ -23,6 +29,7 @@ export * from "./DtoTaintResponse";
|
||||
export * from "./DtoTokenPair";
|
||||
export * from "./DtoUpdateAnnotationRequest";
|
||||
export * from "./DtoUpdateLabelRequest";
|
||||
export * from "./DtoUpdateNodePoolRequest";
|
||||
export * from "./DtoUpdateServerRequest";
|
||||
export * from "./DtoUpdateTaintRequest";
|
||||
export * from "./HandlersCreateUserKeyRequest";
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
export const BASE_PATH = "http://localhost:8080/api/v1".replace(/\/+$/, "");
|
||||
export const BASE_PATH = "/api/v1".replace(/\/+$/, "");
|
||||
|
||||
export interface ConfigurationParameters {
|
||||
basePath?: string; // override base path
|
||||
|
||||
Reference in New Issue
Block a user