mirror of
https://github.com/GlueOps/autoglue.git
synced 2026-02-14 05:10: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)
|
||||
|
||||
})
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user