mirror of
https://github.com/GlueOps/autoglue.git
synced 2026-02-13 04:40:05 +01:00
fix: exclude terraform
Signed-off-by: allanice001 <allanice001@gmail.com>
This commit is contained in:
24
sdk/go/.gitignore
vendored
24
sdk/go/.gitignore
vendored
@@ -1,24 +0,0 @@
|
||||
# Compiled Object files, Static and Dynamic libs (Shared Objects)
|
||||
*.o
|
||||
*.a
|
||||
*.so
|
||||
|
||||
# Folders
|
||||
_obj
|
||||
_test
|
||||
|
||||
# Architecture specific extensions/prefixes
|
||||
*.[568vq]
|
||||
[568vq].out
|
||||
|
||||
*.cgo1.go
|
||||
*.cgo2.c
|
||||
_cgo_defun.c
|
||||
_cgo_gotypes.go
|
||||
_cgo_export.*
|
||||
|
||||
_testmain.go
|
||||
|
||||
*.exe
|
||||
*.test
|
||||
*.prof
|
||||
@@ -1,23 +0,0 @@
|
||||
# OpenAPI Generator Ignore
|
||||
# Generated by openapi-generator https://github.com/openapitools/openapi-generator
|
||||
|
||||
# Use this file to prevent files from being overwritten by the generator.
|
||||
# The patterns follow closely to .gitignore or .dockerignore.
|
||||
|
||||
# As an example, the C# client generator defines ApiClient.cs.
|
||||
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
|
||||
#ApiClient.cs
|
||||
|
||||
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
|
||||
#foo/*/qux
|
||||
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
|
||||
|
||||
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
|
||||
#foo/**/qux
|
||||
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
|
||||
|
||||
# You can also negate patterns with an exclamation (!).
|
||||
# For example, you can ignore all files in a docs folder with the file extension .md:
|
||||
#docs/*.md
|
||||
# Then explicitly reverse the ignore rule for a single file:
|
||||
#!docs/README.md
|
||||
@@ -1,144 +0,0 @@
|
||||
.gitignore
|
||||
.openapi-generator-ignore
|
||||
.travis.yml
|
||||
README.md
|
||||
api/openapi.yaml
|
||||
api_annotations.go
|
||||
api_archer_admin.go
|
||||
api_auth.go
|
||||
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
|
||||
api_taints.go
|
||||
client.go
|
||||
configuration.go
|
||||
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
|
||||
docs/DtoJWK.md
|
||||
docs/DtoJWKS.md
|
||||
docs/DtoJob.md
|
||||
docs/DtoJobStatus.md
|
||||
docs/DtoLabelResponse.md
|
||||
docs/DtoLogoutRequest.md
|
||||
docs/DtoNodePoolResponse.md
|
||||
docs/DtoPageJob.md
|
||||
docs/DtoQueueInfo.md
|
||||
docs/DtoRefreshRequest.md
|
||||
docs/DtoServerResponse.md
|
||||
docs/DtoSshResponse.md
|
||||
docs/DtoSshRevealResponse.md
|
||||
docs/DtoTaintResponse.md
|
||||
docs/DtoTokenPair.md
|
||||
docs/DtoUpdateAnnotationRequest.md
|
||||
docs/DtoUpdateLabelRequest.md
|
||||
docs/DtoUpdateNodePoolRequest.md
|
||||
docs/DtoUpdateServerRequest.md
|
||||
docs/DtoUpdateTaintRequest.md
|
||||
docs/HandlersCreateUserKeyRequest.md
|
||||
docs/HandlersHealthStatus.md
|
||||
docs/HandlersMeResponse.md
|
||||
docs/HandlersMemberOut.md
|
||||
docs/HandlersMemberUpsertReq.md
|
||||
docs/HandlersOrgCreateReq.md
|
||||
docs/HandlersOrgKeyCreateReq.md
|
||||
docs/HandlersOrgKeyCreateResp.md
|
||||
docs/HandlersOrgUpdateReq.md
|
||||
docs/HandlersUpdateMeRequest.md
|
||||
docs/HandlersUserAPIKeyOut.md
|
||||
docs/HealthAPI.md
|
||||
docs/LabelsAPI.md
|
||||
docs/MeAPI.md
|
||||
docs/MeAPIKeysAPI.md
|
||||
docs/ModelsAPIKey.md
|
||||
docs/ModelsOrganization.md
|
||||
docs/ModelsUser.md
|
||||
docs/ModelsUserEmail.md
|
||||
docs/NodePoolsAPI.md
|
||||
docs/OrgsAPI.md
|
||||
docs/ServersAPI.md
|
||||
docs/SshAPI.md
|
||||
docs/TaintsAPI.md
|
||||
docs/UtilsErrorResponse.md
|
||||
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
|
||||
model_dto_job.go
|
||||
model_dto_job_status.go
|
||||
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
|
||||
model_dto_server_response.go
|
||||
model_dto_ssh_response.go
|
||||
model_dto_ssh_reveal_response.go
|
||||
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
|
||||
model_handlers_health_status.go
|
||||
model_handlers_me_response.go
|
||||
model_handlers_member_out.go
|
||||
model_handlers_member_upsert_req.go
|
||||
model_handlers_org_create_req.go
|
||||
model_handlers_org_key_create_req.go
|
||||
model_handlers_org_key_create_resp.go
|
||||
model_handlers_org_update_req.go
|
||||
model_handlers_update_me_request.go
|
||||
model_handlers_user_api_key_out.go
|
||||
model_models_api_key.go
|
||||
model_models_organization.go
|
||||
model_models_user.go
|
||||
model_models_user_email.go
|
||||
model_utils_error_response.go
|
||||
response.go
|
||||
test/api_annotations_test.go
|
||||
test/api_archer_admin_test.go
|
||||
test/api_auth_test.go
|
||||
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
|
||||
test/api_taints_test.go
|
||||
utils.go
|
||||
@@ -1 +0,0 @@
|
||||
7.17.0
|
||||
@@ -1,8 +0,0 @@
|
||||
language: go
|
||||
|
||||
install:
|
||||
- go get -d -v .
|
||||
|
||||
script:
|
||||
- go build -v ./
|
||||
|
||||
312
sdk/go/README.md
312
sdk/go/README.md
@@ -1,312 +0,0 @@
|
||||
# Go API client for autoglue
|
||||
|
||||
API for managing K3s clusters across cloud providers
|
||||
|
||||
## Overview
|
||||
This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client.
|
||||
|
||||
- API version: 1.0
|
||||
- Package version: 1.0.0
|
||||
- Generator version: 7.17.0
|
||||
- Build package: org.openapitools.codegen.languages.GoClientCodegen
|
||||
|
||||
## Installation
|
||||
|
||||
Install the following dependencies:
|
||||
|
||||
```sh
|
||||
go get github.com/stretchr/testify/assert
|
||||
go get golang.org/x/net/context
|
||||
```
|
||||
|
||||
Put the package under your project folder and add the following in import:
|
||||
|
||||
```go
|
||||
import autoglue "github.com/glueops/autoglue-sdk-go"
|
||||
```
|
||||
|
||||
To use a proxy, set the environment variable `HTTP_PROXY`:
|
||||
|
||||
```go
|
||||
os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port")
|
||||
```
|
||||
|
||||
## Configuration of Server URL
|
||||
|
||||
Default configuration comes with `Servers` field that contains server objects as defined in the OpenAPI specification.
|
||||
|
||||
### Select Server Configuration
|
||||
|
||||
For using other server than the one defined on index 0 set context value `autoglue.ContextServerIndex` of type `int`.
|
||||
|
||||
```go
|
||||
ctx := context.WithValue(context.Background(), autoglue.ContextServerIndex, 1)
|
||||
```
|
||||
|
||||
### Templated Server URL
|
||||
|
||||
Templated server URL is formatted using default variables from configuration or from context value `autoglue.ContextServerVariables` of type `map[string]string`.
|
||||
|
||||
```go
|
||||
ctx := context.WithValue(context.Background(), autoglue.ContextServerVariables, map[string]string{
|
||||
"basePath": "v2",
|
||||
})
|
||||
```
|
||||
|
||||
Note, enum values are always validated and all unused variables are silently ignored.
|
||||
|
||||
### URLs Configuration per Operation
|
||||
|
||||
Each operation can use different server URL defined using `OperationServers` map in the `Configuration`.
|
||||
An operation is uniquely identified by `"{classname}Service.{nickname}"` string.
|
||||
Similar rules for overriding default operation server index and variables applies by using `autoglue.ContextOperationServerIndices` and `autoglue.ContextOperationServerVariables` context maps.
|
||||
|
||||
```go
|
||||
ctx := context.WithValue(context.Background(), autoglue.ContextOperationServerIndices, map[string]int{
|
||||
"{classname}Service.{nickname}": 2,
|
||||
})
|
||||
ctx = context.WithValue(context.Background(), autoglue.ContextOperationServerVariables, map[string]map[string]string{
|
||||
"{classname}Service.{nickname}": {
|
||||
"port": "8443",
|
||||
},
|
||||
})
|
||||
```
|
||||
|
||||
## Documentation for API Endpoints
|
||||
|
||||
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
|
||||
*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)
|
||||
|
||||
|
||||
## 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)
|
||||
- [DtoJWK](docs/DtoJWK.md)
|
||||
- [DtoJWKS](docs/DtoJWKS.md)
|
||||
- [DtoJob](docs/DtoJob.md)
|
||||
- [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)
|
||||
- [DtoServerResponse](docs/DtoServerResponse.md)
|
||||
- [DtoSshResponse](docs/DtoSshResponse.md)
|
||||
- [DtoSshRevealResponse](docs/DtoSshRevealResponse.md)
|
||||
- [DtoTaintResponse](docs/DtoTaintResponse.md)
|
||||
- [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)
|
||||
- [HandlersHealthStatus](docs/HandlersHealthStatus.md)
|
||||
- [HandlersMeResponse](docs/HandlersMeResponse.md)
|
||||
- [HandlersMemberOut](docs/HandlersMemberOut.md)
|
||||
- [HandlersMemberUpsertReq](docs/HandlersMemberUpsertReq.md)
|
||||
- [HandlersOrgCreateReq](docs/HandlersOrgCreateReq.md)
|
||||
- [HandlersOrgKeyCreateReq](docs/HandlersOrgKeyCreateReq.md)
|
||||
- [HandlersOrgKeyCreateResp](docs/HandlersOrgKeyCreateResp.md)
|
||||
- [HandlersOrgUpdateReq](docs/HandlersOrgUpdateReq.md)
|
||||
- [HandlersUpdateMeRequest](docs/HandlersUpdateMeRequest.md)
|
||||
- [HandlersUserAPIKeyOut](docs/HandlersUserAPIKeyOut.md)
|
||||
- [ModelsAPIKey](docs/ModelsAPIKey.md)
|
||||
- [ModelsOrganization](docs/ModelsOrganization.md)
|
||||
- [ModelsUser](docs/ModelsUser.md)
|
||||
- [ModelsUserEmail](docs/ModelsUserEmail.md)
|
||||
- [UtilsErrorResponse](docs/UtilsErrorResponse.md)
|
||||
|
||||
|
||||
## Documentation For Authorization
|
||||
|
||||
|
||||
Authentication schemes defined for the API:
|
||||
### ApiKeyAuth
|
||||
|
||||
- **Type**: API key
|
||||
- **API key parameter name**: X-API-KEY
|
||||
- **Location**: HTTP header
|
||||
|
||||
Note, each API key must be added to a map of `map[string]APIKey` where the key is: ApiKeyAuth and passed in as the auth context for each request.
|
||||
|
||||
Example
|
||||
|
||||
```go
|
||||
auth := context.WithValue(
|
||||
context.Background(),
|
||||
autoglue.ContextAPIKeys,
|
||||
map[string]autoglue.APIKey{
|
||||
"ApiKeyAuth": {Key: "API_KEY_STRING"},
|
||||
},
|
||||
)
|
||||
r, err := client.Service.Operation(auth, args)
|
||||
```
|
||||
|
||||
### BearerAuth
|
||||
|
||||
- **Type**: API key
|
||||
- **API key parameter name**: Authorization
|
||||
- **Location**: HTTP header
|
||||
|
||||
Note, each API key must be added to a map of `map[string]APIKey` where the key is: BearerAuth and passed in as the auth context for each request.
|
||||
|
||||
Example
|
||||
|
||||
```go
|
||||
auth := context.WithValue(
|
||||
context.Background(),
|
||||
autoglue.ContextAPIKeys,
|
||||
map[string]autoglue.APIKey{
|
||||
"BearerAuth": {Key: "API_KEY_STRING"},
|
||||
},
|
||||
)
|
||||
r, err := client.Service.Operation(auth, args)
|
||||
```
|
||||
|
||||
### OrgKeyAuth
|
||||
|
||||
- **Type**: API key
|
||||
- **API key parameter name**: X-ORG-KEY
|
||||
- **Location**: HTTP header
|
||||
|
||||
Note, each API key must be added to a map of `map[string]APIKey` where the key is: OrgKeyAuth and passed in as the auth context for each request.
|
||||
|
||||
Example
|
||||
|
||||
```go
|
||||
auth := context.WithValue(
|
||||
context.Background(),
|
||||
autoglue.ContextAPIKeys,
|
||||
map[string]autoglue.APIKey{
|
||||
"OrgKeyAuth": {Key: "API_KEY_STRING"},
|
||||
},
|
||||
)
|
||||
r, err := client.Service.Operation(auth, args)
|
||||
```
|
||||
|
||||
### OrgSecretAuth
|
||||
|
||||
- **Type**: API key
|
||||
- **API key parameter name**: X-ORG-SECRET
|
||||
- **Location**: HTTP header
|
||||
|
||||
Note, each API key must be added to a map of `map[string]APIKey` where the key is: OrgSecretAuth and passed in as the auth context for each request.
|
||||
|
||||
Example
|
||||
|
||||
```go
|
||||
auth := context.WithValue(
|
||||
context.Background(),
|
||||
autoglue.ContextAPIKeys,
|
||||
map[string]autoglue.APIKey{
|
||||
"OrgSecretAuth": {Key: "API_KEY_STRING"},
|
||||
},
|
||||
)
|
||||
r, err := client.Service.Operation(auth, args)
|
||||
```
|
||||
|
||||
|
||||
## Documentation for Utility Methods
|
||||
|
||||
Due to the fact that model structure members are all pointers, this package contains
|
||||
a number of utility functions to easily obtain pointers to values of basic types.
|
||||
Each of these functions takes a value of the given basic type and returns a pointer to it:
|
||||
|
||||
* `PtrBool`
|
||||
* `PtrInt`
|
||||
* `PtrInt32`
|
||||
* `PtrInt64`
|
||||
* `PtrFloat`
|
||||
* `PtrFloat32`
|
||||
* `PtrFloat64`
|
||||
* `PtrString`
|
||||
* `PtrTime`
|
||||
|
||||
## Author
|
||||
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -1,864 +0,0 @@
|
||||
/*
|
||||
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 (
|
||||
"bytes"
|
||||
"context"
|
||||
"io"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"strings"
|
||||
)
|
||||
|
||||
// ArcherAdminAPIService ArcherAdminAPI service
|
||||
type ArcherAdminAPIService service
|
||||
|
||||
type ApiAdminCancelArcherJobRequest struct {
|
||||
ctx context.Context
|
||||
ApiService *ArcherAdminAPIService
|
||||
id string
|
||||
}
|
||||
|
||||
func (r ApiAdminCancelArcherJobRequest) Execute() (*DtoJob, *http.Response, error) {
|
||||
return r.ApiService.AdminCancelArcherJobExecute(r)
|
||||
}
|
||||
|
||||
/*
|
||||
AdminCancelArcherJob Cancel an Archer job (admin)
|
||||
|
||||
Set job status to canceled if cancellable. For running jobs, this only affects future picks; wire to Archer if you need active kill.
|
||||
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@param id Job ID
|
||||
@return ApiAdminCancelArcherJobRequest
|
||||
*/
|
||||
func (a *ArcherAdminAPIService) AdminCancelArcherJob(ctx context.Context, id string) ApiAdminCancelArcherJobRequest {
|
||||
return ApiAdminCancelArcherJobRequest{
|
||||
ApiService: a,
|
||||
ctx: ctx,
|
||||
id: id,
|
||||
}
|
||||
}
|
||||
|
||||
// Execute executes the request
|
||||
//
|
||||
// @return DtoJob
|
||||
func (a *ArcherAdminAPIService) AdminCancelArcherJobExecute(r ApiAdminCancelArcherJobRequest) (*DtoJob, *http.Response, error) {
|
||||
var (
|
||||
localVarHTTPMethod = http.MethodPost
|
||||
localVarPostBody interface{}
|
||||
formFiles []formFile
|
||||
localVarReturnValue *DtoJob
|
||||
)
|
||||
|
||||
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ArcherAdminAPIService.AdminCancelArcherJob")
|
||||
if err != nil {
|
||||
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
|
||||
}
|
||||
|
||||
localVarPath := localBasePath + "/admin/archer/jobs/{id}/cancel"
|
||||
localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1)
|
||||
|
||||
localVarHeaderParams := make(map[string]string)
|
||||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
|
||||
// to determine the Content-Type header
|
||||
localVarHTTPContentTypes := []string{}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
|
||||
if localVarHTTPContentType != "" {
|
||||
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
|
||||
}
|
||||
|
||||
// to determine the Accept header
|
||||
localVarHTTPHeaderAccepts := []string{"application/json"}
|
||||
|
||||
// set Accept header
|
||||
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
|
||||
if localVarHTTPHeaderAccept != "" {
|
||||
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
|
||||
}
|
||||
if r.ctx != nil {
|
||||
// API Key Authentication
|
||||
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
|
||||
if apiKey, ok := auth["BearerAuth"]; ok {
|
||||
var key string
|
||||
if apiKey.Prefix != "" {
|
||||
key = apiKey.Prefix + " " + apiKey.Key
|
||||
} else {
|
||||
key = apiKey.Key
|
||||
}
|
||||
localVarHeaderParams["Authorization"] = key
|
||||
}
|
||||
}
|
||||
}
|
||||
req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
|
||||
if err != nil {
|
||||
return localVarReturnValue, nil, err
|
||||
}
|
||||
|
||||
localVarHTTPResponse, err := a.client.callAPI(req)
|
||||
if err != nil || localVarHTTPResponse == nil {
|
||||
return localVarReturnValue, localVarHTTPResponse, err
|
||||
}
|
||||
|
||||
localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
|
||||
localVarHTTPResponse.Body.Close()
|
||||
localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
|
||||
if err != nil {
|
||||
return localVarReturnValue, localVarHTTPResponse, err
|
||||
}
|
||||
|
||||
if localVarHTTPResponse.StatusCode >= 300 {
|
||||
newErr := &GenericOpenAPIError{
|
||||
body: localVarBody,
|
||||
error: localVarHTTPResponse.Status,
|
||||
}
|
||||
if localVarHTTPResponse.StatusCode == 400 {
|
||||
var v string
|
||||
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
|
||||
if err != nil {
|
||||
newErr.error = err.Error()
|
||||
return localVarReturnValue, localVarHTTPResponse, newErr
|
||||
}
|
||||
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
|
||||
newErr.model = v
|
||||
return localVarReturnValue, localVarHTTPResponse, newErr
|
||||
}
|
||||
if localVarHTTPResponse.StatusCode == 401 {
|
||||
var v string
|
||||
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
|
||||
if err != nil {
|
||||
newErr.error = err.Error()
|
||||
return localVarReturnValue, localVarHTTPResponse, newErr
|
||||
}
|
||||
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
|
||||
newErr.model = v
|
||||
return localVarReturnValue, localVarHTTPResponse, newErr
|
||||
}
|
||||
if localVarHTTPResponse.StatusCode == 403 {
|
||||
var v string
|
||||
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
|
||||
if err != nil {
|
||||
newErr.error = err.Error()
|
||||
return localVarReturnValue, localVarHTTPResponse, newErr
|
||||
}
|
||||
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
|
||||
newErr.model = v
|
||||
return localVarReturnValue, localVarHTTPResponse, newErr
|
||||
}
|
||||
if localVarHTTPResponse.StatusCode == 404 {
|
||||
var v string
|
||||
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
|
||||
if err != nil {
|
||||
newErr.error = err.Error()
|
||||
return localVarReturnValue, localVarHTTPResponse, newErr
|
||||
}
|
||||
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
|
||||
newErr.model = v
|
||||
}
|
||||
return localVarReturnValue, localVarHTTPResponse, newErr
|
||||
}
|
||||
|
||||
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
|
||||
if err != nil {
|
||||
newErr := &GenericOpenAPIError{
|
||||
body: localVarBody,
|
||||
error: err.Error(),
|
||||
}
|
||||
return localVarReturnValue, localVarHTTPResponse, newErr
|
||||
}
|
||||
|
||||
return localVarReturnValue, localVarHTTPResponse, nil
|
||||
}
|
||||
|
||||
type ApiAdminEnqueueArcherJobRequest struct {
|
||||
ctx context.Context
|
||||
ApiService *ArcherAdminAPIService
|
||||
body *map[string]interface{}
|
||||
}
|
||||
|
||||
// Job parameters
|
||||
func (r ApiAdminEnqueueArcherJobRequest) Body(body map[string]interface{}) ApiAdminEnqueueArcherJobRequest {
|
||||
r.body = &body
|
||||
return r
|
||||
}
|
||||
|
||||
func (r ApiAdminEnqueueArcherJobRequest) Execute() (*DtoJob, *http.Response, error) {
|
||||
return r.ApiService.AdminEnqueueArcherJobExecute(r)
|
||||
}
|
||||
|
||||
/*
|
||||
AdminEnqueueArcherJob Enqueue a new Archer job (admin)
|
||||
|
||||
Create a job immediately or schedule it for the future via `run_at`.
|
||||
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiAdminEnqueueArcherJobRequest
|
||||
*/
|
||||
func (a *ArcherAdminAPIService) AdminEnqueueArcherJob(ctx context.Context) ApiAdminEnqueueArcherJobRequest {
|
||||
return ApiAdminEnqueueArcherJobRequest{
|
||||
ApiService: a,
|
||||
ctx: ctx,
|
||||
}
|
||||
}
|
||||
|
||||
// Execute executes the request
|
||||
//
|
||||
// @return DtoJob
|
||||
func (a *ArcherAdminAPIService) AdminEnqueueArcherJobExecute(r ApiAdminEnqueueArcherJobRequest) (*DtoJob, *http.Response, error) {
|
||||
var (
|
||||
localVarHTTPMethod = http.MethodPost
|
||||
localVarPostBody interface{}
|
||||
formFiles []formFile
|
||||
localVarReturnValue *DtoJob
|
||||
)
|
||||
|
||||
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ArcherAdminAPIService.AdminEnqueueArcherJob")
|
||||
if err != nil {
|
||||
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
|
||||
}
|
||||
|
||||
localVarPath := localBasePath + "/admin/archer/jobs"
|
||||
|
||||
localVarHeaderParams := make(map[string]string)
|
||||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
if r.body == nil {
|
||||
return localVarReturnValue, nil, reportError("body is required and must be specified")
|
||||
}
|
||||
|
||||
// to determine the Content-Type header
|
||||
localVarHTTPContentTypes := []string{"application/json"}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
|
||||
if localVarHTTPContentType != "" {
|
||||
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
|
||||
}
|
||||
|
||||
// to determine the Accept header
|
||||
localVarHTTPHeaderAccepts := []string{"application/json"}
|
||||
|
||||
// set Accept header
|
||||
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
|
||||
if localVarHTTPHeaderAccept != "" {
|
||||
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
|
||||
}
|
||||
// body params
|
||||
localVarPostBody = r.body
|
||||
if r.ctx != nil {
|
||||
// API Key Authentication
|
||||
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
|
||||
if apiKey, ok := auth["BearerAuth"]; ok {
|
||||
var key string
|
||||
if apiKey.Prefix != "" {
|
||||
key = apiKey.Prefix + " " + apiKey.Key
|
||||
} else {
|
||||
key = apiKey.Key
|
||||
}
|
||||
localVarHeaderParams["Authorization"] = key
|
||||
}
|
||||
}
|
||||
}
|
||||
req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
|
||||
if err != nil {
|
||||
return localVarReturnValue, nil, err
|
||||
}
|
||||
|
||||
localVarHTTPResponse, err := a.client.callAPI(req)
|
||||
if err != nil || localVarHTTPResponse == nil {
|
||||
return localVarReturnValue, localVarHTTPResponse, err
|
||||
}
|
||||
|
||||
localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
|
||||
localVarHTTPResponse.Body.Close()
|
||||
localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
|
||||
if err != nil {
|
||||
return localVarReturnValue, localVarHTTPResponse, err
|
||||
}
|
||||
|
||||
if localVarHTTPResponse.StatusCode >= 300 {
|
||||
newErr := &GenericOpenAPIError{
|
||||
body: localVarBody,
|
||||
error: localVarHTTPResponse.Status,
|
||||
}
|
||||
if localVarHTTPResponse.StatusCode == 400 {
|
||||
var v string
|
||||
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
|
||||
if err != nil {
|
||||
newErr.error = err.Error()
|
||||
return localVarReturnValue, localVarHTTPResponse, newErr
|
||||
}
|
||||
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
|
||||
newErr.model = v
|
||||
return localVarReturnValue, localVarHTTPResponse, newErr
|
||||
}
|
||||
if localVarHTTPResponse.StatusCode == 401 {
|
||||
var v string
|
||||
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
|
||||
if err != nil {
|
||||
newErr.error = err.Error()
|
||||
return localVarReturnValue, localVarHTTPResponse, newErr
|
||||
}
|
||||
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
|
||||
newErr.model = v
|
||||
return localVarReturnValue, localVarHTTPResponse, newErr
|
||||
}
|
||||
if localVarHTTPResponse.StatusCode == 403 {
|
||||
var v string
|
||||
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
|
||||
if err != nil {
|
||||
newErr.error = err.Error()
|
||||
return localVarReturnValue, localVarHTTPResponse, newErr
|
||||
}
|
||||
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
|
||||
newErr.model = v
|
||||
return localVarReturnValue, localVarHTTPResponse, newErr
|
||||
}
|
||||
if localVarHTTPResponse.StatusCode == 500 {
|
||||
var v string
|
||||
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
|
||||
if err != nil {
|
||||
newErr.error = err.Error()
|
||||
return localVarReturnValue, localVarHTTPResponse, newErr
|
||||
}
|
||||
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
|
||||
newErr.model = v
|
||||
}
|
||||
return localVarReturnValue, localVarHTTPResponse, newErr
|
||||
}
|
||||
|
||||
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
|
||||
if err != nil {
|
||||
newErr := &GenericOpenAPIError{
|
||||
body: localVarBody,
|
||||
error: err.Error(),
|
||||
}
|
||||
return localVarReturnValue, localVarHTTPResponse, newErr
|
||||
}
|
||||
|
||||
return localVarReturnValue, localVarHTTPResponse, nil
|
||||
}
|
||||
|
||||
type ApiAdminListArcherJobsRequest struct {
|
||||
ctx context.Context
|
||||
ApiService *ArcherAdminAPIService
|
||||
status *string
|
||||
queue *string
|
||||
q *string
|
||||
page *int32
|
||||
pageSize *int32
|
||||
}
|
||||
|
||||
// Filter by status
|
||||
func (r ApiAdminListArcherJobsRequest) Status(status string) ApiAdminListArcherJobsRequest {
|
||||
r.status = &status
|
||||
return r
|
||||
}
|
||||
|
||||
// Filter by queue name / worker name
|
||||
func (r ApiAdminListArcherJobsRequest) Queue(queue string) ApiAdminListArcherJobsRequest {
|
||||
r.queue = &queue
|
||||
return r
|
||||
}
|
||||
|
||||
// Free-text search
|
||||
func (r ApiAdminListArcherJobsRequest) Q(q string) ApiAdminListArcherJobsRequest {
|
||||
r.q = &q
|
||||
return r
|
||||
}
|
||||
|
||||
// Page number
|
||||
func (r ApiAdminListArcherJobsRequest) Page(page int32) ApiAdminListArcherJobsRequest {
|
||||
r.page = &page
|
||||
return r
|
||||
}
|
||||
|
||||
// Items per page
|
||||
func (r ApiAdminListArcherJobsRequest) PageSize(pageSize int32) ApiAdminListArcherJobsRequest {
|
||||
r.pageSize = &pageSize
|
||||
return r
|
||||
}
|
||||
|
||||
func (r ApiAdminListArcherJobsRequest) Execute() (*DtoPageJob, *http.Response, error) {
|
||||
return r.ApiService.AdminListArcherJobsExecute(r)
|
||||
}
|
||||
|
||||
/*
|
||||
AdminListArcherJobs List Archer jobs (admin)
|
||||
|
||||
Paginated background jobs with optional filters. Search `q` may match id, type, error, payload (implementation-dependent).
|
||||
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiAdminListArcherJobsRequest
|
||||
*/
|
||||
func (a *ArcherAdminAPIService) AdminListArcherJobs(ctx context.Context) ApiAdminListArcherJobsRequest {
|
||||
return ApiAdminListArcherJobsRequest{
|
||||
ApiService: a,
|
||||
ctx: ctx,
|
||||
}
|
||||
}
|
||||
|
||||
// Execute executes the request
|
||||
//
|
||||
// @return DtoPageJob
|
||||
func (a *ArcherAdminAPIService) AdminListArcherJobsExecute(r ApiAdminListArcherJobsRequest) (*DtoPageJob, *http.Response, error) {
|
||||
var (
|
||||
localVarHTTPMethod = http.MethodGet
|
||||
localVarPostBody interface{}
|
||||
formFiles []formFile
|
||||
localVarReturnValue *DtoPageJob
|
||||
)
|
||||
|
||||
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ArcherAdminAPIService.AdminListArcherJobs")
|
||||
if err != nil {
|
||||
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
|
||||
}
|
||||
|
||||
localVarPath := localBasePath + "/admin/archer/jobs"
|
||||
|
||||
localVarHeaderParams := make(map[string]string)
|
||||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
|
||||
if r.status != nil {
|
||||
parameterAddToHeaderOrQuery(localVarQueryParams, "status", r.status, "", "")
|
||||
}
|
||||
if r.queue != nil {
|
||||
parameterAddToHeaderOrQuery(localVarQueryParams, "queue", r.queue, "", "")
|
||||
}
|
||||
if r.q != nil {
|
||||
parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "", "")
|
||||
}
|
||||
if r.page != nil {
|
||||
parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "", "")
|
||||
} else {
|
||||
var defaultValue int32 = 1
|
||||
parameterAddToHeaderOrQuery(localVarQueryParams, "page", defaultValue, "", "")
|
||||
r.page = &defaultValue
|
||||
}
|
||||
if r.pageSize != nil {
|
||||
parameterAddToHeaderOrQuery(localVarQueryParams, "page_size", r.pageSize, "", "")
|
||||
} else {
|
||||
var defaultValue int32 = 25
|
||||
parameterAddToHeaderOrQuery(localVarQueryParams, "page_size", defaultValue, "", "")
|
||||
r.pageSize = &defaultValue
|
||||
}
|
||||
// to determine the Content-Type header
|
||||
localVarHTTPContentTypes := []string{}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
|
||||
if localVarHTTPContentType != "" {
|
||||
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
|
||||
}
|
||||
|
||||
// to determine the Accept header
|
||||
localVarHTTPHeaderAccepts := []string{"application/json"}
|
||||
|
||||
// set Accept header
|
||||
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
|
||||
if localVarHTTPHeaderAccept != "" {
|
||||
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
|
||||
}
|
||||
if r.ctx != nil {
|
||||
// API Key Authentication
|
||||
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
|
||||
if apiKey, ok := auth["BearerAuth"]; ok {
|
||||
var key string
|
||||
if apiKey.Prefix != "" {
|
||||
key = apiKey.Prefix + " " + apiKey.Key
|
||||
} else {
|
||||
key = apiKey.Key
|
||||
}
|
||||
localVarHeaderParams["Authorization"] = key
|
||||
}
|
||||
}
|
||||
}
|
||||
req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
|
||||
if err != nil {
|
||||
return localVarReturnValue, nil, err
|
||||
}
|
||||
|
||||
localVarHTTPResponse, err := a.client.callAPI(req)
|
||||
if err != nil || localVarHTTPResponse == nil {
|
||||
return localVarReturnValue, localVarHTTPResponse, err
|
||||
}
|
||||
|
||||
localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
|
||||
localVarHTTPResponse.Body.Close()
|
||||
localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
|
||||
if err != nil {
|
||||
return localVarReturnValue, localVarHTTPResponse, err
|
||||
}
|
||||
|
||||
if localVarHTTPResponse.StatusCode >= 300 {
|
||||
newErr := &GenericOpenAPIError{
|
||||
body: localVarBody,
|
||||
error: localVarHTTPResponse.Status,
|
||||
}
|
||||
if localVarHTTPResponse.StatusCode == 401 {
|
||||
var v string
|
||||
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
|
||||
if err != nil {
|
||||
newErr.error = err.Error()
|
||||
return localVarReturnValue, localVarHTTPResponse, newErr
|
||||
}
|
||||
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
|
||||
newErr.model = v
|
||||
return localVarReturnValue, localVarHTTPResponse, newErr
|
||||
}
|
||||
if localVarHTTPResponse.StatusCode == 403 {
|
||||
var v string
|
||||
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
|
||||
if err != nil {
|
||||
newErr.error = err.Error()
|
||||
return localVarReturnValue, localVarHTTPResponse, newErr
|
||||
}
|
||||
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
|
||||
newErr.model = v
|
||||
return localVarReturnValue, localVarHTTPResponse, newErr
|
||||
}
|
||||
if localVarHTTPResponse.StatusCode == 500 {
|
||||
var v string
|
||||
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
|
||||
if err != nil {
|
||||
newErr.error = err.Error()
|
||||
return localVarReturnValue, localVarHTTPResponse, newErr
|
||||
}
|
||||
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
|
||||
newErr.model = v
|
||||
}
|
||||
return localVarReturnValue, localVarHTTPResponse, newErr
|
||||
}
|
||||
|
||||
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
|
||||
if err != nil {
|
||||
newErr := &GenericOpenAPIError{
|
||||
body: localVarBody,
|
||||
error: err.Error(),
|
||||
}
|
||||
return localVarReturnValue, localVarHTTPResponse, newErr
|
||||
}
|
||||
|
||||
return localVarReturnValue, localVarHTTPResponse, nil
|
||||
}
|
||||
|
||||
type ApiAdminListArcherQueuesRequest struct {
|
||||
ctx context.Context
|
||||
ApiService *ArcherAdminAPIService
|
||||
}
|
||||
|
||||
func (r ApiAdminListArcherQueuesRequest) Execute() ([]DtoQueueInfo, *http.Response, error) {
|
||||
return r.ApiService.AdminListArcherQueuesExecute(r)
|
||||
}
|
||||
|
||||
/*
|
||||
AdminListArcherQueues List Archer queues (admin)
|
||||
|
||||
Summary metrics per queue (pending, running, failed, scheduled).
|
||||
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiAdminListArcherQueuesRequest
|
||||
*/
|
||||
func (a *ArcherAdminAPIService) AdminListArcherQueues(ctx context.Context) ApiAdminListArcherQueuesRequest {
|
||||
return ApiAdminListArcherQueuesRequest{
|
||||
ApiService: a,
|
||||
ctx: ctx,
|
||||
}
|
||||
}
|
||||
|
||||
// Execute executes the request
|
||||
//
|
||||
// @return []DtoQueueInfo
|
||||
func (a *ArcherAdminAPIService) AdminListArcherQueuesExecute(r ApiAdminListArcherQueuesRequest) ([]DtoQueueInfo, *http.Response, error) {
|
||||
var (
|
||||
localVarHTTPMethod = http.MethodGet
|
||||
localVarPostBody interface{}
|
||||
formFiles []formFile
|
||||
localVarReturnValue []DtoQueueInfo
|
||||
)
|
||||
|
||||
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ArcherAdminAPIService.AdminListArcherQueues")
|
||||
if err != nil {
|
||||
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
|
||||
}
|
||||
|
||||
localVarPath := localBasePath + "/admin/archer/queues"
|
||||
|
||||
localVarHeaderParams := make(map[string]string)
|
||||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
|
||||
// to determine the Content-Type header
|
||||
localVarHTTPContentTypes := []string{}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
|
||||
if localVarHTTPContentType != "" {
|
||||
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
|
||||
}
|
||||
|
||||
// to determine the Accept header
|
||||
localVarHTTPHeaderAccepts := []string{"application/json"}
|
||||
|
||||
// set Accept header
|
||||
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
|
||||
if localVarHTTPHeaderAccept != "" {
|
||||
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
|
||||
}
|
||||
if r.ctx != nil {
|
||||
// API Key Authentication
|
||||
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
|
||||
if apiKey, ok := auth["BearerAuth"]; ok {
|
||||
var key string
|
||||
if apiKey.Prefix != "" {
|
||||
key = apiKey.Prefix + " " + apiKey.Key
|
||||
} else {
|
||||
key = apiKey.Key
|
||||
}
|
||||
localVarHeaderParams["Authorization"] = key
|
||||
}
|
||||
}
|
||||
}
|
||||
req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
|
||||
if err != nil {
|
||||
return localVarReturnValue, nil, err
|
||||
}
|
||||
|
||||
localVarHTTPResponse, err := a.client.callAPI(req)
|
||||
if err != nil || localVarHTTPResponse == nil {
|
||||
return localVarReturnValue, localVarHTTPResponse, err
|
||||
}
|
||||
|
||||
localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
|
||||
localVarHTTPResponse.Body.Close()
|
||||
localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
|
||||
if err != nil {
|
||||
return localVarReturnValue, localVarHTTPResponse, err
|
||||
}
|
||||
|
||||
if localVarHTTPResponse.StatusCode >= 300 {
|
||||
newErr := &GenericOpenAPIError{
|
||||
body: localVarBody,
|
||||
error: localVarHTTPResponse.Status,
|
||||
}
|
||||
if localVarHTTPResponse.StatusCode == 401 {
|
||||
var v string
|
||||
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
|
||||
if err != nil {
|
||||
newErr.error = err.Error()
|
||||
return localVarReturnValue, localVarHTTPResponse, newErr
|
||||
}
|
||||
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
|
||||
newErr.model = v
|
||||
return localVarReturnValue, localVarHTTPResponse, newErr
|
||||
}
|
||||
if localVarHTTPResponse.StatusCode == 403 {
|
||||
var v string
|
||||
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
|
||||
if err != nil {
|
||||
newErr.error = err.Error()
|
||||
return localVarReturnValue, localVarHTTPResponse, newErr
|
||||
}
|
||||
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
|
||||
newErr.model = v
|
||||
return localVarReturnValue, localVarHTTPResponse, newErr
|
||||
}
|
||||
if localVarHTTPResponse.StatusCode == 500 {
|
||||
var v string
|
||||
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
|
||||
if err != nil {
|
||||
newErr.error = err.Error()
|
||||
return localVarReturnValue, localVarHTTPResponse, newErr
|
||||
}
|
||||
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
|
||||
newErr.model = v
|
||||
}
|
||||
return localVarReturnValue, localVarHTTPResponse, newErr
|
||||
}
|
||||
|
||||
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
|
||||
if err != nil {
|
||||
newErr := &GenericOpenAPIError{
|
||||
body: localVarBody,
|
||||
error: err.Error(),
|
||||
}
|
||||
return localVarReturnValue, localVarHTTPResponse, newErr
|
||||
}
|
||||
|
||||
return localVarReturnValue, localVarHTTPResponse, nil
|
||||
}
|
||||
|
||||
type ApiAdminRetryArcherJobRequest struct {
|
||||
ctx context.Context
|
||||
ApiService *ArcherAdminAPIService
|
||||
id string
|
||||
}
|
||||
|
||||
func (r ApiAdminRetryArcherJobRequest) Execute() (*DtoJob, *http.Response, error) {
|
||||
return r.ApiService.AdminRetryArcherJobExecute(r)
|
||||
}
|
||||
|
||||
/*
|
||||
AdminRetryArcherJob Retry a failed/canceled Archer job (admin)
|
||||
|
||||
Marks the job retriable (DB flip). Swap this for an Archer admin call if you expose one.
|
||||
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@param id Job ID
|
||||
@return ApiAdminRetryArcherJobRequest
|
||||
*/
|
||||
func (a *ArcherAdminAPIService) AdminRetryArcherJob(ctx context.Context, id string) ApiAdminRetryArcherJobRequest {
|
||||
return ApiAdminRetryArcherJobRequest{
|
||||
ApiService: a,
|
||||
ctx: ctx,
|
||||
id: id,
|
||||
}
|
||||
}
|
||||
|
||||
// Execute executes the request
|
||||
//
|
||||
// @return DtoJob
|
||||
func (a *ArcherAdminAPIService) AdminRetryArcherJobExecute(r ApiAdminRetryArcherJobRequest) (*DtoJob, *http.Response, error) {
|
||||
var (
|
||||
localVarHTTPMethod = http.MethodPost
|
||||
localVarPostBody interface{}
|
||||
formFiles []formFile
|
||||
localVarReturnValue *DtoJob
|
||||
)
|
||||
|
||||
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ArcherAdminAPIService.AdminRetryArcherJob")
|
||||
if err != nil {
|
||||
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
|
||||
}
|
||||
|
||||
localVarPath := localBasePath + "/admin/archer/jobs/{id}/retry"
|
||||
localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1)
|
||||
|
||||
localVarHeaderParams := make(map[string]string)
|
||||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
|
||||
// to determine the Content-Type header
|
||||
localVarHTTPContentTypes := []string{}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
|
||||
if localVarHTTPContentType != "" {
|
||||
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
|
||||
}
|
||||
|
||||
// to determine the Accept header
|
||||
localVarHTTPHeaderAccepts := []string{"application/json"}
|
||||
|
||||
// set Accept header
|
||||
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
|
||||
if localVarHTTPHeaderAccept != "" {
|
||||
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
|
||||
}
|
||||
if r.ctx != nil {
|
||||
// API Key Authentication
|
||||
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
|
||||
if apiKey, ok := auth["BearerAuth"]; ok {
|
||||
var key string
|
||||
if apiKey.Prefix != "" {
|
||||
key = apiKey.Prefix + " " + apiKey.Key
|
||||
} else {
|
||||
key = apiKey.Key
|
||||
}
|
||||
localVarHeaderParams["Authorization"] = key
|
||||
}
|
||||
}
|
||||
}
|
||||
req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
|
||||
if err != nil {
|
||||
return localVarReturnValue, nil, err
|
||||
}
|
||||
|
||||
localVarHTTPResponse, err := a.client.callAPI(req)
|
||||
if err != nil || localVarHTTPResponse == nil {
|
||||
return localVarReturnValue, localVarHTTPResponse, err
|
||||
}
|
||||
|
||||
localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
|
||||
localVarHTTPResponse.Body.Close()
|
||||
localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
|
||||
if err != nil {
|
||||
return localVarReturnValue, localVarHTTPResponse, err
|
||||
}
|
||||
|
||||
if localVarHTTPResponse.StatusCode >= 300 {
|
||||
newErr := &GenericOpenAPIError{
|
||||
body: localVarBody,
|
||||
error: localVarHTTPResponse.Status,
|
||||
}
|
||||
if localVarHTTPResponse.StatusCode == 400 {
|
||||
var v string
|
||||
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
|
||||
if err != nil {
|
||||
newErr.error = err.Error()
|
||||
return localVarReturnValue, localVarHTTPResponse, newErr
|
||||
}
|
||||
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
|
||||
newErr.model = v
|
||||
return localVarReturnValue, localVarHTTPResponse, newErr
|
||||
}
|
||||
if localVarHTTPResponse.StatusCode == 401 {
|
||||
var v string
|
||||
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
|
||||
if err != nil {
|
||||
newErr.error = err.Error()
|
||||
return localVarReturnValue, localVarHTTPResponse, newErr
|
||||
}
|
||||
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
|
||||
newErr.model = v
|
||||
return localVarReturnValue, localVarHTTPResponse, newErr
|
||||
}
|
||||
if localVarHTTPResponse.StatusCode == 403 {
|
||||
var v string
|
||||
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
|
||||
if err != nil {
|
||||
newErr.error = err.Error()
|
||||
return localVarReturnValue, localVarHTTPResponse, newErr
|
||||
}
|
||||
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
|
||||
newErr.model = v
|
||||
return localVarReturnValue, localVarHTTPResponse, newErr
|
||||
}
|
||||
if localVarHTTPResponse.StatusCode == 404 {
|
||||
var v string
|
||||
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
|
||||
if err != nil {
|
||||
newErr.error = err.Error()
|
||||
return localVarReturnValue, localVarHTTPResponse, newErr
|
||||
}
|
||||
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
|
||||
newErr.model = v
|
||||
}
|
||||
return localVarReturnValue, localVarHTTPResponse, newErr
|
||||
}
|
||||
|
||||
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
|
||||
if err != nil {
|
||||
newErr := &GenericOpenAPIError{
|
||||
body: localVarBody,
|
||||
error: err.Error(),
|
||||
}
|
||||
return localVarReturnValue, localVarHTTPResponse, newErr
|
||||
}
|
||||
|
||||
return localVarReturnValue, localVarHTTPResponse, nil
|
||||
}
|
||||
@@ -1,537 +0,0 @@
|
||||
/*
|
||||
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 (
|
||||
"bytes"
|
||||
"context"
|
||||
"io"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"strings"
|
||||
)
|
||||
|
||||
// AuthAPIService AuthAPI service
|
||||
type AuthAPIService service
|
||||
|
||||
type ApiAuthCallbackRequest struct {
|
||||
ctx context.Context
|
||||
ApiService *AuthAPIService
|
||||
provider string
|
||||
}
|
||||
|
||||
func (r ApiAuthCallbackRequest) Execute() (*DtoTokenPair, *http.Response, error) {
|
||||
return r.ApiService.AuthCallbackExecute(r)
|
||||
}
|
||||
|
||||
/*
|
||||
AuthCallback Handle social login callback
|
||||
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@param provider google|github
|
||||
@return ApiAuthCallbackRequest
|
||||
*/
|
||||
func (a *AuthAPIService) AuthCallback(ctx context.Context, provider string) ApiAuthCallbackRequest {
|
||||
return ApiAuthCallbackRequest{
|
||||
ApiService: a,
|
||||
ctx: ctx,
|
||||
provider: provider,
|
||||
}
|
||||
}
|
||||
|
||||
// Execute executes the request
|
||||
//
|
||||
// @return DtoTokenPair
|
||||
func (a *AuthAPIService) AuthCallbackExecute(r ApiAuthCallbackRequest) (*DtoTokenPair, *http.Response, error) {
|
||||
var (
|
||||
localVarHTTPMethod = http.MethodGet
|
||||
localVarPostBody interface{}
|
||||
formFiles []formFile
|
||||
localVarReturnValue *DtoTokenPair
|
||||
)
|
||||
|
||||
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthAPIService.AuthCallback")
|
||||
if err != nil {
|
||||
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
|
||||
}
|
||||
|
||||
localVarPath := localBasePath + "/auth/{provider}/callback"
|
||||
localVarPath = strings.Replace(localVarPath, "{"+"provider"+"}", url.PathEscape(parameterValueToString(r.provider, "provider")), -1)
|
||||
|
||||
localVarHeaderParams := make(map[string]string)
|
||||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
|
||||
// to determine the Content-Type header
|
||||
localVarHTTPContentTypes := []string{}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
|
||||
if localVarHTTPContentType != "" {
|
||||
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
|
||||
}
|
||||
|
||||
// to determine the Accept header
|
||||
localVarHTTPHeaderAccepts := []string{"application/json"}
|
||||
|
||||
// set Accept header
|
||||
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
|
||||
if localVarHTTPHeaderAccept != "" {
|
||||
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
|
||||
}
|
||||
req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
|
||||
if err != nil {
|
||||
return localVarReturnValue, nil, err
|
||||
}
|
||||
|
||||
localVarHTTPResponse, err := a.client.callAPI(req)
|
||||
if err != nil || localVarHTTPResponse == nil {
|
||||
return localVarReturnValue, localVarHTTPResponse, err
|
||||
}
|
||||
|
||||
localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
|
||||
localVarHTTPResponse.Body.Close()
|
||||
localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
|
||||
if err != nil {
|
||||
return localVarReturnValue, localVarHTTPResponse, err
|
||||
}
|
||||
|
||||
if localVarHTTPResponse.StatusCode >= 300 {
|
||||
newErr := &GenericOpenAPIError{
|
||||
body: localVarBody,
|
||||
error: localVarHTTPResponse.Status,
|
||||
}
|
||||
return localVarReturnValue, localVarHTTPResponse, newErr
|
||||
}
|
||||
|
||||
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
|
||||
if err != nil {
|
||||
newErr := &GenericOpenAPIError{
|
||||
body: localVarBody,
|
||||
error: err.Error(),
|
||||
}
|
||||
return localVarReturnValue, localVarHTTPResponse, newErr
|
||||
}
|
||||
|
||||
return localVarReturnValue, localVarHTTPResponse, nil
|
||||
}
|
||||
|
||||
type ApiAuthStartRequest struct {
|
||||
ctx context.Context
|
||||
ApiService *AuthAPIService
|
||||
provider string
|
||||
}
|
||||
|
||||
func (r ApiAuthStartRequest) Execute() (*DtoAuthStartResponse, *http.Response, error) {
|
||||
return r.ApiService.AuthStartExecute(r)
|
||||
}
|
||||
|
||||
/*
|
||||
AuthStart Begin social login
|
||||
|
||||
Returns provider authorization URL for the frontend to redirect
|
||||
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@param provider google|github
|
||||
@return ApiAuthStartRequest
|
||||
*/
|
||||
func (a *AuthAPIService) AuthStart(ctx context.Context, provider string) ApiAuthStartRequest {
|
||||
return ApiAuthStartRequest{
|
||||
ApiService: a,
|
||||
ctx: ctx,
|
||||
provider: provider,
|
||||
}
|
||||
}
|
||||
|
||||
// Execute executes the request
|
||||
//
|
||||
// @return DtoAuthStartResponse
|
||||
func (a *AuthAPIService) AuthStartExecute(r ApiAuthStartRequest) (*DtoAuthStartResponse, *http.Response, error) {
|
||||
var (
|
||||
localVarHTTPMethod = http.MethodPost
|
||||
localVarPostBody interface{}
|
||||
formFiles []formFile
|
||||
localVarReturnValue *DtoAuthStartResponse
|
||||
)
|
||||
|
||||
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthAPIService.AuthStart")
|
||||
if err != nil {
|
||||
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
|
||||
}
|
||||
|
||||
localVarPath := localBasePath + "/auth/{provider}/start"
|
||||
localVarPath = strings.Replace(localVarPath, "{"+"provider"+"}", url.PathEscape(parameterValueToString(r.provider, "provider")), -1)
|
||||
|
||||
localVarHeaderParams := make(map[string]string)
|
||||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
|
||||
// to determine the Content-Type header
|
||||
localVarHTTPContentTypes := []string{}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
|
||||
if localVarHTTPContentType != "" {
|
||||
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
|
||||
}
|
||||
|
||||
// to determine the Accept header
|
||||
localVarHTTPHeaderAccepts := []string{"application/json"}
|
||||
|
||||
// set Accept header
|
||||
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
|
||||
if localVarHTTPHeaderAccept != "" {
|
||||
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
|
||||
}
|
||||
req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
|
||||
if err != nil {
|
||||
return localVarReturnValue, nil, err
|
||||
}
|
||||
|
||||
localVarHTTPResponse, err := a.client.callAPI(req)
|
||||
if err != nil || localVarHTTPResponse == nil {
|
||||
return localVarReturnValue, localVarHTTPResponse, err
|
||||
}
|
||||
|
||||
localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
|
||||
localVarHTTPResponse.Body.Close()
|
||||
localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
|
||||
if err != nil {
|
||||
return localVarReturnValue, localVarHTTPResponse, err
|
||||
}
|
||||
|
||||
if localVarHTTPResponse.StatusCode >= 300 {
|
||||
newErr := &GenericOpenAPIError{
|
||||
body: localVarBody,
|
||||
error: localVarHTTPResponse.Status,
|
||||
}
|
||||
return localVarReturnValue, localVarHTTPResponse, newErr
|
||||
}
|
||||
|
||||
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
|
||||
if err != nil {
|
||||
newErr := &GenericOpenAPIError{
|
||||
body: localVarBody,
|
||||
error: err.Error(),
|
||||
}
|
||||
return localVarReturnValue, localVarHTTPResponse, newErr
|
||||
}
|
||||
|
||||
return localVarReturnValue, localVarHTTPResponse, nil
|
||||
}
|
||||
|
||||
type ApiGetJWKSRequest struct {
|
||||
ctx context.Context
|
||||
ApiService *AuthAPIService
|
||||
}
|
||||
|
||||
func (r ApiGetJWKSRequest) Execute() (*DtoJWKS, *http.Response, error) {
|
||||
return r.ApiService.GetJWKSExecute(r)
|
||||
}
|
||||
|
||||
/*
|
||||
GetJWKS Get JWKS
|
||||
|
||||
Returns the JSON Web Key Set for token verification
|
||||
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiGetJWKSRequest
|
||||
*/
|
||||
func (a *AuthAPIService) GetJWKS(ctx context.Context) ApiGetJWKSRequest {
|
||||
return ApiGetJWKSRequest{
|
||||
ApiService: a,
|
||||
ctx: ctx,
|
||||
}
|
||||
}
|
||||
|
||||
// Execute executes the request
|
||||
//
|
||||
// @return DtoJWKS
|
||||
func (a *AuthAPIService) GetJWKSExecute(r ApiGetJWKSRequest) (*DtoJWKS, *http.Response, error) {
|
||||
var (
|
||||
localVarHTTPMethod = http.MethodGet
|
||||
localVarPostBody interface{}
|
||||
formFiles []formFile
|
||||
localVarReturnValue *DtoJWKS
|
||||
)
|
||||
|
||||
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthAPIService.GetJWKS")
|
||||
if err != nil {
|
||||
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
|
||||
}
|
||||
|
||||
localVarPath := localBasePath + "/.well-known/jwks.json"
|
||||
|
||||
localVarHeaderParams := make(map[string]string)
|
||||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
|
||||
// to determine the Content-Type header
|
||||
localVarHTTPContentTypes := []string{}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
|
||||
if localVarHTTPContentType != "" {
|
||||
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
|
||||
}
|
||||
|
||||
// to determine the Accept header
|
||||
localVarHTTPHeaderAccepts := []string{"application/json"}
|
||||
|
||||
// set Accept header
|
||||
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
|
||||
if localVarHTTPHeaderAccept != "" {
|
||||
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
|
||||
}
|
||||
req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
|
||||
if err != nil {
|
||||
return localVarReturnValue, nil, err
|
||||
}
|
||||
|
||||
localVarHTTPResponse, err := a.client.callAPI(req)
|
||||
if err != nil || localVarHTTPResponse == nil {
|
||||
return localVarReturnValue, localVarHTTPResponse, err
|
||||
}
|
||||
|
||||
localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
|
||||
localVarHTTPResponse.Body.Close()
|
||||
localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
|
||||
if err != nil {
|
||||
return localVarReturnValue, localVarHTTPResponse, err
|
||||
}
|
||||
|
||||
if localVarHTTPResponse.StatusCode >= 300 {
|
||||
newErr := &GenericOpenAPIError{
|
||||
body: localVarBody,
|
||||
error: localVarHTTPResponse.Status,
|
||||
}
|
||||
return localVarReturnValue, localVarHTTPResponse, newErr
|
||||
}
|
||||
|
||||
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
|
||||
if err != nil {
|
||||
newErr := &GenericOpenAPIError{
|
||||
body: localVarBody,
|
||||
error: err.Error(),
|
||||
}
|
||||
return localVarReturnValue, localVarHTTPResponse, newErr
|
||||
}
|
||||
|
||||
return localVarReturnValue, localVarHTTPResponse, nil
|
||||
}
|
||||
|
||||
type ApiLogoutRequest struct {
|
||||
ctx context.Context
|
||||
ApiService *AuthAPIService
|
||||
body *DtoLogoutRequest
|
||||
}
|
||||
|
||||
// Refresh token
|
||||
func (r ApiLogoutRequest) Body(body DtoLogoutRequest) ApiLogoutRequest {
|
||||
r.body = &body
|
||||
return r
|
||||
}
|
||||
|
||||
func (r ApiLogoutRequest) Execute() (*http.Response, error) {
|
||||
return r.ApiService.LogoutExecute(r)
|
||||
}
|
||||
|
||||
/*
|
||||
Logout Revoke refresh token family (logout everywhere)
|
||||
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiLogoutRequest
|
||||
*/
|
||||
func (a *AuthAPIService) Logout(ctx context.Context) ApiLogoutRequest {
|
||||
return ApiLogoutRequest{
|
||||
ApiService: a,
|
||||
ctx: ctx,
|
||||
}
|
||||
}
|
||||
|
||||
// Execute executes the request
|
||||
func (a *AuthAPIService) LogoutExecute(r ApiLogoutRequest) (*http.Response, error) {
|
||||
var (
|
||||
localVarHTTPMethod = http.MethodPost
|
||||
localVarPostBody interface{}
|
||||
formFiles []formFile
|
||||
)
|
||||
|
||||
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthAPIService.Logout")
|
||||
if err != nil {
|
||||
return nil, &GenericOpenAPIError{error: err.Error()}
|
||||
}
|
||||
|
||||
localVarPath := localBasePath + "/auth/logout"
|
||||
|
||||
localVarHeaderParams := make(map[string]string)
|
||||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
if r.body == nil {
|
||||
return nil, reportError("body is required and must be specified")
|
||||
}
|
||||
|
||||
// to determine the Content-Type header
|
||||
localVarHTTPContentTypes := []string{"application/json"}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
|
||||
if localVarHTTPContentType != "" {
|
||||
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
|
||||
}
|
||||
|
||||
// to determine the Accept header
|
||||
localVarHTTPHeaderAccepts := []string{}
|
||||
|
||||
// set Accept header
|
||||
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
|
||||
if localVarHTTPHeaderAccept != "" {
|
||||
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
|
||||
}
|
||||
// body params
|
||||
localVarPostBody = r.body
|
||||
req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
localVarHTTPResponse, err := a.client.callAPI(req)
|
||||
if err != nil || localVarHTTPResponse == nil {
|
||||
return localVarHTTPResponse, err
|
||||
}
|
||||
|
||||
localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
|
||||
localVarHTTPResponse.Body.Close()
|
||||
localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
|
||||
if err != nil {
|
||||
return localVarHTTPResponse, err
|
||||
}
|
||||
|
||||
if localVarHTTPResponse.StatusCode >= 300 {
|
||||
newErr := &GenericOpenAPIError{
|
||||
body: localVarBody,
|
||||
error: localVarHTTPResponse.Status,
|
||||
}
|
||||
return localVarHTTPResponse, newErr
|
||||
}
|
||||
|
||||
return localVarHTTPResponse, nil
|
||||
}
|
||||
|
||||
type ApiRefreshRequest struct {
|
||||
ctx context.Context
|
||||
ApiService *AuthAPIService
|
||||
body *DtoRefreshRequest
|
||||
}
|
||||
|
||||
// Refresh token
|
||||
func (r ApiRefreshRequest) Body(body DtoRefreshRequest) ApiRefreshRequest {
|
||||
r.body = &body
|
||||
return r
|
||||
}
|
||||
|
||||
func (r ApiRefreshRequest) Execute() (*DtoTokenPair, *http.Response, error) {
|
||||
return r.ApiService.RefreshExecute(r)
|
||||
}
|
||||
|
||||
/*
|
||||
Refresh Rotate refresh token
|
||||
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiRefreshRequest
|
||||
*/
|
||||
func (a *AuthAPIService) Refresh(ctx context.Context) ApiRefreshRequest {
|
||||
return ApiRefreshRequest{
|
||||
ApiService: a,
|
||||
ctx: ctx,
|
||||
}
|
||||
}
|
||||
|
||||
// Execute executes the request
|
||||
//
|
||||
// @return DtoTokenPair
|
||||
func (a *AuthAPIService) RefreshExecute(r ApiRefreshRequest) (*DtoTokenPair, *http.Response, error) {
|
||||
var (
|
||||
localVarHTTPMethod = http.MethodPost
|
||||
localVarPostBody interface{}
|
||||
formFiles []formFile
|
||||
localVarReturnValue *DtoTokenPair
|
||||
)
|
||||
|
||||
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthAPIService.Refresh")
|
||||
if err != nil {
|
||||
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
|
||||
}
|
||||
|
||||
localVarPath := localBasePath + "/auth/refresh"
|
||||
|
||||
localVarHeaderParams := make(map[string]string)
|
||||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
if r.body == nil {
|
||||
return localVarReturnValue, nil, reportError("body is required and must be specified")
|
||||
}
|
||||
|
||||
// to determine the Content-Type header
|
||||
localVarHTTPContentTypes := []string{"application/json"}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
|
||||
if localVarHTTPContentType != "" {
|
||||
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
|
||||
}
|
||||
|
||||
// to determine the Accept header
|
||||
localVarHTTPHeaderAccepts := []string{"application/json"}
|
||||
|
||||
// set Accept header
|
||||
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
|
||||
if localVarHTTPHeaderAccept != "" {
|
||||
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
|
||||
}
|
||||
// body params
|
||||
localVarPostBody = r.body
|
||||
req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
|
||||
if err != nil {
|
||||
return localVarReturnValue, nil, err
|
||||
}
|
||||
|
||||
localVarHTTPResponse, err := a.client.callAPI(req)
|
||||
if err != nil || localVarHTTPResponse == nil {
|
||||
return localVarReturnValue, localVarHTTPResponse, err
|
||||
}
|
||||
|
||||
localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
|
||||
localVarHTTPResponse.Body.Close()
|
||||
localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
|
||||
if err != nil {
|
||||
return localVarReturnValue, localVarHTTPResponse, err
|
||||
}
|
||||
|
||||
if localVarHTTPResponse.StatusCode >= 300 {
|
||||
newErr := &GenericOpenAPIError{
|
||||
body: localVarBody,
|
||||
error: localVarHTTPResponse.Status,
|
||||
}
|
||||
return localVarReturnValue, localVarHTTPResponse, newErr
|
||||
}
|
||||
|
||||
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
|
||||
if err != nil {
|
||||
newErr := &GenericOpenAPIError{
|
||||
body: localVarBody,
|
||||
error: err.Error(),
|
||||
}
|
||||
return localVarReturnValue, localVarHTTPResponse, newErr
|
||||
}
|
||||
|
||||
return localVarReturnValue, localVarHTTPResponse, nil
|
||||
}
|
||||
@@ -1,122 +0,0 @@
|
||||
/*
|
||||
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 (
|
||||
"bytes"
|
||||
"context"
|
||||
"io"
|
||||
"net/http"
|
||||
"net/url"
|
||||
)
|
||||
|
||||
// HealthAPIService HealthAPI service
|
||||
type HealthAPIService service
|
||||
|
||||
type ApiHealthCheckOperationIdRequest struct {
|
||||
ctx context.Context
|
||||
ApiService *HealthAPIService
|
||||
}
|
||||
|
||||
func (r ApiHealthCheckOperationIdRequest) Execute() (*HandlersHealthStatus, *http.Response, error) {
|
||||
return r.ApiService.HealthCheckOperationIdExecute(r)
|
||||
}
|
||||
|
||||
/*
|
||||
HealthCheckOperationId Basic health check
|
||||
|
||||
Returns 200 OK when the service is up
|
||||
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiHealthCheckOperationIdRequest
|
||||
*/
|
||||
func (a *HealthAPIService) HealthCheckOperationId(ctx context.Context) ApiHealthCheckOperationIdRequest {
|
||||
return ApiHealthCheckOperationIdRequest{
|
||||
ApiService: a,
|
||||
ctx: ctx,
|
||||
}
|
||||
}
|
||||
|
||||
// Execute executes the request
|
||||
//
|
||||
// @return HandlersHealthStatus
|
||||
func (a *HealthAPIService) HealthCheckOperationIdExecute(r ApiHealthCheckOperationIdRequest) (*HandlersHealthStatus, *http.Response, error) {
|
||||
var (
|
||||
localVarHTTPMethod = http.MethodGet
|
||||
localVarPostBody interface{}
|
||||
formFiles []formFile
|
||||
localVarReturnValue *HandlersHealthStatus
|
||||
)
|
||||
|
||||
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HealthAPIService.HealthCheckOperationId")
|
||||
if err != nil {
|
||||
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
|
||||
}
|
||||
|
||||
localVarPath := localBasePath + "/healthz"
|
||||
|
||||
localVarHeaderParams := make(map[string]string)
|
||||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
|
||||
// to determine the Content-Type header
|
||||
localVarHTTPContentTypes := []string{}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
|
||||
if localVarHTTPContentType != "" {
|
||||
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
|
||||
}
|
||||
|
||||
// to determine the Accept header
|
||||
localVarHTTPHeaderAccepts := []string{"application/json"}
|
||||
|
||||
// set Accept header
|
||||
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
|
||||
if localVarHTTPHeaderAccept != "" {
|
||||
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
|
||||
}
|
||||
req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
|
||||
if err != nil {
|
||||
return localVarReturnValue, nil, err
|
||||
}
|
||||
|
||||
localVarHTTPResponse, err := a.client.callAPI(req)
|
||||
if err != nil || localVarHTTPResponse == nil {
|
||||
return localVarReturnValue, localVarHTTPResponse, err
|
||||
}
|
||||
|
||||
localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
|
||||
localVarHTTPResponse.Body.Close()
|
||||
localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
|
||||
if err != nil {
|
||||
return localVarReturnValue, localVarHTTPResponse, err
|
||||
}
|
||||
|
||||
if localVarHTTPResponse.StatusCode >= 300 {
|
||||
newErr := &GenericOpenAPIError{
|
||||
body: localVarBody,
|
||||
error: localVarHTTPResponse.Status,
|
||||
}
|
||||
return localVarReturnValue, localVarHTTPResponse, newErr
|
||||
}
|
||||
|
||||
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
|
||||
if err != nil {
|
||||
newErr := &GenericOpenAPIError{
|
||||
body: localVarBody,
|
||||
error: err.Error(),
|
||||
}
|
||||
return localVarReturnValue, localVarHTTPResponse, newErr
|
||||
}
|
||||
|
||||
return localVarReturnValue, localVarHTTPResponse, nil
|
||||
}
|
||||
1075
sdk/go/api_labels.go
1075
sdk/go/api_labels.go
File diff suppressed because it is too large
Load Diff
286
sdk/go/api_me.go
286
sdk/go/api_me.go
@@ -1,286 +0,0 @@
|
||||
/*
|
||||
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 (
|
||||
"bytes"
|
||||
"context"
|
||||
"io"
|
||||
"net/http"
|
||||
"net/url"
|
||||
)
|
||||
|
||||
// MeAPIService MeAPI service
|
||||
type MeAPIService service
|
||||
|
||||
type ApiGetMeRequest struct {
|
||||
ctx context.Context
|
||||
ApiService *MeAPIService
|
||||
}
|
||||
|
||||
func (r ApiGetMeRequest) Execute() (*HandlersMeResponse, *http.Response, error) {
|
||||
return r.ApiService.GetMeExecute(r)
|
||||
}
|
||||
|
||||
/*
|
||||
GetMe Get current user profile
|
||||
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiGetMeRequest
|
||||
*/
|
||||
func (a *MeAPIService) GetMe(ctx context.Context) ApiGetMeRequest {
|
||||
return ApiGetMeRequest{
|
||||
ApiService: a,
|
||||
ctx: ctx,
|
||||
}
|
||||
}
|
||||
|
||||
// Execute executes the request
|
||||
//
|
||||
// @return HandlersMeResponse
|
||||
func (a *MeAPIService) GetMeExecute(r ApiGetMeRequest) (*HandlersMeResponse, *http.Response, error) {
|
||||
var (
|
||||
localVarHTTPMethod = http.MethodGet
|
||||
localVarPostBody interface{}
|
||||
formFiles []formFile
|
||||
localVarReturnValue *HandlersMeResponse
|
||||
)
|
||||
|
||||
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MeAPIService.GetMe")
|
||||
if err != nil {
|
||||
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
|
||||
}
|
||||
|
||||
localVarPath := localBasePath + "/me"
|
||||
|
||||
localVarHeaderParams := make(map[string]string)
|
||||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
|
||||
// to determine the Content-Type header
|
||||
localVarHTTPContentTypes := []string{}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
|
||||
if localVarHTTPContentType != "" {
|
||||
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
|
||||
}
|
||||
|
||||
// to determine the Accept header
|
||||
localVarHTTPHeaderAccepts := []string{"application/json"}
|
||||
|
||||
// set Accept header
|
||||
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
|
||||
if localVarHTTPHeaderAccept != "" {
|
||||
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
|
||||
}
|
||||
if r.ctx != nil {
|
||||
// API Key Authentication
|
||||
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
|
||||
if apiKey, ok := auth["ApiKeyAuth"]; ok {
|
||||
var key string
|
||||
if apiKey.Prefix != "" {
|
||||
key = apiKey.Prefix + " " + apiKey.Key
|
||||
} else {
|
||||
key = apiKey.Key
|
||||
}
|
||||
localVarHeaderParams["X-API-KEY"] = key
|
||||
}
|
||||
}
|
||||
}
|
||||
if r.ctx != nil {
|
||||
// API Key Authentication
|
||||
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
|
||||
if apiKey, ok := auth["BearerAuth"]; ok {
|
||||
var key string
|
||||
if apiKey.Prefix != "" {
|
||||
key = apiKey.Prefix + " " + apiKey.Key
|
||||
} else {
|
||||
key = apiKey.Key
|
||||
}
|
||||
localVarHeaderParams["Authorization"] = key
|
||||
}
|
||||
}
|
||||
}
|
||||
req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
|
||||
if err != nil {
|
||||
return localVarReturnValue, nil, err
|
||||
}
|
||||
|
||||
localVarHTTPResponse, err := a.client.callAPI(req)
|
||||
if err != nil || localVarHTTPResponse == nil {
|
||||
return localVarReturnValue, localVarHTTPResponse, err
|
||||
}
|
||||
|
||||
localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
|
||||
localVarHTTPResponse.Body.Close()
|
||||
localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
|
||||
if err != nil {
|
||||
return localVarReturnValue, localVarHTTPResponse, err
|
||||
}
|
||||
|
||||
if localVarHTTPResponse.StatusCode >= 300 {
|
||||
newErr := &GenericOpenAPIError{
|
||||
body: localVarBody,
|
||||
error: localVarHTTPResponse.Status,
|
||||
}
|
||||
return localVarReturnValue, localVarHTTPResponse, newErr
|
||||
}
|
||||
|
||||
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
|
||||
if err != nil {
|
||||
newErr := &GenericOpenAPIError{
|
||||
body: localVarBody,
|
||||
error: err.Error(),
|
||||
}
|
||||
return localVarReturnValue, localVarHTTPResponse, newErr
|
||||
}
|
||||
|
||||
return localVarReturnValue, localVarHTTPResponse, nil
|
||||
}
|
||||
|
||||
type ApiUpdateMeRequest struct {
|
||||
ctx context.Context
|
||||
ApiService *MeAPIService
|
||||
body *HandlersUpdateMeRequest
|
||||
}
|
||||
|
||||
// Patch profile
|
||||
func (r ApiUpdateMeRequest) Body(body HandlersUpdateMeRequest) ApiUpdateMeRequest {
|
||||
r.body = &body
|
||||
return r
|
||||
}
|
||||
|
||||
func (r ApiUpdateMeRequest) Execute() (*ModelsUser, *http.Response, error) {
|
||||
return r.ApiService.UpdateMeExecute(r)
|
||||
}
|
||||
|
||||
/*
|
||||
UpdateMe Update current user profile
|
||||
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiUpdateMeRequest
|
||||
*/
|
||||
func (a *MeAPIService) UpdateMe(ctx context.Context) ApiUpdateMeRequest {
|
||||
return ApiUpdateMeRequest{
|
||||
ApiService: a,
|
||||
ctx: ctx,
|
||||
}
|
||||
}
|
||||
|
||||
// Execute executes the request
|
||||
//
|
||||
// @return ModelsUser
|
||||
func (a *MeAPIService) UpdateMeExecute(r ApiUpdateMeRequest) (*ModelsUser, *http.Response, error) {
|
||||
var (
|
||||
localVarHTTPMethod = http.MethodPatch
|
||||
localVarPostBody interface{}
|
||||
formFiles []formFile
|
||||
localVarReturnValue *ModelsUser
|
||||
)
|
||||
|
||||
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MeAPIService.UpdateMe")
|
||||
if err != nil {
|
||||
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
|
||||
}
|
||||
|
||||
localVarPath := localBasePath + "/me"
|
||||
|
||||
localVarHeaderParams := make(map[string]string)
|
||||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
if r.body == nil {
|
||||
return localVarReturnValue, nil, reportError("body is required and must be specified")
|
||||
}
|
||||
|
||||
// to determine the Content-Type header
|
||||
localVarHTTPContentTypes := []string{"application/json"}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
|
||||
if localVarHTTPContentType != "" {
|
||||
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
|
||||
}
|
||||
|
||||
// to determine the Accept header
|
||||
localVarHTTPHeaderAccepts := []string{"application/json"}
|
||||
|
||||
// set Accept header
|
||||
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
|
||||
if localVarHTTPHeaderAccept != "" {
|
||||
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
|
||||
}
|
||||
// body params
|
||||
localVarPostBody = r.body
|
||||
if r.ctx != nil {
|
||||
// API Key Authentication
|
||||
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
|
||||
if apiKey, ok := auth["ApiKeyAuth"]; ok {
|
||||
var key string
|
||||
if apiKey.Prefix != "" {
|
||||
key = apiKey.Prefix + " " + apiKey.Key
|
||||
} else {
|
||||
key = apiKey.Key
|
||||
}
|
||||
localVarHeaderParams["X-API-KEY"] = key
|
||||
}
|
||||
}
|
||||
}
|
||||
if r.ctx != nil {
|
||||
// API Key Authentication
|
||||
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
|
||||
if apiKey, ok := auth["BearerAuth"]; ok {
|
||||
var key string
|
||||
if apiKey.Prefix != "" {
|
||||
key = apiKey.Prefix + " " + apiKey.Key
|
||||
} else {
|
||||
key = apiKey.Key
|
||||
}
|
||||
localVarHeaderParams["Authorization"] = key
|
||||
}
|
||||
}
|
||||
}
|
||||
req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
|
||||
if err != nil {
|
||||
return localVarReturnValue, nil, err
|
||||
}
|
||||
|
||||
localVarHTTPResponse, err := a.client.callAPI(req)
|
||||
if err != nil || localVarHTTPResponse == nil {
|
||||
return localVarReturnValue, localVarHTTPResponse, err
|
||||
}
|
||||
|
||||
localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
|
||||
localVarHTTPResponse.Body.Close()
|
||||
localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
|
||||
if err != nil {
|
||||
return localVarReturnValue, localVarHTTPResponse, err
|
||||
}
|
||||
|
||||
if localVarHTTPResponse.StatusCode >= 300 {
|
||||
newErr := &GenericOpenAPIError{
|
||||
body: localVarBody,
|
||||
error: localVarHTTPResponse.Status,
|
||||
}
|
||||
return localVarReturnValue, localVarHTTPResponse, newErr
|
||||
}
|
||||
|
||||
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
|
||||
if err != nil {
|
||||
newErr := &GenericOpenAPIError{
|
||||
body: localVarBody,
|
||||
error: err.Error(),
|
||||
}
|
||||
return localVarReturnValue, localVarHTTPResponse, newErr
|
||||
}
|
||||
|
||||
return localVarReturnValue, localVarHTTPResponse, nil
|
||||
}
|
||||
@@ -1,393 +0,0 @@
|
||||
/*
|
||||
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 (
|
||||
"bytes"
|
||||
"context"
|
||||
"io"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"strings"
|
||||
)
|
||||
|
||||
// MeAPIKeysAPIService MeAPIKeysAPI service
|
||||
type MeAPIKeysAPIService service
|
||||
|
||||
type ApiCreateUserAPIKeyRequest struct {
|
||||
ctx context.Context
|
||||
ApiService *MeAPIKeysAPIService
|
||||
body *HandlersCreateUserKeyRequest
|
||||
}
|
||||
|
||||
// Key options
|
||||
func (r ApiCreateUserAPIKeyRequest) Body(body HandlersCreateUserKeyRequest) ApiCreateUserAPIKeyRequest {
|
||||
r.body = &body
|
||||
return r
|
||||
}
|
||||
|
||||
func (r ApiCreateUserAPIKeyRequest) Execute() (*HandlersUserAPIKeyOut, *http.Response, error) {
|
||||
return r.ApiService.CreateUserAPIKeyExecute(r)
|
||||
}
|
||||
|
||||
/*
|
||||
CreateUserAPIKey Create a new user API key
|
||||
|
||||
Returns the plaintext key once. Store it securely on the client side.
|
||||
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiCreateUserAPIKeyRequest
|
||||
*/
|
||||
func (a *MeAPIKeysAPIService) CreateUserAPIKey(ctx context.Context) ApiCreateUserAPIKeyRequest {
|
||||
return ApiCreateUserAPIKeyRequest{
|
||||
ApiService: a,
|
||||
ctx: ctx,
|
||||
}
|
||||
}
|
||||
|
||||
// Execute executes the request
|
||||
//
|
||||
// @return HandlersUserAPIKeyOut
|
||||
func (a *MeAPIKeysAPIService) CreateUserAPIKeyExecute(r ApiCreateUserAPIKeyRequest) (*HandlersUserAPIKeyOut, *http.Response, error) {
|
||||
var (
|
||||
localVarHTTPMethod = http.MethodPost
|
||||
localVarPostBody interface{}
|
||||
formFiles []formFile
|
||||
localVarReturnValue *HandlersUserAPIKeyOut
|
||||
)
|
||||
|
||||
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MeAPIKeysAPIService.CreateUserAPIKey")
|
||||
if err != nil {
|
||||
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
|
||||
}
|
||||
|
||||
localVarPath := localBasePath + "/me/api-keys"
|
||||
|
||||
localVarHeaderParams := make(map[string]string)
|
||||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
if r.body == nil {
|
||||
return localVarReturnValue, nil, reportError("body is required and must be specified")
|
||||
}
|
||||
|
||||
// to determine the Content-Type header
|
||||
localVarHTTPContentTypes := []string{"application/json"}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
|
||||
if localVarHTTPContentType != "" {
|
||||
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
|
||||
}
|
||||
|
||||
// to determine the Accept header
|
||||
localVarHTTPHeaderAccepts := []string{"application/json"}
|
||||
|
||||
// set Accept header
|
||||
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
|
||||
if localVarHTTPHeaderAccept != "" {
|
||||
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
|
||||
}
|
||||
// body params
|
||||
localVarPostBody = r.body
|
||||
if r.ctx != nil {
|
||||
// API Key Authentication
|
||||
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
|
||||
if apiKey, ok := auth["ApiKeyAuth"]; ok {
|
||||
var key string
|
||||
if apiKey.Prefix != "" {
|
||||
key = apiKey.Prefix + " " + apiKey.Key
|
||||
} else {
|
||||
key = apiKey.Key
|
||||
}
|
||||
localVarHeaderParams["X-API-KEY"] = key
|
||||
}
|
||||
}
|
||||
}
|
||||
if r.ctx != nil {
|
||||
// API Key Authentication
|
||||
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
|
||||
if apiKey, ok := auth["BearerAuth"]; ok {
|
||||
var key string
|
||||
if apiKey.Prefix != "" {
|
||||
key = apiKey.Prefix + " " + apiKey.Key
|
||||
} else {
|
||||
key = apiKey.Key
|
||||
}
|
||||
localVarHeaderParams["Authorization"] = key
|
||||
}
|
||||
}
|
||||
}
|
||||
req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
|
||||
if err != nil {
|
||||
return localVarReturnValue, nil, err
|
||||
}
|
||||
|
||||
localVarHTTPResponse, err := a.client.callAPI(req)
|
||||
if err != nil || localVarHTTPResponse == nil {
|
||||
return localVarReturnValue, localVarHTTPResponse, err
|
||||
}
|
||||
|
||||
localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
|
||||
localVarHTTPResponse.Body.Close()
|
||||
localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
|
||||
if err != nil {
|
||||
return localVarReturnValue, localVarHTTPResponse, err
|
||||
}
|
||||
|
||||
if localVarHTTPResponse.StatusCode >= 300 {
|
||||
newErr := &GenericOpenAPIError{
|
||||
body: localVarBody,
|
||||
error: localVarHTTPResponse.Status,
|
||||
}
|
||||
return localVarReturnValue, localVarHTTPResponse, newErr
|
||||
}
|
||||
|
||||
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
|
||||
if err != nil {
|
||||
newErr := &GenericOpenAPIError{
|
||||
body: localVarBody,
|
||||
error: err.Error(),
|
||||
}
|
||||
return localVarReturnValue, localVarHTTPResponse, newErr
|
||||
}
|
||||
|
||||
return localVarReturnValue, localVarHTTPResponse, nil
|
||||
}
|
||||
|
||||
type ApiDeleteUserAPIKeyRequest struct {
|
||||
ctx context.Context
|
||||
ApiService *MeAPIKeysAPIService
|
||||
id string
|
||||
}
|
||||
|
||||
func (r ApiDeleteUserAPIKeyRequest) Execute() (*http.Response, error) {
|
||||
return r.ApiService.DeleteUserAPIKeyExecute(r)
|
||||
}
|
||||
|
||||
/*
|
||||
DeleteUserAPIKey Delete a user API key
|
||||
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@param id Key ID (UUID)
|
||||
@return ApiDeleteUserAPIKeyRequest
|
||||
*/
|
||||
func (a *MeAPIKeysAPIService) DeleteUserAPIKey(ctx context.Context, id string) ApiDeleteUserAPIKeyRequest {
|
||||
return ApiDeleteUserAPIKeyRequest{
|
||||
ApiService: a,
|
||||
ctx: ctx,
|
||||
id: id,
|
||||
}
|
||||
}
|
||||
|
||||
// Execute executes the request
|
||||
func (a *MeAPIKeysAPIService) DeleteUserAPIKeyExecute(r ApiDeleteUserAPIKeyRequest) (*http.Response, error) {
|
||||
var (
|
||||
localVarHTTPMethod = http.MethodDelete
|
||||
localVarPostBody interface{}
|
||||
formFiles []formFile
|
||||
)
|
||||
|
||||
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MeAPIKeysAPIService.DeleteUserAPIKey")
|
||||
if err != nil {
|
||||
return nil, &GenericOpenAPIError{error: err.Error()}
|
||||
}
|
||||
|
||||
localVarPath := localBasePath + "/me/api-keys/{id}"
|
||||
localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1)
|
||||
|
||||
localVarHeaderParams := make(map[string]string)
|
||||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
|
||||
// to determine the Content-Type header
|
||||
localVarHTTPContentTypes := []string{}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
|
||||
if localVarHTTPContentType != "" {
|
||||
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
|
||||
}
|
||||
|
||||
// to determine the Accept header
|
||||
localVarHTTPHeaderAccepts := []string{}
|
||||
|
||||
// set Accept header
|
||||
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
|
||||
if localVarHTTPHeaderAccept != "" {
|
||||
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
|
||||
}
|
||||
if r.ctx != nil {
|
||||
// API Key Authentication
|
||||
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
|
||||
if apiKey, ok := auth["BearerAuth"]; ok {
|
||||
var key string
|
||||
if apiKey.Prefix != "" {
|
||||
key = apiKey.Prefix + " " + apiKey.Key
|
||||
} else {
|
||||
key = apiKey.Key
|
||||
}
|
||||
localVarHeaderParams["Authorization"] = key
|
||||
}
|
||||
}
|
||||
}
|
||||
req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
localVarHTTPResponse, err := a.client.callAPI(req)
|
||||
if err != nil || localVarHTTPResponse == nil {
|
||||
return localVarHTTPResponse, err
|
||||
}
|
||||
|
||||
localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
|
||||
localVarHTTPResponse.Body.Close()
|
||||
localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
|
||||
if err != nil {
|
||||
return localVarHTTPResponse, err
|
||||
}
|
||||
|
||||
if localVarHTTPResponse.StatusCode >= 300 {
|
||||
newErr := &GenericOpenAPIError{
|
||||
body: localVarBody,
|
||||
error: localVarHTTPResponse.Status,
|
||||
}
|
||||
return localVarHTTPResponse, newErr
|
||||
}
|
||||
|
||||
return localVarHTTPResponse, nil
|
||||
}
|
||||
|
||||
type ApiListUserAPIKeysRequest struct {
|
||||
ctx context.Context
|
||||
ApiService *MeAPIKeysAPIService
|
||||
}
|
||||
|
||||
func (r ApiListUserAPIKeysRequest) Execute() ([]HandlersUserAPIKeyOut, *http.Response, error) {
|
||||
return r.ApiService.ListUserAPIKeysExecute(r)
|
||||
}
|
||||
|
||||
/*
|
||||
ListUserAPIKeys List my API keys
|
||||
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiListUserAPIKeysRequest
|
||||
*/
|
||||
func (a *MeAPIKeysAPIService) ListUserAPIKeys(ctx context.Context) ApiListUserAPIKeysRequest {
|
||||
return ApiListUserAPIKeysRequest{
|
||||
ApiService: a,
|
||||
ctx: ctx,
|
||||
}
|
||||
}
|
||||
|
||||
// Execute executes the request
|
||||
//
|
||||
// @return []HandlersUserAPIKeyOut
|
||||
func (a *MeAPIKeysAPIService) ListUserAPIKeysExecute(r ApiListUserAPIKeysRequest) ([]HandlersUserAPIKeyOut, *http.Response, error) {
|
||||
var (
|
||||
localVarHTTPMethod = http.MethodGet
|
||||
localVarPostBody interface{}
|
||||
formFiles []formFile
|
||||
localVarReturnValue []HandlersUserAPIKeyOut
|
||||
)
|
||||
|
||||
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MeAPIKeysAPIService.ListUserAPIKeys")
|
||||
if err != nil {
|
||||
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
|
||||
}
|
||||
|
||||
localVarPath := localBasePath + "/me/api-keys"
|
||||
|
||||
localVarHeaderParams := make(map[string]string)
|
||||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
|
||||
// to determine the Content-Type header
|
||||
localVarHTTPContentTypes := []string{}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
|
||||
if localVarHTTPContentType != "" {
|
||||
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
|
||||
}
|
||||
|
||||
// to determine the Accept header
|
||||
localVarHTTPHeaderAccepts := []string{"application/json"}
|
||||
|
||||
// set Accept header
|
||||
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
|
||||
if localVarHTTPHeaderAccept != "" {
|
||||
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
|
||||
}
|
||||
if r.ctx != nil {
|
||||
// API Key Authentication
|
||||
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
|
||||
if apiKey, ok := auth["ApiKeyAuth"]; ok {
|
||||
var key string
|
||||
if apiKey.Prefix != "" {
|
||||
key = apiKey.Prefix + " " + apiKey.Key
|
||||
} else {
|
||||
key = apiKey.Key
|
||||
}
|
||||
localVarHeaderParams["X-API-KEY"] = key
|
||||
}
|
||||
}
|
||||
}
|
||||
if r.ctx != nil {
|
||||
// API Key Authentication
|
||||
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
|
||||
if apiKey, ok := auth["BearerAuth"]; ok {
|
||||
var key string
|
||||
if apiKey.Prefix != "" {
|
||||
key = apiKey.Prefix + " " + apiKey.Key
|
||||
} else {
|
||||
key = apiKey.Key
|
||||
}
|
||||
localVarHeaderParams["Authorization"] = key
|
||||
}
|
||||
}
|
||||
}
|
||||
req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
|
||||
if err != nil {
|
||||
return localVarReturnValue, nil, err
|
||||
}
|
||||
|
||||
localVarHTTPResponse, err := a.client.callAPI(req)
|
||||
if err != nil || localVarHTTPResponse == nil {
|
||||
return localVarReturnValue, localVarHTTPResponse, err
|
||||
}
|
||||
|
||||
localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
|
||||
localVarHTTPResponse.Body.Close()
|
||||
localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
|
||||
if err != nil {
|
||||
return localVarReturnValue, localVarHTTPResponse, err
|
||||
}
|
||||
|
||||
if localVarHTTPResponse.StatusCode >= 300 {
|
||||
newErr := &GenericOpenAPIError{
|
||||
body: localVarBody,
|
||||
error: localVarHTTPResponse.Status,
|
||||
}
|
||||
return localVarReturnValue, localVarHTTPResponse, newErr
|
||||
}
|
||||
|
||||
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
|
||||
if err != nil {
|
||||
newErr := &GenericOpenAPIError{
|
||||
body: localVarBody,
|
||||
error: err.Error(),
|
||||
}
|
||||
return localVarReturnValue, localVarHTTPResponse, newErr
|
||||
}
|
||||
|
||||
return localVarReturnValue, localVarHTTPResponse, nil
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
1476
sdk/go/api_orgs.go
1476
sdk/go/api_orgs.go
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
1055
sdk/go/api_ssh.go
1055
sdk/go/api_ssh.go
File diff suppressed because it is too large
Load Diff
1073
sdk/go/api_taints.go
1073
sdk/go/api_taints.go
File diff suppressed because it is too large
Load Diff
688
sdk/go/client.go
688
sdk/go/client.go
@@ -1,688 +0,0 @@
|
||||
/*
|
||||
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 (
|
||||
"bytes"
|
||||
"context"
|
||||
"encoding/json"
|
||||
"encoding/xml"
|
||||
"errors"
|
||||
"fmt"
|
||||
"io"
|
||||
"log"
|
||||
"mime/multipart"
|
||||
"net/http"
|
||||
"net/http/httputil"
|
||||
"net/url"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"reflect"
|
||||
"regexp"
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
"unicode/utf8"
|
||||
)
|
||||
|
||||
var (
|
||||
JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`)
|
||||
XmlCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`)
|
||||
queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`)
|
||||
queryDescape = strings.NewReplacer("%5B", "[", "%5D", "]")
|
||||
)
|
||||
|
||||
// APIClient manages communication with the AutoGlue API API v1.0
|
||||
// In most cases there should be only one, shared, APIClient.
|
||||
type APIClient struct {
|
||||
cfg *Configuration
|
||||
common service // Reuse a single struct instead of allocating one for each service on the heap.
|
||||
|
||||
// API Services
|
||||
|
||||
AnnotationsAPI *AnnotationsAPIService
|
||||
|
||||
ArcherAdminAPI *ArcherAdminAPIService
|
||||
|
||||
AuthAPI *AuthAPIService
|
||||
|
||||
HealthAPI *HealthAPIService
|
||||
|
||||
LabelsAPI *LabelsAPIService
|
||||
|
||||
MeAPI *MeAPIService
|
||||
|
||||
MeAPIKeysAPI *MeAPIKeysAPIService
|
||||
|
||||
NodePoolsAPI *NodePoolsAPIService
|
||||
|
||||
OrgsAPI *OrgsAPIService
|
||||
|
||||
ServersAPI *ServersAPIService
|
||||
|
||||
SshAPI *SshAPIService
|
||||
|
||||
TaintsAPI *TaintsAPIService
|
||||
}
|
||||
|
||||
type service struct {
|
||||
client *APIClient
|
||||
}
|
||||
|
||||
// NewAPIClient creates a new API client. Requires a userAgent string describing your application.
|
||||
// optionally a custom http.Client to allow for advanced features such as caching.
|
||||
func NewAPIClient(cfg *Configuration) *APIClient {
|
||||
if cfg.HTTPClient == nil {
|
||||
cfg.HTTPClient = http.DefaultClient
|
||||
}
|
||||
|
||||
c := &APIClient{}
|
||||
c.cfg = cfg
|
||||
c.common.client = c
|
||||
|
||||
// API Services
|
||||
c.AnnotationsAPI = (*AnnotationsAPIService)(&c.common)
|
||||
c.ArcherAdminAPI = (*ArcherAdminAPIService)(&c.common)
|
||||
c.AuthAPI = (*AuthAPIService)(&c.common)
|
||||
c.HealthAPI = (*HealthAPIService)(&c.common)
|
||||
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)
|
||||
c.TaintsAPI = (*TaintsAPIService)(&c.common)
|
||||
|
||||
return c
|
||||
}
|
||||
|
||||
func atoi(in string) (int, error) {
|
||||
return strconv.Atoi(in)
|
||||
}
|
||||
|
||||
// selectHeaderContentType select a content type from the available list.
|
||||
func selectHeaderContentType(contentTypes []string) string {
|
||||
if len(contentTypes) == 0 {
|
||||
return ""
|
||||
}
|
||||
if contains(contentTypes, "application/json") {
|
||||
return "application/json"
|
||||
}
|
||||
return contentTypes[0] // use the first content type specified in 'consumes'
|
||||
}
|
||||
|
||||
// selectHeaderAccept join all accept types and return
|
||||
func selectHeaderAccept(accepts []string) string {
|
||||
if len(accepts) == 0 {
|
||||
return ""
|
||||
}
|
||||
|
||||
if contains(accepts, "application/json") {
|
||||
return "application/json"
|
||||
}
|
||||
|
||||
return strings.Join(accepts, ",")
|
||||
}
|
||||
|
||||
// contains is a case insensitive match, finding needle in a haystack
|
||||
func contains(haystack []string, needle string) bool {
|
||||
for _, a := range haystack {
|
||||
if strings.EqualFold(a, needle) {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
// Verify optional parameters are of the correct type.
|
||||
func typeCheckParameter(obj interface{}, expected string, name string) error {
|
||||
// Make sure there is an object.
|
||||
if obj == nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
// Check the type is as expected.
|
||||
if reflect.TypeOf(obj).String() != expected {
|
||||
return fmt.Errorf("expected %s to be of type %s but received %s", name, expected, reflect.TypeOf(obj).String())
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func parameterValueToString(obj interface{}, key string) string {
|
||||
if reflect.TypeOf(obj).Kind() != reflect.Ptr {
|
||||
if actualObj, ok := obj.(interface{ GetActualInstanceValue() interface{} }); ok {
|
||||
return fmt.Sprintf("%v", actualObj.GetActualInstanceValue())
|
||||
}
|
||||
|
||||
return fmt.Sprintf("%v", obj)
|
||||
}
|
||||
var param, ok = obj.(MappedNullable)
|
||||
if !ok {
|
||||
return ""
|
||||
}
|
||||
dataMap, err := param.ToMap()
|
||||
if err != nil {
|
||||
return ""
|
||||
}
|
||||
return fmt.Sprintf("%v", dataMap[key])
|
||||
}
|
||||
|
||||
// parameterAddToHeaderOrQuery adds the provided object to the request header or url query
|
||||
// supporting deep object syntax
|
||||
func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix string, obj interface{}, style string, collectionType string) {
|
||||
var v = reflect.ValueOf(obj)
|
||||
var value = ""
|
||||
if v == reflect.ValueOf(nil) {
|
||||
value = "null"
|
||||
} else {
|
||||
switch v.Kind() {
|
||||
case reflect.Invalid:
|
||||
value = "invalid"
|
||||
|
||||
case reflect.Struct:
|
||||
if t, ok := obj.(MappedNullable); ok {
|
||||
dataMap, err := t.ToMap()
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, style, collectionType)
|
||||
return
|
||||
}
|
||||
if t, ok := obj.(time.Time); ok {
|
||||
parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339Nano), style, collectionType)
|
||||
return
|
||||
}
|
||||
value = v.Type().String() + " value"
|
||||
case reflect.Slice:
|
||||
var indValue = reflect.ValueOf(obj)
|
||||
if indValue == reflect.ValueOf(nil) {
|
||||
return
|
||||
}
|
||||
var lenIndValue = indValue.Len()
|
||||
for i := 0; i < lenIndValue; i++ {
|
||||
var arrayValue = indValue.Index(i)
|
||||
var keyPrefixForCollectionType = keyPrefix
|
||||
if style == "deepObject" {
|
||||
keyPrefixForCollectionType = keyPrefix + "[" + strconv.Itoa(i) + "]"
|
||||
}
|
||||
parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefixForCollectionType, arrayValue.Interface(), style, collectionType)
|
||||
}
|
||||
return
|
||||
|
||||
case reflect.Map:
|
||||
var indValue = reflect.ValueOf(obj)
|
||||
if indValue == reflect.ValueOf(nil) {
|
||||
return
|
||||
}
|
||||
iter := indValue.MapRange()
|
||||
for iter.Next() {
|
||||
k, v := iter.Key(), iter.Value()
|
||||
parameterAddToHeaderOrQuery(headerOrQueryParams, fmt.Sprintf("%s[%s]", keyPrefix, k.String()), v.Interface(), style, collectionType)
|
||||
}
|
||||
return
|
||||
|
||||
case reflect.Interface:
|
||||
fallthrough
|
||||
case reflect.Ptr:
|
||||
parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, v.Elem().Interface(), style, collectionType)
|
||||
return
|
||||
|
||||
case reflect.Int, reflect.Int8, reflect.Int16,
|
||||
reflect.Int32, reflect.Int64:
|
||||
value = strconv.FormatInt(v.Int(), 10)
|
||||
case reflect.Uint, reflect.Uint8, reflect.Uint16,
|
||||
reflect.Uint32, reflect.Uint64, reflect.Uintptr:
|
||||
value = strconv.FormatUint(v.Uint(), 10)
|
||||
case reflect.Float32, reflect.Float64:
|
||||
value = strconv.FormatFloat(v.Float(), 'g', -1, 32)
|
||||
case reflect.Bool:
|
||||
value = strconv.FormatBool(v.Bool())
|
||||
case reflect.String:
|
||||
value = v.String()
|
||||
default:
|
||||
value = v.Type().String() + " value"
|
||||
}
|
||||
}
|
||||
|
||||
switch valuesMap := headerOrQueryParams.(type) {
|
||||
case url.Values:
|
||||
if collectionType == "csv" && valuesMap.Get(keyPrefix) != "" {
|
||||
valuesMap.Set(keyPrefix, valuesMap.Get(keyPrefix)+","+value)
|
||||
} else {
|
||||
valuesMap.Add(keyPrefix, value)
|
||||
}
|
||||
break
|
||||
case map[string]string:
|
||||
valuesMap[keyPrefix] = value
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
// helper for converting interface{} parameters to json strings
|
||||
func parameterToJson(obj interface{}) (string, error) {
|
||||
jsonBuf, err := json.Marshal(obj)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
return string(jsonBuf), err
|
||||
}
|
||||
|
||||
// callAPI do the request.
|
||||
func (c *APIClient) callAPI(request *http.Request) (*http.Response, error) {
|
||||
if c.cfg.Debug {
|
||||
dump, err := httputil.DumpRequestOut(request, true)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
log.Printf("\n%s\n", string(dump))
|
||||
}
|
||||
|
||||
resp, err := c.cfg.HTTPClient.Do(request)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
|
||||
if c.cfg.Debug {
|
||||
dump, err := httputil.DumpResponse(resp, true)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
log.Printf("\n%s\n", string(dump))
|
||||
}
|
||||
return resp, err
|
||||
}
|
||||
|
||||
// Allow modification of underlying config for alternate implementations and testing
|
||||
// Caution: modifying the configuration while live can cause data races and potentially unwanted behavior
|
||||
func (c *APIClient) GetConfig() *Configuration {
|
||||
return c.cfg
|
||||
}
|
||||
|
||||
type formFile struct {
|
||||
fileBytes []byte
|
||||
fileName string
|
||||
formFileName string
|
||||
}
|
||||
|
||||
// prepareRequest build the request
|
||||
func (c *APIClient) prepareRequest(
|
||||
ctx context.Context,
|
||||
path string, method string,
|
||||
postBody interface{},
|
||||
headerParams map[string]string,
|
||||
queryParams url.Values,
|
||||
formParams url.Values,
|
||||
formFiles []formFile) (localVarRequest *http.Request, err error) {
|
||||
|
||||
var body *bytes.Buffer
|
||||
|
||||
// Detect postBody type and post.
|
||||
if postBody != nil {
|
||||
contentType := headerParams["Content-Type"]
|
||||
if contentType == "" {
|
||||
contentType = detectContentType(postBody)
|
||||
headerParams["Content-Type"] = contentType
|
||||
}
|
||||
|
||||
body, err = setBody(postBody, contentType)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
|
||||
// add form parameters and file if available.
|
||||
if strings.HasPrefix(headerParams["Content-Type"], "multipart/form-data") && len(formParams) > 0 || (len(formFiles) > 0) {
|
||||
if body != nil {
|
||||
return nil, errors.New("Cannot specify postBody and multipart form at the same time.")
|
||||
}
|
||||
body = &bytes.Buffer{}
|
||||
w := multipart.NewWriter(body)
|
||||
|
||||
for k, v := range formParams {
|
||||
for _, iv := range v {
|
||||
if strings.HasPrefix(k, "@") { // file
|
||||
err = addFile(w, k[1:], iv)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
} else { // form value
|
||||
w.WriteField(k, iv)
|
||||
}
|
||||
}
|
||||
}
|
||||
for _, formFile := range formFiles {
|
||||
if len(formFile.fileBytes) > 0 && formFile.fileName != "" {
|
||||
w.Boundary()
|
||||
part, err := w.CreateFormFile(formFile.formFileName, filepath.Base(formFile.fileName))
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
_, err = part.Write(formFile.fileBytes)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Set the Boundary in the Content-Type
|
||||
headerParams["Content-Type"] = w.FormDataContentType()
|
||||
|
||||
// Set Content-Length
|
||||
headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len())
|
||||
w.Close()
|
||||
}
|
||||
|
||||
if strings.HasPrefix(headerParams["Content-Type"], "application/x-www-form-urlencoded") && len(formParams) > 0 {
|
||||
if body != nil {
|
||||
return nil, errors.New("Cannot specify postBody and x-www-form-urlencoded form at the same time.")
|
||||
}
|
||||
body = &bytes.Buffer{}
|
||||
body.WriteString(formParams.Encode())
|
||||
// Set Content-Length
|
||||
headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len())
|
||||
}
|
||||
|
||||
// Setup path and query parameters
|
||||
url, err := url.Parse(path)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
// Override request host, if applicable
|
||||
if c.cfg.Host != "" {
|
||||
url.Host = c.cfg.Host
|
||||
}
|
||||
|
||||
// Override request scheme, if applicable
|
||||
if c.cfg.Scheme != "" {
|
||||
url.Scheme = c.cfg.Scheme
|
||||
}
|
||||
|
||||
// Adding Query Param
|
||||
query := url.Query()
|
||||
for k, v := range queryParams {
|
||||
for _, iv := range v {
|
||||
query.Add(k, iv)
|
||||
}
|
||||
}
|
||||
|
||||
// Encode the parameters.
|
||||
url.RawQuery = queryParamSplit.ReplaceAllStringFunc(query.Encode(), func(s string) string {
|
||||
pieces := strings.Split(s, "=")
|
||||
pieces[0] = queryDescape.Replace(pieces[0])
|
||||
return strings.Join(pieces, "=")
|
||||
})
|
||||
|
||||
// Generate a new request
|
||||
if body != nil {
|
||||
localVarRequest, err = http.NewRequest(method, url.String(), body)
|
||||
} else {
|
||||
localVarRequest, err = http.NewRequest(method, url.String(), nil)
|
||||
}
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
// add header parameters, if any
|
||||
if len(headerParams) > 0 {
|
||||
headers := http.Header{}
|
||||
for h, v := range headerParams {
|
||||
headers[h] = []string{v}
|
||||
}
|
||||
localVarRequest.Header = headers
|
||||
}
|
||||
|
||||
// Add the user agent to the request.
|
||||
localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent)
|
||||
|
||||
if ctx != nil {
|
||||
// add context to the request
|
||||
localVarRequest = localVarRequest.WithContext(ctx)
|
||||
|
||||
// Walk through any authentication.
|
||||
|
||||
}
|
||||
|
||||
for header, value := range c.cfg.DefaultHeader {
|
||||
localVarRequest.Header.Add(header, value)
|
||||
}
|
||||
return localVarRequest, nil
|
||||
}
|
||||
|
||||
func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) {
|
||||
if len(b) == 0 {
|
||||
return nil
|
||||
}
|
||||
if s, ok := v.(*string); ok {
|
||||
*s = string(b)
|
||||
return nil
|
||||
}
|
||||
if f, ok := v.(*os.File); ok {
|
||||
f, err = os.CreateTemp("", "HttpClientFile")
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, err = f.Write(b)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, err = f.Seek(0, io.SeekStart)
|
||||
return
|
||||
}
|
||||
if f, ok := v.(**os.File); ok {
|
||||
*f, err = os.CreateTemp("", "HttpClientFile")
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, err = (*f).Write(b)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, err = (*f).Seek(0, io.SeekStart)
|
||||
return
|
||||
}
|
||||
if XmlCheck.MatchString(contentType) {
|
||||
if err = xml.Unmarshal(b, v); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
if JsonCheck.MatchString(contentType) {
|
||||
if actualObj, ok := v.(interface{ GetActualInstance() interface{} }); ok { // oneOf, anyOf schemas
|
||||
if unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }); ok { // make sure it has UnmarshalJSON defined
|
||||
if err = unmarshalObj.UnmarshalJSON(b); err != nil {
|
||||
return err
|
||||
}
|
||||
} else {
|
||||
return errors.New("Unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined")
|
||||
}
|
||||
} else if err = json.Unmarshal(b, v); err != nil { // simple model
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return errors.New("undefined response type")
|
||||
}
|
||||
|
||||
// Add a file to the multipart request
|
||||
func addFile(w *multipart.Writer, fieldName, path string) error {
|
||||
file, err := os.Open(filepath.Clean(path))
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
err = file.Close()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
part, err := w.CreateFormFile(fieldName, filepath.Base(path))
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
_, err = io.Copy(part, file)
|
||||
|
||||
return err
|
||||
}
|
||||
|
||||
// Set request body from an interface{}
|
||||
func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) {
|
||||
if bodyBuf == nil {
|
||||
bodyBuf = &bytes.Buffer{}
|
||||
}
|
||||
|
||||
if reader, ok := body.(io.Reader); ok {
|
||||
_, err = bodyBuf.ReadFrom(reader)
|
||||
} else if fp, ok := body.(*os.File); ok {
|
||||
_, err = bodyBuf.ReadFrom(fp)
|
||||
} else if b, ok := body.([]byte); ok {
|
||||
_, err = bodyBuf.Write(b)
|
||||
} else if s, ok := body.(string); ok {
|
||||
_, err = bodyBuf.WriteString(s)
|
||||
} else if s, ok := body.(*string); ok {
|
||||
_, err = bodyBuf.WriteString(*s)
|
||||
} else if JsonCheck.MatchString(contentType) {
|
||||
err = json.NewEncoder(bodyBuf).Encode(body)
|
||||
} else if XmlCheck.MatchString(contentType) {
|
||||
var bs []byte
|
||||
bs, err = xml.Marshal(body)
|
||||
if err == nil {
|
||||
bodyBuf.Write(bs)
|
||||
}
|
||||
}
|
||||
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if bodyBuf.Len() == 0 {
|
||||
err = fmt.Errorf("invalid body type %s\n", contentType)
|
||||
return nil, err
|
||||
}
|
||||
return bodyBuf, nil
|
||||
}
|
||||
|
||||
// detectContentType method is used to figure out `Request.Body` content type for request header
|
||||
func detectContentType(body interface{}) string {
|
||||
contentType := "text/plain; charset=utf-8"
|
||||
kind := reflect.TypeOf(body).Kind()
|
||||
|
||||
switch kind {
|
||||
case reflect.Struct, reflect.Map, reflect.Ptr:
|
||||
contentType = "application/json; charset=utf-8"
|
||||
case reflect.String:
|
||||
contentType = "text/plain; charset=utf-8"
|
||||
default:
|
||||
if b, ok := body.([]byte); ok {
|
||||
contentType = http.DetectContentType(b)
|
||||
} else if kind == reflect.Slice {
|
||||
contentType = "application/json; charset=utf-8"
|
||||
}
|
||||
}
|
||||
|
||||
return contentType
|
||||
}
|
||||
|
||||
// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go
|
||||
type cacheControl map[string]string
|
||||
|
||||
func parseCacheControl(headers http.Header) cacheControl {
|
||||
cc := cacheControl{}
|
||||
ccHeader := headers.Get("Cache-Control")
|
||||
for _, part := range strings.Split(ccHeader, ",") {
|
||||
part = strings.Trim(part, " ")
|
||||
if part == "" {
|
||||
continue
|
||||
}
|
||||
if strings.ContainsRune(part, '=') {
|
||||
keyval := strings.Split(part, "=")
|
||||
cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",")
|
||||
} else {
|
||||
cc[part] = ""
|
||||
}
|
||||
}
|
||||
return cc
|
||||
}
|
||||
|
||||
// CacheExpires helper function to determine remaining time before repeating a request.
|
||||
func CacheExpires(r *http.Response) time.Time {
|
||||
// Figure out when the cache expires.
|
||||
var expires time.Time
|
||||
now, err := time.Parse(time.RFC1123, r.Header.Get("date"))
|
||||
if err != nil {
|
||||
return time.Now()
|
||||
}
|
||||
respCacheControl := parseCacheControl(r.Header)
|
||||
|
||||
if maxAge, ok := respCacheControl["max-age"]; ok {
|
||||
lifetime, err := time.ParseDuration(maxAge + "s")
|
||||
if err != nil {
|
||||
expires = now
|
||||
} else {
|
||||
expires = now.Add(lifetime)
|
||||
}
|
||||
} else {
|
||||
expiresHeader := r.Header.Get("Expires")
|
||||
if expiresHeader != "" {
|
||||
expires, err = time.Parse(time.RFC1123, expiresHeader)
|
||||
if err != nil {
|
||||
expires = now
|
||||
}
|
||||
}
|
||||
}
|
||||
return expires
|
||||
}
|
||||
|
||||
func strlen(s string) int {
|
||||
return utf8.RuneCountInString(s)
|
||||
}
|
||||
|
||||
// GenericOpenAPIError Provides access to the body, error and model on returned errors.
|
||||
type GenericOpenAPIError struct {
|
||||
body []byte
|
||||
error string
|
||||
model interface{}
|
||||
}
|
||||
|
||||
// Error returns non-empty string if there was an error.
|
||||
func (e GenericOpenAPIError) Error() string {
|
||||
return e.error
|
||||
}
|
||||
|
||||
// Body returns the raw bytes of the response
|
||||
func (e GenericOpenAPIError) Body() []byte {
|
||||
return e.body
|
||||
}
|
||||
|
||||
// Model returns the unpacked model of the error
|
||||
func (e GenericOpenAPIError) Model() interface{} {
|
||||
return e.model
|
||||
}
|
||||
|
||||
// format error message using title and detail when model implements rfc7807
|
||||
func formatErrorMessage(status string, v interface{}) string {
|
||||
str := ""
|
||||
metaValue := reflect.ValueOf(v).Elem()
|
||||
|
||||
if metaValue.Kind() == reflect.Struct {
|
||||
field := metaValue.FieldByName("Title")
|
||||
if field != (reflect.Value{}) {
|
||||
str = fmt.Sprintf("%s", field.Interface())
|
||||
}
|
||||
|
||||
field = metaValue.FieldByName("Detail")
|
||||
if field != (reflect.Value{}) {
|
||||
str = fmt.Sprintf("%s (%s)", str, field.Interface())
|
||||
}
|
||||
}
|
||||
|
||||
return strings.TrimSpace(fmt.Sprintf("%s %s", status, str))
|
||||
}
|
||||
@@ -1,217 +0,0 @@
|
||||
/*
|
||||
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 (
|
||||
"context"
|
||||
"fmt"
|
||||
"net/http"
|
||||
"strings"
|
||||
)
|
||||
|
||||
// contextKeys are used to identify the type of value in the context.
|
||||
// Since these are string, it is possible to get a short description of the
|
||||
// context key for logging and debugging using key.String().
|
||||
|
||||
type contextKey string
|
||||
|
||||
func (c contextKey) String() string {
|
||||
return "auth " + string(c)
|
||||
}
|
||||
|
||||
var (
|
||||
// ContextAPIKeys takes a string apikey as authentication for the request
|
||||
ContextAPIKeys = contextKey("apiKeys")
|
||||
|
||||
// ContextServerIndex uses a server configuration from the index.
|
||||
ContextServerIndex = contextKey("serverIndex")
|
||||
|
||||
// ContextOperationServerIndices uses a server configuration from the index mapping.
|
||||
ContextOperationServerIndices = contextKey("serverOperationIndices")
|
||||
|
||||
// ContextServerVariables overrides a server configuration variables.
|
||||
ContextServerVariables = contextKey("serverVariables")
|
||||
|
||||
// ContextOperationServerVariables overrides a server configuration variables using operation specific values.
|
||||
ContextOperationServerVariables = contextKey("serverOperationVariables")
|
||||
)
|
||||
|
||||
// BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth
|
||||
type BasicAuth struct {
|
||||
UserName string `json:"userName,omitempty"`
|
||||
Password string `json:"password,omitempty"`
|
||||
}
|
||||
|
||||
// APIKey provides API key based authentication to a request passed via context using ContextAPIKey
|
||||
type APIKey struct {
|
||||
Key string
|
||||
Prefix string
|
||||
}
|
||||
|
||||
// ServerVariable stores the information about a server variable
|
||||
type ServerVariable struct {
|
||||
Description string
|
||||
DefaultValue string
|
||||
EnumValues []string
|
||||
}
|
||||
|
||||
// ServerConfiguration stores the information about a server
|
||||
type ServerConfiguration struct {
|
||||
URL string
|
||||
Description string
|
||||
Variables map[string]ServerVariable
|
||||
}
|
||||
|
||||
// ServerConfigurations stores multiple ServerConfiguration items
|
||||
type ServerConfigurations []ServerConfiguration
|
||||
|
||||
// Configuration stores the configuration of the API client
|
||||
type Configuration struct {
|
||||
Host string `json:"host,omitempty"`
|
||||
Scheme string `json:"scheme,omitempty"`
|
||||
DefaultHeader map[string]string `json:"defaultHeader,omitempty"`
|
||||
UserAgent string `json:"userAgent,omitempty"`
|
||||
Debug bool `json:"debug,omitempty"`
|
||||
Servers ServerConfigurations
|
||||
OperationServers map[string]ServerConfigurations
|
||||
HTTPClient *http.Client
|
||||
}
|
||||
|
||||
// NewConfiguration returns a new Configuration object
|
||||
func NewConfiguration() *Configuration {
|
||||
cfg := &Configuration{
|
||||
DefaultHeader: make(map[string]string),
|
||||
UserAgent: "OpenAPI-Generator/1.0.0/go",
|
||||
Debug: false,
|
||||
Servers: ServerConfigurations{
|
||||
{
|
||||
URL: "/api/v1",
|
||||
Description: "No description provided",
|
||||
},
|
||||
},
|
||||
OperationServers: map[string]ServerConfigurations{},
|
||||
}
|
||||
return cfg
|
||||
}
|
||||
|
||||
// AddDefaultHeader adds a new HTTP header to the default header in the request
|
||||
func (c *Configuration) AddDefaultHeader(key string, value string) {
|
||||
c.DefaultHeader[key] = value
|
||||
}
|
||||
|
||||
// URL formats template on a index using given variables
|
||||
func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error) {
|
||||
if index < 0 || len(sc) <= index {
|
||||
return "", fmt.Errorf("index %v out of range %v", index, len(sc)-1)
|
||||
}
|
||||
server := sc[index]
|
||||
url := server.URL
|
||||
|
||||
// go through variables and replace placeholders
|
||||
for name, variable := range server.Variables {
|
||||
if value, ok := variables[name]; ok {
|
||||
found := bool(len(variable.EnumValues) == 0)
|
||||
for _, enumValue := range variable.EnumValues {
|
||||
if value == enumValue {
|
||||
found = true
|
||||
}
|
||||
}
|
||||
if !found {
|
||||
return "", fmt.Errorf("the variable %s in the server URL has invalid value %v. Must be %v", name, value, variable.EnumValues)
|
||||
}
|
||||
url = strings.Replace(url, "{"+name+"}", value, -1)
|
||||
} else {
|
||||
url = strings.Replace(url, "{"+name+"}", variable.DefaultValue, -1)
|
||||
}
|
||||
}
|
||||
return url, nil
|
||||
}
|
||||
|
||||
// ServerURL returns URL based on server settings
|
||||
func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error) {
|
||||
return c.Servers.URL(index, variables)
|
||||
}
|
||||
|
||||
func getServerIndex(ctx context.Context) (int, error) {
|
||||
si := ctx.Value(ContextServerIndex)
|
||||
if si != nil {
|
||||
if index, ok := si.(int); ok {
|
||||
return index, nil
|
||||
}
|
||||
return 0, reportError("Invalid type %T should be int", si)
|
||||
}
|
||||
return 0, nil
|
||||
}
|
||||
|
||||
func getServerOperationIndex(ctx context.Context, endpoint string) (int, error) {
|
||||
osi := ctx.Value(ContextOperationServerIndices)
|
||||
if osi != nil {
|
||||
if operationIndices, ok := osi.(map[string]int); !ok {
|
||||
return 0, reportError("Invalid type %T should be map[string]int", osi)
|
||||
} else {
|
||||
index, ok := operationIndices[endpoint]
|
||||
if ok {
|
||||
return index, nil
|
||||
}
|
||||
}
|
||||
}
|
||||
return getServerIndex(ctx)
|
||||
}
|
||||
|
||||
func getServerVariables(ctx context.Context) (map[string]string, error) {
|
||||
sv := ctx.Value(ContextServerVariables)
|
||||
if sv != nil {
|
||||
if variables, ok := sv.(map[string]string); ok {
|
||||
return variables, nil
|
||||
}
|
||||
return nil, reportError("ctx value of ContextServerVariables has invalid type %T should be map[string]string", sv)
|
||||
}
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func getServerOperationVariables(ctx context.Context, endpoint string) (map[string]string, error) {
|
||||
osv := ctx.Value(ContextOperationServerVariables)
|
||||
if osv != nil {
|
||||
if operationVariables, ok := osv.(map[string]map[string]string); !ok {
|
||||
return nil, reportError("ctx value of ContextOperationServerVariables has invalid type %T should be map[string]map[string]string", osv)
|
||||
} else {
|
||||
variables, ok := operationVariables[endpoint]
|
||||
if ok {
|
||||
return variables, nil
|
||||
}
|
||||
}
|
||||
}
|
||||
return getServerVariables(ctx)
|
||||
}
|
||||
|
||||
// ServerURLWithContext returns a new server URL given an endpoint
|
||||
func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error) {
|
||||
sc, ok := c.OperationServers[endpoint]
|
||||
if !ok {
|
||||
sc = c.Servers
|
||||
}
|
||||
|
||||
if ctx == nil {
|
||||
return sc.URL(0, nil)
|
||||
}
|
||||
|
||||
index, err := getServerOperationIndex(ctx, endpoint)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
||||
variables, err := getServerOperationVariables(ctx, endpoint)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
||||
return sc.URL(index, variables)
|
||||
}
|
||||
@@ -1,371 +0,0 @@
|
||||
# \AnnotationsAPI
|
||||
|
||||
All URIs are relative to */api/v1*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
[**CreateAnnotation**](AnnotationsAPI.md#CreateAnnotation) | **Post** /annotations | Create annotation (org scoped)
|
||||
[**DeleteAnnotation**](AnnotationsAPI.md#DeleteAnnotation) | **Delete** /annotations/{id} | Delete annotation (org scoped)
|
||||
[**GetAnnotation**](AnnotationsAPI.md#GetAnnotation) | **Get** /annotations/{id} | Get annotation by ID (org scoped)
|
||||
[**ListAnnotations**](AnnotationsAPI.md#ListAnnotations) | **Get** /annotations | List annotations (org scoped)
|
||||
[**UpdateAnnotation**](AnnotationsAPI.md#UpdateAnnotation) | **Patch** /annotations/{id} | Update annotation (org scoped)
|
||||
|
||||
|
||||
|
||||
## CreateAnnotation
|
||||
|
||||
> DtoAnnotationResponse CreateAnnotation(ctx).Body(body).XOrgID(xOrgID).Execute()
|
||||
|
||||
Create annotation (org scoped)
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
openapiclient "github.com/glueops/autoglue-sdk-go"
|
||||
)
|
||||
|
||||
func main() {
|
||||
body := *openapiclient.NewDtoCreateAnnotationRequest() // DtoCreateAnnotationRequest | Annotation payload
|
||||
xOrgID := "xOrgID_example" // string | Organization UUID (optional)
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
resp, r, err := apiClient.AnnotationsAPI.CreateAnnotation(context.Background()).Body(body).XOrgID(xOrgID).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `AnnotationsAPI.CreateAnnotation``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
// response from `CreateAnnotation`: DtoAnnotationResponse
|
||||
fmt.Fprintf(os.Stdout, "Response from `AnnotationsAPI.CreateAnnotation`: %v\n", resp)
|
||||
}
|
||||
```
|
||||
|
||||
### Path Parameters
|
||||
|
||||
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiCreateAnnotationRequest struct via the builder pattern
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**body** | [**DtoCreateAnnotationRequest**](DtoCreateAnnotationRequest.md) | Annotation payload |
|
||||
**xOrgID** | **string** | Organization UUID |
|
||||
|
||||
### Return type
|
||||
|
||||
[**DtoAnnotationResponse**](DtoAnnotationResponse.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
|
||||
## DeleteAnnotation
|
||||
|
||||
> string DeleteAnnotation(ctx, id).XOrgID(xOrgID).Execute()
|
||||
|
||||
Delete annotation (org scoped)
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
openapiclient "github.com/glueops/autoglue-sdk-go"
|
||||
)
|
||||
|
||||
func main() {
|
||||
id := "id_example" // string | Annotation ID (UUID)
|
||||
xOrgID := "xOrgID_example" // string | Organization UUID (optional)
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
resp, r, err := apiClient.AnnotationsAPI.DeleteAnnotation(context.Background(), id).XOrgID(xOrgID).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `AnnotationsAPI.DeleteAnnotation``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
// response from `DeleteAnnotation`: string
|
||||
fmt.Fprintf(os.Stdout, "Response from `AnnotationsAPI.DeleteAnnotation`: %v\n", resp)
|
||||
}
|
||||
```
|
||||
|
||||
### Path Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
|
||||
**id** | **string** | Annotation ID (UUID) |
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiDeleteAnnotationRequest struct via the builder pattern
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
|
||||
**xOrgID** | **string** | Organization UUID |
|
||||
|
||||
### Return type
|
||||
|
||||
**string**
|
||||
|
||||
### Authorization
|
||||
|
||||
[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
|
||||
## GetAnnotation
|
||||
|
||||
> DtoAnnotationResponse GetAnnotation(ctx, id).XOrgID(xOrgID).Execute()
|
||||
|
||||
Get annotation by ID (org scoped)
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
openapiclient "github.com/glueops/autoglue-sdk-go"
|
||||
)
|
||||
|
||||
func main() {
|
||||
id := "id_example" // string | Annotation ID (UUID)
|
||||
xOrgID := "xOrgID_example" // string | Organization UUID (optional)
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
resp, r, err := apiClient.AnnotationsAPI.GetAnnotation(context.Background(), id).XOrgID(xOrgID).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `AnnotationsAPI.GetAnnotation``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
// response from `GetAnnotation`: DtoAnnotationResponse
|
||||
fmt.Fprintf(os.Stdout, "Response from `AnnotationsAPI.GetAnnotation`: %v\n", resp)
|
||||
}
|
||||
```
|
||||
|
||||
### Path Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
|
||||
**id** | **string** | Annotation ID (UUID) |
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiGetAnnotationRequest struct via the builder pattern
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
|
||||
**xOrgID** | **string** | Organization UUID |
|
||||
|
||||
### Return type
|
||||
|
||||
[**DtoAnnotationResponse**](DtoAnnotationResponse.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
|
||||
## ListAnnotations
|
||||
|
||||
> []DtoAnnotationResponse ListAnnotations(ctx).XOrgID(xOrgID).Key(key).Value(value).Q(q).Execute()
|
||||
|
||||
List annotations (org scoped)
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
openapiclient "github.com/glueops/autoglue-sdk-go"
|
||||
)
|
||||
|
||||
func main() {
|
||||
xOrgID := "xOrgID_example" // string | Organization UUID (optional)
|
||||
key := "key_example" // string | Exact key (optional)
|
||||
value := "value_example" // string | Exact value (optional)
|
||||
q := "q_example" // string | key contains (case-insensitive) (optional)
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
resp, r, err := apiClient.AnnotationsAPI.ListAnnotations(context.Background()).XOrgID(xOrgID).Key(key).Value(value).Q(q).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `AnnotationsAPI.ListAnnotations``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
// response from `ListAnnotations`: []DtoAnnotationResponse
|
||||
fmt.Fprintf(os.Stdout, "Response from `AnnotationsAPI.ListAnnotations`: %v\n", resp)
|
||||
}
|
||||
```
|
||||
|
||||
### Path Parameters
|
||||
|
||||
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiListAnnotationsRequest struct via the builder pattern
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**xOrgID** | **string** | Organization UUID |
|
||||
**key** | **string** | Exact key |
|
||||
**value** | **string** | Exact value |
|
||||
**q** | **string** | key contains (case-insensitive) |
|
||||
|
||||
### Return type
|
||||
|
||||
[**[]DtoAnnotationResponse**](DtoAnnotationResponse.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
|
||||
## UpdateAnnotation
|
||||
|
||||
> DtoAnnotationResponse UpdateAnnotation(ctx, id).Body(body).XOrgID(xOrgID).Execute()
|
||||
|
||||
Update annotation (org scoped)
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
openapiclient "github.com/glueops/autoglue-sdk-go"
|
||||
)
|
||||
|
||||
func main() {
|
||||
id := "id_example" // string | Annotation ID (UUID)
|
||||
body := *openapiclient.NewDtoUpdateAnnotationRequest() // DtoUpdateAnnotationRequest | Fields to update
|
||||
xOrgID := "xOrgID_example" // string | Organization UUID (optional)
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
resp, r, err := apiClient.AnnotationsAPI.UpdateAnnotation(context.Background(), id).Body(body).XOrgID(xOrgID).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `AnnotationsAPI.UpdateAnnotation``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
// response from `UpdateAnnotation`: DtoAnnotationResponse
|
||||
fmt.Fprintf(os.Stdout, "Response from `AnnotationsAPI.UpdateAnnotation`: %v\n", resp)
|
||||
}
|
||||
```
|
||||
|
||||
### Path Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
|
||||
**id** | **string** | Annotation ID (UUID) |
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiUpdateAnnotationRequest struct via the builder pattern
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
|
||||
**body** | [**DtoUpdateAnnotationRequest**](DtoUpdateAnnotationRequest.md) | Fields to update |
|
||||
**xOrgID** | **string** | Organization UUID |
|
||||
|
||||
### Return type
|
||||
|
||||
[**DtoAnnotationResponse**](DtoAnnotationResponse.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
@@ -1,354 +0,0 @@
|
||||
# \ArcherAdminAPI
|
||||
|
||||
All URIs are relative to */api/v1*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
[**AdminCancelArcherJob**](ArcherAdminAPI.md#AdminCancelArcherJob) | **Post** /admin/archer/jobs/{id}/cancel | Cancel an Archer job (admin)
|
||||
[**AdminEnqueueArcherJob**](ArcherAdminAPI.md#AdminEnqueueArcherJob) | **Post** /admin/archer/jobs | Enqueue a new Archer job (admin)
|
||||
[**AdminListArcherJobs**](ArcherAdminAPI.md#AdminListArcherJobs) | **Get** /admin/archer/jobs | List Archer jobs (admin)
|
||||
[**AdminListArcherQueues**](ArcherAdminAPI.md#AdminListArcherQueues) | **Get** /admin/archer/queues | List Archer queues (admin)
|
||||
[**AdminRetryArcherJob**](ArcherAdminAPI.md#AdminRetryArcherJob) | **Post** /admin/archer/jobs/{id}/retry | Retry a failed/canceled Archer job (admin)
|
||||
|
||||
|
||||
|
||||
## AdminCancelArcherJob
|
||||
|
||||
> DtoJob AdminCancelArcherJob(ctx, id).Execute()
|
||||
|
||||
Cancel an Archer job (admin)
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
openapiclient "github.com/glueops/autoglue-sdk-go"
|
||||
)
|
||||
|
||||
func main() {
|
||||
id := "id_example" // string | Job ID
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
resp, r, err := apiClient.ArcherAdminAPI.AdminCancelArcherJob(context.Background(), id).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `ArcherAdminAPI.AdminCancelArcherJob``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
// response from `AdminCancelArcherJob`: DtoJob
|
||||
fmt.Fprintf(os.Stdout, "Response from `ArcherAdminAPI.AdminCancelArcherJob`: %v\n", resp)
|
||||
}
|
||||
```
|
||||
|
||||
### Path Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
|
||||
**id** | **string** | Job ID |
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiAdminCancelArcherJobRequest struct via the builder pattern
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
[**DtoJob**](DtoJob.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[BearerAuth](../README.md#BearerAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
|
||||
## AdminEnqueueArcherJob
|
||||
|
||||
> DtoJob AdminEnqueueArcherJob(ctx).Body(body).Execute()
|
||||
|
||||
Enqueue a new Archer job (admin)
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
openapiclient "github.com/glueops/autoglue-sdk-go"
|
||||
)
|
||||
|
||||
func main() {
|
||||
body := map[string]interface{}{ ... } // map[string]interface{} | Job parameters
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
resp, r, err := apiClient.ArcherAdminAPI.AdminEnqueueArcherJob(context.Background()).Body(body).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `ArcherAdminAPI.AdminEnqueueArcherJob``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
// response from `AdminEnqueueArcherJob`: DtoJob
|
||||
fmt.Fprintf(os.Stdout, "Response from `ArcherAdminAPI.AdminEnqueueArcherJob`: %v\n", resp)
|
||||
}
|
||||
```
|
||||
|
||||
### Path Parameters
|
||||
|
||||
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiAdminEnqueueArcherJobRequest struct via the builder pattern
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**body** | **map[string]interface{}** | Job parameters |
|
||||
|
||||
### Return type
|
||||
|
||||
[**DtoJob**](DtoJob.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[BearerAuth](../README.md#BearerAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
|
||||
## AdminListArcherJobs
|
||||
|
||||
> DtoPageJob AdminListArcherJobs(ctx).Status(status).Queue(queue).Q(q).Page(page).PageSize(pageSize).Execute()
|
||||
|
||||
List Archer jobs (admin)
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
openapiclient "github.com/glueops/autoglue-sdk-go"
|
||||
)
|
||||
|
||||
func main() {
|
||||
status := "status_example" // string | Filter by status (optional)
|
||||
queue := "queue_example" // string | Filter by queue name / worker name (optional)
|
||||
q := "q_example" // string | Free-text search (optional)
|
||||
page := int32(56) // int32 | Page number (optional) (default to 1)
|
||||
pageSize := int32(56) // int32 | Items per page (optional) (default to 25)
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
resp, r, err := apiClient.ArcherAdminAPI.AdminListArcherJobs(context.Background()).Status(status).Queue(queue).Q(q).Page(page).PageSize(pageSize).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `ArcherAdminAPI.AdminListArcherJobs``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
// response from `AdminListArcherJobs`: DtoPageJob
|
||||
fmt.Fprintf(os.Stdout, "Response from `ArcherAdminAPI.AdminListArcherJobs`: %v\n", resp)
|
||||
}
|
||||
```
|
||||
|
||||
### Path Parameters
|
||||
|
||||
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiAdminListArcherJobsRequest struct via the builder pattern
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**status** | **string** | Filter by status |
|
||||
**queue** | **string** | Filter by queue name / worker name |
|
||||
**q** | **string** | Free-text search |
|
||||
**page** | **int32** | Page number | [default to 1]
|
||||
**pageSize** | **int32** | Items per page | [default to 25]
|
||||
|
||||
### Return type
|
||||
|
||||
[**DtoPageJob**](DtoPageJob.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[BearerAuth](../README.md#BearerAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
|
||||
## AdminListArcherQueues
|
||||
|
||||
> []DtoQueueInfo AdminListArcherQueues(ctx).Execute()
|
||||
|
||||
List Archer queues (admin)
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
openapiclient "github.com/glueops/autoglue-sdk-go"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
resp, r, err := apiClient.ArcherAdminAPI.AdminListArcherQueues(context.Background()).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `ArcherAdminAPI.AdminListArcherQueues``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
// response from `AdminListArcherQueues`: []DtoQueueInfo
|
||||
fmt.Fprintf(os.Stdout, "Response from `ArcherAdminAPI.AdminListArcherQueues`: %v\n", resp)
|
||||
}
|
||||
```
|
||||
|
||||
### Path Parameters
|
||||
|
||||
This endpoint does not need any parameter.
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiAdminListArcherQueuesRequest struct via the builder pattern
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
[**[]DtoQueueInfo**](DtoQueueInfo.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[BearerAuth](../README.md#BearerAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
|
||||
## AdminRetryArcherJob
|
||||
|
||||
> DtoJob AdminRetryArcherJob(ctx, id).Execute()
|
||||
|
||||
Retry a failed/canceled Archer job (admin)
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
openapiclient "github.com/glueops/autoglue-sdk-go"
|
||||
)
|
||||
|
||||
func main() {
|
||||
id := "id_example" // string | Job ID
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
resp, r, err := apiClient.ArcherAdminAPI.AdminRetryArcherJob(context.Background(), id).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `ArcherAdminAPI.AdminRetryArcherJob``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
// response from `AdminRetryArcherJob`: DtoJob
|
||||
fmt.Fprintf(os.Stdout, "Response from `ArcherAdminAPI.AdminRetryArcherJob`: %v\n", resp)
|
||||
}
|
||||
```
|
||||
|
||||
### Path Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
|
||||
**id** | **string** | Job ID |
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiAdminRetryArcherJobRequest struct via the builder pattern
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
[**DtoJob**](DtoJob.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[BearerAuth](../README.md#BearerAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
@@ -1,338 +0,0 @@
|
||||
# \AuthAPI
|
||||
|
||||
All URIs are relative to */api/v1*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
[**AuthCallback**](AuthAPI.md#AuthCallback) | **Get** /auth/{provider}/callback | Handle social login callback
|
||||
[**AuthStart**](AuthAPI.md#AuthStart) | **Post** /auth/{provider}/start | Begin social login
|
||||
[**GetJWKS**](AuthAPI.md#GetJWKS) | **Get** /.well-known/jwks.json | Get JWKS
|
||||
[**Logout**](AuthAPI.md#Logout) | **Post** /auth/logout | Revoke refresh token family (logout everywhere)
|
||||
[**Refresh**](AuthAPI.md#Refresh) | **Post** /auth/refresh | Rotate refresh token
|
||||
|
||||
|
||||
|
||||
## AuthCallback
|
||||
|
||||
> DtoTokenPair AuthCallback(ctx, provider).Execute()
|
||||
|
||||
Handle social login callback
|
||||
|
||||
### Example
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
openapiclient "github.com/glueops/autoglue-sdk-go"
|
||||
)
|
||||
|
||||
func main() {
|
||||
provider := "provider_example" // string | google|github
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
resp, r, err := apiClient.AuthAPI.AuthCallback(context.Background(), provider).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `AuthAPI.AuthCallback``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
// response from `AuthCallback`: DtoTokenPair
|
||||
fmt.Fprintf(os.Stdout, "Response from `AuthAPI.AuthCallback`: %v\n", resp)
|
||||
}
|
||||
```
|
||||
|
||||
### Path Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
|
||||
**provider** | **string** | google|github |
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiAuthCallbackRequest struct via the builder pattern
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
[**DtoTokenPair**](DtoTokenPair.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
|
||||
## AuthStart
|
||||
|
||||
> DtoAuthStartResponse AuthStart(ctx, provider).Execute()
|
||||
|
||||
Begin social login
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
openapiclient "github.com/glueops/autoglue-sdk-go"
|
||||
)
|
||||
|
||||
func main() {
|
||||
provider := "provider_example" // string | google|github
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
resp, r, err := apiClient.AuthAPI.AuthStart(context.Background(), provider).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `AuthAPI.AuthStart``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
// response from `AuthStart`: DtoAuthStartResponse
|
||||
fmt.Fprintf(os.Stdout, "Response from `AuthAPI.AuthStart`: %v\n", resp)
|
||||
}
|
||||
```
|
||||
|
||||
### Path Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
|
||||
**provider** | **string** | google|github |
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiAuthStartRequest struct via the builder pattern
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
[**DtoAuthStartResponse**](DtoAuthStartResponse.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
|
||||
## GetJWKS
|
||||
|
||||
> DtoJWKS GetJWKS(ctx).Execute()
|
||||
|
||||
Get JWKS
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
openapiclient "github.com/glueops/autoglue-sdk-go"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
resp, r, err := apiClient.AuthAPI.GetJWKS(context.Background()).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `AuthAPI.GetJWKS``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
// response from `GetJWKS`: DtoJWKS
|
||||
fmt.Fprintf(os.Stdout, "Response from `AuthAPI.GetJWKS`: %v\n", resp)
|
||||
}
|
||||
```
|
||||
|
||||
### Path Parameters
|
||||
|
||||
This endpoint does not need any parameter.
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiGetJWKSRequest struct via the builder pattern
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
[**DtoJWKS**](DtoJWKS.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
|
||||
## Logout
|
||||
|
||||
> Logout(ctx).Body(body).Execute()
|
||||
|
||||
Revoke refresh token family (logout everywhere)
|
||||
|
||||
### Example
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
openapiclient "github.com/glueops/autoglue-sdk-go"
|
||||
)
|
||||
|
||||
func main() {
|
||||
body := *openapiclient.NewDtoLogoutRequest() // DtoLogoutRequest | Refresh token
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
r, err := apiClient.AuthAPI.Logout(context.Background()).Body(body).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `AuthAPI.Logout``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Path Parameters
|
||||
|
||||
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiLogoutRequest struct via the builder pattern
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**body** | [**DtoLogoutRequest**](DtoLogoutRequest.md) | Refresh token |
|
||||
|
||||
### Return type
|
||||
|
||||
(empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: Not defined
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
|
||||
## Refresh
|
||||
|
||||
> DtoTokenPair Refresh(ctx).Body(body).Execute()
|
||||
|
||||
Rotate refresh token
|
||||
|
||||
### Example
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
openapiclient "github.com/glueops/autoglue-sdk-go"
|
||||
)
|
||||
|
||||
func main() {
|
||||
body := *openapiclient.NewDtoRefreshRequest() // DtoRefreshRequest | Refresh token
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
resp, r, err := apiClient.AuthAPI.Refresh(context.Background()).Body(body).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `AuthAPI.Refresh``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
// response from `Refresh`: DtoTokenPair
|
||||
fmt.Fprintf(os.Stdout, "Response from `AuthAPI.Refresh`: %v\n", resp)
|
||||
}
|
||||
```
|
||||
|
||||
### Path Parameters
|
||||
|
||||
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiRefreshRequest struct via the builder pattern
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**body** | [**DtoRefreshRequest**](DtoRefreshRequest.md) | Refresh token |
|
||||
|
||||
### Return type
|
||||
|
||||
[**DtoTokenPair**](DtoTokenPair.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
@@ -1,186 +0,0 @@
|
||||
# DtoAnnotationResponse
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**CreatedAt** | Pointer to **string** | | [optional]
|
||||
**Id** | Pointer to **string** | | [optional]
|
||||
**Key** | Pointer to **string** | | [optional]
|
||||
**OrganizationId** | Pointer to **string** | | [optional]
|
||||
**UpdatedAt** | Pointer to **string** | | [optional]
|
||||
**Value** | Pointer to **string** | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewDtoAnnotationResponse
|
||||
|
||||
`func NewDtoAnnotationResponse() *DtoAnnotationResponse`
|
||||
|
||||
NewDtoAnnotationResponse instantiates a new DtoAnnotationResponse 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
|
||||
|
||||
### NewDtoAnnotationResponseWithDefaults
|
||||
|
||||
`func NewDtoAnnotationResponseWithDefaults() *DtoAnnotationResponse`
|
||||
|
||||
NewDtoAnnotationResponseWithDefaults instantiates a new DtoAnnotationResponse 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
|
||||
|
||||
### GetCreatedAt
|
||||
|
||||
`func (o *DtoAnnotationResponse) GetCreatedAt() string`
|
||||
|
||||
GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise.
|
||||
|
||||
### GetCreatedAtOk
|
||||
|
||||
`func (o *DtoAnnotationResponse) 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 *DtoAnnotationResponse) SetCreatedAt(v string)`
|
||||
|
||||
SetCreatedAt sets CreatedAt field to given value.
|
||||
|
||||
### HasCreatedAt
|
||||
|
||||
`func (o *DtoAnnotationResponse) HasCreatedAt() bool`
|
||||
|
||||
HasCreatedAt returns a boolean if a field has been set.
|
||||
|
||||
### GetId
|
||||
|
||||
`func (o *DtoAnnotationResponse) GetId() string`
|
||||
|
||||
GetId returns the Id field if non-nil, zero value otherwise.
|
||||
|
||||
### GetIdOk
|
||||
|
||||
`func (o *DtoAnnotationResponse) 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 *DtoAnnotationResponse) SetId(v string)`
|
||||
|
||||
SetId sets Id field to given value.
|
||||
|
||||
### HasId
|
||||
|
||||
`func (o *DtoAnnotationResponse) HasId() bool`
|
||||
|
||||
HasId returns a boolean if a field has been set.
|
||||
|
||||
### GetKey
|
||||
|
||||
`func (o *DtoAnnotationResponse) GetKey() string`
|
||||
|
||||
GetKey returns the Key field if non-nil, zero value otherwise.
|
||||
|
||||
### GetKeyOk
|
||||
|
||||
`func (o *DtoAnnotationResponse) GetKeyOk() (*string, bool)`
|
||||
|
||||
GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetKey
|
||||
|
||||
`func (o *DtoAnnotationResponse) SetKey(v string)`
|
||||
|
||||
SetKey sets Key field to given value.
|
||||
|
||||
### HasKey
|
||||
|
||||
`func (o *DtoAnnotationResponse) HasKey() bool`
|
||||
|
||||
HasKey returns a boolean if a field has been set.
|
||||
|
||||
### GetOrganizationId
|
||||
|
||||
`func (o *DtoAnnotationResponse) GetOrganizationId() string`
|
||||
|
||||
GetOrganizationId returns the OrganizationId field if non-nil, zero value otherwise.
|
||||
|
||||
### GetOrganizationIdOk
|
||||
|
||||
`func (o *DtoAnnotationResponse) 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 *DtoAnnotationResponse) SetOrganizationId(v string)`
|
||||
|
||||
SetOrganizationId sets OrganizationId field to given value.
|
||||
|
||||
### HasOrganizationId
|
||||
|
||||
`func (o *DtoAnnotationResponse) HasOrganizationId() bool`
|
||||
|
||||
HasOrganizationId returns a boolean if a field has been set.
|
||||
|
||||
### GetUpdatedAt
|
||||
|
||||
`func (o *DtoAnnotationResponse) GetUpdatedAt() string`
|
||||
|
||||
GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise.
|
||||
|
||||
### GetUpdatedAtOk
|
||||
|
||||
`func (o *DtoAnnotationResponse) 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 *DtoAnnotationResponse) SetUpdatedAt(v string)`
|
||||
|
||||
SetUpdatedAt sets UpdatedAt field to given value.
|
||||
|
||||
### HasUpdatedAt
|
||||
|
||||
`func (o *DtoAnnotationResponse) HasUpdatedAt() bool`
|
||||
|
||||
HasUpdatedAt returns a boolean if a field has been set.
|
||||
|
||||
### GetValue
|
||||
|
||||
`func (o *DtoAnnotationResponse) GetValue() string`
|
||||
|
||||
GetValue returns the Value field if non-nil, zero value otherwise.
|
||||
|
||||
### GetValueOk
|
||||
|
||||
`func (o *DtoAnnotationResponse) GetValueOk() (*string, bool)`
|
||||
|
||||
GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetValue
|
||||
|
||||
`func (o *DtoAnnotationResponse) SetValue(v string)`
|
||||
|
||||
SetValue sets Value field to given value.
|
||||
|
||||
### HasValue
|
||||
|
||||
`func (o *DtoAnnotationResponse) HasValue() bool`
|
||||
|
||||
HasValue 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,56 +0,0 @@
|
||||
# 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)
|
||||
|
||||
|
||||
@@ -1,56 +0,0 @@
|
||||
# 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)
|
||||
|
||||
|
||||
@@ -1,56 +0,0 @@
|
||||
# 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)
|
||||
|
||||
|
||||
@@ -1,56 +0,0 @@
|
||||
# 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)
|
||||
|
||||
|
||||
@@ -1,56 +0,0 @@
|
||||
# DtoAuthStartResponse
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**AuthUrl** | Pointer to **string** | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewDtoAuthStartResponse
|
||||
|
||||
`func NewDtoAuthStartResponse() *DtoAuthStartResponse`
|
||||
|
||||
NewDtoAuthStartResponse instantiates a new DtoAuthStartResponse 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
|
||||
|
||||
### NewDtoAuthStartResponseWithDefaults
|
||||
|
||||
`func NewDtoAuthStartResponseWithDefaults() *DtoAuthStartResponse`
|
||||
|
||||
NewDtoAuthStartResponseWithDefaults instantiates a new DtoAuthStartResponse 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
|
||||
|
||||
### GetAuthUrl
|
||||
|
||||
`func (o *DtoAuthStartResponse) GetAuthUrl() string`
|
||||
|
||||
GetAuthUrl returns the AuthUrl field if non-nil, zero value otherwise.
|
||||
|
||||
### GetAuthUrlOk
|
||||
|
||||
`func (o *DtoAuthStartResponse) GetAuthUrlOk() (*string, bool)`
|
||||
|
||||
GetAuthUrlOk returns a tuple with the AuthUrl field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetAuthUrl
|
||||
|
||||
`func (o *DtoAuthStartResponse) SetAuthUrl(v string)`
|
||||
|
||||
SetAuthUrl sets AuthUrl field to given value.
|
||||
|
||||
### HasAuthUrl
|
||||
|
||||
`func (o *DtoAuthStartResponse) HasAuthUrl() bool`
|
||||
|
||||
HasAuthUrl 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,82 +0,0 @@
|
||||
# DtoCreateAnnotationRequest
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Key** | Pointer to **string** | | [optional]
|
||||
**Value** | Pointer to **string** | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewDtoCreateAnnotationRequest
|
||||
|
||||
`func NewDtoCreateAnnotationRequest() *DtoCreateAnnotationRequest`
|
||||
|
||||
NewDtoCreateAnnotationRequest instantiates a new DtoCreateAnnotationRequest 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
|
||||
|
||||
### NewDtoCreateAnnotationRequestWithDefaults
|
||||
|
||||
`func NewDtoCreateAnnotationRequestWithDefaults() *DtoCreateAnnotationRequest`
|
||||
|
||||
NewDtoCreateAnnotationRequestWithDefaults instantiates a new DtoCreateAnnotationRequest 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
|
||||
|
||||
### GetKey
|
||||
|
||||
`func (o *DtoCreateAnnotationRequest) GetKey() string`
|
||||
|
||||
GetKey returns the Key field if non-nil, zero value otherwise.
|
||||
|
||||
### GetKeyOk
|
||||
|
||||
`func (o *DtoCreateAnnotationRequest) GetKeyOk() (*string, bool)`
|
||||
|
||||
GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetKey
|
||||
|
||||
`func (o *DtoCreateAnnotationRequest) SetKey(v string)`
|
||||
|
||||
SetKey sets Key field to given value.
|
||||
|
||||
### HasKey
|
||||
|
||||
`func (o *DtoCreateAnnotationRequest) HasKey() bool`
|
||||
|
||||
HasKey returns a boolean if a field has been set.
|
||||
|
||||
### GetValue
|
||||
|
||||
`func (o *DtoCreateAnnotationRequest) GetValue() string`
|
||||
|
||||
GetValue returns the Value field if non-nil, zero value otherwise.
|
||||
|
||||
### GetValueOk
|
||||
|
||||
`func (o *DtoCreateAnnotationRequest) GetValueOk() (*string, bool)`
|
||||
|
||||
GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetValue
|
||||
|
||||
`func (o *DtoCreateAnnotationRequest) SetValue(v string)`
|
||||
|
||||
SetValue sets Value field to given value.
|
||||
|
||||
### HasValue
|
||||
|
||||
`func (o *DtoCreateAnnotationRequest) HasValue() bool`
|
||||
|
||||
HasValue 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,82 +0,0 @@
|
||||
# DtoCreateLabelRequest
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Key** | Pointer to **string** | | [optional]
|
||||
**Value** | Pointer to **string** | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewDtoCreateLabelRequest
|
||||
|
||||
`func NewDtoCreateLabelRequest() *DtoCreateLabelRequest`
|
||||
|
||||
NewDtoCreateLabelRequest instantiates a new DtoCreateLabelRequest 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
|
||||
|
||||
### NewDtoCreateLabelRequestWithDefaults
|
||||
|
||||
`func NewDtoCreateLabelRequestWithDefaults() *DtoCreateLabelRequest`
|
||||
|
||||
NewDtoCreateLabelRequestWithDefaults instantiates a new DtoCreateLabelRequest 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
|
||||
|
||||
### GetKey
|
||||
|
||||
`func (o *DtoCreateLabelRequest) GetKey() string`
|
||||
|
||||
GetKey returns the Key field if non-nil, zero value otherwise.
|
||||
|
||||
### GetKeyOk
|
||||
|
||||
`func (o *DtoCreateLabelRequest) GetKeyOk() (*string, bool)`
|
||||
|
||||
GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetKey
|
||||
|
||||
`func (o *DtoCreateLabelRequest) SetKey(v string)`
|
||||
|
||||
SetKey sets Key field to given value.
|
||||
|
||||
### HasKey
|
||||
|
||||
`func (o *DtoCreateLabelRequest) HasKey() bool`
|
||||
|
||||
HasKey returns a boolean if a field has been set.
|
||||
|
||||
### GetValue
|
||||
|
||||
`func (o *DtoCreateLabelRequest) GetValue() string`
|
||||
|
||||
GetValue returns the Value field if non-nil, zero value otherwise.
|
||||
|
||||
### GetValueOk
|
||||
|
||||
`func (o *DtoCreateLabelRequest) GetValueOk() (*string, bool)`
|
||||
|
||||
GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetValue
|
||||
|
||||
`func (o *DtoCreateLabelRequest) SetValue(v string)`
|
||||
|
||||
SetValue sets Value field to given value.
|
||||
|
||||
### HasValue
|
||||
|
||||
`func (o *DtoCreateLabelRequest) HasValue() bool`
|
||||
|
||||
HasValue 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,82 +0,0 @@
|
||||
# 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)
|
||||
|
||||
|
||||
@@ -1,134 +0,0 @@
|
||||
# DtoCreateSSHRequest
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Bits** | Pointer to **int32** | Only for RSA | [optional]
|
||||
**Comment** | Pointer to **string** | | [optional]
|
||||
**Name** | Pointer to **string** | | [optional]
|
||||
**Type** | Pointer to **string** | \"rsa\" (default) or \"ed25519\" | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewDtoCreateSSHRequest
|
||||
|
||||
`func NewDtoCreateSSHRequest() *DtoCreateSSHRequest`
|
||||
|
||||
NewDtoCreateSSHRequest instantiates a new DtoCreateSSHRequest 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
|
||||
|
||||
### NewDtoCreateSSHRequestWithDefaults
|
||||
|
||||
`func NewDtoCreateSSHRequestWithDefaults() *DtoCreateSSHRequest`
|
||||
|
||||
NewDtoCreateSSHRequestWithDefaults instantiates a new DtoCreateSSHRequest 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
|
||||
|
||||
### GetBits
|
||||
|
||||
`func (o *DtoCreateSSHRequest) GetBits() int32`
|
||||
|
||||
GetBits returns the Bits field if non-nil, zero value otherwise.
|
||||
|
||||
### GetBitsOk
|
||||
|
||||
`func (o *DtoCreateSSHRequest) GetBitsOk() (*int32, bool)`
|
||||
|
||||
GetBitsOk returns a tuple with the Bits field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetBits
|
||||
|
||||
`func (o *DtoCreateSSHRequest) SetBits(v int32)`
|
||||
|
||||
SetBits sets Bits field to given value.
|
||||
|
||||
### HasBits
|
||||
|
||||
`func (o *DtoCreateSSHRequest) HasBits() bool`
|
||||
|
||||
HasBits returns a boolean if a field has been set.
|
||||
|
||||
### GetComment
|
||||
|
||||
`func (o *DtoCreateSSHRequest) GetComment() string`
|
||||
|
||||
GetComment returns the Comment field if non-nil, zero value otherwise.
|
||||
|
||||
### GetCommentOk
|
||||
|
||||
`func (o *DtoCreateSSHRequest) GetCommentOk() (*string, bool)`
|
||||
|
||||
GetCommentOk returns a tuple with the Comment field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetComment
|
||||
|
||||
`func (o *DtoCreateSSHRequest) SetComment(v string)`
|
||||
|
||||
SetComment sets Comment field to given value.
|
||||
|
||||
### HasComment
|
||||
|
||||
`func (o *DtoCreateSSHRequest) HasComment() bool`
|
||||
|
||||
HasComment returns a boolean if a field has been set.
|
||||
|
||||
### GetName
|
||||
|
||||
`func (o *DtoCreateSSHRequest) GetName() string`
|
||||
|
||||
GetName returns the Name field if non-nil, zero value otherwise.
|
||||
|
||||
### GetNameOk
|
||||
|
||||
`func (o *DtoCreateSSHRequest) 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 *DtoCreateSSHRequest) SetName(v string)`
|
||||
|
||||
SetName sets Name field to given value.
|
||||
|
||||
### HasName
|
||||
|
||||
`func (o *DtoCreateSSHRequest) HasName() bool`
|
||||
|
||||
HasName returns a boolean if a field has been set.
|
||||
|
||||
### GetType
|
||||
|
||||
`func (o *DtoCreateSSHRequest) GetType() string`
|
||||
|
||||
GetType returns the Type field if non-nil, zero value otherwise.
|
||||
|
||||
### GetTypeOk
|
||||
|
||||
`func (o *DtoCreateSSHRequest) GetTypeOk() (*string, bool)`
|
||||
|
||||
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetType
|
||||
|
||||
`func (o *DtoCreateSSHRequest) SetType(v string)`
|
||||
|
||||
SetType sets Type field to given value.
|
||||
|
||||
### HasType
|
||||
|
||||
`func (o *DtoCreateSSHRequest) HasType() bool`
|
||||
|
||||
HasType 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,212 +0,0 @@
|
||||
# DtoCreateServerRequest
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Hostname** | Pointer to **string** | | [optional]
|
||||
**PrivateIpAddress** | Pointer to **string** | | [optional]
|
||||
**PublicIpAddress** | Pointer to **string** | | [optional]
|
||||
**Role** | Pointer to **string** | | [optional]
|
||||
**SshKeyId** | Pointer to **string** | | [optional]
|
||||
**SshUser** | Pointer to **string** | | [optional]
|
||||
**Status** | Pointer to **string** | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewDtoCreateServerRequest
|
||||
|
||||
`func NewDtoCreateServerRequest() *DtoCreateServerRequest`
|
||||
|
||||
NewDtoCreateServerRequest instantiates a new DtoCreateServerRequest 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
|
||||
|
||||
### NewDtoCreateServerRequestWithDefaults
|
||||
|
||||
`func NewDtoCreateServerRequestWithDefaults() *DtoCreateServerRequest`
|
||||
|
||||
NewDtoCreateServerRequestWithDefaults instantiates a new DtoCreateServerRequest 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
|
||||
|
||||
### GetHostname
|
||||
|
||||
`func (o *DtoCreateServerRequest) GetHostname() string`
|
||||
|
||||
GetHostname returns the Hostname field if non-nil, zero value otherwise.
|
||||
|
||||
### GetHostnameOk
|
||||
|
||||
`func (o *DtoCreateServerRequest) GetHostnameOk() (*string, bool)`
|
||||
|
||||
GetHostnameOk returns a tuple with the Hostname field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetHostname
|
||||
|
||||
`func (o *DtoCreateServerRequest) SetHostname(v string)`
|
||||
|
||||
SetHostname sets Hostname field to given value.
|
||||
|
||||
### HasHostname
|
||||
|
||||
`func (o *DtoCreateServerRequest) HasHostname() bool`
|
||||
|
||||
HasHostname returns a boolean if a field has been set.
|
||||
|
||||
### GetPrivateIpAddress
|
||||
|
||||
`func (o *DtoCreateServerRequest) GetPrivateIpAddress() string`
|
||||
|
||||
GetPrivateIpAddress returns the PrivateIpAddress field if non-nil, zero value otherwise.
|
||||
|
||||
### GetPrivateIpAddressOk
|
||||
|
||||
`func (o *DtoCreateServerRequest) GetPrivateIpAddressOk() (*string, bool)`
|
||||
|
||||
GetPrivateIpAddressOk returns a tuple with the PrivateIpAddress field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetPrivateIpAddress
|
||||
|
||||
`func (o *DtoCreateServerRequest) SetPrivateIpAddress(v string)`
|
||||
|
||||
SetPrivateIpAddress sets PrivateIpAddress field to given value.
|
||||
|
||||
### HasPrivateIpAddress
|
||||
|
||||
`func (o *DtoCreateServerRequest) HasPrivateIpAddress() bool`
|
||||
|
||||
HasPrivateIpAddress returns a boolean if a field has been set.
|
||||
|
||||
### GetPublicIpAddress
|
||||
|
||||
`func (o *DtoCreateServerRequest) GetPublicIpAddress() string`
|
||||
|
||||
GetPublicIpAddress returns the PublicIpAddress field if non-nil, zero value otherwise.
|
||||
|
||||
### GetPublicIpAddressOk
|
||||
|
||||
`func (o *DtoCreateServerRequest) GetPublicIpAddressOk() (*string, bool)`
|
||||
|
||||
GetPublicIpAddressOk returns a tuple with the PublicIpAddress field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetPublicIpAddress
|
||||
|
||||
`func (o *DtoCreateServerRequest) SetPublicIpAddress(v string)`
|
||||
|
||||
SetPublicIpAddress sets PublicIpAddress field to given value.
|
||||
|
||||
### HasPublicIpAddress
|
||||
|
||||
`func (o *DtoCreateServerRequest) HasPublicIpAddress() bool`
|
||||
|
||||
HasPublicIpAddress returns a boolean if a field has been set.
|
||||
|
||||
### GetRole
|
||||
|
||||
`func (o *DtoCreateServerRequest) GetRole() string`
|
||||
|
||||
GetRole returns the Role field if non-nil, zero value otherwise.
|
||||
|
||||
### GetRoleOk
|
||||
|
||||
`func (o *DtoCreateServerRequest) 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 *DtoCreateServerRequest) SetRole(v string)`
|
||||
|
||||
SetRole sets Role field to given value.
|
||||
|
||||
### HasRole
|
||||
|
||||
`func (o *DtoCreateServerRequest) HasRole() bool`
|
||||
|
||||
HasRole returns a boolean if a field has been set.
|
||||
|
||||
### GetSshKeyId
|
||||
|
||||
`func (o *DtoCreateServerRequest) GetSshKeyId() string`
|
||||
|
||||
GetSshKeyId returns the SshKeyId field if non-nil, zero value otherwise.
|
||||
|
||||
### GetSshKeyIdOk
|
||||
|
||||
`func (o *DtoCreateServerRequest) GetSshKeyIdOk() (*string, bool)`
|
||||
|
||||
GetSshKeyIdOk returns a tuple with the SshKeyId field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetSshKeyId
|
||||
|
||||
`func (o *DtoCreateServerRequest) SetSshKeyId(v string)`
|
||||
|
||||
SetSshKeyId sets SshKeyId field to given value.
|
||||
|
||||
### HasSshKeyId
|
||||
|
||||
`func (o *DtoCreateServerRequest) HasSshKeyId() bool`
|
||||
|
||||
HasSshKeyId returns a boolean if a field has been set.
|
||||
|
||||
### GetSshUser
|
||||
|
||||
`func (o *DtoCreateServerRequest) GetSshUser() string`
|
||||
|
||||
GetSshUser returns the SshUser field if non-nil, zero value otherwise.
|
||||
|
||||
### GetSshUserOk
|
||||
|
||||
`func (o *DtoCreateServerRequest) GetSshUserOk() (*string, bool)`
|
||||
|
||||
GetSshUserOk returns a tuple with the SshUser field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetSshUser
|
||||
|
||||
`func (o *DtoCreateServerRequest) SetSshUser(v string)`
|
||||
|
||||
SetSshUser sets SshUser field to given value.
|
||||
|
||||
### HasSshUser
|
||||
|
||||
`func (o *DtoCreateServerRequest) HasSshUser() bool`
|
||||
|
||||
HasSshUser returns a boolean if a field has been set.
|
||||
|
||||
### GetStatus
|
||||
|
||||
`func (o *DtoCreateServerRequest) GetStatus() string`
|
||||
|
||||
GetStatus returns the Status field if non-nil, zero value otherwise.
|
||||
|
||||
### GetStatusOk
|
||||
|
||||
`func (o *DtoCreateServerRequest) GetStatusOk() (*string, bool)`
|
||||
|
||||
GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetStatus
|
||||
|
||||
`func (o *DtoCreateServerRequest) SetStatus(v string)`
|
||||
|
||||
SetStatus sets Status field to given value.
|
||||
|
||||
### HasStatus
|
||||
|
||||
`func (o *DtoCreateServerRequest) HasStatus() bool`
|
||||
|
||||
HasStatus 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,108 +0,0 @@
|
||||
# DtoCreateTaintRequest
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Effect** | Pointer to **string** | | [optional]
|
||||
**Key** | Pointer to **string** | | [optional]
|
||||
**Value** | Pointer to **string** | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewDtoCreateTaintRequest
|
||||
|
||||
`func NewDtoCreateTaintRequest() *DtoCreateTaintRequest`
|
||||
|
||||
NewDtoCreateTaintRequest instantiates a new DtoCreateTaintRequest 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
|
||||
|
||||
### NewDtoCreateTaintRequestWithDefaults
|
||||
|
||||
`func NewDtoCreateTaintRequestWithDefaults() *DtoCreateTaintRequest`
|
||||
|
||||
NewDtoCreateTaintRequestWithDefaults instantiates a new DtoCreateTaintRequest 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
|
||||
|
||||
### GetEffect
|
||||
|
||||
`func (o *DtoCreateTaintRequest) GetEffect() string`
|
||||
|
||||
GetEffect returns the Effect field if non-nil, zero value otherwise.
|
||||
|
||||
### GetEffectOk
|
||||
|
||||
`func (o *DtoCreateTaintRequest) GetEffectOk() (*string, bool)`
|
||||
|
||||
GetEffectOk returns a tuple with the Effect field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetEffect
|
||||
|
||||
`func (o *DtoCreateTaintRequest) SetEffect(v string)`
|
||||
|
||||
SetEffect sets Effect field to given value.
|
||||
|
||||
### HasEffect
|
||||
|
||||
`func (o *DtoCreateTaintRequest) HasEffect() bool`
|
||||
|
||||
HasEffect returns a boolean if a field has been set.
|
||||
|
||||
### GetKey
|
||||
|
||||
`func (o *DtoCreateTaintRequest) GetKey() string`
|
||||
|
||||
GetKey returns the Key field if non-nil, zero value otherwise.
|
||||
|
||||
### GetKeyOk
|
||||
|
||||
`func (o *DtoCreateTaintRequest) GetKeyOk() (*string, bool)`
|
||||
|
||||
GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetKey
|
||||
|
||||
`func (o *DtoCreateTaintRequest) SetKey(v string)`
|
||||
|
||||
SetKey sets Key field to given value.
|
||||
|
||||
### HasKey
|
||||
|
||||
`func (o *DtoCreateTaintRequest) HasKey() bool`
|
||||
|
||||
HasKey returns a boolean if a field has been set.
|
||||
|
||||
### GetValue
|
||||
|
||||
`func (o *DtoCreateTaintRequest) GetValue() string`
|
||||
|
||||
GetValue returns the Value field if non-nil, zero value otherwise.
|
||||
|
||||
### GetValueOk
|
||||
|
||||
`func (o *DtoCreateTaintRequest) GetValueOk() (*string, bool)`
|
||||
|
||||
GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetValue
|
||||
|
||||
`func (o *DtoCreateTaintRequest) SetValue(v string)`
|
||||
|
||||
SetValue sets Value field to given value.
|
||||
|
||||
### HasValue
|
||||
|
||||
`func (o *DtoCreateTaintRequest) HasValue() bool`
|
||||
|
||||
HasValue 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,212 +0,0 @@
|
||||
# DtoJWK
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Alg** | Pointer to **string** | | [optional]
|
||||
**E** | Pointer to **string** | | [optional]
|
||||
**Kid** | Pointer to **string** | | [optional]
|
||||
**Kty** | Pointer to **string** | | [optional]
|
||||
**N** | Pointer to **string** | | [optional]
|
||||
**Use** | Pointer to **string** | | [optional]
|
||||
**X** | Pointer to **string** | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewDtoJWK
|
||||
|
||||
`func NewDtoJWK() *DtoJWK`
|
||||
|
||||
NewDtoJWK instantiates a new DtoJWK 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
|
||||
|
||||
### NewDtoJWKWithDefaults
|
||||
|
||||
`func NewDtoJWKWithDefaults() *DtoJWK`
|
||||
|
||||
NewDtoJWKWithDefaults instantiates a new DtoJWK 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
|
||||
|
||||
### GetAlg
|
||||
|
||||
`func (o *DtoJWK) GetAlg() string`
|
||||
|
||||
GetAlg returns the Alg field if non-nil, zero value otherwise.
|
||||
|
||||
### GetAlgOk
|
||||
|
||||
`func (o *DtoJWK) GetAlgOk() (*string, bool)`
|
||||
|
||||
GetAlgOk returns a tuple with the Alg field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetAlg
|
||||
|
||||
`func (o *DtoJWK) SetAlg(v string)`
|
||||
|
||||
SetAlg sets Alg field to given value.
|
||||
|
||||
### HasAlg
|
||||
|
||||
`func (o *DtoJWK) HasAlg() bool`
|
||||
|
||||
HasAlg returns a boolean if a field has been set.
|
||||
|
||||
### GetE
|
||||
|
||||
`func (o *DtoJWK) GetE() string`
|
||||
|
||||
GetE returns the E field if non-nil, zero value otherwise.
|
||||
|
||||
### GetEOk
|
||||
|
||||
`func (o *DtoJWK) GetEOk() (*string, bool)`
|
||||
|
||||
GetEOk returns a tuple with the E field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetE
|
||||
|
||||
`func (o *DtoJWK) SetE(v string)`
|
||||
|
||||
SetE sets E field to given value.
|
||||
|
||||
### HasE
|
||||
|
||||
`func (o *DtoJWK) HasE() bool`
|
||||
|
||||
HasE returns a boolean if a field has been set.
|
||||
|
||||
### GetKid
|
||||
|
||||
`func (o *DtoJWK) GetKid() string`
|
||||
|
||||
GetKid returns the Kid field if non-nil, zero value otherwise.
|
||||
|
||||
### GetKidOk
|
||||
|
||||
`func (o *DtoJWK) GetKidOk() (*string, bool)`
|
||||
|
||||
GetKidOk returns a tuple with the Kid field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetKid
|
||||
|
||||
`func (o *DtoJWK) SetKid(v string)`
|
||||
|
||||
SetKid sets Kid field to given value.
|
||||
|
||||
### HasKid
|
||||
|
||||
`func (o *DtoJWK) HasKid() bool`
|
||||
|
||||
HasKid returns a boolean if a field has been set.
|
||||
|
||||
### GetKty
|
||||
|
||||
`func (o *DtoJWK) GetKty() string`
|
||||
|
||||
GetKty returns the Kty field if non-nil, zero value otherwise.
|
||||
|
||||
### GetKtyOk
|
||||
|
||||
`func (o *DtoJWK) GetKtyOk() (*string, bool)`
|
||||
|
||||
GetKtyOk returns a tuple with the Kty field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetKty
|
||||
|
||||
`func (o *DtoJWK) SetKty(v string)`
|
||||
|
||||
SetKty sets Kty field to given value.
|
||||
|
||||
### HasKty
|
||||
|
||||
`func (o *DtoJWK) HasKty() bool`
|
||||
|
||||
HasKty returns a boolean if a field has been set.
|
||||
|
||||
### GetN
|
||||
|
||||
`func (o *DtoJWK) GetN() string`
|
||||
|
||||
GetN returns the N field if non-nil, zero value otherwise.
|
||||
|
||||
### GetNOk
|
||||
|
||||
`func (o *DtoJWK) GetNOk() (*string, bool)`
|
||||
|
||||
GetNOk returns a tuple with the N field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetN
|
||||
|
||||
`func (o *DtoJWK) SetN(v string)`
|
||||
|
||||
SetN sets N field to given value.
|
||||
|
||||
### HasN
|
||||
|
||||
`func (o *DtoJWK) HasN() bool`
|
||||
|
||||
HasN returns a boolean if a field has been set.
|
||||
|
||||
### GetUse
|
||||
|
||||
`func (o *DtoJWK) GetUse() string`
|
||||
|
||||
GetUse returns the Use field if non-nil, zero value otherwise.
|
||||
|
||||
### GetUseOk
|
||||
|
||||
`func (o *DtoJWK) GetUseOk() (*string, bool)`
|
||||
|
||||
GetUseOk returns a tuple with the Use field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetUse
|
||||
|
||||
`func (o *DtoJWK) SetUse(v string)`
|
||||
|
||||
SetUse sets Use field to given value.
|
||||
|
||||
### HasUse
|
||||
|
||||
`func (o *DtoJWK) HasUse() bool`
|
||||
|
||||
HasUse returns a boolean if a field has been set.
|
||||
|
||||
### GetX
|
||||
|
||||
`func (o *DtoJWK) GetX() string`
|
||||
|
||||
GetX returns the X field if non-nil, zero value otherwise.
|
||||
|
||||
### GetXOk
|
||||
|
||||
`func (o *DtoJWK) GetXOk() (*string, bool)`
|
||||
|
||||
GetXOk returns a tuple with the X field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetX
|
||||
|
||||
`func (o *DtoJWK) SetX(v string)`
|
||||
|
||||
SetX sets X field to given value.
|
||||
|
||||
### HasX
|
||||
|
||||
`func (o *DtoJWK) HasX() bool`
|
||||
|
||||
HasX 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,56 +0,0 @@
|
||||
# DtoJWKS
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Keys** | Pointer to [**[]DtoJWK**](DtoJWK.md) | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewDtoJWKS
|
||||
|
||||
`func NewDtoJWKS() *DtoJWKS`
|
||||
|
||||
NewDtoJWKS instantiates a new DtoJWKS 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
|
||||
|
||||
### NewDtoJWKSWithDefaults
|
||||
|
||||
`func NewDtoJWKSWithDefaults() *DtoJWKS`
|
||||
|
||||
NewDtoJWKSWithDefaults instantiates a new DtoJWKS 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
|
||||
|
||||
### GetKeys
|
||||
|
||||
`func (o *DtoJWKS) GetKeys() []DtoJWK`
|
||||
|
||||
GetKeys returns the Keys field if non-nil, zero value otherwise.
|
||||
|
||||
### GetKeysOk
|
||||
|
||||
`func (o *DtoJWKS) GetKeysOk() (*[]DtoJWK, bool)`
|
||||
|
||||
GetKeysOk returns a tuple with the Keys field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetKeys
|
||||
|
||||
`func (o *DtoJWKS) SetKeys(v []DtoJWK)`
|
||||
|
||||
SetKeys sets Keys field to given value.
|
||||
|
||||
### HasKeys
|
||||
|
||||
`func (o *DtoJWKS) HasKeys() bool`
|
||||
|
||||
HasKeys 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,316 +0,0 @@
|
||||
# DtoJob
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Attempts** | Pointer to **int32** | | [optional]
|
||||
**CreatedAt** | Pointer to **string** | | [optional]
|
||||
**Id** | Pointer to **string** | | [optional]
|
||||
**LastError** | Pointer to **string** | | [optional]
|
||||
**MaxAttempts** | Pointer to **int32** | | [optional]
|
||||
**Payload** | Pointer to **map[string]interface{}** | | [optional]
|
||||
**Queue** | Pointer to **string** | | [optional]
|
||||
**RunAt** | Pointer to **string** | | [optional]
|
||||
**Status** | Pointer to [**DtoJobStatus**](DtoJobStatus.md) | | [optional]
|
||||
**Type** | Pointer to **string** | | [optional]
|
||||
**UpdatedAt** | Pointer to **string** | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewDtoJob
|
||||
|
||||
`func NewDtoJob() *DtoJob`
|
||||
|
||||
NewDtoJob instantiates a new DtoJob 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
|
||||
|
||||
### NewDtoJobWithDefaults
|
||||
|
||||
`func NewDtoJobWithDefaults() *DtoJob`
|
||||
|
||||
NewDtoJobWithDefaults instantiates a new DtoJob 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
|
||||
|
||||
### GetAttempts
|
||||
|
||||
`func (o *DtoJob) GetAttempts() int32`
|
||||
|
||||
GetAttempts returns the Attempts field if non-nil, zero value otherwise.
|
||||
|
||||
### GetAttemptsOk
|
||||
|
||||
`func (o *DtoJob) GetAttemptsOk() (*int32, bool)`
|
||||
|
||||
GetAttemptsOk returns a tuple with the Attempts field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetAttempts
|
||||
|
||||
`func (o *DtoJob) SetAttempts(v int32)`
|
||||
|
||||
SetAttempts sets Attempts field to given value.
|
||||
|
||||
### HasAttempts
|
||||
|
||||
`func (o *DtoJob) HasAttempts() bool`
|
||||
|
||||
HasAttempts returns a boolean if a field has been set.
|
||||
|
||||
### GetCreatedAt
|
||||
|
||||
`func (o *DtoJob) GetCreatedAt() string`
|
||||
|
||||
GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise.
|
||||
|
||||
### GetCreatedAtOk
|
||||
|
||||
`func (o *DtoJob) 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 *DtoJob) SetCreatedAt(v string)`
|
||||
|
||||
SetCreatedAt sets CreatedAt field to given value.
|
||||
|
||||
### HasCreatedAt
|
||||
|
||||
`func (o *DtoJob) HasCreatedAt() bool`
|
||||
|
||||
HasCreatedAt returns a boolean if a field has been set.
|
||||
|
||||
### GetId
|
||||
|
||||
`func (o *DtoJob) GetId() string`
|
||||
|
||||
GetId returns the Id field if non-nil, zero value otherwise.
|
||||
|
||||
### GetIdOk
|
||||
|
||||
`func (o *DtoJob) 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 *DtoJob) SetId(v string)`
|
||||
|
||||
SetId sets Id field to given value.
|
||||
|
||||
### HasId
|
||||
|
||||
`func (o *DtoJob) HasId() bool`
|
||||
|
||||
HasId returns a boolean if a field has been set.
|
||||
|
||||
### GetLastError
|
||||
|
||||
`func (o *DtoJob) GetLastError() string`
|
||||
|
||||
GetLastError returns the LastError field if non-nil, zero value otherwise.
|
||||
|
||||
### GetLastErrorOk
|
||||
|
||||
`func (o *DtoJob) GetLastErrorOk() (*string, bool)`
|
||||
|
||||
GetLastErrorOk returns a tuple with the LastError field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetLastError
|
||||
|
||||
`func (o *DtoJob) SetLastError(v string)`
|
||||
|
||||
SetLastError sets LastError field to given value.
|
||||
|
||||
### HasLastError
|
||||
|
||||
`func (o *DtoJob) HasLastError() bool`
|
||||
|
||||
HasLastError returns a boolean if a field has been set.
|
||||
|
||||
### GetMaxAttempts
|
||||
|
||||
`func (o *DtoJob) GetMaxAttempts() int32`
|
||||
|
||||
GetMaxAttempts returns the MaxAttempts field if non-nil, zero value otherwise.
|
||||
|
||||
### GetMaxAttemptsOk
|
||||
|
||||
`func (o *DtoJob) GetMaxAttemptsOk() (*int32, bool)`
|
||||
|
||||
GetMaxAttemptsOk returns a tuple with the MaxAttempts field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetMaxAttempts
|
||||
|
||||
`func (o *DtoJob) SetMaxAttempts(v int32)`
|
||||
|
||||
SetMaxAttempts sets MaxAttempts field to given value.
|
||||
|
||||
### HasMaxAttempts
|
||||
|
||||
`func (o *DtoJob) HasMaxAttempts() bool`
|
||||
|
||||
HasMaxAttempts returns a boolean if a field has been set.
|
||||
|
||||
### GetPayload
|
||||
|
||||
`func (o *DtoJob) GetPayload() map[string]interface{}`
|
||||
|
||||
GetPayload returns the Payload field if non-nil, zero value otherwise.
|
||||
|
||||
### GetPayloadOk
|
||||
|
||||
`func (o *DtoJob) GetPayloadOk() (*map[string]interface{}, bool)`
|
||||
|
||||
GetPayloadOk returns a tuple with the Payload field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetPayload
|
||||
|
||||
`func (o *DtoJob) SetPayload(v map[string]interface{})`
|
||||
|
||||
SetPayload sets Payload field to given value.
|
||||
|
||||
### HasPayload
|
||||
|
||||
`func (o *DtoJob) HasPayload() bool`
|
||||
|
||||
HasPayload returns a boolean if a field has been set.
|
||||
|
||||
### GetQueue
|
||||
|
||||
`func (o *DtoJob) GetQueue() string`
|
||||
|
||||
GetQueue returns the Queue field if non-nil, zero value otherwise.
|
||||
|
||||
### GetQueueOk
|
||||
|
||||
`func (o *DtoJob) GetQueueOk() (*string, bool)`
|
||||
|
||||
GetQueueOk returns a tuple with the Queue field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetQueue
|
||||
|
||||
`func (o *DtoJob) SetQueue(v string)`
|
||||
|
||||
SetQueue sets Queue field to given value.
|
||||
|
||||
### HasQueue
|
||||
|
||||
`func (o *DtoJob) HasQueue() bool`
|
||||
|
||||
HasQueue returns a boolean if a field has been set.
|
||||
|
||||
### GetRunAt
|
||||
|
||||
`func (o *DtoJob) GetRunAt() string`
|
||||
|
||||
GetRunAt returns the RunAt field if non-nil, zero value otherwise.
|
||||
|
||||
### GetRunAtOk
|
||||
|
||||
`func (o *DtoJob) GetRunAtOk() (*string, bool)`
|
||||
|
||||
GetRunAtOk returns a tuple with the RunAt field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetRunAt
|
||||
|
||||
`func (o *DtoJob) SetRunAt(v string)`
|
||||
|
||||
SetRunAt sets RunAt field to given value.
|
||||
|
||||
### HasRunAt
|
||||
|
||||
`func (o *DtoJob) HasRunAt() bool`
|
||||
|
||||
HasRunAt returns a boolean if a field has been set.
|
||||
|
||||
### GetStatus
|
||||
|
||||
`func (o *DtoJob) GetStatus() DtoJobStatus`
|
||||
|
||||
GetStatus returns the Status field if non-nil, zero value otherwise.
|
||||
|
||||
### GetStatusOk
|
||||
|
||||
`func (o *DtoJob) GetStatusOk() (*DtoJobStatus, bool)`
|
||||
|
||||
GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetStatus
|
||||
|
||||
`func (o *DtoJob) SetStatus(v DtoJobStatus)`
|
||||
|
||||
SetStatus sets Status field to given value.
|
||||
|
||||
### HasStatus
|
||||
|
||||
`func (o *DtoJob) HasStatus() bool`
|
||||
|
||||
HasStatus returns a boolean if a field has been set.
|
||||
|
||||
### GetType
|
||||
|
||||
`func (o *DtoJob) GetType() string`
|
||||
|
||||
GetType returns the Type field if non-nil, zero value otherwise.
|
||||
|
||||
### GetTypeOk
|
||||
|
||||
`func (o *DtoJob) GetTypeOk() (*string, bool)`
|
||||
|
||||
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetType
|
||||
|
||||
`func (o *DtoJob) SetType(v string)`
|
||||
|
||||
SetType sets Type field to given value.
|
||||
|
||||
### HasType
|
||||
|
||||
`func (o *DtoJob) HasType() bool`
|
||||
|
||||
HasType returns a boolean if a field has been set.
|
||||
|
||||
### GetUpdatedAt
|
||||
|
||||
`func (o *DtoJob) GetUpdatedAt() string`
|
||||
|
||||
GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise.
|
||||
|
||||
### GetUpdatedAtOk
|
||||
|
||||
`func (o *DtoJob) 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 *DtoJob) SetUpdatedAt(v string)`
|
||||
|
||||
SetUpdatedAt sets UpdatedAt field to given value.
|
||||
|
||||
### HasUpdatedAt
|
||||
|
||||
`func (o *DtoJob) 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)
|
||||
|
||||
|
||||
@@ -1,23 +0,0 @@
|
||||
# DtoJobStatus
|
||||
|
||||
## Enum
|
||||
|
||||
|
||||
* `StatusQueued` (value: `"queued"`)
|
||||
|
||||
* `StatusRunning` (value: `"running"`)
|
||||
|
||||
* `StatusSucceeded` (value: `"succeeded"`)
|
||||
|
||||
* `StatusFailed` (value: `"failed"`)
|
||||
|
||||
* `StatusCanceled` (value: `"canceled"`)
|
||||
|
||||
* `StatusRetrying` (value: `"retrying"`)
|
||||
|
||||
* `StatusScheduled` (value: `"scheduled"`)
|
||||
|
||||
|
||||
[[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,186 +0,0 @@
|
||||
# DtoLabelResponse
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**CreatedAt** | Pointer to **string** | | [optional]
|
||||
**Id** | Pointer to **string** | | [optional]
|
||||
**Key** | Pointer to **string** | | [optional]
|
||||
**OrganizationId** | Pointer to **string** | | [optional]
|
||||
**UpdatedAt** | Pointer to **string** | | [optional]
|
||||
**Value** | Pointer to **string** | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewDtoLabelResponse
|
||||
|
||||
`func NewDtoLabelResponse() *DtoLabelResponse`
|
||||
|
||||
NewDtoLabelResponse instantiates a new DtoLabelResponse 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
|
||||
|
||||
### NewDtoLabelResponseWithDefaults
|
||||
|
||||
`func NewDtoLabelResponseWithDefaults() *DtoLabelResponse`
|
||||
|
||||
NewDtoLabelResponseWithDefaults instantiates a new DtoLabelResponse 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
|
||||
|
||||
### GetCreatedAt
|
||||
|
||||
`func (o *DtoLabelResponse) GetCreatedAt() string`
|
||||
|
||||
GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise.
|
||||
|
||||
### GetCreatedAtOk
|
||||
|
||||
`func (o *DtoLabelResponse) 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 *DtoLabelResponse) SetCreatedAt(v string)`
|
||||
|
||||
SetCreatedAt sets CreatedAt field to given value.
|
||||
|
||||
### HasCreatedAt
|
||||
|
||||
`func (o *DtoLabelResponse) HasCreatedAt() bool`
|
||||
|
||||
HasCreatedAt returns a boolean if a field has been set.
|
||||
|
||||
### GetId
|
||||
|
||||
`func (o *DtoLabelResponse) GetId() string`
|
||||
|
||||
GetId returns the Id field if non-nil, zero value otherwise.
|
||||
|
||||
### GetIdOk
|
||||
|
||||
`func (o *DtoLabelResponse) 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 *DtoLabelResponse) SetId(v string)`
|
||||
|
||||
SetId sets Id field to given value.
|
||||
|
||||
### HasId
|
||||
|
||||
`func (o *DtoLabelResponse) HasId() bool`
|
||||
|
||||
HasId returns a boolean if a field has been set.
|
||||
|
||||
### GetKey
|
||||
|
||||
`func (o *DtoLabelResponse) GetKey() string`
|
||||
|
||||
GetKey returns the Key field if non-nil, zero value otherwise.
|
||||
|
||||
### GetKeyOk
|
||||
|
||||
`func (o *DtoLabelResponse) GetKeyOk() (*string, bool)`
|
||||
|
||||
GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetKey
|
||||
|
||||
`func (o *DtoLabelResponse) SetKey(v string)`
|
||||
|
||||
SetKey sets Key field to given value.
|
||||
|
||||
### HasKey
|
||||
|
||||
`func (o *DtoLabelResponse) HasKey() bool`
|
||||
|
||||
HasKey returns a boolean if a field has been set.
|
||||
|
||||
### GetOrganizationId
|
||||
|
||||
`func (o *DtoLabelResponse) GetOrganizationId() string`
|
||||
|
||||
GetOrganizationId returns the OrganizationId field if non-nil, zero value otherwise.
|
||||
|
||||
### GetOrganizationIdOk
|
||||
|
||||
`func (o *DtoLabelResponse) 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 *DtoLabelResponse) SetOrganizationId(v string)`
|
||||
|
||||
SetOrganizationId sets OrganizationId field to given value.
|
||||
|
||||
### HasOrganizationId
|
||||
|
||||
`func (o *DtoLabelResponse) HasOrganizationId() bool`
|
||||
|
||||
HasOrganizationId returns a boolean if a field has been set.
|
||||
|
||||
### GetUpdatedAt
|
||||
|
||||
`func (o *DtoLabelResponse) GetUpdatedAt() string`
|
||||
|
||||
GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise.
|
||||
|
||||
### GetUpdatedAtOk
|
||||
|
||||
`func (o *DtoLabelResponse) 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 *DtoLabelResponse) SetUpdatedAt(v string)`
|
||||
|
||||
SetUpdatedAt sets UpdatedAt field to given value.
|
||||
|
||||
### HasUpdatedAt
|
||||
|
||||
`func (o *DtoLabelResponse) HasUpdatedAt() bool`
|
||||
|
||||
HasUpdatedAt returns a boolean if a field has been set.
|
||||
|
||||
### GetValue
|
||||
|
||||
`func (o *DtoLabelResponse) GetValue() string`
|
||||
|
||||
GetValue returns the Value field if non-nil, zero value otherwise.
|
||||
|
||||
### GetValueOk
|
||||
|
||||
`func (o *DtoLabelResponse) GetValueOk() (*string, bool)`
|
||||
|
||||
GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetValue
|
||||
|
||||
`func (o *DtoLabelResponse) SetValue(v string)`
|
||||
|
||||
SetValue sets Value field to given value.
|
||||
|
||||
### HasValue
|
||||
|
||||
`func (o *DtoLabelResponse) HasValue() bool`
|
||||
|
||||
HasValue 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,56 +0,0 @@
|
||||
# DtoLogoutRequest
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**RefreshToken** | Pointer to **string** | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewDtoLogoutRequest
|
||||
|
||||
`func NewDtoLogoutRequest() *DtoLogoutRequest`
|
||||
|
||||
NewDtoLogoutRequest instantiates a new DtoLogoutRequest 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
|
||||
|
||||
### NewDtoLogoutRequestWithDefaults
|
||||
|
||||
`func NewDtoLogoutRequestWithDefaults() *DtoLogoutRequest`
|
||||
|
||||
NewDtoLogoutRequestWithDefaults instantiates a new DtoLogoutRequest 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
|
||||
|
||||
### GetRefreshToken
|
||||
|
||||
`func (o *DtoLogoutRequest) GetRefreshToken() string`
|
||||
|
||||
GetRefreshToken returns the RefreshToken field if non-nil, zero value otherwise.
|
||||
|
||||
### GetRefreshTokenOk
|
||||
|
||||
`func (o *DtoLogoutRequest) GetRefreshTokenOk() (*string, bool)`
|
||||
|
||||
GetRefreshTokenOk returns a tuple with the RefreshToken field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetRefreshToken
|
||||
|
||||
`func (o *DtoLogoutRequest) SetRefreshToken(v string)`
|
||||
|
||||
SetRefreshToken sets RefreshToken field to given value.
|
||||
|
||||
### HasRefreshToken
|
||||
|
||||
`func (o *DtoLogoutRequest) HasRefreshToken() bool`
|
||||
|
||||
HasRefreshToken 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,290 +0,0 @@
|
||||
# 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)
|
||||
|
||||
|
||||
@@ -1,134 +0,0 @@
|
||||
# DtoPageJob
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Items** | Pointer to [**[]DtoJob**](DtoJob.md) | | [optional]
|
||||
**Page** | Pointer to **int32** | | [optional]
|
||||
**PageSize** | Pointer to **int32** | | [optional]
|
||||
**Total** | Pointer to **int32** | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewDtoPageJob
|
||||
|
||||
`func NewDtoPageJob() *DtoPageJob`
|
||||
|
||||
NewDtoPageJob instantiates a new DtoPageJob 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
|
||||
|
||||
### NewDtoPageJobWithDefaults
|
||||
|
||||
`func NewDtoPageJobWithDefaults() *DtoPageJob`
|
||||
|
||||
NewDtoPageJobWithDefaults instantiates a new DtoPageJob 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
|
||||
|
||||
### GetItems
|
||||
|
||||
`func (o *DtoPageJob) GetItems() []DtoJob`
|
||||
|
||||
GetItems returns the Items field if non-nil, zero value otherwise.
|
||||
|
||||
### GetItemsOk
|
||||
|
||||
`func (o *DtoPageJob) GetItemsOk() (*[]DtoJob, bool)`
|
||||
|
||||
GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetItems
|
||||
|
||||
`func (o *DtoPageJob) SetItems(v []DtoJob)`
|
||||
|
||||
SetItems sets Items field to given value.
|
||||
|
||||
### HasItems
|
||||
|
||||
`func (o *DtoPageJob) HasItems() bool`
|
||||
|
||||
HasItems returns a boolean if a field has been set.
|
||||
|
||||
### GetPage
|
||||
|
||||
`func (o *DtoPageJob) GetPage() int32`
|
||||
|
||||
GetPage returns the Page field if non-nil, zero value otherwise.
|
||||
|
||||
### GetPageOk
|
||||
|
||||
`func (o *DtoPageJob) GetPageOk() (*int32, bool)`
|
||||
|
||||
GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetPage
|
||||
|
||||
`func (o *DtoPageJob) SetPage(v int32)`
|
||||
|
||||
SetPage sets Page field to given value.
|
||||
|
||||
### HasPage
|
||||
|
||||
`func (o *DtoPageJob) HasPage() bool`
|
||||
|
||||
HasPage returns a boolean if a field has been set.
|
||||
|
||||
### GetPageSize
|
||||
|
||||
`func (o *DtoPageJob) GetPageSize() int32`
|
||||
|
||||
GetPageSize returns the PageSize field if non-nil, zero value otherwise.
|
||||
|
||||
### GetPageSizeOk
|
||||
|
||||
`func (o *DtoPageJob) GetPageSizeOk() (*int32, bool)`
|
||||
|
||||
GetPageSizeOk returns a tuple with the PageSize field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetPageSize
|
||||
|
||||
`func (o *DtoPageJob) SetPageSize(v int32)`
|
||||
|
||||
SetPageSize sets PageSize field to given value.
|
||||
|
||||
### HasPageSize
|
||||
|
||||
`func (o *DtoPageJob) HasPageSize() bool`
|
||||
|
||||
HasPageSize returns a boolean if a field has been set.
|
||||
|
||||
### GetTotal
|
||||
|
||||
`func (o *DtoPageJob) GetTotal() int32`
|
||||
|
||||
GetTotal returns the Total field if non-nil, zero value otherwise.
|
||||
|
||||
### GetTotalOk
|
||||
|
||||
`func (o *DtoPageJob) GetTotalOk() (*int32, bool)`
|
||||
|
||||
GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetTotal
|
||||
|
||||
`func (o *DtoPageJob) SetTotal(v int32)`
|
||||
|
||||
SetTotal sets Total field to given value.
|
||||
|
||||
### HasTotal
|
||||
|
||||
`func (o *DtoPageJob) HasTotal() bool`
|
||||
|
||||
HasTotal 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,160 +0,0 @@
|
||||
# DtoQueueInfo
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Failed** | Pointer to **int32** | | [optional]
|
||||
**Name** | Pointer to **string** | | [optional]
|
||||
**Pending** | Pointer to **int32** | | [optional]
|
||||
**Running** | Pointer to **int32** | | [optional]
|
||||
**Scheduled** | Pointer to **int32** | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewDtoQueueInfo
|
||||
|
||||
`func NewDtoQueueInfo() *DtoQueueInfo`
|
||||
|
||||
NewDtoQueueInfo instantiates a new DtoQueueInfo 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
|
||||
|
||||
### NewDtoQueueInfoWithDefaults
|
||||
|
||||
`func NewDtoQueueInfoWithDefaults() *DtoQueueInfo`
|
||||
|
||||
NewDtoQueueInfoWithDefaults instantiates a new DtoQueueInfo 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
|
||||
|
||||
### GetFailed
|
||||
|
||||
`func (o *DtoQueueInfo) GetFailed() int32`
|
||||
|
||||
GetFailed returns the Failed field if non-nil, zero value otherwise.
|
||||
|
||||
### GetFailedOk
|
||||
|
||||
`func (o *DtoQueueInfo) GetFailedOk() (*int32, bool)`
|
||||
|
||||
GetFailedOk returns a tuple with the Failed field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetFailed
|
||||
|
||||
`func (o *DtoQueueInfo) SetFailed(v int32)`
|
||||
|
||||
SetFailed sets Failed field to given value.
|
||||
|
||||
### HasFailed
|
||||
|
||||
`func (o *DtoQueueInfo) HasFailed() bool`
|
||||
|
||||
HasFailed returns a boolean if a field has been set.
|
||||
|
||||
### GetName
|
||||
|
||||
`func (o *DtoQueueInfo) GetName() string`
|
||||
|
||||
GetName returns the Name field if non-nil, zero value otherwise.
|
||||
|
||||
### GetNameOk
|
||||
|
||||
`func (o *DtoQueueInfo) 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 *DtoQueueInfo) SetName(v string)`
|
||||
|
||||
SetName sets Name field to given value.
|
||||
|
||||
### HasName
|
||||
|
||||
`func (o *DtoQueueInfo) HasName() bool`
|
||||
|
||||
HasName returns a boolean if a field has been set.
|
||||
|
||||
### GetPending
|
||||
|
||||
`func (o *DtoQueueInfo) GetPending() int32`
|
||||
|
||||
GetPending returns the Pending field if non-nil, zero value otherwise.
|
||||
|
||||
### GetPendingOk
|
||||
|
||||
`func (o *DtoQueueInfo) GetPendingOk() (*int32, bool)`
|
||||
|
||||
GetPendingOk returns a tuple with the Pending field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetPending
|
||||
|
||||
`func (o *DtoQueueInfo) SetPending(v int32)`
|
||||
|
||||
SetPending sets Pending field to given value.
|
||||
|
||||
### HasPending
|
||||
|
||||
`func (o *DtoQueueInfo) HasPending() bool`
|
||||
|
||||
HasPending returns a boolean if a field has been set.
|
||||
|
||||
### GetRunning
|
||||
|
||||
`func (o *DtoQueueInfo) GetRunning() int32`
|
||||
|
||||
GetRunning returns the Running field if non-nil, zero value otherwise.
|
||||
|
||||
### GetRunningOk
|
||||
|
||||
`func (o *DtoQueueInfo) GetRunningOk() (*int32, bool)`
|
||||
|
||||
GetRunningOk returns a tuple with the Running field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetRunning
|
||||
|
||||
`func (o *DtoQueueInfo) SetRunning(v int32)`
|
||||
|
||||
SetRunning sets Running field to given value.
|
||||
|
||||
### HasRunning
|
||||
|
||||
`func (o *DtoQueueInfo) HasRunning() bool`
|
||||
|
||||
HasRunning returns a boolean if a field has been set.
|
||||
|
||||
### GetScheduled
|
||||
|
||||
`func (o *DtoQueueInfo) GetScheduled() int32`
|
||||
|
||||
GetScheduled returns the Scheduled field if non-nil, zero value otherwise.
|
||||
|
||||
### GetScheduledOk
|
||||
|
||||
`func (o *DtoQueueInfo) GetScheduledOk() (*int32, bool)`
|
||||
|
||||
GetScheduledOk returns a tuple with the Scheduled field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetScheduled
|
||||
|
||||
`func (o *DtoQueueInfo) SetScheduled(v int32)`
|
||||
|
||||
SetScheduled sets Scheduled field to given value.
|
||||
|
||||
### HasScheduled
|
||||
|
||||
`func (o *DtoQueueInfo) HasScheduled() bool`
|
||||
|
||||
HasScheduled 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,56 +0,0 @@
|
||||
# DtoRefreshRequest
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**RefreshToken** | Pointer to **string** | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewDtoRefreshRequest
|
||||
|
||||
`func NewDtoRefreshRequest() *DtoRefreshRequest`
|
||||
|
||||
NewDtoRefreshRequest instantiates a new DtoRefreshRequest 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
|
||||
|
||||
### NewDtoRefreshRequestWithDefaults
|
||||
|
||||
`func NewDtoRefreshRequestWithDefaults() *DtoRefreshRequest`
|
||||
|
||||
NewDtoRefreshRequestWithDefaults instantiates a new DtoRefreshRequest 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
|
||||
|
||||
### GetRefreshToken
|
||||
|
||||
`func (o *DtoRefreshRequest) GetRefreshToken() string`
|
||||
|
||||
GetRefreshToken returns the RefreshToken field if non-nil, zero value otherwise.
|
||||
|
||||
### GetRefreshTokenOk
|
||||
|
||||
`func (o *DtoRefreshRequest) GetRefreshTokenOk() (*string, bool)`
|
||||
|
||||
GetRefreshTokenOk returns a tuple with the RefreshToken field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetRefreshToken
|
||||
|
||||
`func (o *DtoRefreshRequest) SetRefreshToken(v string)`
|
||||
|
||||
SetRefreshToken sets RefreshToken field to given value.
|
||||
|
||||
### HasRefreshToken
|
||||
|
||||
`func (o *DtoRefreshRequest) HasRefreshToken() bool`
|
||||
|
||||
HasRefreshToken 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,316 +0,0 @@
|
||||
# DtoServerResponse
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**CreatedAt** | Pointer to **string** | | [optional]
|
||||
**Hostname** | Pointer to **string** | | [optional]
|
||||
**Id** | Pointer to **string** | | [optional]
|
||||
**OrganizationId** | Pointer to **string** | | [optional]
|
||||
**PrivateIpAddress** | Pointer to **string** | | [optional]
|
||||
**PublicIpAddress** | Pointer to **string** | | [optional]
|
||||
**Role** | Pointer to **string** | | [optional]
|
||||
**SshKeyId** | Pointer to **string** | | [optional]
|
||||
**SshUser** | Pointer to **string** | | [optional]
|
||||
**Status** | Pointer to **string** | | [optional]
|
||||
**UpdatedAt** | Pointer to **string** | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewDtoServerResponse
|
||||
|
||||
`func NewDtoServerResponse() *DtoServerResponse`
|
||||
|
||||
NewDtoServerResponse instantiates a new DtoServerResponse 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
|
||||
|
||||
### NewDtoServerResponseWithDefaults
|
||||
|
||||
`func NewDtoServerResponseWithDefaults() *DtoServerResponse`
|
||||
|
||||
NewDtoServerResponseWithDefaults instantiates a new DtoServerResponse 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
|
||||
|
||||
### GetCreatedAt
|
||||
|
||||
`func (o *DtoServerResponse) GetCreatedAt() string`
|
||||
|
||||
GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise.
|
||||
|
||||
### GetCreatedAtOk
|
||||
|
||||
`func (o *DtoServerResponse) 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 *DtoServerResponse) SetCreatedAt(v string)`
|
||||
|
||||
SetCreatedAt sets CreatedAt field to given value.
|
||||
|
||||
### HasCreatedAt
|
||||
|
||||
`func (o *DtoServerResponse) HasCreatedAt() bool`
|
||||
|
||||
HasCreatedAt returns a boolean if a field has been set.
|
||||
|
||||
### GetHostname
|
||||
|
||||
`func (o *DtoServerResponse) GetHostname() string`
|
||||
|
||||
GetHostname returns the Hostname field if non-nil, zero value otherwise.
|
||||
|
||||
### GetHostnameOk
|
||||
|
||||
`func (o *DtoServerResponse) GetHostnameOk() (*string, bool)`
|
||||
|
||||
GetHostnameOk returns a tuple with the Hostname field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetHostname
|
||||
|
||||
`func (o *DtoServerResponse) SetHostname(v string)`
|
||||
|
||||
SetHostname sets Hostname field to given value.
|
||||
|
||||
### HasHostname
|
||||
|
||||
`func (o *DtoServerResponse) HasHostname() bool`
|
||||
|
||||
HasHostname returns a boolean if a field has been set.
|
||||
|
||||
### GetId
|
||||
|
||||
`func (o *DtoServerResponse) GetId() string`
|
||||
|
||||
GetId returns the Id field if non-nil, zero value otherwise.
|
||||
|
||||
### GetIdOk
|
||||
|
||||
`func (o *DtoServerResponse) 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 *DtoServerResponse) SetId(v string)`
|
||||
|
||||
SetId sets Id field to given value.
|
||||
|
||||
### HasId
|
||||
|
||||
`func (o *DtoServerResponse) HasId() bool`
|
||||
|
||||
HasId returns a boolean if a field has been set.
|
||||
|
||||
### GetOrganizationId
|
||||
|
||||
`func (o *DtoServerResponse) GetOrganizationId() string`
|
||||
|
||||
GetOrganizationId returns the OrganizationId field if non-nil, zero value otherwise.
|
||||
|
||||
### GetOrganizationIdOk
|
||||
|
||||
`func (o *DtoServerResponse) 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 *DtoServerResponse) SetOrganizationId(v string)`
|
||||
|
||||
SetOrganizationId sets OrganizationId field to given value.
|
||||
|
||||
### HasOrganizationId
|
||||
|
||||
`func (o *DtoServerResponse) HasOrganizationId() bool`
|
||||
|
||||
HasOrganizationId returns a boolean if a field has been set.
|
||||
|
||||
### GetPrivateIpAddress
|
||||
|
||||
`func (o *DtoServerResponse) GetPrivateIpAddress() string`
|
||||
|
||||
GetPrivateIpAddress returns the PrivateIpAddress field if non-nil, zero value otherwise.
|
||||
|
||||
### GetPrivateIpAddressOk
|
||||
|
||||
`func (o *DtoServerResponse) GetPrivateIpAddressOk() (*string, bool)`
|
||||
|
||||
GetPrivateIpAddressOk returns a tuple with the PrivateIpAddress field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetPrivateIpAddress
|
||||
|
||||
`func (o *DtoServerResponse) SetPrivateIpAddress(v string)`
|
||||
|
||||
SetPrivateIpAddress sets PrivateIpAddress field to given value.
|
||||
|
||||
### HasPrivateIpAddress
|
||||
|
||||
`func (o *DtoServerResponse) HasPrivateIpAddress() bool`
|
||||
|
||||
HasPrivateIpAddress returns a boolean if a field has been set.
|
||||
|
||||
### GetPublicIpAddress
|
||||
|
||||
`func (o *DtoServerResponse) GetPublicIpAddress() string`
|
||||
|
||||
GetPublicIpAddress returns the PublicIpAddress field if non-nil, zero value otherwise.
|
||||
|
||||
### GetPublicIpAddressOk
|
||||
|
||||
`func (o *DtoServerResponse) GetPublicIpAddressOk() (*string, bool)`
|
||||
|
||||
GetPublicIpAddressOk returns a tuple with the PublicIpAddress field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetPublicIpAddress
|
||||
|
||||
`func (o *DtoServerResponse) SetPublicIpAddress(v string)`
|
||||
|
||||
SetPublicIpAddress sets PublicIpAddress field to given value.
|
||||
|
||||
### HasPublicIpAddress
|
||||
|
||||
`func (o *DtoServerResponse) HasPublicIpAddress() bool`
|
||||
|
||||
HasPublicIpAddress returns a boolean if a field has been set.
|
||||
|
||||
### GetRole
|
||||
|
||||
`func (o *DtoServerResponse) GetRole() string`
|
||||
|
||||
GetRole returns the Role field if non-nil, zero value otherwise.
|
||||
|
||||
### GetRoleOk
|
||||
|
||||
`func (o *DtoServerResponse) 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 *DtoServerResponse) SetRole(v string)`
|
||||
|
||||
SetRole sets Role field to given value.
|
||||
|
||||
### HasRole
|
||||
|
||||
`func (o *DtoServerResponse) HasRole() bool`
|
||||
|
||||
HasRole returns a boolean if a field has been set.
|
||||
|
||||
### GetSshKeyId
|
||||
|
||||
`func (o *DtoServerResponse) GetSshKeyId() string`
|
||||
|
||||
GetSshKeyId returns the SshKeyId field if non-nil, zero value otherwise.
|
||||
|
||||
### GetSshKeyIdOk
|
||||
|
||||
`func (o *DtoServerResponse) GetSshKeyIdOk() (*string, bool)`
|
||||
|
||||
GetSshKeyIdOk returns a tuple with the SshKeyId field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetSshKeyId
|
||||
|
||||
`func (o *DtoServerResponse) SetSshKeyId(v string)`
|
||||
|
||||
SetSshKeyId sets SshKeyId field to given value.
|
||||
|
||||
### HasSshKeyId
|
||||
|
||||
`func (o *DtoServerResponse) HasSshKeyId() bool`
|
||||
|
||||
HasSshKeyId returns a boolean if a field has been set.
|
||||
|
||||
### GetSshUser
|
||||
|
||||
`func (o *DtoServerResponse) GetSshUser() string`
|
||||
|
||||
GetSshUser returns the SshUser field if non-nil, zero value otherwise.
|
||||
|
||||
### GetSshUserOk
|
||||
|
||||
`func (o *DtoServerResponse) GetSshUserOk() (*string, bool)`
|
||||
|
||||
GetSshUserOk returns a tuple with the SshUser field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetSshUser
|
||||
|
||||
`func (o *DtoServerResponse) SetSshUser(v string)`
|
||||
|
||||
SetSshUser sets SshUser field to given value.
|
||||
|
||||
### HasSshUser
|
||||
|
||||
`func (o *DtoServerResponse) HasSshUser() bool`
|
||||
|
||||
HasSshUser returns a boolean if a field has been set.
|
||||
|
||||
### GetStatus
|
||||
|
||||
`func (o *DtoServerResponse) GetStatus() string`
|
||||
|
||||
GetStatus returns the Status field if non-nil, zero value otherwise.
|
||||
|
||||
### GetStatusOk
|
||||
|
||||
`func (o *DtoServerResponse) GetStatusOk() (*string, bool)`
|
||||
|
||||
GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetStatus
|
||||
|
||||
`func (o *DtoServerResponse) SetStatus(v string)`
|
||||
|
||||
SetStatus sets Status field to given value.
|
||||
|
||||
### HasStatus
|
||||
|
||||
`func (o *DtoServerResponse) HasStatus() bool`
|
||||
|
||||
HasStatus returns a boolean if a field has been set.
|
||||
|
||||
### GetUpdatedAt
|
||||
|
||||
`func (o *DtoServerResponse) GetUpdatedAt() string`
|
||||
|
||||
GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise.
|
||||
|
||||
### GetUpdatedAtOk
|
||||
|
||||
`func (o *DtoServerResponse) 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 *DtoServerResponse) SetUpdatedAt(v string)`
|
||||
|
||||
SetUpdatedAt sets UpdatedAt field to given value.
|
||||
|
||||
### HasUpdatedAt
|
||||
|
||||
`func (o *DtoServerResponse) 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)
|
||||
|
||||
|
||||
@@ -1,212 +0,0 @@
|
||||
# DtoSshResponse
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**CreatedAt** | Pointer to **string** | | [optional]
|
||||
**Fingerprint** | Pointer to **string** | | [optional]
|
||||
**Id** | Pointer to **string** | | [optional]
|
||||
**Name** | Pointer to **string** | | [optional]
|
||||
**OrganizationId** | Pointer to **string** | | [optional]
|
||||
**PublicKey** | Pointer to **string** | | [optional]
|
||||
**UpdatedAt** | Pointer to **string** | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewDtoSshResponse
|
||||
|
||||
`func NewDtoSshResponse() *DtoSshResponse`
|
||||
|
||||
NewDtoSshResponse instantiates a new DtoSshResponse 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
|
||||
|
||||
### NewDtoSshResponseWithDefaults
|
||||
|
||||
`func NewDtoSshResponseWithDefaults() *DtoSshResponse`
|
||||
|
||||
NewDtoSshResponseWithDefaults instantiates a new DtoSshResponse 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
|
||||
|
||||
### GetCreatedAt
|
||||
|
||||
`func (o *DtoSshResponse) GetCreatedAt() string`
|
||||
|
||||
GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise.
|
||||
|
||||
### GetCreatedAtOk
|
||||
|
||||
`func (o *DtoSshResponse) 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 *DtoSshResponse) SetCreatedAt(v string)`
|
||||
|
||||
SetCreatedAt sets CreatedAt field to given value.
|
||||
|
||||
### HasCreatedAt
|
||||
|
||||
`func (o *DtoSshResponse) HasCreatedAt() bool`
|
||||
|
||||
HasCreatedAt returns a boolean if a field has been set.
|
||||
|
||||
### GetFingerprint
|
||||
|
||||
`func (o *DtoSshResponse) GetFingerprint() string`
|
||||
|
||||
GetFingerprint returns the Fingerprint field if non-nil, zero value otherwise.
|
||||
|
||||
### GetFingerprintOk
|
||||
|
||||
`func (o *DtoSshResponse) GetFingerprintOk() (*string, bool)`
|
||||
|
||||
GetFingerprintOk returns a tuple with the Fingerprint field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetFingerprint
|
||||
|
||||
`func (o *DtoSshResponse) SetFingerprint(v string)`
|
||||
|
||||
SetFingerprint sets Fingerprint field to given value.
|
||||
|
||||
### HasFingerprint
|
||||
|
||||
`func (o *DtoSshResponse) HasFingerprint() bool`
|
||||
|
||||
HasFingerprint returns a boolean if a field has been set.
|
||||
|
||||
### GetId
|
||||
|
||||
`func (o *DtoSshResponse) GetId() string`
|
||||
|
||||
GetId returns the Id field if non-nil, zero value otherwise.
|
||||
|
||||
### GetIdOk
|
||||
|
||||
`func (o *DtoSshResponse) 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 *DtoSshResponse) SetId(v string)`
|
||||
|
||||
SetId sets Id field to given value.
|
||||
|
||||
### HasId
|
||||
|
||||
`func (o *DtoSshResponse) HasId() bool`
|
||||
|
||||
HasId returns a boolean if a field has been set.
|
||||
|
||||
### GetName
|
||||
|
||||
`func (o *DtoSshResponse) GetName() string`
|
||||
|
||||
GetName returns the Name field if non-nil, zero value otherwise.
|
||||
|
||||
### GetNameOk
|
||||
|
||||
`func (o *DtoSshResponse) 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 *DtoSshResponse) SetName(v string)`
|
||||
|
||||
SetName sets Name field to given value.
|
||||
|
||||
### HasName
|
||||
|
||||
`func (o *DtoSshResponse) HasName() bool`
|
||||
|
||||
HasName returns a boolean if a field has been set.
|
||||
|
||||
### GetOrganizationId
|
||||
|
||||
`func (o *DtoSshResponse) GetOrganizationId() string`
|
||||
|
||||
GetOrganizationId returns the OrganizationId field if non-nil, zero value otherwise.
|
||||
|
||||
### GetOrganizationIdOk
|
||||
|
||||
`func (o *DtoSshResponse) 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 *DtoSshResponse) SetOrganizationId(v string)`
|
||||
|
||||
SetOrganizationId sets OrganizationId field to given value.
|
||||
|
||||
### HasOrganizationId
|
||||
|
||||
`func (o *DtoSshResponse) HasOrganizationId() bool`
|
||||
|
||||
HasOrganizationId returns a boolean if a field has been set.
|
||||
|
||||
### GetPublicKey
|
||||
|
||||
`func (o *DtoSshResponse) GetPublicKey() string`
|
||||
|
||||
GetPublicKey returns the PublicKey field if non-nil, zero value otherwise.
|
||||
|
||||
### GetPublicKeyOk
|
||||
|
||||
`func (o *DtoSshResponse) GetPublicKeyOk() (*string, bool)`
|
||||
|
||||
GetPublicKeyOk returns a tuple with the PublicKey field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetPublicKey
|
||||
|
||||
`func (o *DtoSshResponse) SetPublicKey(v string)`
|
||||
|
||||
SetPublicKey sets PublicKey field to given value.
|
||||
|
||||
### HasPublicKey
|
||||
|
||||
`func (o *DtoSshResponse) HasPublicKey() bool`
|
||||
|
||||
HasPublicKey returns a boolean if a field has been set.
|
||||
|
||||
### GetUpdatedAt
|
||||
|
||||
`func (o *DtoSshResponse) GetUpdatedAt() string`
|
||||
|
||||
GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise.
|
||||
|
||||
### GetUpdatedAtOk
|
||||
|
||||
`func (o *DtoSshResponse) 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 *DtoSshResponse) SetUpdatedAt(v string)`
|
||||
|
||||
SetUpdatedAt sets UpdatedAt field to given value.
|
||||
|
||||
### HasUpdatedAt
|
||||
|
||||
`func (o *DtoSshResponse) 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)
|
||||
|
||||
|
||||
@@ -1,238 +0,0 @@
|
||||
# DtoSshRevealResponse
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**CreatedAt** | Pointer to **string** | | [optional]
|
||||
**Fingerprint** | Pointer to **string** | | [optional]
|
||||
**Id** | Pointer to **string** | | [optional]
|
||||
**Name** | Pointer to **string** | | [optional]
|
||||
**OrganizationId** | Pointer to **string** | | [optional]
|
||||
**PrivateKey** | Pointer to **string** | | [optional]
|
||||
**PublicKey** | Pointer to **string** | | [optional]
|
||||
**UpdatedAt** | Pointer to **string** | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewDtoSshRevealResponse
|
||||
|
||||
`func NewDtoSshRevealResponse() *DtoSshRevealResponse`
|
||||
|
||||
NewDtoSshRevealResponse instantiates a new DtoSshRevealResponse 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
|
||||
|
||||
### NewDtoSshRevealResponseWithDefaults
|
||||
|
||||
`func NewDtoSshRevealResponseWithDefaults() *DtoSshRevealResponse`
|
||||
|
||||
NewDtoSshRevealResponseWithDefaults instantiates a new DtoSshRevealResponse 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
|
||||
|
||||
### GetCreatedAt
|
||||
|
||||
`func (o *DtoSshRevealResponse) GetCreatedAt() string`
|
||||
|
||||
GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise.
|
||||
|
||||
### GetCreatedAtOk
|
||||
|
||||
`func (o *DtoSshRevealResponse) 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 *DtoSshRevealResponse) SetCreatedAt(v string)`
|
||||
|
||||
SetCreatedAt sets CreatedAt field to given value.
|
||||
|
||||
### HasCreatedAt
|
||||
|
||||
`func (o *DtoSshRevealResponse) HasCreatedAt() bool`
|
||||
|
||||
HasCreatedAt returns a boolean if a field has been set.
|
||||
|
||||
### GetFingerprint
|
||||
|
||||
`func (o *DtoSshRevealResponse) GetFingerprint() string`
|
||||
|
||||
GetFingerprint returns the Fingerprint field if non-nil, zero value otherwise.
|
||||
|
||||
### GetFingerprintOk
|
||||
|
||||
`func (o *DtoSshRevealResponse) GetFingerprintOk() (*string, bool)`
|
||||
|
||||
GetFingerprintOk returns a tuple with the Fingerprint field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetFingerprint
|
||||
|
||||
`func (o *DtoSshRevealResponse) SetFingerprint(v string)`
|
||||
|
||||
SetFingerprint sets Fingerprint field to given value.
|
||||
|
||||
### HasFingerprint
|
||||
|
||||
`func (o *DtoSshRevealResponse) HasFingerprint() bool`
|
||||
|
||||
HasFingerprint returns a boolean if a field has been set.
|
||||
|
||||
### GetId
|
||||
|
||||
`func (o *DtoSshRevealResponse) GetId() string`
|
||||
|
||||
GetId returns the Id field if non-nil, zero value otherwise.
|
||||
|
||||
### GetIdOk
|
||||
|
||||
`func (o *DtoSshRevealResponse) 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 *DtoSshRevealResponse) SetId(v string)`
|
||||
|
||||
SetId sets Id field to given value.
|
||||
|
||||
### HasId
|
||||
|
||||
`func (o *DtoSshRevealResponse) HasId() bool`
|
||||
|
||||
HasId returns a boolean if a field has been set.
|
||||
|
||||
### GetName
|
||||
|
||||
`func (o *DtoSshRevealResponse) GetName() string`
|
||||
|
||||
GetName returns the Name field if non-nil, zero value otherwise.
|
||||
|
||||
### GetNameOk
|
||||
|
||||
`func (o *DtoSshRevealResponse) 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 *DtoSshRevealResponse) SetName(v string)`
|
||||
|
||||
SetName sets Name field to given value.
|
||||
|
||||
### HasName
|
||||
|
||||
`func (o *DtoSshRevealResponse) HasName() bool`
|
||||
|
||||
HasName returns a boolean if a field has been set.
|
||||
|
||||
### GetOrganizationId
|
||||
|
||||
`func (o *DtoSshRevealResponse) GetOrganizationId() string`
|
||||
|
||||
GetOrganizationId returns the OrganizationId field if non-nil, zero value otherwise.
|
||||
|
||||
### GetOrganizationIdOk
|
||||
|
||||
`func (o *DtoSshRevealResponse) 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 *DtoSshRevealResponse) SetOrganizationId(v string)`
|
||||
|
||||
SetOrganizationId sets OrganizationId field to given value.
|
||||
|
||||
### HasOrganizationId
|
||||
|
||||
`func (o *DtoSshRevealResponse) HasOrganizationId() bool`
|
||||
|
||||
HasOrganizationId returns a boolean if a field has been set.
|
||||
|
||||
### GetPrivateKey
|
||||
|
||||
`func (o *DtoSshRevealResponse) GetPrivateKey() string`
|
||||
|
||||
GetPrivateKey returns the PrivateKey field if non-nil, zero value otherwise.
|
||||
|
||||
### GetPrivateKeyOk
|
||||
|
||||
`func (o *DtoSshRevealResponse) GetPrivateKeyOk() (*string, bool)`
|
||||
|
||||
GetPrivateKeyOk returns a tuple with the PrivateKey field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetPrivateKey
|
||||
|
||||
`func (o *DtoSshRevealResponse) SetPrivateKey(v string)`
|
||||
|
||||
SetPrivateKey sets PrivateKey field to given value.
|
||||
|
||||
### HasPrivateKey
|
||||
|
||||
`func (o *DtoSshRevealResponse) HasPrivateKey() bool`
|
||||
|
||||
HasPrivateKey returns a boolean if a field has been set.
|
||||
|
||||
### GetPublicKey
|
||||
|
||||
`func (o *DtoSshRevealResponse) GetPublicKey() string`
|
||||
|
||||
GetPublicKey returns the PublicKey field if non-nil, zero value otherwise.
|
||||
|
||||
### GetPublicKeyOk
|
||||
|
||||
`func (o *DtoSshRevealResponse) GetPublicKeyOk() (*string, bool)`
|
||||
|
||||
GetPublicKeyOk returns a tuple with the PublicKey field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetPublicKey
|
||||
|
||||
`func (o *DtoSshRevealResponse) SetPublicKey(v string)`
|
||||
|
||||
SetPublicKey sets PublicKey field to given value.
|
||||
|
||||
### HasPublicKey
|
||||
|
||||
`func (o *DtoSshRevealResponse) HasPublicKey() bool`
|
||||
|
||||
HasPublicKey returns a boolean if a field has been set.
|
||||
|
||||
### GetUpdatedAt
|
||||
|
||||
`func (o *DtoSshRevealResponse) GetUpdatedAt() string`
|
||||
|
||||
GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise.
|
||||
|
||||
### GetUpdatedAtOk
|
||||
|
||||
`func (o *DtoSshRevealResponse) 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 *DtoSshRevealResponse) SetUpdatedAt(v string)`
|
||||
|
||||
SetUpdatedAt sets UpdatedAt field to given value.
|
||||
|
||||
### HasUpdatedAt
|
||||
|
||||
`func (o *DtoSshRevealResponse) 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)
|
||||
|
||||
|
||||
@@ -1,212 +0,0 @@
|
||||
# DtoTaintResponse
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**CreatedAt** | Pointer to **string** | | [optional]
|
||||
**Effect** | Pointer to **string** | | [optional]
|
||||
**Id** | Pointer to **string** | | [optional]
|
||||
**Key** | Pointer to **string** | | [optional]
|
||||
**OrganizationId** | Pointer to **string** | | [optional]
|
||||
**UpdatedAt** | Pointer to **string** | | [optional]
|
||||
**Value** | Pointer to **string** | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewDtoTaintResponse
|
||||
|
||||
`func NewDtoTaintResponse() *DtoTaintResponse`
|
||||
|
||||
NewDtoTaintResponse instantiates a new DtoTaintResponse 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
|
||||
|
||||
### NewDtoTaintResponseWithDefaults
|
||||
|
||||
`func NewDtoTaintResponseWithDefaults() *DtoTaintResponse`
|
||||
|
||||
NewDtoTaintResponseWithDefaults instantiates a new DtoTaintResponse 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
|
||||
|
||||
### GetCreatedAt
|
||||
|
||||
`func (o *DtoTaintResponse) GetCreatedAt() string`
|
||||
|
||||
GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise.
|
||||
|
||||
### GetCreatedAtOk
|
||||
|
||||
`func (o *DtoTaintResponse) 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 *DtoTaintResponse) SetCreatedAt(v string)`
|
||||
|
||||
SetCreatedAt sets CreatedAt field to given value.
|
||||
|
||||
### HasCreatedAt
|
||||
|
||||
`func (o *DtoTaintResponse) HasCreatedAt() bool`
|
||||
|
||||
HasCreatedAt returns a boolean if a field has been set.
|
||||
|
||||
### GetEffect
|
||||
|
||||
`func (o *DtoTaintResponse) GetEffect() string`
|
||||
|
||||
GetEffect returns the Effect field if non-nil, zero value otherwise.
|
||||
|
||||
### GetEffectOk
|
||||
|
||||
`func (o *DtoTaintResponse) GetEffectOk() (*string, bool)`
|
||||
|
||||
GetEffectOk returns a tuple with the Effect field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetEffect
|
||||
|
||||
`func (o *DtoTaintResponse) SetEffect(v string)`
|
||||
|
||||
SetEffect sets Effect field to given value.
|
||||
|
||||
### HasEffect
|
||||
|
||||
`func (o *DtoTaintResponse) HasEffect() bool`
|
||||
|
||||
HasEffect returns a boolean if a field has been set.
|
||||
|
||||
### GetId
|
||||
|
||||
`func (o *DtoTaintResponse) GetId() string`
|
||||
|
||||
GetId returns the Id field if non-nil, zero value otherwise.
|
||||
|
||||
### GetIdOk
|
||||
|
||||
`func (o *DtoTaintResponse) 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 *DtoTaintResponse) SetId(v string)`
|
||||
|
||||
SetId sets Id field to given value.
|
||||
|
||||
### HasId
|
||||
|
||||
`func (o *DtoTaintResponse) HasId() bool`
|
||||
|
||||
HasId returns a boolean if a field has been set.
|
||||
|
||||
### GetKey
|
||||
|
||||
`func (o *DtoTaintResponse) GetKey() string`
|
||||
|
||||
GetKey returns the Key field if non-nil, zero value otherwise.
|
||||
|
||||
### GetKeyOk
|
||||
|
||||
`func (o *DtoTaintResponse) GetKeyOk() (*string, bool)`
|
||||
|
||||
GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetKey
|
||||
|
||||
`func (o *DtoTaintResponse) SetKey(v string)`
|
||||
|
||||
SetKey sets Key field to given value.
|
||||
|
||||
### HasKey
|
||||
|
||||
`func (o *DtoTaintResponse) HasKey() bool`
|
||||
|
||||
HasKey returns a boolean if a field has been set.
|
||||
|
||||
### GetOrganizationId
|
||||
|
||||
`func (o *DtoTaintResponse) GetOrganizationId() string`
|
||||
|
||||
GetOrganizationId returns the OrganizationId field if non-nil, zero value otherwise.
|
||||
|
||||
### GetOrganizationIdOk
|
||||
|
||||
`func (o *DtoTaintResponse) 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 *DtoTaintResponse) SetOrganizationId(v string)`
|
||||
|
||||
SetOrganizationId sets OrganizationId field to given value.
|
||||
|
||||
### HasOrganizationId
|
||||
|
||||
`func (o *DtoTaintResponse) HasOrganizationId() bool`
|
||||
|
||||
HasOrganizationId returns a boolean if a field has been set.
|
||||
|
||||
### GetUpdatedAt
|
||||
|
||||
`func (o *DtoTaintResponse) GetUpdatedAt() string`
|
||||
|
||||
GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise.
|
||||
|
||||
### GetUpdatedAtOk
|
||||
|
||||
`func (o *DtoTaintResponse) 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 *DtoTaintResponse) SetUpdatedAt(v string)`
|
||||
|
||||
SetUpdatedAt sets UpdatedAt field to given value.
|
||||
|
||||
### HasUpdatedAt
|
||||
|
||||
`func (o *DtoTaintResponse) HasUpdatedAt() bool`
|
||||
|
||||
HasUpdatedAt returns a boolean if a field has been set.
|
||||
|
||||
### GetValue
|
||||
|
||||
`func (o *DtoTaintResponse) GetValue() string`
|
||||
|
||||
GetValue returns the Value field if non-nil, zero value otherwise.
|
||||
|
||||
### GetValueOk
|
||||
|
||||
`func (o *DtoTaintResponse) GetValueOk() (*string, bool)`
|
||||
|
||||
GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetValue
|
||||
|
||||
`func (o *DtoTaintResponse) SetValue(v string)`
|
||||
|
||||
SetValue sets Value field to given value.
|
||||
|
||||
### HasValue
|
||||
|
||||
`func (o *DtoTaintResponse) HasValue() bool`
|
||||
|
||||
HasValue 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,134 +0,0 @@
|
||||
# DtoTokenPair
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**AccessToken** | Pointer to **string** | | [optional]
|
||||
**ExpiresIn** | Pointer to **int32** | | [optional]
|
||||
**RefreshToken** | Pointer to **string** | | [optional]
|
||||
**TokenType** | Pointer to **string** | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewDtoTokenPair
|
||||
|
||||
`func NewDtoTokenPair() *DtoTokenPair`
|
||||
|
||||
NewDtoTokenPair instantiates a new DtoTokenPair 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
|
||||
|
||||
### NewDtoTokenPairWithDefaults
|
||||
|
||||
`func NewDtoTokenPairWithDefaults() *DtoTokenPair`
|
||||
|
||||
NewDtoTokenPairWithDefaults instantiates a new DtoTokenPair 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
|
||||
|
||||
### GetAccessToken
|
||||
|
||||
`func (o *DtoTokenPair) GetAccessToken() string`
|
||||
|
||||
GetAccessToken returns the AccessToken field if non-nil, zero value otherwise.
|
||||
|
||||
### GetAccessTokenOk
|
||||
|
||||
`func (o *DtoTokenPair) GetAccessTokenOk() (*string, bool)`
|
||||
|
||||
GetAccessTokenOk returns a tuple with the AccessToken field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetAccessToken
|
||||
|
||||
`func (o *DtoTokenPair) SetAccessToken(v string)`
|
||||
|
||||
SetAccessToken sets AccessToken field to given value.
|
||||
|
||||
### HasAccessToken
|
||||
|
||||
`func (o *DtoTokenPair) HasAccessToken() bool`
|
||||
|
||||
HasAccessToken returns a boolean if a field has been set.
|
||||
|
||||
### GetExpiresIn
|
||||
|
||||
`func (o *DtoTokenPair) GetExpiresIn() int32`
|
||||
|
||||
GetExpiresIn returns the ExpiresIn field if non-nil, zero value otherwise.
|
||||
|
||||
### GetExpiresInOk
|
||||
|
||||
`func (o *DtoTokenPair) GetExpiresInOk() (*int32, bool)`
|
||||
|
||||
GetExpiresInOk returns a tuple with the ExpiresIn field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetExpiresIn
|
||||
|
||||
`func (o *DtoTokenPair) SetExpiresIn(v int32)`
|
||||
|
||||
SetExpiresIn sets ExpiresIn field to given value.
|
||||
|
||||
### HasExpiresIn
|
||||
|
||||
`func (o *DtoTokenPair) HasExpiresIn() bool`
|
||||
|
||||
HasExpiresIn returns a boolean if a field has been set.
|
||||
|
||||
### GetRefreshToken
|
||||
|
||||
`func (o *DtoTokenPair) GetRefreshToken() string`
|
||||
|
||||
GetRefreshToken returns the RefreshToken field if non-nil, zero value otherwise.
|
||||
|
||||
### GetRefreshTokenOk
|
||||
|
||||
`func (o *DtoTokenPair) GetRefreshTokenOk() (*string, bool)`
|
||||
|
||||
GetRefreshTokenOk returns a tuple with the RefreshToken field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetRefreshToken
|
||||
|
||||
`func (o *DtoTokenPair) SetRefreshToken(v string)`
|
||||
|
||||
SetRefreshToken sets RefreshToken field to given value.
|
||||
|
||||
### HasRefreshToken
|
||||
|
||||
`func (o *DtoTokenPair) HasRefreshToken() bool`
|
||||
|
||||
HasRefreshToken returns a boolean if a field has been set.
|
||||
|
||||
### GetTokenType
|
||||
|
||||
`func (o *DtoTokenPair) GetTokenType() string`
|
||||
|
||||
GetTokenType returns the TokenType field if non-nil, zero value otherwise.
|
||||
|
||||
### GetTokenTypeOk
|
||||
|
||||
`func (o *DtoTokenPair) GetTokenTypeOk() (*string, bool)`
|
||||
|
||||
GetTokenTypeOk returns a tuple with the TokenType field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetTokenType
|
||||
|
||||
`func (o *DtoTokenPair) SetTokenType(v string)`
|
||||
|
||||
SetTokenType sets TokenType field to given value.
|
||||
|
||||
### HasTokenType
|
||||
|
||||
`func (o *DtoTokenPair) HasTokenType() bool`
|
||||
|
||||
HasTokenType 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,82 +0,0 @@
|
||||
# DtoUpdateAnnotationRequest
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Key** | Pointer to **string** | | [optional]
|
||||
**Value** | Pointer to **string** | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewDtoUpdateAnnotationRequest
|
||||
|
||||
`func NewDtoUpdateAnnotationRequest() *DtoUpdateAnnotationRequest`
|
||||
|
||||
NewDtoUpdateAnnotationRequest instantiates a new DtoUpdateAnnotationRequest 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
|
||||
|
||||
### NewDtoUpdateAnnotationRequestWithDefaults
|
||||
|
||||
`func NewDtoUpdateAnnotationRequestWithDefaults() *DtoUpdateAnnotationRequest`
|
||||
|
||||
NewDtoUpdateAnnotationRequestWithDefaults instantiates a new DtoUpdateAnnotationRequest 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
|
||||
|
||||
### GetKey
|
||||
|
||||
`func (o *DtoUpdateAnnotationRequest) GetKey() string`
|
||||
|
||||
GetKey returns the Key field if non-nil, zero value otherwise.
|
||||
|
||||
### GetKeyOk
|
||||
|
||||
`func (o *DtoUpdateAnnotationRequest) GetKeyOk() (*string, bool)`
|
||||
|
||||
GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetKey
|
||||
|
||||
`func (o *DtoUpdateAnnotationRequest) SetKey(v string)`
|
||||
|
||||
SetKey sets Key field to given value.
|
||||
|
||||
### HasKey
|
||||
|
||||
`func (o *DtoUpdateAnnotationRequest) HasKey() bool`
|
||||
|
||||
HasKey returns a boolean if a field has been set.
|
||||
|
||||
### GetValue
|
||||
|
||||
`func (o *DtoUpdateAnnotationRequest) GetValue() string`
|
||||
|
||||
GetValue returns the Value field if non-nil, zero value otherwise.
|
||||
|
||||
### GetValueOk
|
||||
|
||||
`func (o *DtoUpdateAnnotationRequest) GetValueOk() (*string, bool)`
|
||||
|
||||
GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetValue
|
||||
|
||||
`func (o *DtoUpdateAnnotationRequest) SetValue(v string)`
|
||||
|
||||
SetValue sets Value field to given value.
|
||||
|
||||
### HasValue
|
||||
|
||||
`func (o *DtoUpdateAnnotationRequest) HasValue() bool`
|
||||
|
||||
HasValue 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,82 +0,0 @@
|
||||
# DtoUpdateLabelRequest
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Key** | Pointer to **string** | | [optional]
|
||||
**Value** | Pointer to **string** | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewDtoUpdateLabelRequest
|
||||
|
||||
`func NewDtoUpdateLabelRequest() *DtoUpdateLabelRequest`
|
||||
|
||||
NewDtoUpdateLabelRequest instantiates a new DtoUpdateLabelRequest 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
|
||||
|
||||
### NewDtoUpdateLabelRequestWithDefaults
|
||||
|
||||
`func NewDtoUpdateLabelRequestWithDefaults() *DtoUpdateLabelRequest`
|
||||
|
||||
NewDtoUpdateLabelRequestWithDefaults instantiates a new DtoUpdateLabelRequest 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
|
||||
|
||||
### GetKey
|
||||
|
||||
`func (o *DtoUpdateLabelRequest) GetKey() string`
|
||||
|
||||
GetKey returns the Key field if non-nil, zero value otherwise.
|
||||
|
||||
### GetKeyOk
|
||||
|
||||
`func (o *DtoUpdateLabelRequest) GetKeyOk() (*string, bool)`
|
||||
|
||||
GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetKey
|
||||
|
||||
`func (o *DtoUpdateLabelRequest) SetKey(v string)`
|
||||
|
||||
SetKey sets Key field to given value.
|
||||
|
||||
### HasKey
|
||||
|
||||
`func (o *DtoUpdateLabelRequest) HasKey() bool`
|
||||
|
||||
HasKey returns a boolean if a field has been set.
|
||||
|
||||
### GetValue
|
||||
|
||||
`func (o *DtoUpdateLabelRequest) GetValue() string`
|
||||
|
||||
GetValue returns the Value field if non-nil, zero value otherwise.
|
||||
|
||||
### GetValueOk
|
||||
|
||||
`func (o *DtoUpdateLabelRequest) GetValueOk() (*string, bool)`
|
||||
|
||||
GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetValue
|
||||
|
||||
`func (o *DtoUpdateLabelRequest) SetValue(v string)`
|
||||
|
||||
SetValue sets Value field to given value.
|
||||
|
||||
### HasValue
|
||||
|
||||
`func (o *DtoUpdateLabelRequest) HasValue() bool`
|
||||
|
||||
HasValue 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,82 +0,0 @@
|
||||
# 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,212 +0,0 @@
|
||||
# DtoUpdateServerRequest
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Hostname** | Pointer to **string** | | [optional]
|
||||
**PrivateIpAddress** | Pointer to **string** | | [optional]
|
||||
**PublicIpAddress** | Pointer to **string** | | [optional]
|
||||
**Role** | Pointer to **string** | | [optional]
|
||||
**SshKeyId** | Pointer to **string** | | [optional]
|
||||
**SshUser** | Pointer to **string** | | [optional]
|
||||
**Status** | Pointer to **string** | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewDtoUpdateServerRequest
|
||||
|
||||
`func NewDtoUpdateServerRequest() *DtoUpdateServerRequest`
|
||||
|
||||
NewDtoUpdateServerRequest instantiates a new DtoUpdateServerRequest 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
|
||||
|
||||
### NewDtoUpdateServerRequestWithDefaults
|
||||
|
||||
`func NewDtoUpdateServerRequestWithDefaults() *DtoUpdateServerRequest`
|
||||
|
||||
NewDtoUpdateServerRequestWithDefaults instantiates a new DtoUpdateServerRequest 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
|
||||
|
||||
### GetHostname
|
||||
|
||||
`func (o *DtoUpdateServerRequest) GetHostname() string`
|
||||
|
||||
GetHostname returns the Hostname field if non-nil, zero value otherwise.
|
||||
|
||||
### GetHostnameOk
|
||||
|
||||
`func (o *DtoUpdateServerRequest) GetHostnameOk() (*string, bool)`
|
||||
|
||||
GetHostnameOk returns a tuple with the Hostname field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetHostname
|
||||
|
||||
`func (o *DtoUpdateServerRequest) SetHostname(v string)`
|
||||
|
||||
SetHostname sets Hostname field to given value.
|
||||
|
||||
### HasHostname
|
||||
|
||||
`func (o *DtoUpdateServerRequest) HasHostname() bool`
|
||||
|
||||
HasHostname returns a boolean if a field has been set.
|
||||
|
||||
### GetPrivateIpAddress
|
||||
|
||||
`func (o *DtoUpdateServerRequest) GetPrivateIpAddress() string`
|
||||
|
||||
GetPrivateIpAddress returns the PrivateIpAddress field if non-nil, zero value otherwise.
|
||||
|
||||
### GetPrivateIpAddressOk
|
||||
|
||||
`func (o *DtoUpdateServerRequest) GetPrivateIpAddressOk() (*string, bool)`
|
||||
|
||||
GetPrivateIpAddressOk returns a tuple with the PrivateIpAddress field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetPrivateIpAddress
|
||||
|
||||
`func (o *DtoUpdateServerRequest) SetPrivateIpAddress(v string)`
|
||||
|
||||
SetPrivateIpAddress sets PrivateIpAddress field to given value.
|
||||
|
||||
### HasPrivateIpAddress
|
||||
|
||||
`func (o *DtoUpdateServerRequest) HasPrivateIpAddress() bool`
|
||||
|
||||
HasPrivateIpAddress returns a boolean if a field has been set.
|
||||
|
||||
### GetPublicIpAddress
|
||||
|
||||
`func (o *DtoUpdateServerRequest) GetPublicIpAddress() string`
|
||||
|
||||
GetPublicIpAddress returns the PublicIpAddress field if non-nil, zero value otherwise.
|
||||
|
||||
### GetPublicIpAddressOk
|
||||
|
||||
`func (o *DtoUpdateServerRequest) GetPublicIpAddressOk() (*string, bool)`
|
||||
|
||||
GetPublicIpAddressOk returns a tuple with the PublicIpAddress field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetPublicIpAddress
|
||||
|
||||
`func (o *DtoUpdateServerRequest) SetPublicIpAddress(v string)`
|
||||
|
||||
SetPublicIpAddress sets PublicIpAddress field to given value.
|
||||
|
||||
### HasPublicIpAddress
|
||||
|
||||
`func (o *DtoUpdateServerRequest) HasPublicIpAddress() bool`
|
||||
|
||||
HasPublicIpAddress returns a boolean if a field has been set.
|
||||
|
||||
### GetRole
|
||||
|
||||
`func (o *DtoUpdateServerRequest) GetRole() string`
|
||||
|
||||
GetRole returns the Role field if non-nil, zero value otherwise.
|
||||
|
||||
### GetRoleOk
|
||||
|
||||
`func (o *DtoUpdateServerRequest) 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 *DtoUpdateServerRequest) SetRole(v string)`
|
||||
|
||||
SetRole sets Role field to given value.
|
||||
|
||||
### HasRole
|
||||
|
||||
`func (o *DtoUpdateServerRequest) HasRole() bool`
|
||||
|
||||
HasRole returns a boolean if a field has been set.
|
||||
|
||||
### GetSshKeyId
|
||||
|
||||
`func (o *DtoUpdateServerRequest) GetSshKeyId() string`
|
||||
|
||||
GetSshKeyId returns the SshKeyId field if non-nil, zero value otherwise.
|
||||
|
||||
### GetSshKeyIdOk
|
||||
|
||||
`func (o *DtoUpdateServerRequest) GetSshKeyIdOk() (*string, bool)`
|
||||
|
||||
GetSshKeyIdOk returns a tuple with the SshKeyId field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetSshKeyId
|
||||
|
||||
`func (o *DtoUpdateServerRequest) SetSshKeyId(v string)`
|
||||
|
||||
SetSshKeyId sets SshKeyId field to given value.
|
||||
|
||||
### HasSshKeyId
|
||||
|
||||
`func (o *DtoUpdateServerRequest) HasSshKeyId() bool`
|
||||
|
||||
HasSshKeyId returns a boolean if a field has been set.
|
||||
|
||||
### GetSshUser
|
||||
|
||||
`func (o *DtoUpdateServerRequest) GetSshUser() string`
|
||||
|
||||
GetSshUser returns the SshUser field if non-nil, zero value otherwise.
|
||||
|
||||
### GetSshUserOk
|
||||
|
||||
`func (o *DtoUpdateServerRequest) GetSshUserOk() (*string, bool)`
|
||||
|
||||
GetSshUserOk returns a tuple with the SshUser field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetSshUser
|
||||
|
||||
`func (o *DtoUpdateServerRequest) SetSshUser(v string)`
|
||||
|
||||
SetSshUser sets SshUser field to given value.
|
||||
|
||||
### HasSshUser
|
||||
|
||||
`func (o *DtoUpdateServerRequest) HasSshUser() bool`
|
||||
|
||||
HasSshUser returns a boolean if a field has been set.
|
||||
|
||||
### GetStatus
|
||||
|
||||
`func (o *DtoUpdateServerRequest) GetStatus() string`
|
||||
|
||||
GetStatus returns the Status field if non-nil, zero value otherwise.
|
||||
|
||||
### GetStatusOk
|
||||
|
||||
`func (o *DtoUpdateServerRequest) GetStatusOk() (*string, bool)`
|
||||
|
||||
GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetStatus
|
||||
|
||||
`func (o *DtoUpdateServerRequest) SetStatus(v string)`
|
||||
|
||||
SetStatus sets Status field to given value.
|
||||
|
||||
### HasStatus
|
||||
|
||||
`func (o *DtoUpdateServerRequest) HasStatus() bool`
|
||||
|
||||
HasStatus 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,108 +0,0 @@
|
||||
# DtoUpdateTaintRequest
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Effect** | Pointer to **string** | | [optional]
|
||||
**Key** | Pointer to **string** | | [optional]
|
||||
**Value** | Pointer to **string** | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewDtoUpdateTaintRequest
|
||||
|
||||
`func NewDtoUpdateTaintRequest() *DtoUpdateTaintRequest`
|
||||
|
||||
NewDtoUpdateTaintRequest instantiates a new DtoUpdateTaintRequest 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
|
||||
|
||||
### NewDtoUpdateTaintRequestWithDefaults
|
||||
|
||||
`func NewDtoUpdateTaintRequestWithDefaults() *DtoUpdateTaintRequest`
|
||||
|
||||
NewDtoUpdateTaintRequestWithDefaults instantiates a new DtoUpdateTaintRequest 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
|
||||
|
||||
### GetEffect
|
||||
|
||||
`func (o *DtoUpdateTaintRequest) GetEffect() string`
|
||||
|
||||
GetEffect returns the Effect field if non-nil, zero value otherwise.
|
||||
|
||||
### GetEffectOk
|
||||
|
||||
`func (o *DtoUpdateTaintRequest) GetEffectOk() (*string, bool)`
|
||||
|
||||
GetEffectOk returns a tuple with the Effect field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetEffect
|
||||
|
||||
`func (o *DtoUpdateTaintRequest) SetEffect(v string)`
|
||||
|
||||
SetEffect sets Effect field to given value.
|
||||
|
||||
### HasEffect
|
||||
|
||||
`func (o *DtoUpdateTaintRequest) HasEffect() bool`
|
||||
|
||||
HasEffect returns a boolean if a field has been set.
|
||||
|
||||
### GetKey
|
||||
|
||||
`func (o *DtoUpdateTaintRequest) GetKey() string`
|
||||
|
||||
GetKey returns the Key field if non-nil, zero value otherwise.
|
||||
|
||||
### GetKeyOk
|
||||
|
||||
`func (o *DtoUpdateTaintRequest) GetKeyOk() (*string, bool)`
|
||||
|
||||
GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetKey
|
||||
|
||||
`func (o *DtoUpdateTaintRequest) SetKey(v string)`
|
||||
|
||||
SetKey sets Key field to given value.
|
||||
|
||||
### HasKey
|
||||
|
||||
`func (o *DtoUpdateTaintRequest) HasKey() bool`
|
||||
|
||||
HasKey returns a boolean if a field has been set.
|
||||
|
||||
### GetValue
|
||||
|
||||
`func (o *DtoUpdateTaintRequest) GetValue() string`
|
||||
|
||||
GetValue returns the Value field if non-nil, zero value otherwise.
|
||||
|
||||
### GetValueOk
|
||||
|
||||
`func (o *DtoUpdateTaintRequest) GetValueOk() (*string, bool)`
|
||||
|
||||
GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetValue
|
||||
|
||||
`func (o *DtoUpdateTaintRequest) SetValue(v string)`
|
||||
|
||||
SetValue sets Value field to given value.
|
||||
|
||||
### HasValue
|
||||
|
||||
`func (o *DtoUpdateTaintRequest) HasValue() bool`
|
||||
|
||||
HasValue 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,82 +0,0 @@
|
||||
# HandlersCreateUserKeyRequest
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**ExpiresInHours** | Pointer to **int32** | optional TTL | [optional]
|
||||
**Name** | Pointer to **string** | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewHandlersCreateUserKeyRequest
|
||||
|
||||
`func NewHandlersCreateUserKeyRequest() *HandlersCreateUserKeyRequest`
|
||||
|
||||
NewHandlersCreateUserKeyRequest instantiates a new HandlersCreateUserKeyRequest 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
|
||||
|
||||
### NewHandlersCreateUserKeyRequestWithDefaults
|
||||
|
||||
`func NewHandlersCreateUserKeyRequestWithDefaults() *HandlersCreateUserKeyRequest`
|
||||
|
||||
NewHandlersCreateUserKeyRequestWithDefaults instantiates a new HandlersCreateUserKeyRequest 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
|
||||
|
||||
### GetExpiresInHours
|
||||
|
||||
`func (o *HandlersCreateUserKeyRequest) GetExpiresInHours() int32`
|
||||
|
||||
GetExpiresInHours returns the ExpiresInHours field if non-nil, zero value otherwise.
|
||||
|
||||
### GetExpiresInHoursOk
|
||||
|
||||
`func (o *HandlersCreateUserKeyRequest) GetExpiresInHoursOk() (*int32, bool)`
|
||||
|
||||
GetExpiresInHoursOk returns a tuple with the ExpiresInHours field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetExpiresInHours
|
||||
|
||||
`func (o *HandlersCreateUserKeyRequest) SetExpiresInHours(v int32)`
|
||||
|
||||
SetExpiresInHours sets ExpiresInHours field to given value.
|
||||
|
||||
### HasExpiresInHours
|
||||
|
||||
`func (o *HandlersCreateUserKeyRequest) HasExpiresInHours() bool`
|
||||
|
||||
HasExpiresInHours returns a boolean if a field has been set.
|
||||
|
||||
### GetName
|
||||
|
||||
`func (o *HandlersCreateUserKeyRequest) GetName() string`
|
||||
|
||||
GetName returns the Name field if non-nil, zero value otherwise.
|
||||
|
||||
### GetNameOk
|
||||
|
||||
`func (o *HandlersCreateUserKeyRequest) 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 *HandlersCreateUserKeyRequest) SetName(v string)`
|
||||
|
||||
SetName sets Name field to given value.
|
||||
|
||||
### HasName
|
||||
|
||||
`func (o *HandlersCreateUserKeyRequest) HasName() bool`
|
||||
|
||||
HasName 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,56 +0,0 @@
|
||||
# HandlersHealthStatus
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Status** | Pointer to **string** | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewHandlersHealthStatus
|
||||
|
||||
`func NewHandlersHealthStatus() *HandlersHealthStatus`
|
||||
|
||||
NewHandlersHealthStatus instantiates a new HandlersHealthStatus 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
|
||||
|
||||
### NewHandlersHealthStatusWithDefaults
|
||||
|
||||
`func NewHandlersHealthStatusWithDefaults() *HandlersHealthStatus`
|
||||
|
||||
NewHandlersHealthStatusWithDefaults instantiates a new HandlersHealthStatus 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
|
||||
|
||||
### GetStatus
|
||||
|
||||
`func (o *HandlersHealthStatus) GetStatus() string`
|
||||
|
||||
GetStatus returns the Status field if non-nil, zero value otherwise.
|
||||
|
||||
### GetStatusOk
|
||||
|
||||
`func (o *HandlersHealthStatus) GetStatusOk() (*string, bool)`
|
||||
|
||||
GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetStatus
|
||||
|
||||
`func (o *HandlersHealthStatus) SetStatus(v string)`
|
||||
|
||||
SetStatus sets Status field to given value.
|
||||
|
||||
### HasStatus
|
||||
|
||||
`func (o *HandlersHealthStatus) HasStatus() bool`
|
||||
|
||||
HasStatus 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,290 +0,0 @@
|
||||
# HandlersMeResponse
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**AvatarUrl** | Pointer to **string** | | [optional]
|
||||
**CreatedAt** | Pointer to **time.Time** | | [optional]
|
||||
**DisplayName** | Pointer to **string** | | [optional]
|
||||
**Emails** | Pointer to [**[]ModelsUserEmail**](ModelsUserEmail.md) | | [optional]
|
||||
**Id** | Pointer to **string** | example: 3fa85f64-5717-4562-b3fc-2c963f66afa6 | [optional]
|
||||
**IsAdmin** | Pointer to **bool** | | [optional]
|
||||
**IsDisabled** | Pointer to **bool** | | [optional]
|
||||
**Organizations** | Pointer to [**[]ModelsOrganization**](ModelsOrganization.md) | | [optional]
|
||||
**PrimaryEmail** | Pointer to **string** | | [optional]
|
||||
**UpdatedAt** | Pointer to **time.Time** | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewHandlersMeResponse
|
||||
|
||||
`func NewHandlersMeResponse() *HandlersMeResponse`
|
||||
|
||||
NewHandlersMeResponse instantiates a new HandlersMeResponse 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
|
||||
|
||||
### NewHandlersMeResponseWithDefaults
|
||||
|
||||
`func NewHandlersMeResponseWithDefaults() *HandlersMeResponse`
|
||||
|
||||
NewHandlersMeResponseWithDefaults instantiates a new HandlersMeResponse 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
|
||||
|
||||
### GetAvatarUrl
|
||||
|
||||
`func (o *HandlersMeResponse) GetAvatarUrl() string`
|
||||
|
||||
GetAvatarUrl returns the AvatarUrl field if non-nil, zero value otherwise.
|
||||
|
||||
### GetAvatarUrlOk
|
||||
|
||||
`func (o *HandlersMeResponse) GetAvatarUrlOk() (*string, bool)`
|
||||
|
||||
GetAvatarUrlOk returns a tuple with the AvatarUrl field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetAvatarUrl
|
||||
|
||||
`func (o *HandlersMeResponse) SetAvatarUrl(v string)`
|
||||
|
||||
SetAvatarUrl sets AvatarUrl field to given value.
|
||||
|
||||
### HasAvatarUrl
|
||||
|
||||
`func (o *HandlersMeResponse) HasAvatarUrl() bool`
|
||||
|
||||
HasAvatarUrl returns a boolean if a field has been set.
|
||||
|
||||
### GetCreatedAt
|
||||
|
||||
`func (o *HandlersMeResponse) GetCreatedAt() time.Time`
|
||||
|
||||
GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise.
|
||||
|
||||
### GetCreatedAtOk
|
||||
|
||||
`func (o *HandlersMeResponse) GetCreatedAtOk() (*time.Time, 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 *HandlersMeResponse) SetCreatedAt(v time.Time)`
|
||||
|
||||
SetCreatedAt sets CreatedAt field to given value.
|
||||
|
||||
### HasCreatedAt
|
||||
|
||||
`func (o *HandlersMeResponse) HasCreatedAt() bool`
|
||||
|
||||
HasCreatedAt returns a boolean if a field has been set.
|
||||
|
||||
### GetDisplayName
|
||||
|
||||
`func (o *HandlersMeResponse) GetDisplayName() string`
|
||||
|
||||
GetDisplayName returns the DisplayName field if non-nil, zero value otherwise.
|
||||
|
||||
### GetDisplayNameOk
|
||||
|
||||
`func (o *HandlersMeResponse) GetDisplayNameOk() (*string, bool)`
|
||||
|
||||
GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetDisplayName
|
||||
|
||||
`func (o *HandlersMeResponse) SetDisplayName(v string)`
|
||||
|
||||
SetDisplayName sets DisplayName field to given value.
|
||||
|
||||
### HasDisplayName
|
||||
|
||||
`func (o *HandlersMeResponse) HasDisplayName() bool`
|
||||
|
||||
HasDisplayName returns a boolean if a field has been set.
|
||||
|
||||
### GetEmails
|
||||
|
||||
`func (o *HandlersMeResponse) GetEmails() []ModelsUserEmail`
|
||||
|
||||
GetEmails returns the Emails field if non-nil, zero value otherwise.
|
||||
|
||||
### GetEmailsOk
|
||||
|
||||
`func (o *HandlersMeResponse) GetEmailsOk() (*[]ModelsUserEmail, bool)`
|
||||
|
||||
GetEmailsOk returns a tuple with the Emails field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetEmails
|
||||
|
||||
`func (o *HandlersMeResponse) SetEmails(v []ModelsUserEmail)`
|
||||
|
||||
SetEmails sets Emails field to given value.
|
||||
|
||||
### HasEmails
|
||||
|
||||
`func (o *HandlersMeResponse) HasEmails() bool`
|
||||
|
||||
HasEmails returns a boolean if a field has been set.
|
||||
|
||||
### GetId
|
||||
|
||||
`func (o *HandlersMeResponse) GetId() string`
|
||||
|
||||
GetId returns the Id field if non-nil, zero value otherwise.
|
||||
|
||||
### GetIdOk
|
||||
|
||||
`func (o *HandlersMeResponse) 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 *HandlersMeResponse) SetId(v string)`
|
||||
|
||||
SetId sets Id field to given value.
|
||||
|
||||
### HasId
|
||||
|
||||
`func (o *HandlersMeResponse) HasId() bool`
|
||||
|
||||
HasId returns a boolean if a field has been set.
|
||||
|
||||
### GetIsAdmin
|
||||
|
||||
`func (o *HandlersMeResponse) GetIsAdmin() bool`
|
||||
|
||||
GetIsAdmin returns the IsAdmin field if non-nil, zero value otherwise.
|
||||
|
||||
### GetIsAdminOk
|
||||
|
||||
`func (o *HandlersMeResponse) GetIsAdminOk() (*bool, bool)`
|
||||
|
||||
GetIsAdminOk returns a tuple with the IsAdmin field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetIsAdmin
|
||||
|
||||
`func (o *HandlersMeResponse) SetIsAdmin(v bool)`
|
||||
|
||||
SetIsAdmin sets IsAdmin field to given value.
|
||||
|
||||
### HasIsAdmin
|
||||
|
||||
`func (o *HandlersMeResponse) HasIsAdmin() bool`
|
||||
|
||||
HasIsAdmin returns a boolean if a field has been set.
|
||||
|
||||
### GetIsDisabled
|
||||
|
||||
`func (o *HandlersMeResponse) GetIsDisabled() bool`
|
||||
|
||||
GetIsDisabled returns the IsDisabled field if non-nil, zero value otherwise.
|
||||
|
||||
### GetIsDisabledOk
|
||||
|
||||
`func (o *HandlersMeResponse) GetIsDisabledOk() (*bool, bool)`
|
||||
|
||||
GetIsDisabledOk returns a tuple with the IsDisabled field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetIsDisabled
|
||||
|
||||
`func (o *HandlersMeResponse) SetIsDisabled(v bool)`
|
||||
|
||||
SetIsDisabled sets IsDisabled field to given value.
|
||||
|
||||
### HasIsDisabled
|
||||
|
||||
`func (o *HandlersMeResponse) HasIsDisabled() bool`
|
||||
|
||||
HasIsDisabled returns a boolean if a field has been set.
|
||||
|
||||
### GetOrganizations
|
||||
|
||||
`func (o *HandlersMeResponse) GetOrganizations() []ModelsOrganization`
|
||||
|
||||
GetOrganizations returns the Organizations field if non-nil, zero value otherwise.
|
||||
|
||||
### GetOrganizationsOk
|
||||
|
||||
`func (o *HandlersMeResponse) GetOrganizationsOk() (*[]ModelsOrganization, bool)`
|
||||
|
||||
GetOrganizationsOk returns a tuple with the Organizations field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetOrganizations
|
||||
|
||||
`func (o *HandlersMeResponse) SetOrganizations(v []ModelsOrganization)`
|
||||
|
||||
SetOrganizations sets Organizations field to given value.
|
||||
|
||||
### HasOrganizations
|
||||
|
||||
`func (o *HandlersMeResponse) HasOrganizations() bool`
|
||||
|
||||
HasOrganizations returns a boolean if a field has been set.
|
||||
|
||||
### GetPrimaryEmail
|
||||
|
||||
`func (o *HandlersMeResponse) GetPrimaryEmail() string`
|
||||
|
||||
GetPrimaryEmail returns the PrimaryEmail field if non-nil, zero value otherwise.
|
||||
|
||||
### GetPrimaryEmailOk
|
||||
|
||||
`func (o *HandlersMeResponse) GetPrimaryEmailOk() (*string, bool)`
|
||||
|
||||
GetPrimaryEmailOk returns a tuple with the PrimaryEmail field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetPrimaryEmail
|
||||
|
||||
`func (o *HandlersMeResponse) SetPrimaryEmail(v string)`
|
||||
|
||||
SetPrimaryEmail sets PrimaryEmail field to given value.
|
||||
|
||||
### HasPrimaryEmail
|
||||
|
||||
`func (o *HandlersMeResponse) HasPrimaryEmail() bool`
|
||||
|
||||
HasPrimaryEmail returns a boolean if a field has been set.
|
||||
|
||||
### GetUpdatedAt
|
||||
|
||||
`func (o *HandlersMeResponse) GetUpdatedAt() time.Time`
|
||||
|
||||
GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise.
|
||||
|
||||
### GetUpdatedAtOk
|
||||
|
||||
`func (o *HandlersMeResponse) GetUpdatedAtOk() (*time.Time, 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 *HandlersMeResponse) SetUpdatedAt(v time.Time)`
|
||||
|
||||
SetUpdatedAt sets UpdatedAt field to given value.
|
||||
|
||||
### HasUpdatedAt
|
||||
|
||||
`func (o *HandlersMeResponse) 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)
|
||||
|
||||
|
||||
@@ -1,108 +0,0 @@
|
||||
# HandlersMemberOut
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Email** | Pointer to **string** | | [optional]
|
||||
**Role** | Pointer to **string** | owner/admin/member | [optional]
|
||||
**UserId** | Pointer to **string** | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewHandlersMemberOut
|
||||
|
||||
`func NewHandlersMemberOut() *HandlersMemberOut`
|
||||
|
||||
NewHandlersMemberOut instantiates a new HandlersMemberOut 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
|
||||
|
||||
### NewHandlersMemberOutWithDefaults
|
||||
|
||||
`func NewHandlersMemberOutWithDefaults() *HandlersMemberOut`
|
||||
|
||||
NewHandlersMemberOutWithDefaults instantiates a new HandlersMemberOut 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
|
||||
|
||||
### GetEmail
|
||||
|
||||
`func (o *HandlersMemberOut) GetEmail() string`
|
||||
|
||||
GetEmail returns the Email field if non-nil, zero value otherwise.
|
||||
|
||||
### GetEmailOk
|
||||
|
||||
`func (o *HandlersMemberOut) GetEmailOk() (*string, bool)`
|
||||
|
||||
GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetEmail
|
||||
|
||||
`func (o *HandlersMemberOut) SetEmail(v string)`
|
||||
|
||||
SetEmail sets Email field to given value.
|
||||
|
||||
### HasEmail
|
||||
|
||||
`func (o *HandlersMemberOut) HasEmail() bool`
|
||||
|
||||
HasEmail returns a boolean if a field has been set.
|
||||
|
||||
### GetRole
|
||||
|
||||
`func (o *HandlersMemberOut) GetRole() string`
|
||||
|
||||
GetRole returns the Role field if non-nil, zero value otherwise.
|
||||
|
||||
### GetRoleOk
|
||||
|
||||
`func (o *HandlersMemberOut) 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 *HandlersMemberOut) SetRole(v string)`
|
||||
|
||||
SetRole sets Role field to given value.
|
||||
|
||||
### HasRole
|
||||
|
||||
`func (o *HandlersMemberOut) HasRole() bool`
|
||||
|
||||
HasRole returns a boolean if a field has been set.
|
||||
|
||||
### GetUserId
|
||||
|
||||
`func (o *HandlersMemberOut) GetUserId() string`
|
||||
|
||||
GetUserId returns the UserId field if non-nil, zero value otherwise.
|
||||
|
||||
### GetUserIdOk
|
||||
|
||||
`func (o *HandlersMemberOut) GetUserIdOk() (*string, bool)`
|
||||
|
||||
GetUserIdOk returns a tuple with the UserId field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetUserId
|
||||
|
||||
`func (o *HandlersMemberOut) SetUserId(v string)`
|
||||
|
||||
SetUserId sets UserId field to given value.
|
||||
|
||||
### HasUserId
|
||||
|
||||
`func (o *HandlersMemberOut) HasUserId() bool`
|
||||
|
||||
HasUserId 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,82 +0,0 @@
|
||||
# HandlersMemberUpsertReq
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Role** | Pointer to **string** | | [optional]
|
||||
**UserId** | Pointer to **string** | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewHandlersMemberUpsertReq
|
||||
|
||||
`func NewHandlersMemberUpsertReq() *HandlersMemberUpsertReq`
|
||||
|
||||
NewHandlersMemberUpsertReq instantiates a new HandlersMemberUpsertReq 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
|
||||
|
||||
### NewHandlersMemberUpsertReqWithDefaults
|
||||
|
||||
`func NewHandlersMemberUpsertReqWithDefaults() *HandlersMemberUpsertReq`
|
||||
|
||||
NewHandlersMemberUpsertReqWithDefaults instantiates a new HandlersMemberUpsertReq 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
|
||||
|
||||
### GetRole
|
||||
|
||||
`func (o *HandlersMemberUpsertReq) GetRole() string`
|
||||
|
||||
GetRole returns the Role field if non-nil, zero value otherwise.
|
||||
|
||||
### GetRoleOk
|
||||
|
||||
`func (o *HandlersMemberUpsertReq) 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 *HandlersMemberUpsertReq) SetRole(v string)`
|
||||
|
||||
SetRole sets Role field to given value.
|
||||
|
||||
### HasRole
|
||||
|
||||
`func (o *HandlersMemberUpsertReq) HasRole() bool`
|
||||
|
||||
HasRole returns a boolean if a field has been set.
|
||||
|
||||
### GetUserId
|
||||
|
||||
`func (o *HandlersMemberUpsertReq) GetUserId() string`
|
||||
|
||||
GetUserId returns the UserId field if non-nil, zero value otherwise.
|
||||
|
||||
### GetUserIdOk
|
||||
|
||||
`func (o *HandlersMemberUpsertReq) GetUserIdOk() (*string, bool)`
|
||||
|
||||
GetUserIdOk returns a tuple with the UserId field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetUserId
|
||||
|
||||
`func (o *HandlersMemberUpsertReq) SetUserId(v string)`
|
||||
|
||||
SetUserId sets UserId field to given value.
|
||||
|
||||
### HasUserId
|
||||
|
||||
`func (o *HandlersMemberUpsertReq) HasUserId() bool`
|
||||
|
||||
HasUserId 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,82 +0,0 @@
|
||||
# HandlersOrgCreateReq
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Domain** | Pointer to **string** | | [optional]
|
||||
**Name** | Pointer to **string** | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewHandlersOrgCreateReq
|
||||
|
||||
`func NewHandlersOrgCreateReq() *HandlersOrgCreateReq`
|
||||
|
||||
NewHandlersOrgCreateReq instantiates a new HandlersOrgCreateReq 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
|
||||
|
||||
### NewHandlersOrgCreateReqWithDefaults
|
||||
|
||||
`func NewHandlersOrgCreateReqWithDefaults() *HandlersOrgCreateReq`
|
||||
|
||||
NewHandlersOrgCreateReqWithDefaults instantiates a new HandlersOrgCreateReq 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
|
||||
|
||||
### GetDomain
|
||||
|
||||
`func (o *HandlersOrgCreateReq) GetDomain() string`
|
||||
|
||||
GetDomain returns the Domain field if non-nil, zero value otherwise.
|
||||
|
||||
### GetDomainOk
|
||||
|
||||
`func (o *HandlersOrgCreateReq) GetDomainOk() (*string, bool)`
|
||||
|
||||
GetDomainOk returns a tuple with the Domain field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetDomain
|
||||
|
||||
`func (o *HandlersOrgCreateReq) SetDomain(v string)`
|
||||
|
||||
SetDomain sets Domain field to given value.
|
||||
|
||||
### HasDomain
|
||||
|
||||
`func (o *HandlersOrgCreateReq) HasDomain() bool`
|
||||
|
||||
HasDomain returns a boolean if a field has been set.
|
||||
|
||||
### GetName
|
||||
|
||||
`func (o *HandlersOrgCreateReq) GetName() string`
|
||||
|
||||
GetName returns the Name field if non-nil, zero value otherwise.
|
||||
|
||||
### GetNameOk
|
||||
|
||||
`func (o *HandlersOrgCreateReq) 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 *HandlersOrgCreateReq) SetName(v string)`
|
||||
|
||||
SetName sets Name field to given value.
|
||||
|
||||
### HasName
|
||||
|
||||
`func (o *HandlersOrgCreateReq) HasName() bool`
|
||||
|
||||
HasName 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,82 +0,0 @@
|
||||
# HandlersOrgKeyCreateReq
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**ExpiresInHours** | Pointer to **int32** | | [optional]
|
||||
**Name** | Pointer to **string** | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewHandlersOrgKeyCreateReq
|
||||
|
||||
`func NewHandlersOrgKeyCreateReq() *HandlersOrgKeyCreateReq`
|
||||
|
||||
NewHandlersOrgKeyCreateReq instantiates a new HandlersOrgKeyCreateReq 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
|
||||
|
||||
### NewHandlersOrgKeyCreateReqWithDefaults
|
||||
|
||||
`func NewHandlersOrgKeyCreateReqWithDefaults() *HandlersOrgKeyCreateReq`
|
||||
|
||||
NewHandlersOrgKeyCreateReqWithDefaults instantiates a new HandlersOrgKeyCreateReq 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
|
||||
|
||||
### GetExpiresInHours
|
||||
|
||||
`func (o *HandlersOrgKeyCreateReq) GetExpiresInHours() int32`
|
||||
|
||||
GetExpiresInHours returns the ExpiresInHours field if non-nil, zero value otherwise.
|
||||
|
||||
### GetExpiresInHoursOk
|
||||
|
||||
`func (o *HandlersOrgKeyCreateReq) GetExpiresInHoursOk() (*int32, bool)`
|
||||
|
||||
GetExpiresInHoursOk returns a tuple with the ExpiresInHours field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetExpiresInHours
|
||||
|
||||
`func (o *HandlersOrgKeyCreateReq) SetExpiresInHours(v int32)`
|
||||
|
||||
SetExpiresInHours sets ExpiresInHours field to given value.
|
||||
|
||||
### HasExpiresInHours
|
||||
|
||||
`func (o *HandlersOrgKeyCreateReq) HasExpiresInHours() bool`
|
||||
|
||||
HasExpiresInHours returns a boolean if a field has been set.
|
||||
|
||||
### GetName
|
||||
|
||||
`func (o *HandlersOrgKeyCreateReq) GetName() string`
|
||||
|
||||
GetName returns the Name field if non-nil, zero value otherwise.
|
||||
|
||||
### GetNameOk
|
||||
|
||||
`func (o *HandlersOrgKeyCreateReq) 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 *HandlersOrgKeyCreateReq) SetName(v string)`
|
||||
|
||||
SetName sets Name field to given value.
|
||||
|
||||
### HasName
|
||||
|
||||
`func (o *HandlersOrgKeyCreateReq) HasName() bool`
|
||||
|
||||
HasName 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,212 +0,0 @@
|
||||
# HandlersOrgKeyCreateResp
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**CreatedAt** | Pointer to **string** | | [optional]
|
||||
**ExpiresAt** | Pointer to **string** | | [optional]
|
||||
**Id** | Pointer to **string** | | [optional]
|
||||
**Name** | Pointer to **string** | | [optional]
|
||||
**OrgKey** | Pointer to **string** | shown once: | [optional]
|
||||
**OrgSecret** | Pointer to **string** | shown once: | [optional]
|
||||
**Scope** | Pointer to **string** | \"org\" | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewHandlersOrgKeyCreateResp
|
||||
|
||||
`func NewHandlersOrgKeyCreateResp() *HandlersOrgKeyCreateResp`
|
||||
|
||||
NewHandlersOrgKeyCreateResp instantiates a new HandlersOrgKeyCreateResp 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
|
||||
|
||||
### NewHandlersOrgKeyCreateRespWithDefaults
|
||||
|
||||
`func NewHandlersOrgKeyCreateRespWithDefaults() *HandlersOrgKeyCreateResp`
|
||||
|
||||
NewHandlersOrgKeyCreateRespWithDefaults instantiates a new HandlersOrgKeyCreateResp 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
|
||||
|
||||
### GetCreatedAt
|
||||
|
||||
`func (o *HandlersOrgKeyCreateResp) GetCreatedAt() string`
|
||||
|
||||
GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise.
|
||||
|
||||
### GetCreatedAtOk
|
||||
|
||||
`func (o *HandlersOrgKeyCreateResp) 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 *HandlersOrgKeyCreateResp) SetCreatedAt(v string)`
|
||||
|
||||
SetCreatedAt sets CreatedAt field to given value.
|
||||
|
||||
### HasCreatedAt
|
||||
|
||||
`func (o *HandlersOrgKeyCreateResp) HasCreatedAt() bool`
|
||||
|
||||
HasCreatedAt returns a boolean if a field has been set.
|
||||
|
||||
### GetExpiresAt
|
||||
|
||||
`func (o *HandlersOrgKeyCreateResp) GetExpiresAt() string`
|
||||
|
||||
GetExpiresAt returns the ExpiresAt field if non-nil, zero value otherwise.
|
||||
|
||||
### GetExpiresAtOk
|
||||
|
||||
`func (o *HandlersOrgKeyCreateResp) GetExpiresAtOk() (*string, bool)`
|
||||
|
||||
GetExpiresAtOk returns a tuple with the ExpiresAt field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetExpiresAt
|
||||
|
||||
`func (o *HandlersOrgKeyCreateResp) SetExpiresAt(v string)`
|
||||
|
||||
SetExpiresAt sets ExpiresAt field to given value.
|
||||
|
||||
### HasExpiresAt
|
||||
|
||||
`func (o *HandlersOrgKeyCreateResp) HasExpiresAt() bool`
|
||||
|
||||
HasExpiresAt returns a boolean if a field has been set.
|
||||
|
||||
### GetId
|
||||
|
||||
`func (o *HandlersOrgKeyCreateResp) GetId() string`
|
||||
|
||||
GetId returns the Id field if non-nil, zero value otherwise.
|
||||
|
||||
### GetIdOk
|
||||
|
||||
`func (o *HandlersOrgKeyCreateResp) 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 *HandlersOrgKeyCreateResp) SetId(v string)`
|
||||
|
||||
SetId sets Id field to given value.
|
||||
|
||||
### HasId
|
||||
|
||||
`func (o *HandlersOrgKeyCreateResp) HasId() bool`
|
||||
|
||||
HasId returns a boolean if a field has been set.
|
||||
|
||||
### GetName
|
||||
|
||||
`func (o *HandlersOrgKeyCreateResp) GetName() string`
|
||||
|
||||
GetName returns the Name field if non-nil, zero value otherwise.
|
||||
|
||||
### GetNameOk
|
||||
|
||||
`func (o *HandlersOrgKeyCreateResp) 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 *HandlersOrgKeyCreateResp) SetName(v string)`
|
||||
|
||||
SetName sets Name field to given value.
|
||||
|
||||
### HasName
|
||||
|
||||
`func (o *HandlersOrgKeyCreateResp) HasName() bool`
|
||||
|
||||
HasName returns a boolean if a field has been set.
|
||||
|
||||
### GetOrgKey
|
||||
|
||||
`func (o *HandlersOrgKeyCreateResp) GetOrgKey() string`
|
||||
|
||||
GetOrgKey returns the OrgKey field if non-nil, zero value otherwise.
|
||||
|
||||
### GetOrgKeyOk
|
||||
|
||||
`func (o *HandlersOrgKeyCreateResp) GetOrgKeyOk() (*string, bool)`
|
||||
|
||||
GetOrgKeyOk returns a tuple with the OrgKey field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetOrgKey
|
||||
|
||||
`func (o *HandlersOrgKeyCreateResp) SetOrgKey(v string)`
|
||||
|
||||
SetOrgKey sets OrgKey field to given value.
|
||||
|
||||
### HasOrgKey
|
||||
|
||||
`func (o *HandlersOrgKeyCreateResp) HasOrgKey() bool`
|
||||
|
||||
HasOrgKey returns a boolean if a field has been set.
|
||||
|
||||
### GetOrgSecret
|
||||
|
||||
`func (o *HandlersOrgKeyCreateResp) GetOrgSecret() string`
|
||||
|
||||
GetOrgSecret returns the OrgSecret field if non-nil, zero value otherwise.
|
||||
|
||||
### GetOrgSecretOk
|
||||
|
||||
`func (o *HandlersOrgKeyCreateResp) GetOrgSecretOk() (*string, bool)`
|
||||
|
||||
GetOrgSecretOk returns a tuple with the OrgSecret field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetOrgSecret
|
||||
|
||||
`func (o *HandlersOrgKeyCreateResp) SetOrgSecret(v string)`
|
||||
|
||||
SetOrgSecret sets OrgSecret field to given value.
|
||||
|
||||
### HasOrgSecret
|
||||
|
||||
`func (o *HandlersOrgKeyCreateResp) HasOrgSecret() bool`
|
||||
|
||||
HasOrgSecret returns a boolean if a field has been set.
|
||||
|
||||
### GetScope
|
||||
|
||||
`func (o *HandlersOrgKeyCreateResp) GetScope() string`
|
||||
|
||||
GetScope returns the Scope field if non-nil, zero value otherwise.
|
||||
|
||||
### GetScopeOk
|
||||
|
||||
`func (o *HandlersOrgKeyCreateResp) GetScopeOk() (*string, bool)`
|
||||
|
||||
GetScopeOk returns a tuple with the Scope field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetScope
|
||||
|
||||
`func (o *HandlersOrgKeyCreateResp) SetScope(v string)`
|
||||
|
||||
SetScope sets Scope field to given value.
|
||||
|
||||
### HasScope
|
||||
|
||||
`func (o *HandlersOrgKeyCreateResp) HasScope() bool`
|
||||
|
||||
HasScope 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,82 +0,0 @@
|
||||
# HandlersOrgUpdateReq
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Domain** | Pointer to **string** | | [optional]
|
||||
**Name** | Pointer to **string** | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewHandlersOrgUpdateReq
|
||||
|
||||
`func NewHandlersOrgUpdateReq() *HandlersOrgUpdateReq`
|
||||
|
||||
NewHandlersOrgUpdateReq instantiates a new HandlersOrgUpdateReq 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
|
||||
|
||||
### NewHandlersOrgUpdateReqWithDefaults
|
||||
|
||||
`func NewHandlersOrgUpdateReqWithDefaults() *HandlersOrgUpdateReq`
|
||||
|
||||
NewHandlersOrgUpdateReqWithDefaults instantiates a new HandlersOrgUpdateReq 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
|
||||
|
||||
### GetDomain
|
||||
|
||||
`func (o *HandlersOrgUpdateReq) GetDomain() string`
|
||||
|
||||
GetDomain returns the Domain field if non-nil, zero value otherwise.
|
||||
|
||||
### GetDomainOk
|
||||
|
||||
`func (o *HandlersOrgUpdateReq) GetDomainOk() (*string, bool)`
|
||||
|
||||
GetDomainOk returns a tuple with the Domain field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetDomain
|
||||
|
||||
`func (o *HandlersOrgUpdateReq) SetDomain(v string)`
|
||||
|
||||
SetDomain sets Domain field to given value.
|
||||
|
||||
### HasDomain
|
||||
|
||||
`func (o *HandlersOrgUpdateReq) HasDomain() bool`
|
||||
|
||||
HasDomain returns a boolean if a field has been set.
|
||||
|
||||
### GetName
|
||||
|
||||
`func (o *HandlersOrgUpdateReq) GetName() string`
|
||||
|
||||
GetName returns the Name field if non-nil, zero value otherwise.
|
||||
|
||||
### GetNameOk
|
||||
|
||||
`func (o *HandlersOrgUpdateReq) 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 *HandlersOrgUpdateReq) SetName(v string)`
|
||||
|
||||
SetName sets Name field to given value.
|
||||
|
||||
### HasName
|
||||
|
||||
`func (o *HandlersOrgUpdateReq) HasName() bool`
|
||||
|
||||
HasName 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,56 +0,0 @@
|
||||
# HandlersUpdateMeRequest
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**DisplayName** | Pointer to **string** | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewHandlersUpdateMeRequest
|
||||
|
||||
`func NewHandlersUpdateMeRequest() *HandlersUpdateMeRequest`
|
||||
|
||||
NewHandlersUpdateMeRequest instantiates a new HandlersUpdateMeRequest 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
|
||||
|
||||
### NewHandlersUpdateMeRequestWithDefaults
|
||||
|
||||
`func NewHandlersUpdateMeRequestWithDefaults() *HandlersUpdateMeRequest`
|
||||
|
||||
NewHandlersUpdateMeRequestWithDefaults instantiates a new HandlersUpdateMeRequest 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
|
||||
|
||||
### GetDisplayName
|
||||
|
||||
`func (o *HandlersUpdateMeRequest) GetDisplayName() string`
|
||||
|
||||
GetDisplayName returns the DisplayName field if non-nil, zero value otherwise.
|
||||
|
||||
### GetDisplayNameOk
|
||||
|
||||
`func (o *HandlersUpdateMeRequest) GetDisplayNameOk() (*string, bool)`
|
||||
|
||||
GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetDisplayName
|
||||
|
||||
`func (o *HandlersUpdateMeRequest) SetDisplayName(v string)`
|
||||
|
||||
SetDisplayName sets DisplayName field to given value.
|
||||
|
||||
### HasDisplayName
|
||||
|
||||
`func (o *HandlersUpdateMeRequest) HasDisplayName() bool`
|
||||
|
||||
HasDisplayName 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,212 +0,0 @@
|
||||
# HandlersUserAPIKeyOut
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**CreatedAt** | Pointer to **string** | | [optional]
|
||||
**ExpiresAt** | Pointer to **string** | | [optional]
|
||||
**Id** | Pointer to **string** | | [optional]
|
||||
**LastUsedAt** | Pointer to **string** | | [optional]
|
||||
**Name** | Pointer to **string** | | [optional]
|
||||
**Plain** | Pointer to **string** | Shown only on create: | [optional]
|
||||
**Scope** | Pointer to **string** | \"user\" | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewHandlersUserAPIKeyOut
|
||||
|
||||
`func NewHandlersUserAPIKeyOut() *HandlersUserAPIKeyOut`
|
||||
|
||||
NewHandlersUserAPIKeyOut instantiates a new HandlersUserAPIKeyOut 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
|
||||
|
||||
### NewHandlersUserAPIKeyOutWithDefaults
|
||||
|
||||
`func NewHandlersUserAPIKeyOutWithDefaults() *HandlersUserAPIKeyOut`
|
||||
|
||||
NewHandlersUserAPIKeyOutWithDefaults instantiates a new HandlersUserAPIKeyOut 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
|
||||
|
||||
### GetCreatedAt
|
||||
|
||||
`func (o *HandlersUserAPIKeyOut) GetCreatedAt() string`
|
||||
|
||||
GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise.
|
||||
|
||||
### GetCreatedAtOk
|
||||
|
||||
`func (o *HandlersUserAPIKeyOut) 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 *HandlersUserAPIKeyOut) SetCreatedAt(v string)`
|
||||
|
||||
SetCreatedAt sets CreatedAt field to given value.
|
||||
|
||||
### HasCreatedAt
|
||||
|
||||
`func (o *HandlersUserAPIKeyOut) HasCreatedAt() bool`
|
||||
|
||||
HasCreatedAt returns a boolean if a field has been set.
|
||||
|
||||
### GetExpiresAt
|
||||
|
||||
`func (o *HandlersUserAPIKeyOut) GetExpiresAt() string`
|
||||
|
||||
GetExpiresAt returns the ExpiresAt field if non-nil, zero value otherwise.
|
||||
|
||||
### GetExpiresAtOk
|
||||
|
||||
`func (o *HandlersUserAPIKeyOut) GetExpiresAtOk() (*string, bool)`
|
||||
|
||||
GetExpiresAtOk returns a tuple with the ExpiresAt field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetExpiresAt
|
||||
|
||||
`func (o *HandlersUserAPIKeyOut) SetExpiresAt(v string)`
|
||||
|
||||
SetExpiresAt sets ExpiresAt field to given value.
|
||||
|
||||
### HasExpiresAt
|
||||
|
||||
`func (o *HandlersUserAPIKeyOut) HasExpiresAt() bool`
|
||||
|
||||
HasExpiresAt returns a boolean if a field has been set.
|
||||
|
||||
### GetId
|
||||
|
||||
`func (o *HandlersUserAPIKeyOut) GetId() string`
|
||||
|
||||
GetId returns the Id field if non-nil, zero value otherwise.
|
||||
|
||||
### GetIdOk
|
||||
|
||||
`func (o *HandlersUserAPIKeyOut) 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 *HandlersUserAPIKeyOut) SetId(v string)`
|
||||
|
||||
SetId sets Id field to given value.
|
||||
|
||||
### HasId
|
||||
|
||||
`func (o *HandlersUserAPIKeyOut) HasId() bool`
|
||||
|
||||
HasId returns a boolean if a field has been set.
|
||||
|
||||
### GetLastUsedAt
|
||||
|
||||
`func (o *HandlersUserAPIKeyOut) GetLastUsedAt() string`
|
||||
|
||||
GetLastUsedAt returns the LastUsedAt field if non-nil, zero value otherwise.
|
||||
|
||||
### GetLastUsedAtOk
|
||||
|
||||
`func (o *HandlersUserAPIKeyOut) GetLastUsedAtOk() (*string, bool)`
|
||||
|
||||
GetLastUsedAtOk returns a tuple with the LastUsedAt field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetLastUsedAt
|
||||
|
||||
`func (o *HandlersUserAPIKeyOut) SetLastUsedAt(v string)`
|
||||
|
||||
SetLastUsedAt sets LastUsedAt field to given value.
|
||||
|
||||
### HasLastUsedAt
|
||||
|
||||
`func (o *HandlersUserAPIKeyOut) HasLastUsedAt() bool`
|
||||
|
||||
HasLastUsedAt returns a boolean if a field has been set.
|
||||
|
||||
### GetName
|
||||
|
||||
`func (o *HandlersUserAPIKeyOut) GetName() string`
|
||||
|
||||
GetName returns the Name field if non-nil, zero value otherwise.
|
||||
|
||||
### GetNameOk
|
||||
|
||||
`func (o *HandlersUserAPIKeyOut) 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 *HandlersUserAPIKeyOut) SetName(v string)`
|
||||
|
||||
SetName sets Name field to given value.
|
||||
|
||||
### HasName
|
||||
|
||||
`func (o *HandlersUserAPIKeyOut) HasName() bool`
|
||||
|
||||
HasName returns a boolean if a field has been set.
|
||||
|
||||
### GetPlain
|
||||
|
||||
`func (o *HandlersUserAPIKeyOut) GetPlain() string`
|
||||
|
||||
GetPlain returns the Plain field if non-nil, zero value otherwise.
|
||||
|
||||
### GetPlainOk
|
||||
|
||||
`func (o *HandlersUserAPIKeyOut) GetPlainOk() (*string, bool)`
|
||||
|
||||
GetPlainOk returns a tuple with the Plain field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetPlain
|
||||
|
||||
`func (o *HandlersUserAPIKeyOut) SetPlain(v string)`
|
||||
|
||||
SetPlain sets Plain field to given value.
|
||||
|
||||
### HasPlain
|
||||
|
||||
`func (o *HandlersUserAPIKeyOut) HasPlain() bool`
|
||||
|
||||
HasPlain returns a boolean if a field has been set.
|
||||
|
||||
### GetScope
|
||||
|
||||
`func (o *HandlersUserAPIKeyOut) GetScope() string`
|
||||
|
||||
GetScope returns the Scope field if non-nil, zero value otherwise.
|
||||
|
||||
### GetScopeOk
|
||||
|
||||
`func (o *HandlersUserAPIKeyOut) GetScopeOk() (*string, bool)`
|
||||
|
||||
GetScopeOk returns a tuple with the Scope field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetScope
|
||||
|
||||
`func (o *HandlersUserAPIKeyOut) SetScope(v string)`
|
||||
|
||||
SetScope sets Scope field to given value.
|
||||
|
||||
### HasScope
|
||||
|
||||
`func (o *HandlersUserAPIKeyOut) HasScope() bool`
|
||||
|
||||
HasScope 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,70 +0,0 @@
|
||||
# \HealthAPI
|
||||
|
||||
All URIs are relative to */api/v1*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
[**HealthCheckOperationId**](HealthAPI.md#HealthCheckOperationId) | **Get** /healthz | Basic health check
|
||||
|
||||
|
||||
|
||||
## HealthCheckOperationId
|
||||
|
||||
> HandlersHealthStatus HealthCheckOperationId(ctx).Execute()
|
||||
|
||||
Basic health check
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
openapiclient "github.com/glueops/autoglue-sdk-go"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
resp, r, err := apiClient.HealthAPI.HealthCheckOperationId(context.Background()).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `HealthAPI.HealthCheckOperationId``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
// response from `HealthCheckOperationId`: HandlersHealthStatus
|
||||
fmt.Fprintf(os.Stdout, "Response from `HealthAPI.HealthCheckOperationId`: %v\n", resp)
|
||||
}
|
||||
```
|
||||
|
||||
### Path Parameters
|
||||
|
||||
This endpoint does not need any parameter.
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiHealthCheckOperationIdRequest struct via the builder pattern
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
[**HandlersHealthStatus**](HandlersHealthStatus.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
@@ -1,371 +0,0 @@
|
||||
# \LabelsAPI
|
||||
|
||||
All URIs are relative to */api/v1*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
[**CreateLabel**](LabelsAPI.md#CreateLabel) | **Post** /labels | Create label (org scoped)
|
||||
[**DeleteLabel**](LabelsAPI.md#DeleteLabel) | **Delete** /labels/{id} | Delete label (org scoped)
|
||||
[**GetLabel**](LabelsAPI.md#GetLabel) | **Get** /labels/{id} | Get label by ID (org scoped)
|
||||
[**ListLabels**](LabelsAPI.md#ListLabels) | **Get** /labels | List node labels (org scoped)
|
||||
[**UpdateLabel**](LabelsAPI.md#UpdateLabel) | **Patch** /labels/{id} | Update label (org scoped)
|
||||
|
||||
|
||||
|
||||
## CreateLabel
|
||||
|
||||
> DtoLabelResponse CreateLabel(ctx).Body(body).XOrgID(xOrgID).Execute()
|
||||
|
||||
Create label (org scoped)
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
openapiclient "github.com/glueops/autoglue-sdk-go"
|
||||
)
|
||||
|
||||
func main() {
|
||||
body := *openapiclient.NewDtoCreateLabelRequest() // DtoCreateLabelRequest | Label payload
|
||||
xOrgID := "xOrgID_example" // string | Organization UUID (optional)
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
resp, r, err := apiClient.LabelsAPI.CreateLabel(context.Background()).Body(body).XOrgID(xOrgID).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `LabelsAPI.CreateLabel``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
// response from `CreateLabel`: DtoLabelResponse
|
||||
fmt.Fprintf(os.Stdout, "Response from `LabelsAPI.CreateLabel`: %v\n", resp)
|
||||
}
|
||||
```
|
||||
|
||||
### Path Parameters
|
||||
|
||||
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiCreateLabelRequest struct via the builder pattern
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**body** | [**DtoCreateLabelRequest**](DtoCreateLabelRequest.md) | Label payload |
|
||||
**xOrgID** | **string** | Organization UUID |
|
||||
|
||||
### Return type
|
||||
|
||||
[**DtoLabelResponse**](DtoLabelResponse.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
|
||||
## DeleteLabel
|
||||
|
||||
> string DeleteLabel(ctx, id).XOrgID(xOrgID).Execute()
|
||||
|
||||
Delete label (org scoped)
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
openapiclient "github.com/glueops/autoglue-sdk-go"
|
||||
)
|
||||
|
||||
func main() {
|
||||
id := "id_example" // string | Label ID (UUID)
|
||||
xOrgID := "xOrgID_example" // string | Organization UUID (optional)
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
resp, r, err := apiClient.LabelsAPI.DeleteLabel(context.Background(), id).XOrgID(xOrgID).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `LabelsAPI.DeleteLabel``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
// response from `DeleteLabel`: string
|
||||
fmt.Fprintf(os.Stdout, "Response from `LabelsAPI.DeleteLabel`: %v\n", resp)
|
||||
}
|
||||
```
|
||||
|
||||
### Path Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
|
||||
**id** | **string** | Label ID (UUID) |
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiDeleteLabelRequest struct via the builder pattern
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
|
||||
**xOrgID** | **string** | Organization UUID |
|
||||
|
||||
### Return type
|
||||
|
||||
**string**
|
||||
|
||||
### Authorization
|
||||
|
||||
[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
|
||||
## GetLabel
|
||||
|
||||
> DtoLabelResponse GetLabel(ctx, id).XOrgID(xOrgID).Execute()
|
||||
|
||||
Get label by ID (org scoped)
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
openapiclient "github.com/glueops/autoglue-sdk-go"
|
||||
)
|
||||
|
||||
func main() {
|
||||
id := "id_example" // string | Label ID (UUID)
|
||||
xOrgID := "xOrgID_example" // string | Organization UUID (optional)
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
resp, r, err := apiClient.LabelsAPI.GetLabel(context.Background(), id).XOrgID(xOrgID).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `LabelsAPI.GetLabel``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
// response from `GetLabel`: DtoLabelResponse
|
||||
fmt.Fprintf(os.Stdout, "Response from `LabelsAPI.GetLabel`: %v\n", resp)
|
||||
}
|
||||
```
|
||||
|
||||
### Path Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
|
||||
**id** | **string** | Label ID (UUID) |
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiGetLabelRequest struct via the builder pattern
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
|
||||
**xOrgID** | **string** | Organization UUID |
|
||||
|
||||
### Return type
|
||||
|
||||
[**DtoLabelResponse**](DtoLabelResponse.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
|
||||
## ListLabels
|
||||
|
||||
> []DtoLabelResponse ListLabels(ctx).XOrgID(xOrgID).Key(key).Value(value).Q(q).Execute()
|
||||
|
||||
List node labels (org scoped)
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
openapiclient "github.com/glueops/autoglue-sdk-go"
|
||||
)
|
||||
|
||||
func main() {
|
||||
xOrgID := "xOrgID_example" // string | Organization UUID (optional)
|
||||
key := "key_example" // string | Exact key (optional)
|
||||
value := "value_example" // string | Exact value (optional)
|
||||
q := "q_example" // string | Key contains (case-insensitive) (optional)
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
resp, r, err := apiClient.LabelsAPI.ListLabels(context.Background()).XOrgID(xOrgID).Key(key).Value(value).Q(q).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `LabelsAPI.ListLabels``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
// response from `ListLabels`: []DtoLabelResponse
|
||||
fmt.Fprintf(os.Stdout, "Response from `LabelsAPI.ListLabels`: %v\n", resp)
|
||||
}
|
||||
```
|
||||
|
||||
### Path Parameters
|
||||
|
||||
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiListLabelsRequest struct via the builder pattern
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**xOrgID** | **string** | Organization UUID |
|
||||
**key** | **string** | Exact key |
|
||||
**value** | **string** | Exact value |
|
||||
**q** | **string** | Key contains (case-insensitive) |
|
||||
|
||||
### Return type
|
||||
|
||||
[**[]DtoLabelResponse**](DtoLabelResponse.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
|
||||
## UpdateLabel
|
||||
|
||||
> DtoLabelResponse UpdateLabel(ctx, id).Body(body).XOrgID(xOrgID).Execute()
|
||||
|
||||
Update label (org scoped)
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
openapiclient "github.com/glueops/autoglue-sdk-go"
|
||||
)
|
||||
|
||||
func main() {
|
||||
id := "id_example" // string | Label ID (UUID)
|
||||
body := *openapiclient.NewDtoUpdateLabelRequest() // DtoUpdateLabelRequest | Fields to update
|
||||
xOrgID := "xOrgID_example" // string | Organization UUID (optional)
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
resp, r, err := apiClient.LabelsAPI.UpdateLabel(context.Background(), id).Body(body).XOrgID(xOrgID).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `LabelsAPI.UpdateLabel``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
// response from `UpdateLabel`: DtoLabelResponse
|
||||
fmt.Fprintf(os.Stdout, "Response from `LabelsAPI.UpdateLabel`: %v\n", resp)
|
||||
}
|
||||
```
|
||||
|
||||
### Path Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
|
||||
**id** | **string** | Label ID (UUID) |
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiUpdateLabelRequest struct via the builder pattern
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
|
||||
**body** | [**DtoUpdateLabelRequest**](DtoUpdateLabelRequest.md) | Fields to update |
|
||||
**xOrgID** | **string** | Organization UUID |
|
||||
|
||||
### Return type
|
||||
|
||||
[**DtoLabelResponse**](DtoLabelResponse.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
@@ -1,133 +0,0 @@
|
||||
# \MeAPI
|
||||
|
||||
All URIs are relative to */api/v1*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
[**GetMe**](MeAPI.md#GetMe) | **Get** /me | Get current user profile
|
||||
[**UpdateMe**](MeAPI.md#UpdateMe) | **Patch** /me | Update current user profile
|
||||
|
||||
|
||||
|
||||
## GetMe
|
||||
|
||||
> HandlersMeResponse GetMe(ctx).Execute()
|
||||
|
||||
Get current user profile
|
||||
|
||||
### Example
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
openapiclient "github.com/glueops/autoglue-sdk-go"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
resp, r, err := apiClient.MeAPI.GetMe(context.Background()).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `MeAPI.GetMe``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
// response from `GetMe`: HandlersMeResponse
|
||||
fmt.Fprintf(os.Stdout, "Response from `MeAPI.GetMe`: %v\n", resp)
|
||||
}
|
||||
```
|
||||
|
||||
### Path Parameters
|
||||
|
||||
This endpoint does not need any parameter.
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiGetMeRequest struct via the builder pattern
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
[**HandlersMeResponse**](HandlersMeResponse.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[ApiKeyAuth](../README.md#ApiKeyAuth), [BearerAuth](../README.md#BearerAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
|
||||
## UpdateMe
|
||||
|
||||
> ModelsUser UpdateMe(ctx).Body(body).Execute()
|
||||
|
||||
Update current user profile
|
||||
|
||||
### Example
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
openapiclient "github.com/glueops/autoglue-sdk-go"
|
||||
)
|
||||
|
||||
func main() {
|
||||
body := *openapiclient.NewHandlersUpdateMeRequest() // HandlersUpdateMeRequest | Patch profile
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
resp, r, err := apiClient.MeAPI.UpdateMe(context.Background()).Body(body).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `MeAPI.UpdateMe``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
// response from `UpdateMe`: ModelsUser
|
||||
fmt.Fprintf(os.Stdout, "Response from `MeAPI.UpdateMe`: %v\n", resp)
|
||||
}
|
||||
```
|
||||
|
||||
### Path Parameters
|
||||
|
||||
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiUpdateMeRequest struct via the builder pattern
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**body** | [**HandlersUpdateMeRequest**](HandlersUpdateMeRequest.md) | Patch profile |
|
||||
|
||||
### Return type
|
||||
|
||||
[**ModelsUser**](ModelsUser.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[ApiKeyAuth](../README.md#ApiKeyAuth), [BearerAuth](../README.md#BearerAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
@@ -1,202 +0,0 @@
|
||||
# \MeAPIKeysAPI
|
||||
|
||||
All URIs are relative to */api/v1*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
[**CreateUserAPIKey**](MeAPIKeysAPI.md#CreateUserAPIKey) | **Post** /me/api-keys | Create a new user API key
|
||||
[**DeleteUserAPIKey**](MeAPIKeysAPI.md#DeleteUserAPIKey) | **Delete** /me/api-keys/{id} | Delete a user API key
|
||||
[**ListUserAPIKeys**](MeAPIKeysAPI.md#ListUserAPIKeys) | **Get** /me/api-keys | List my API keys
|
||||
|
||||
|
||||
|
||||
## CreateUserAPIKey
|
||||
|
||||
> HandlersUserAPIKeyOut CreateUserAPIKey(ctx).Body(body).Execute()
|
||||
|
||||
Create a new user API key
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
openapiclient "github.com/glueops/autoglue-sdk-go"
|
||||
)
|
||||
|
||||
func main() {
|
||||
body := *openapiclient.NewHandlersCreateUserKeyRequest() // HandlersCreateUserKeyRequest | Key options
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
resp, r, err := apiClient.MeAPIKeysAPI.CreateUserAPIKey(context.Background()).Body(body).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `MeAPIKeysAPI.CreateUserAPIKey``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
// response from `CreateUserAPIKey`: HandlersUserAPIKeyOut
|
||||
fmt.Fprintf(os.Stdout, "Response from `MeAPIKeysAPI.CreateUserAPIKey`: %v\n", resp)
|
||||
}
|
||||
```
|
||||
|
||||
### Path Parameters
|
||||
|
||||
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiCreateUserAPIKeyRequest struct via the builder pattern
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**body** | [**HandlersCreateUserKeyRequest**](HandlersCreateUserKeyRequest.md) | Key options |
|
||||
|
||||
### Return type
|
||||
|
||||
[**HandlersUserAPIKeyOut**](HandlersUserAPIKeyOut.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[ApiKeyAuth](../README.md#ApiKeyAuth), [BearerAuth](../README.md#BearerAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
|
||||
## DeleteUserAPIKey
|
||||
|
||||
> DeleteUserAPIKey(ctx, id).Execute()
|
||||
|
||||
Delete a user API key
|
||||
|
||||
### Example
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
openapiclient "github.com/glueops/autoglue-sdk-go"
|
||||
)
|
||||
|
||||
func main() {
|
||||
id := "id_example" // string | Key ID (UUID)
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
r, err := apiClient.MeAPIKeysAPI.DeleteUserAPIKey(context.Background(), id).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `MeAPIKeysAPI.DeleteUserAPIKey``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Path Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
|
||||
**id** | **string** | Key ID (UUID) |
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiDeleteUserAPIKeyRequest struct via the builder pattern
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
(empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
[BearerAuth](../README.md#BearerAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: Not defined
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
|
||||
## ListUserAPIKeys
|
||||
|
||||
> []HandlersUserAPIKeyOut ListUserAPIKeys(ctx).Execute()
|
||||
|
||||
List my API keys
|
||||
|
||||
### Example
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
openapiclient "github.com/glueops/autoglue-sdk-go"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
resp, r, err := apiClient.MeAPIKeysAPI.ListUserAPIKeys(context.Background()).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `MeAPIKeysAPI.ListUserAPIKeys``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
// response from `ListUserAPIKeys`: []HandlersUserAPIKeyOut
|
||||
fmt.Fprintf(os.Stdout, "Response from `MeAPIKeysAPI.ListUserAPIKeys`: %v\n", resp)
|
||||
}
|
||||
```
|
||||
|
||||
### Path Parameters
|
||||
|
||||
This endpoint does not need any parameter.
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiListUserAPIKeysRequest struct via the builder pattern
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
[**[]HandlersUserAPIKeyOut**](HandlersUserAPIKeyOut.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[ApiKeyAuth](../README.md#ApiKeyAuth), [BearerAuth](../README.md#BearerAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
@@ -1,316 +0,0 @@
|
||||
# ModelsAPIKey
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**CreatedAt** | Pointer to **time.Time** | | [optional]
|
||||
**ExpiresAt** | Pointer to **time.Time** | | [optional]
|
||||
**Id** | Pointer to **string** | | [optional]
|
||||
**LastUsedAt** | Pointer to **time.Time** | | [optional]
|
||||
**Name** | Pointer to **string** | | [optional]
|
||||
**OrgId** | Pointer to **string** | | [optional]
|
||||
**Prefix** | Pointer to **string** | | [optional]
|
||||
**Revoked** | Pointer to **bool** | | [optional]
|
||||
**Scope** | Pointer to **string** | | [optional]
|
||||
**UpdatedAt** | Pointer to **time.Time** | | [optional]
|
||||
**UserId** | Pointer to **string** | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewModelsAPIKey
|
||||
|
||||
`func NewModelsAPIKey() *ModelsAPIKey`
|
||||
|
||||
NewModelsAPIKey instantiates a new ModelsAPIKey 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
|
||||
|
||||
### NewModelsAPIKeyWithDefaults
|
||||
|
||||
`func NewModelsAPIKeyWithDefaults() *ModelsAPIKey`
|
||||
|
||||
NewModelsAPIKeyWithDefaults instantiates a new ModelsAPIKey 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
|
||||
|
||||
### GetCreatedAt
|
||||
|
||||
`func (o *ModelsAPIKey) GetCreatedAt() time.Time`
|
||||
|
||||
GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise.
|
||||
|
||||
### GetCreatedAtOk
|
||||
|
||||
`func (o *ModelsAPIKey) GetCreatedAtOk() (*time.Time, 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 *ModelsAPIKey) SetCreatedAt(v time.Time)`
|
||||
|
||||
SetCreatedAt sets CreatedAt field to given value.
|
||||
|
||||
### HasCreatedAt
|
||||
|
||||
`func (o *ModelsAPIKey) HasCreatedAt() bool`
|
||||
|
||||
HasCreatedAt returns a boolean if a field has been set.
|
||||
|
||||
### GetExpiresAt
|
||||
|
||||
`func (o *ModelsAPIKey) GetExpiresAt() time.Time`
|
||||
|
||||
GetExpiresAt returns the ExpiresAt field if non-nil, zero value otherwise.
|
||||
|
||||
### GetExpiresAtOk
|
||||
|
||||
`func (o *ModelsAPIKey) GetExpiresAtOk() (*time.Time, bool)`
|
||||
|
||||
GetExpiresAtOk returns a tuple with the ExpiresAt field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetExpiresAt
|
||||
|
||||
`func (o *ModelsAPIKey) SetExpiresAt(v time.Time)`
|
||||
|
||||
SetExpiresAt sets ExpiresAt field to given value.
|
||||
|
||||
### HasExpiresAt
|
||||
|
||||
`func (o *ModelsAPIKey) HasExpiresAt() bool`
|
||||
|
||||
HasExpiresAt returns a boolean if a field has been set.
|
||||
|
||||
### GetId
|
||||
|
||||
`func (o *ModelsAPIKey) GetId() string`
|
||||
|
||||
GetId returns the Id field if non-nil, zero value otherwise.
|
||||
|
||||
### GetIdOk
|
||||
|
||||
`func (o *ModelsAPIKey) 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 *ModelsAPIKey) SetId(v string)`
|
||||
|
||||
SetId sets Id field to given value.
|
||||
|
||||
### HasId
|
||||
|
||||
`func (o *ModelsAPIKey) HasId() bool`
|
||||
|
||||
HasId returns a boolean if a field has been set.
|
||||
|
||||
### GetLastUsedAt
|
||||
|
||||
`func (o *ModelsAPIKey) GetLastUsedAt() time.Time`
|
||||
|
||||
GetLastUsedAt returns the LastUsedAt field if non-nil, zero value otherwise.
|
||||
|
||||
### GetLastUsedAtOk
|
||||
|
||||
`func (o *ModelsAPIKey) GetLastUsedAtOk() (*time.Time, bool)`
|
||||
|
||||
GetLastUsedAtOk returns a tuple with the LastUsedAt field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetLastUsedAt
|
||||
|
||||
`func (o *ModelsAPIKey) SetLastUsedAt(v time.Time)`
|
||||
|
||||
SetLastUsedAt sets LastUsedAt field to given value.
|
||||
|
||||
### HasLastUsedAt
|
||||
|
||||
`func (o *ModelsAPIKey) HasLastUsedAt() bool`
|
||||
|
||||
HasLastUsedAt returns a boolean if a field has been set.
|
||||
|
||||
### GetName
|
||||
|
||||
`func (o *ModelsAPIKey) GetName() string`
|
||||
|
||||
GetName returns the Name field if non-nil, zero value otherwise.
|
||||
|
||||
### GetNameOk
|
||||
|
||||
`func (o *ModelsAPIKey) 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 *ModelsAPIKey) SetName(v string)`
|
||||
|
||||
SetName sets Name field to given value.
|
||||
|
||||
### HasName
|
||||
|
||||
`func (o *ModelsAPIKey) HasName() bool`
|
||||
|
||||
HasName returns a boolean if a field has been set.
|
||||
|
||||
### GetOrgId
|
||||
|
||||
`func (o *ModelsAPIKey) GetOrgId() string`
|
||||
|
||||
GetOrgId returns the OrgId field if non-nil, zero value otherwise.
|
||||
|
||||
### GetOrgIdOk
|
||||
|
||||
`func (o *ModelsAPIKey) GetOrgIdOk() (*string, bool)`
|
||||
|
||||
GetOrgIdOk returns a tuple with the OrgId field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetOrgId
|
||||
|
||||
`func (o *ModelsAPIKey) SetOrgId(v string)`
|
||||
|
||||
SetOrgId sets OrgId field to given value.
|
||||
|
||||
### HasOrgId
|
||||
|
||||
`func (o *ModelsAPIKey) HasOrgId() bool`
|
||||
|
||||
HasOrgId returns a boolean if a field has been set.
|
||||
|
||||
### GetPrefix
|
||||
|
||||
`func (o *ModelsAPIKey) GetPrefix() string`
|
||||
|
||||
GetPrefix returns the Prefix field if non-nil, zero value otherwise.
|
||||
|
||||
### GetPrefixOk
|
||||
|
||||
`func (o *ModelsAPIKey) GetPrefixOk() (*string, bool)`
|
||||
|
||||
GetPrefixOk returns a tuple with the Prefix field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetPrefix
|
||||
|
||||
`func (o *ModelsAPIKey) SetPrefix(v string)`
|
||||
|
||||
SetPrefix sets Prefix field to given value.
|
||||
|
||||
### HasPrefix
|
||||
|
||||
`func (o *ModelsAPIKey) HasPrefix() bool`
|
||||
|
||||
HasPrefix returns a boolean if a field has been set.
|
||||
|
||||
### GetRevoked
|
||||
|
||||
`func (o *ModelsAPIKey) GetRevoked() bool`
|
||||
|
||||
GetRevoked returns the Revoked field if non-nil, zero value otherwise.
|
||||
|
||||
### GetRevokedOk
|
||||
|
||||
`func (o *ModelsAPIKey) GetRevokedOk() (*bool, bool)`
|
||||
|
||||
GetRevokedOk returns a tuple with the Revoked field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetRevoked
|
||||
|
||||
`func (o *ModelsAPIKey) SetRevoked(v bool)`
|
||||
|
||||
SetRevoked sets Revoked field to given value.
|
||||
|
||||
### HasRevoked
|
||||
|
||||
`func (o *ModelsAPIKey) HasRevoked() bool`
|
||||
|
||||
HasRevoked returns a boolean if a field has been set.
|
||||
|
||||
### GetScope
|
||||
|
||||
`func (o *ModelsAPIKey) GetScope() string`
|
||||
|
||||
GetScope returns the Scope field if non-nil, zero value otherwise.
|
||||
|
||||
### GetScopeOk
|
||||
|
||||
`func (o *ModelsAPIKey) GetScopeOk() (*string, bool)`
|
||||
|
||||
GetScopeOk returns a tuple with the Scope field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetScope
|
||||
|
||||
`func (o *ModelsAPIKey) SetScope(v string)`
|
||||
|
||||
SetScope sets Scope field to given value.
|
||||
|
||||
### HasScope
|
||||
|
||||
`func (o *ModelsAPIKey) HasScope() bool`
|
||||
|
||||
HasScope returns a boolean if a field has been set.
|
||||
|
||||
### GetUpdatedAt
|
||||
|
||||
`func (o *ModelsAPIKey) GetUpdatedAt() time.Time`
|
||||
|
||||
GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise.
|
||||
|
||||
### GetUpdatedAtOk
|
||||
|
||||
`func (o *ModelsAPIKey) GetUpdatedAtOk() (*time.Time, 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 *ModelsAPIKey) SetUpdatedAt(v time.Time)`
|
||||
|
||||
SetUpdatedAt sets UpdatedAt field to given value.
|
||||
|
||||
### HasUpdatedAt
|
||||
|
||||
`func (o *ModelsAPIKey) HasUpdatedAt() bool`
|
||||
|
||||
HasUpdatedAt returns a boolean if a field has been set.
|
||||
|
||||
### GetUserId
|
||||
|
||||
`func (o *ModelsAPIKey) GetUserId() string`
|
||||
|
||||
GetUserId returns the UserId field if non-nil, zero value otherwise.
|
||||
|
||||
### GetUserIdOk
|
||||
|
||||
`func (o *ModelsAPIKey) GetUserIdOk() (*string, bool)`
|
||||
|
||||
GetUserIdOk returns a tuple with the UserId field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetUserId
|
||||
|
||||
`func (o *ModelsAPIKey) SetUserId(v string)`
|
||||
|
||||
SetUserId sets UserId field to given value.
|
||||
|
||||
### HasUserId
|
||||
|
||||
`func (o *ModelsAPIKey) HasUserId() bool`
|
||||
|
||||
HasUserId 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,160 +0,0 @@
|
||||
# ModelsOrganization
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**CreatedAt** | Pointer to **time.Time** | | [optional]
|
||||
**Domain** | Pointer to **string** | | [optional]
|
||||
**Id** | Pointer to **string** | example: 3fa85f64-5717-4562-b3fc-2c963f66afa6 | [optional]
|
||||
**Name** | Pointer to **string** | | [optional]
|
||||
**UpdatedAt** | Pointer to **time.Time** | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewModelsOrganization
|
||||
|
||||
`func NewModelsOrganization() *ModelsOrganization`
|
||||
|
||||
NewModelsOrganization instantiates a new ModelsOrganization 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
|
||||
|
||||
### NewModelsOrganizationWithDefaults
|
||||
|
||||
`func NewModelsOrganizationWithDefaults() *ModelsOrganization`
|
||||
|
||||
NewModelsOrganizationWithDefaults instantiates a new ModelsOrganization 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
|
||||
|
||||
### GetCreatedAt
|
||||
|
||||
`func (o *ModelsOrganization) GetCreatedAt() time.Time`
|
||||
|
||||
GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise.
|
||||
|
||||
### GetCreatedAtOk
|
||||
|
||||
`func (o *ModelsOrganization) GetCreatedAtOk() (*time.Time, 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 *ModelsOrganization) SetCreatedAt(v time.Time)`
|
||||
|
||||
SetCreatedAt sets CreatedAt field to given value.
|
||||
|
||||
### HasCreatedAt
|
||||
|
||||
`func (o *ModelsOrganization) HasCreatedAt() bool`
|
||||
|
||||
HasCreatedAt returns a boolean if a field has been set.
|
||||
|
||||
### GetDomain
|
||||
|
||||
`func (o *ModelsOrganization) GetDomain() string`
|
||||
|
||||
GetDomain returns the Domain field if non-nil, zero value otherwise.
|
||||
|
||||
### GetDomainOk
|
||||
|
||||
`func (o *ModelsOrganization) GetDomainOk() (*string, bool)`
|
||||
|
||||
GetDomainOk returns a tuple with the Domain field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetDomain
|
||||
|
||||
`func (o *ModelsOrganization) SetDomain(v string)`
|
||||
|
||||
SetDomain sets Domain field to given value.
|
||||
|
||||
### HasDomain
|
||||
|
||||
`func (o *ModelsOrganization) HasDomain() bool`
|
||||
|
||||
HasDomain returns a boolean if a field has been set.
|
||||
|
||||
### GetId
|
||||
|
||||
`func (o *ModelsOrganization) GetId() string`
|
||||
|
||||
GetId returns the Id field if non-nil, zero value otherwise.
|
||||
|
||||
### GetIdOk
|
||||
|
||||
`func (o *ModelsOrganization) 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 *ModelsOrganization) SetId(v string)`
|
||||
|
||||
SetId sets Id field to given value.
|
||||
|
||||
### HasId
|
||||
|
||||
`func (o *ModelsOrganization) HasId() bool`
|
||||
|
||||
HasId returns a boolean if a field has been set.
|
||||
|
||||
### GetName
|
||||
|
||||
`func (o *ModelsOrganization) GetName() string`
|
||||
|
||||
GetName returns the Name field if non-nil, zero value otherwise.
|
||||
|
||||
### GetNameOk
|
||||
|
||||
`func (o *ModelsOrganization) 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 *ModelsOrganization) SetName(v string)`
|
||||
|
||||
SetName sets Name field to given value.
|
||||
|
||||
### HasName
|
||||
|
||||
`func (o *ModelsOrganization) HasName() bool`
|
||||
|
||||
HasName returns a boolean if a field has been set.
|
||||
|
||||
### GetUpdatedAt
|
||||
|
||||
`func (o *ModelsOrganization) GetUpdatedAt() time.Time`
|
||||
|
||||
GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise.
|
||||
|
||||
### GetUpdatedAtOk
|
||||
|
||||
`func (o *ModelsOrganization) GetUpdatedAtOk() (*time.Time, 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 *ModelsOrganization) SetUpdatedAt(v time.Time)`
|
||||
|
||||
SetUpdatedAt sets UpdatedAt field to given value.
|
||||
|
||||
### HasUpdatedAt
|
||||
|
||||
`func (o *ModelsOrganization) 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)
|
||||
|
||||
|
||||
@@ -1,238 +0,0 @@
|
||||
# ModelsUser
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**AvatarUrl** | Pointer to **string** | | [optional]
|
||||
**CreatedAt** | Pointer to **time.Time** | | [optional]
|
||||
**DisplayName** | Pointer to **string** | | [optional]
|
||||
**Id** | Pointer to **string** | example: 3fa85f64-5717-4562-b3fc-2c963f66afa6 | [optional]
|
||||
**IsAdmin** | Pointer to **bool** | | [optional]
|
||||
**IsDisabled** | Pointer to **bool** | | [optional]
|
||||
**PrimaryEmail** | Pointer to **string** | | [optional]
|
||||
**UpdatedAt** | Pointer to **time.Time** | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewModelsUser
|
||||
|
||||
`func NewModelsUser() *ModelsUser`
|
||||
|
||||
NewModelsUser instantiates a new ModelsUser 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
|
||||
|
||||
### NewModelsUserWithDefaults
|
||||
|
||||
`func NewModelsUserWithDefaults() *ModelsUser`
|
||||
|
||||
NewModelsUserWithDefaults instantiates a new ModelsUser 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
|
||||
|
||||
### GetAvatarUrl
|
||||
|
||||
`func (o *ModelsUser) GetAvatarUrl() string`
|
||||
|
||||
GetAvatarUrl returns the AvatarUrl field if non-nil, zero value otherwise.
|
||||
|
||||
### GetAvatarUrlOk
|
||||
|
||||
`func (o *ModelsUser) GetAvatarUrlOk() (*string, bool)`
|
||||
|
||||
GetAvatarUrlOk returns a tuple with the AvatarUrl field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetAvatarUrl
|
||||
|
||||
`func (o *ModelsUser) SetAvatarUrl(v string)`
|
||||
|
||||
SetAvatarUrl sets AvatarUrl field to given value.
|
||||
|
||||
### HasAvatarUrl
|
||||
|
||||
`func (o *ModelsUser) HasAvatarUrl() bool`
|
||||
|
||||
HasAvatarUrl returns a boolean if a field has been set.
|
||||
|
||||
### GetCreatedAt
|
||||
|
||||
`func (o *ModelsUser) GetCreatedAt() time.Time`
|
||||
|
||||
GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise.
|
||||
|
||||
### GetCreatedAtOk
|
||||
|
||||
`func (o *ModelsUser) GetCreatedAtOk() (*time.Time, 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 *ModelsUser) SetCreatedAt(v time.Time)`
|
||||
|
||||
SetCreatedAt sets CreatedAt field to given value.
|
||||
|
||||
### HasCreatedAt
|
||||
|
||||
`func (o *ModelsUser) HasCreatedAt() bool`
|
||||
|
||||
HasCreatedAt returns a boolean if a field has been set.
|
||||
|
||||
### GetDisplayName
|
||||
|
||||
`func (o *ModelsUser) GetDisplayName() string`
|
||||
|
||||
GetDisplayName returns the DisplayName field if non-nil, zero value otherwise.
|
||||
|
||||
### GetDisplayNameOk
|
||||
|
||||
`func (o *ModelsUser) GetDisplayNameOk() (*string, bool)`
|
||||
|
||||
GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetDisplayName
|
||||
|
||||
`func (o *ModelsUser) SetDisplayName(v string)`
|
||||
|
||||
SetDisplayName sets DisplayName field to given value.
|
||||
|
||||
### HasDisplayName
|
||||
|
||||
`func (o *ModelsUser) HasDisplayName() bool`
|
||||
|
||||
HasDisplayName returns a boolean if a field has been set.
|
||||
|
||||
### GetId
|
||||
|
||||
`func (o *ModelsUser) GetId() string`
|
||||
|
||||
GetId returns the Id field if non-nil, zero value otherwise.
|
||||
|
||||
### GetIdOk
|
||||
|
||||
`func (o *ModelsUser) 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 *ModelsUser) SetId(v string)`
|
||||
|
||||
SetId sets Id field to given value.
|
||||
|
||||
### HasId
|
||||
|
||||
`func (o *ModelsUser) HasId() bool`
|
||||
|
||||
HasId returns a boolean if a field has been set.
|
||||
|
||||
### GetIsAdmin
|
||||
|
||||
`func (o *ModelsUser) GetIsAdmin() bool`
|
||||
|
||||
GetIsAdmin returns the IsAdmin field if non-nil, zero value otherwise.
|
||||
|
||||
### GetIsAdminOk
|
||||
|
||||
`func (o *ModelsUser) GetIsAdminOk() (*bool, bool)`
|
||||
|
||||
GetIsAdminOk returns a tuple with the IsAdmin field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetIsAdmin
|
||||
|
||||
`func (o *ModelsUser) SetIsAdmin(v bool)`
|
||||
|
||||
SetIsAdmin sets IsAdmin field to given value.
|
||||
|
||||
### HasIsAdmin
|
||||
|
||||
`func (o *ModelsUser) HasIsAdmin() bool`
|
||||
|
||||
HasIsAdmin returns a boolean if a field has been set.
|
||||
|
||||
### GetIsDisabled
|
||||
|
||||
`func (o *ModelsUser) GetIsDisabled() bool`
|
||||
|
||||
GetIsDisabled returns the IsDisabled field if non-nil, zero value otherwise.
|
||||
|
||||
### GetIsDisabledOk
|
||||
|
||||
`func (o *ModelsUser) GetIsDisabledOk() (*bool, bool)`
|
||||
|
||||
GetIsDisabledOk returns a tuple with the IsDisabled field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetIsDisabled
|
||||
|
||||
`func (o *ModelsUser) SetIsDisabled(v bool)`
|
||||
|
||||
SetIsDisabled sets IsDisabled field to given value.
|
||||
|
||||
### HasIsDisabled
|
||||
|
||||
`func (o *ModelsUser) HasIsDisabled() bool`
|
||||
|
||||
HasIsDisabled returns a boolean if a field has been set.
|
||||
|
||||
### GetPrimaryEmail
|
||||
|
||||
`func (o *ModelsUser) GetPrimaryEmail() string`
|
||||
|
||||
GetPrimaryEmail returns the PrimaryEmail field if non-nil, zero value otherwise.
|
||||
|
||||
### GetPrimaryEmailOk
|
||||
|
||||
`func (o *ModelsUser) GetPrimaryEmailOk() (*string, bool)`
|
||||
|
||||
GetPrimaryEmailOk returns a tuple with the PrimaryEmail field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetPrimaryEmail
|
||||
|
||||
`func (o *ModelsUser) SetPrimaryEmail(v string)`
|
||||
|
||||
SetPrimaryEmail sets PrimaryEmail field to given value.
|
||||
|
||||
### HasPrimaryEmail
|
||||
|
||||
`func (o *ModelsUser) HasPrimaryEmail() bool`
|
||||
|
||||
HasPrimaryEmail returns a boolean if a field has been set.
|
||||
|
||||
### GetUpdatedAt
|
||||
|
||||
`func (o *ModelsUser) GetUpdatedAt() time.Time`
|
||||
|
||||
GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise.
|
||||
|
||||
### GetUpdatedAtOk
|
||||
|
||||
`func (o *ModelsUser) GetUpdatedAtOk() (*time.Time, 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 *ModelsUser) SetUpdatedAt(v time.Time)`
|
||||
|
||||
SetUpdatedAt sets UpdatedAt field to given value.
|
||||
|
||||
### HasUpdatedAt
|
||||
|
||||
`func (o *ModelsUser) 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)
|
||||
|
||||
|
||||
@@ -1,238 +0,0 @@
|
||||
# ModelsUserEmail
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**CreatedAt** | Pointer to **time.Time** | | [optional]
|
||||
**Email** | Pointer to **string** | | [optional]
|
||||
**Id** | Pointer to **string** | example: 3fa85f64-5717-4562-b3fc-2c963f66afa6 | [optional]
|
||||
**IsPrimary** | Pointer to **bool** | | [optional]
|
||||
**IsVerified** | Pointer to **bool** | | [optional]
|
||||
**UpdatedAt** | Pointer to **time.Time** | | [optional]
|
||||
**User** | Pointer to [**ModelsUser**](ModelsUser.md) | | [optional]
|
||||
**UserId** | Pointer to **string** | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewModelsUserEmail
|
||||
|
||||
`func NewModelsUserEmail() *ModelsUserEmail`
|
||||
|
||||
NewModelsUserEmail instantiates a new ModelsUserEmail 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
|
||||
|
||||
### NewModelsUserEmailWithDefaults
|
||||
|
||||
`func NewModelsUserEmailWithDefaults() *ModelsUserEmail`
|
||||
|
||||
NewModelsUserEmailWithDefaults instantiates a new ModelsUserEmail 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
|
||||
|
||||
### GetCreatedAt
|
||||
|
||||
`func (o *ModelsUserEmail) GetCreatedAt() time.Time`
|
||||
|
||||
GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise.
|
||||
|
||||
### GetCreatedAtOk
|
||||
|
||||
`func (o *ModelsUserEmail) GetCreatedAtOk() (*time.Time, 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 *ModelsUserEmail) SetCreatedAt(v time.Time)`
|
||||
|
||||
SetCreatedAt sets CreatedAt field to given value.
|
||||
|
||||
### HasCreatedAt
|
||||
|
||||
`func (o *ModelsUserEmail) HasCreatedAt() bool`
|
||||
|
||||
HasCreatedAt returns a boolean if a field has been set.
|
||||
|
||||
### GetEmail
|
||||
|
||||
`func (o *ModelsUserEmail) GetEmail() string`
|
||||
|
||||
GetEmail returns the Email field if non-nil, zero value otherwise.
|
||||
|
||||
### GetEmailOk
|
||||
|
||||
`func (o *ModelsUserEmail) GetEmailOk() (*string, bool)`
|
||||
|
||||
GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetEmail
|
||||
|
||||
`func (o *ModelsUserEmail) SetEmail(v string)`
|
||||
|
||||
SetEmail sets Email field to given value.
|
||||
|
||||
### HasEmail
|
||||
|
||||
`func (o *ModelsUserEmail) HasEmail() bool`
|
||||
|
||||
HasEmail returns a boolean if a field has been set.
|
||||
|
||||
### GetId
|
||||
|
||||
`func (o *ModelsUserEmail) GetId() string`
|
||||
|
||||
GetId returns the Id field if non-nil, zero value otherwise.
|
||||
|
||||
### GetIdOk
|
||||
|
||||
`func (o *ModelsUserEmail) 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 *ModelsUserEmail) SetId(v string)`
|
||||
|
||||
SetId sets Id field to given value.
|
||||
|
||||
### HasId
|
||||
|
||||
`func (o *ModelsUserEmail) HasId() bool`
|
||||
|
||||
HasId returns a boolean if a field has been set.
|
||||
|
||||
### GetIsPrimary
|
||||
|
||||
`func (o *ModelsUserEmail) GetIsPrimary() bool`
|
||||
|
||||
GetIsPrimary returns the IsPrimary field if non-nil, zero value otherwise.
|
||||
|
||||
### GetIsPrimaryOk
|
||||
|
||||
`func (o *ModelsUserEmail) GetIsPrimaryOk() (*bool, bool)`
|
||||
|
||||
GetIsPrimaryOk returns a tuple with the IsPrimary field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetIsPrimary
|
||||
|
||||
`func (o *ModelsUserEmail) SetIsPrimary(v bool)`
|
||||
|
||||
SetIsPrimary sets IsPrimary field to given value.
|
||||
|
||||
### HasIsPrimary
|
||||
|
||||
`func (o *ModelsUserEmail) HasIsPrimary() bool`
|
||||
|
||||
HasIsPrimary returns a boolean if a field has been set.
|
||||
|
||||
### GetIsVerified
|
||||
|
||||
`func (o *ModelsUserEmail) GetIsVerified() bool`
|
||||
|
||||
GetIsVerified returns the IsVerified field if non-nil, zero value otherwise.
|
||||
|
||||
### GetIsVerifiedOk
|
||||
|
||||
`func (o *ModelsUserEmail) GetIsVerifiedOk() (*bool, bool)`
|
||||
|
||||
GetIsVerifiedOk returns a tuple with the IsVerified field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetIsVerified
|
||||
|
||||
`func (o *ModelsUserEmail) SetIsVerified(v bool)`
|
||||
|
||||
SetIsVerified sets IsVerified field to given value.
|
||||
|
||||
### HasIsVerified
|
||||
|
||||
`func (o *ModelsUserEmail) HasIsVerified() bool`
|
||||
|
||||
HasIsVerified returns a boolean if a field has been set.
|
||||
|
||||
### GetUpdatedAt
|
||||
|
||||
`func (o *ModelsUserEmail) GetUpdatedAt() time.Time`
|
||||
|
||||
GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise.
|
||||
|
||||
### GetUpdatedAtOk
|
||||
|
||||
`func (o *ModelsUserEmail) GetUpdatedAtOk() (*time.Time, 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 *ModelsUserEmail) SetUpdatedAt(v time.Time)`
|
||||
|
||||
SetUpdatedAt sets UpdatedAt field to given value.
|
||||
|
||||
### HasUpdatedAt
|
||||
|
||||
`func (o *ModelsUserEmail) HasUpdatedAt() bool`
|
||||
|
||||
HasUpdatedAt returns a boolean if a field has been set.
|
||||
|
||||
### GetUser
|
||||
|
||||
`func (o *ModelsUserEmail) GetUser() ModelsUser`
|
||||
|
||||
GetUser returns the User field if non-nil, zero value otherwise.
|
||||
|
||||
### GetUserOk
|
||||
|
||||
`func (o *ModelsUserEmail) GetUserOk() (*ModelsUser, bool)`
|
||||
|
||||
GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetUser
|
||||
|
||||
`func (o *ModelsUserEmail) SetUser(v ModelsUser)`
|
||||
|
||||
SetUser sets User field to given value.
|
||||
|
||||
### HasUser
|
||||
|
||||
`func (o *ModelsUserEmail) HasUser() bool`
|
||||
|
||||
HasUser returns a boolean if a field has been set.
|
||||
|
||||
### GetUserId
|
||||
|
||||
`func (o *ModelsUserEmail) GetUserId() string`
|
||||
|
||||
GetUserId returns the UserId field if non-nil, zero value otherwise.
|
||||
|
||||
### GetUserIdOk
|
||||
|
||||
`func (o *ModelsUserEmail) GetUserIdOk() (*string, bool)`
|
||||
|
||||
GetUserIdOk returns a tuple with the UserId field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetUserId
|
||||
|
||||
`func (o *ModelsUserEmail) SetUserId(v string)`
|
||||
|
||||
SetUserId sets UserId field to given value.
|
||||
|
||||
### HasUserId
|
||||
|
||||
`func (o *ModelsUserEmail) HasUserId() bool`
|
||||
|
||||
HasUserId 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)
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,760 +0,0 @@
|
||||
# \OrgsAPI
|
||||
|
||||
All URIs are relative to */api/v1*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
[**AddOrUpdateMember**](OrgsAPI.md#AddOrUpdateMember) | **Post** /orgs/{id}/members | Add or update a member (owner/admin)
|
||||
[**CreateOrg**](OrgsAPI.md#CreateOrg) | **Post** /orgs | Create organization
|
||||
[**CreateOrgKey**](OrgsAPI.md#CreateOrgKey) | **Post** /orgs/{id}/api-keys | Create org key/secret pair (owner/admin)
|
||||
[**DeleteOrg**](OrgsAPI.md#DeleteOrg) | **Delete** /orgs/{id} | Delete organization (owner)
|
||||
[**DeleteOrgKey**](OrgsAPI.md#DeleteOrgKey) | **Delete** /orgs/{id}/api-keys/{key_id} | Delete org key (owner/admin)
|
||||
[**GetOrg**](OrgsAPI.md#GetOrg) | **Get** /orgs/{id} | Get organization
|
||||
[**ListMembers**](OrgsAPI.md#ListMembers) | **Get** /orgs/{id}/members | List members in org
|
||||
[**ListMyOrgs**](OrgsAPI.md#ListMyOrgs) | **Get** /orgs | List organizations I belong to
|
||||
[**ListOrgKeys**](OrgsAPI.md#ListOrgKeys) | **Get** /orgs/{id}/api-keys | List org-scoped API keys (no secrets)
|
||||
[**RemoveMember**](OrgsAPI.md#RemoveMember) | **Delete** /orgs/{id}/members/{user_id} | Remove a member (owner/admin)
|
||||
[**UpdateOrg**](OrgsAPI.md#UpdateOrg) | **Patch** /orgs/{id} | Update organization (owner/admin)
|
||||
|
||||
|
||||
|
||||
## AddOrUpdateMember
|
||||
|
||||
> HandlersMemberOut AddOrUpdateMember(ctx, id).Body(body).Execute()
|
||||
|
||||
Add or update a member (owner/admin)
|
||||
|
||||
### Example
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
openapiclient "github.com/glueops/autoglue-sdk-go"
|
||||
)
|
||||
|
||||
func main() {
|
||||
id := "id_example" // string | Org ID (UUID)
|
||||
body := *openapiclient.NewHandlersMemberUpsertReq() // HandlersMemberUpsertReq | User & role
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
resp, r, err := apiClient.OrgsAPI.AddOrUpdateMember(context.Background(), id).Body(body).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `OrgsAPI.AddOrUpdateMember``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
// response from `AddOrUpdateMember`: HandlersMemberOut
|
||||
fmt.Fprintf(os.Stdout, "Response from `OrgsAPI.AddOrUpdateMember`: %v\n", resp)
|
||||
}
|
||||
```
|
||||
|
||||
### Path Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
|
||||
**id** | **string** | Org ID (UUID) |
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiAddOrUpdateMemberRequest struct via the builder pattern
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
|
||||
**body** | [**HandlersMemberUpsertReq**](HandlersMemberUpsertReq.md) | User & role |
|
||||
|
||||
### Return type
|
||||
|
||||
[**HandlersMemberOut**](HandlersMemberOut.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[BearerAuth](../README.md#BearerAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
|
||||
## CreateOrg
|
||||
|
||||
> ModelsOrganization CreateOrg(ctx).Body(body).Execute()
|
||||
|
||||
Create organization
|
||||
|
||||
### Example
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
openapiclient "github.com/glueops/autoglue-sdk-go"
|
||||
)
|
||||
|
||||
func main() {
|
||||
body := *openapiclient.NewHandlersOrgCreateReq() // HandlersOrgCreateReq | Org payload
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
resp, r, err := apiClient.OrgsAPI.CreateOrg(context.Background()).Body(body).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `OrgsAPI.CreateOrg``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
// response from `CreateOrg`: ModelsOrganization
|
||||
fmt.Fprintf(os.Stdout, "Response from `OrgsAPI.CreateOrg`: %v\n", resp)
|
||||
}
|
||||
```
|
||||
|
||||
### Path Parameters
|
||||
|
||||
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiCreateOrgRequest struct via the builder pattern
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**body** | [**HandlersOrgCreateReq**](HandlersOrgCreateReq.md) | Org payload |
|
||||
|
||||
### Return type
|
||||
|
||||
[**ModelsOrganization**](ModelsOrganization.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[BearerAuth](../README.md#BearerAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
|
||||
## CreateOrgKey
|
||||
|
||||
> HandlersOrgKeyCreateResp CreateOrgKey(ctx, id).Body(body).Execute()
|
||||
|
||||
Create org key/secret pair (owner/admin)
|
||||
|
||||
### Example
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
openapiclient "github.com/glueops/autoglue-sdk-go"
|
||||
)
|
||||
|
||||
func main() {
|
||||
id := "id_example" // string | Org ID (UUID)
|
||||
body := *openapiclient.NewHandlersOrgKeyCreateReq() // HandlersOrgKeyCreateReq | Key name + optional expiry
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
resp, r, err := apiClient.OrgsAPI.CreateOrgKey(context.Background(), id).Body(body).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `OrgsAPI.CreateOrgKey``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
// response from `CreateOrgKey`: HandlersOrgKeyCreateResp
|
||||
fmt.Fprintf(os.Stdout, "Response from `OrgsAPI.CreateOrgKey`: %v\n", resp)
|
||||
}
|
||||
```
|
||||
|
||||
### Path Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
|
||||
**id** | **string** | Org ID (UUID) |
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiCreateOrgKeyRequest struct via the builder pattern
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
|
||||
**body** | [**HandlersOrgKeyCreateReq**](HandlersOrgKeyCreateReq.md) | Key name + optional expiry |
|
||||
|
||||
### Return type
|
||||
|
||||
[**HandlersOrgKeyCreateResp**](HandlersOrgKeyCreateResp.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[BearerAuth](../README.md#BearerAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
|
||||
## DeleteOrg
|
||||
|
||||
> DeleteOrg(ctx, id).Execute()
|
||||
|
||||
Delete organization (owner)
|
||||
|
||||
### Example
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
openapiclient "github.com/glueops/autoglue-sdk-go"
|
||||
)
|
||||
|
||||
func main() {
|
||||
id := "id_example" // string | Org ID (UUID)
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
r, err := apiClient.OrgsAPI.DeleteOrg(context.Background(), id).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `OrgsAPI.DeleteOrg``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Path Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
|
||||
**id** | **string** | Org ID (UUID) |
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiDeleteOrgRequest struct via the builder pattern
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
(empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
[BearerAuth](../README.md#BearerAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
|
||||
## DeleteOrgKey
|
||||
|
||||
> DeleteOrgKey(ctx, id, keyId).Execute()
|
||||
|
||||
Delete org key (owner/admin)
|
||||
|
||||
### Example
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
openapiclient "github.com/glueops/autoglue-sdk-go"
|
||||
)
|
||||
|
||||
func main() {
|
||||
id := "id_example" // string | Org ID (UUID)
|
||||
keyId := "keyId_example" // string | Key ID (UUID)
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
r, err := apiClient.OrgsAPI.DeleteOrgKey(context.Background(), id, keyId).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `OrgsAPI.DeleteOrgKey``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Path Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
|
||||
**id** | **string** | Org ID (UUID) |
|
||||
**keyId** | **string** | Key ID (UUID) |
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiDeleteOrgKeyRequest struct via the builder pattern
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
(empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
[BearerAuth](../README.md#BearerAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
|
||||
## GetOrg
|
||||
|
||||
> ModelsOrganization GetOrg(ctx, id).Execute()
|
||||
|
||||
Get organization
|
||||
|
||||
### Example
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
openapiclient "github.com/glueops/autoglue-sdk-go"
|
||||
)
|
||||
|
||||
func main() {
|
||||
id := "id_example" // string | Org ID (UUID)
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
resp, r, err := apiClient.OrgsAPI.GetOrg(context.Background(), id).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `OrgsAPI.GetOrg``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
// response from `GetOrg`: ModelsOrganization
|
||||
fmt.Fprintf(os.Stdout, "Response from `OrgsAPI.GetOrg`: %v\n", resp)
|
||||
}
|
||||
```
|
||||
|
||||
### Path Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
|
||||
**id** | **string** | Org ID (UUID) |
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiGetOrgRequest struct via the builder pattern
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
[**ModelsOrganization**](ModelsOrganization.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[BearerAuth](../README.md#BearerAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
|
||||
## ListMembers
|
||||
|
||||
> []HandlersMemberOut ListMembers(ctx, id).Execute()
|
||||
|
||||
List members in org
|
||||
|
||||
### Example
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
openapiclient "github.com/glueops/autoglue-sdk-go"
|
||||
)
|
||||
|
||||
func main() {
|
||||
id := "id_example" // string | Org ID (UUID)
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
resp, r, err := apiClient.OrgsAPI.ListMembers(context.Background(), id).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `OrgsAPI.ListMembers``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
// response from `ListMembers`: []HandlersMemberOut
|
||||
fmt.Fprintf(os.Stdout, "Response from `OrgsAPI.ListMembers`: %v\n", resp)
|
||||
}
|
||||
```
|
||||
|
||||
### Path Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
|
||||
**id** | **string** | Org ID (UUID) |
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiListMembersRequest struct via the builder pattern
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
[**[]HandlersMemberOut**](HandlersMemberOut.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[BearerAuth](../README.md#BearerAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
|
||||
## ListMyOrgs
|
||||
|
||||
> []ModelsOrganization ListMyOrgs(ctx).Execute()
|
||||
|
||||
List organizations I belong to
|
||||
|
||||
### Example
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
openapiclient "github.com/glueops/autoglue-sdk-go"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
resp, r, err := apiClient.OrgsAPI.ListMyOrgs(context.Background()).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `OrgsAPI.ListMyOrgs``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
// response from `ListMyOrgs`: []ModelsOrganization
|
||||
fmt.Fprintf(os.Stdout, "Response from `OrgsAPI.ListMyOrgs`: %v\n", resp)
|
||||
}
|
||||
```
|
||||
|
||||
### Path Parameters
|
||||
|
||||
This endpoint does not need any parameter.
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiListMyOrgsRequest struct via the builder pattern
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
[**[]ModelsOrganization**](ModelsOrganization.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[BearerAuth](../README.md#BearerAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
|
||||
## ListOrgKeys
|
||||
|
||||
> []ModelsAPIKey ListOrgKeys(ctx, id).Execute()
|
||||
|
||||
List org-scoped API keys (no secrets)
|
||||
|
||||
### Example
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
openapiclient "github.com/glueops/autoglue-sdk-go"
|
||||
)
|
||||
|
||||
func main() {
|
||||
id := "id_example" // string | Org ID (UUID)
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
resp, r, err := apiClient.OrgsAPI.ListOrgKeys(context.Background(), id).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `OrgsAPI.ListOrgKeys``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
// response from `ListOrgKeys`: []ModelsAPIKey
|
||||
fmt.Fprintf(os.Stdout, "Response from `OrgsAPI.ListOrgKeys`: %v\n", resp)
|
||||
}
|
||||
```
|
||||
|
||||
### Path Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
|
||||
**id** | **string** | Org ID (UUID) |
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiListOrgKeysRequest struct via the builder pattern
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
[**[]ModelsAPIKey**](ModelsAPIKey.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[BearerAuth](../README.md#BearerAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
|
||||
## RemoveMember
|
||||
|
||||
> RemoveMember(ctx, id, userId).Execute()
|
||||
|
||||
Remove a member (owner/admin)
|
||||
|
||||
### Example
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
openapiclient "github.com/glueops/autoglue-sdk-go"
|
||||
)
|
||||
|
||||
func main() {
|
||||
id := "id_example" // string | Org ID (UUID)
|
||||
userId := "userId_example" // string | User ID (UUID)
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
r, err := apiClient.OrgsAPI.RemoveMember(context.Background(), id, userId).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `OrgsAPI.RemoveMember``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Path Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
|
||||
**id** | **string** | Org ID (UUID) |
|
||||
**userId** | **string** | User ID (UUID) |
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiRemoveMemberRequest struct via the builder pattern
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
(empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
[BearerAuth](../README.md#BearerAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
|
||||
## UpdateOrg
|
||||
|
||||
> ModelsOrganization UpdateOrg(ctx, id).Body(body).Execute()
|
||||
|
||||
Update organization (owner/admin)
|
||||
|
||||
### Example
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
openapiclient "github.com/glueops/autoglue-sdk-go"
|
||||
)
|
||||
|
||||
func main() {
|
||||
id := "id_example" // string | Org ID (UUID)
|
||||
body := *openapiclient.NewHandlersOrgUpdateReq() // HandlersOrgUpdateReq | Update payload
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
resp, r, err := apiClient.OrgsAPI.UpdateOrg(context.Background(), id).Body(body).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `OrgsAPI.UpdateOrg``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
// response from `UpdateOrg`: ModelsOrganization
|
||||
fmt.Fprintf(os.Stdout, "Response from `OrgsAPI.UpdateOrg`: %v\n", resp)
|
||||
}
|
||||
```
|
||||
|
||||
### Path Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
|
||||
**id** | **string** | Org ID (UUID) |
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiUpdateOrgRequest struct via the builder pattern
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
|
||||
**body** | [**HandlersOrgUpdateReq**](HandlersOrgUpdateReq.md) | Update payload |
|
||||
|
||||
### Return type
|
||||
|
||||
[**ModelsOrganization**](ModelsOrganization.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[BearerAuth](../README.md#BearerAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
@@ -1,369 +0,0 @@
|
||||
# \ServersAPI
|
||||
|
||||
All URIs are relative to */api/v1*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
[**CreateServer**](ServersAPI.md#CreateServer) | **Post** /servers | Create server (org scoped)
|
||||
[**DeleteServer**](ServersAPI.md#DeleteServer) | **Delete** /servers/{id} | Delete server (org scoped)
|
||||
[**GetServer**](ServersAPI.md#GetServer) | **Get** /servers/{id} | Get server by ID (org scoped)
|
||||
[**ListServers**](ServersAPI.md#ListServers) | **Get** /servers | List servers (org scoped)
|
||||
[**UpdateServer**](ServersAPI.md#UpdateServer) | **Patch** /servers/{id} | Update server (org scoped)
|
||||
|
||||
|
||||
|
||||
## CreateServer
|
||||
|
||||
> DtoServerResponse CreateServer(ctx).Body(body).XOrgID(xOrgID).Execute()
|
||||
|
||||
Create server (org scoped)
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
openapiclient "github.com/glueops/autoglue-sdk-go"
|
||||
)
|
||||
|
||||
func main() {
|
||||
body := *openapiclient.NewDtoCreateServerRequest() // DtoCreateServerRequest | Server payload
|
||||
xOrgID := "xOrgID_example" // string | Organization UUID (optional)
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
resp, r, err := apiClient.ServersAPI.CreateServer(context.Background()).Body(body).XOrgID(xOrgID).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `ServersAPI.CreateServer``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
// response from `CreateServer`: DtoServerResponse
|
||||
fmt.Fprintf(os.Stdout, "Response from `ServersAPI.CreateServer`: %v\n", resp)
|
||||
}
|
||||
```
|
||||
|
||||
### Path Parameters
|
||||
|
||||
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiCreateServerRequest struct via the builder pattern
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**body** | [**DtoCreateServerRequest**](DtoCreateServerRequest.md) | Server payload |
|
||||
**xOrgID** | **string** | Organization UUID |
|
||||
|
||||
### Return type
|
||||
|
||||
[**DtoServerResponse**](DtoServerResponse.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
|
||||
## DeleteServer
|
||||
|
||||
> string DeleteServer(ctx, id).XOrgID(xOrgID).Execute()
|
||||
|
||||
Delete server (org scoped)
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
openapiclient "github.com/glueops/autoglue-sdk-go"
|
||||
)
|
||||
|
||||
func main() {
|
||||
id := "id_example" // string | Server ID (UUID)
|
||||
xOrgID := "xOrgID_example" // string | Organization UUID (optional)
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
resp, r, err := apiClient.ServersAPI.DeleteServer(context.Background(), id).XOrgID(xOrgID).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `ServersAPI.DeleteServer``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
// response from `DeleteServer`: string
|
||||
fmt.Fprintf(os.Stdout, "Response from `ServersAPI.DeleteServer`: %v\n", resp)
|
||||
}
|
||||
```
|
||||
|
||||
### Path Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
|
||||
**id** | **string** | Server ID (UUID) |
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiDeleteServerRequest struct via the builder pattern
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
|
||||
**xOrgID** | **string** | Organization UUID |
|
||||
|
||||
### Return type
|
||||
|
||||
**string**
|
||||
|
||||
### Authorization
|
||||
|
||||
[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
|
||||
## GetServer
|
||||
|
||||
> DtoServerResponse GetServer(ctx, id).XOrgID(xOrgID).Execute()
|
||||
|
||||
Get server by ID (org scoped)
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
openapiclient "github.com/glueops/autoglue-sdk-go"
|
||||
)
|
||||
|
||||
func main() {
|
||||
id := "id_example" // string | Server ID (UUID)
|
||||
xOrgID := "xOrgID_example" // string | Organization UUID (optional)
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
resp, r, err := apiClient.ServersAPI.GetServer(context.Background(), id).XOrgID(xOrgID).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `ServersAPI.GetServer``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
// response from `GetServer`: DtoServerResponse
|
||||
fmt.Fprintf(os.Stdout, "Response from `ServersAPI.GetServer`: %v\n", resp)
|
||||
}
|
||||
```
|
||||
|
||||
### Path Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
|
||||
**id** | **string** | Server ID (UUID) |
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiGetServerRequest struct via the builder pattern
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
|
||||
**xOrgID** | **string** | Organization UUID |
|
||||
|
||||
### Return type
|
||||
|
||||
[**DtoServerResponse**](DtoServerResponse.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
|
||||
## ListServers
|
||||
|
||||
> []DtoServerResponse ListServers(ctx).XOrgID(xOrgID).Status(status).Role(role).Execute()
|
||||
|
||||
List servers (org scoped)
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
openapiclient "github.com/glueops/autoglue-sdk-go"
|
||||
)
|
||||
|
||||
func main() {
|
||||
xOrgID := "xOrgID_example" // string | Organization UUID (optional)
|
||||
status := "status_example" // string | Filter by status (pending|provisioning|ready|failed) (optional)
|
||||
role := "role_example" // string | Filter by role (optional)
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
resp, r, err := apiClient.ServersAPI.ListServers(context.Background()).XOrgID(xOrgID).Status(status).Role(role).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `ServersAPI.ListServers``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
// response from `ListServers`: []DtoServerResponse
|
||||
fmt.Fprintf(os.Stdout, "Response from `ServersAPI.ListServers`: %v\n", resp)
|
||||
}
|
||||
```
|
||||
|
||||
### Path Parameters
|
||||
|
||||
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiListServersRequest struct via the builder pattern
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**xOrgID** | **string** | Organization UUID |
|
||||
**status** | **string** | Filter by status (pending|provisioning|ready|failed) |
|
||||
**role** | **string** | Filter by role |
|
||||
|
||||
### Return type
|
||||
|
||||
[**[]DtoServerResponse**](DtoServerResponse.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
|
||||
## UpdateServer
|
||||
|
||||
> DtoServerResponse UpdateServer(ctx, id).Body(body).XOrgID(xOrgID).Execute()
|
||||
|
||||
Update server (org scoped)
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
openapiclient "github.com/glueops/autoglue-sdk-go"
|
||||
)
|
||||
|
||||
func main() {
|
||||
id := "id_example" // string | Server ID (UUID)
|
||||
body := *openapiclient.NewDtoUpdateServerRequest() // DtoUpdateServerRequest | Fields to update
|
||||
xOrgID := "xOrgID_example" // string | Organization UUID (optional)
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
resp, r, err := apiClient.ServersAPI.UpdateServer(context.Background(), id).Body(body).XOrgID(xOrgID).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `ServersAPI.UpdateServer``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
// response from `UpdateServer`: DtoServerResponse
|
||||
fmt.Fprintf(os.Stdout, "Response from `ServersAPI.UpdateServer`: %v\n", resp)
|
||||
}
|
||||
```
|
||||
|
||||
### Path Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
|
||||
**id** | **string** | Server ID (UUID) |
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiUpdateServerRequest struct via the builder pattern
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
|
||||
**body** | [**DtoUpdateServerRequest**](DtoUpdateServerRequest.md) | Fields to update |
|
||||
**xOrgID** | **string** | Organization UUID |
|
||||
|
||||
### Return type
|
||||
|
||||
[**DtoServerResponse**](DtoServerResponse.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
@@ -1,367 +0,0 @@
|
||||
# \SshAPI
|
||||
|
||||
All URIs are relative to */api/v1*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
[**CreateSSHKey**](SshAPI.md#CreateSSHKey) | **Post** /ssh | Create ssh keypair (org scoped)
|
||||
[**DeleteSSHKey**](SshAPI.md#DeleteSSHKey) | **Delete** /ssh/{id} | Delete ssh keypair (org scoped)
|
||||
[**DownloadSSHKey**](SshAPI.md#DownloadSSHKey) | **Get** /ssh/{id}/download | Download ssh key files by ID (org scoped)
|
||||
[**GetSSHKey**](SshAPI.md#GetSSHKey) | **Get** /ssh/{id} | Get ssh key by ID (org scoped)
|
||||
[**ListPublicSshKeys**](SshAPI.md#ListPublicSshKeys) | **Get** /ssh | List ssh keys (org scoped)
|
||||
|
||||
|
||||
|
||||
## CreateSSHKey
|
||||
|
||||
> DtoSshResponse CreateSSHKey(ctx).Body(body).XOrgID(xOrgID).Execute()
|
||||
|
||||
Create ssh keypair (org scoped)
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
openapiclient "github.com/glueops/autoglue-sdk-go"
|
||||
)
|
||||
|
||||
func main() {
|
||||
body := *openapiclient.NewDtoCreateSSHRequest() // DtoCreateSSHRequest | Key generation options
|
||||
xOrgID := "xOrgID_example" // string | Organization UUID (optional)
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
resp, r, err := apiClient.SshAPI.CreateSSHKey(context.Background()).Body(body).XOrgID(xOrgID).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `SshAPI.CreateSSHKey``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
// response from `CreateSSHKey`: DtoSshResponse
|
||||
fmt.Fprintf(os.Stdout, "Response from `SshAPI.CreateSSHKey`: %v\n", resp)
|
||||
}
|
||||
```
|
||||
|
||||
### Path Parameters
|
||||
|
||||
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiCreateSSHKeyRequest struct via the builder pattern
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**body** | [**DtoCreateSSHRequest**](DtoCreateSSHRequest.md) | Key generation options |
|
||||
**xOrgID** | **string** | Organization UUID |
|
||||
|
||||
### Return type
|
||||
|
||||
[**DtoSshResponse**](DtoSshResponse.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
|
||||
## DeleteSSHKey
|
||||
|
||||
> string DeleteSSHKey(ctx, id).XOrgID(xOrgID).Execute()
|
||||
|
||||
Delete ssh keypair (org scoped)
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
openapiclient "github.com/glueops/autoglue-sdk-go"
|
||||
)
|
||||
|
||||
func main() {
|
||||
id := "id_example" // string | SSH Key ID (UUID)
|
||||
xOrgID := "xOrgID_example" // string | Organization UUID (optional)
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
resp, r, err := apiClient.SshAPI.DeleteSSHKey(context.Background(), id).XOrgID(xOrgID).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `SshAPI.DeleteSSHKey``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
// response from `DeleteSSHKey`: string
|
||||
fmt.Fprintf(os.Stdout, "Response from `SshAPI.DeleteSSHKey`: %v\n", resp)
|
||||
}
|
||||
```
|
||||
|
||||
### Path Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
|
||||
**id** | **string** | SSH Key ID (UUID) |
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiDeleteSSHKeyRequest struct via the builder pattern
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
|
||||
**xOrgID** | **string** | Organization UUID |
|
||||
|
||||
### Return type
|
||||
|
||||
**string**
|
||||
|
||||
### Authorization
|
||||
|
||||
[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
|
||||
## DownloadSSHKey
|
||||
|
||||
> string DownloadSSHKey(ctx, id).XOrgID(xOrgID).Part(part).Execute()
|
||||
|
||||
Download ssh key files by ID (org scoped)
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
openapiclient "github.com/glueops/autoglue-sdk-go"
|
||||
)
|
||||
|
||||
func main() {
|
||||
xOrgID := "xOrgID_example" // string | Organization UUID
|
||||
id := "id_example" // string | SSH Key ID (UUID)
|
||||
part := "part_example" // string | Which part to download
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
resp, r, err := apiClient.SshAPI.DownloadSSHKey(context.Background(), id).XOrgID(xOrgID).Part(part).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `SshAPI.DownloadSSHKey``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
// response from `DownloadSSHKey`: string
|
||||
fmt.Fprintf(os.Stdout, "Response from `SshAPI.DownloadSSHKey`: %v\n", resp)
|
||||
}
|
||||
```
|
||||
|
||||
### Path Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
|
||||
**id** | **string** | SSH Key ID (UUID) |
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiDownloadSSHKeyRequest struct via the builder pattern
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**xOrgID** | **string** | Organization UUID |
|
||||
|
||||
**part** | **string** | Which part to download |
|
||||
|
||||
### Return type
|
||||
|
||||
**string**
|
||||
|
||||
### Authorization
|
||||
|
||||
[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
|
||||
## GetSSHKey
|
||||
|
||||
> DtoSshRevealResponse GetSSHKey(ctx, id).XOrgID(xOrgID).Reveal(reveal).Execute()
|
||||
|
||||
Get ssh key by ID (org scoped)
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
openapiclient "github.com/glueops/autoglue-sdk-go"
|
||||
)
|
||||
|
||||
func main() {
|
||||
id := "id_example" // string | SSH Key ID (UUID)
|
||||
xOrgID := "xOrgID_example" // string | Organization UUID (optional)
|
||||
reveal := true // bool | Reveal private key PEM (optional)
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
resp, r, err := apiClient.SshAPI.GetSSHKey(context.Background(), id).XOrgID(xOrgID).Reveal(reveal).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `SshAPI.GetSSHKey``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
// response from `GetSSHKey`: DtoSshRevealResponse
|
||||
fmt.Fprintf(os.Stdout, "Response from `SshAPI.GetSSHKey`: %v\n", resp)
|
||||
}
|
||||
```
|
||||
|
||||
### Path Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
|
||||
**id** | **string** | SSH Key ID (UUID) |
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiGetSSHKeyRequest struct via the builder pattern
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
|
||||
**xOrgID** | **string** | Organization UUID |
|
||||
**reveal** | **bool** | Reveal private key PEM |
|
||||
|
||||
### Return type
|
||||
|
||||
[**DtoSshRevealResponse**](DtoSshRevealResponse.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
|
||||
## ListPublicSshKeys
|
||||
|
||||
> []DtoSshResponse ListPublicSshKeys(ctx).XOrgID(xOrgID).Execute()
|
||||
|
||||
List ssh keys (org scoped)
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
openapiclient "github.com/glueops/autoglue-sdk-go"
|
||||
)
|
||||
|
||||
func main() {
|
||||
xOrgID := "xOrgID_example" // string | Organization UUID (optional)
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
resp, r, err := apiClient.SshAPI.ListPublicSshKeys(context.Background()).XOrgID(xOrgID).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `SshAPI.ListPublicSshKeys``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
// response from `ListPublicSshKeys`: []DtoSshResponse
|
||||
fmt.Fprintf(os.Stdout, "Response from `SshAPI.ListPublicSshKeys`: %v\n", resp)
|
||||
}
|
||||
```
|
||||
|
||||
### Path Parameters
|
||||
|
||||
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiListPublicSshKeysRequest struct via the builder pattern
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**xOrgID** | **string** | Organization UUID |
|
||||
|
||||
### Return type
|
||||
|
||||
[**[]DtoSshResponse**](DtoSshResponse.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
@@ -1,369 +0,0 @@
|
||||
# \TaintsAPI
|
||||
|
||||
All URIs are relative to */api/v1*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
[**CreateTaint**](TaintsAPI.md#CreateTaint) | **Post** /taints | Create node taint (org scoped)
|
||||
[**DeleteTaint**](TaintsAPI.md#DeleteTaint) | **Delete** /taints/{id} | Delete taint (org scoped)
|
||||
[**GetTaint**](TaintsAPI.md#GetTaint) | **Get** /taints/{id} | Get node taint by ID (org scoped)
|
||||
[**ListTaints**](TaintsAPI.md#ListTaints) | **Get** /taints | List node pool taints (org scoped)
|
||||
[**UpdateTaint**](TaintsAPI.md#UpdateTaint) | **Patch** /taints/{id} | Update node taint (org scoped)
|
||||
|
||||
|
||||
|
||||
## CreateTaint
|
||||
|
||||
> DtoTaintResponse CreateTaint(ctx).Body(body).XOrgID(xOrgID).Execute()
|
||||
|
||||
Create node taint (org scoped)
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
openapiclient "github.com/glueops/autoglue-sdk-go"
|
||||
)
|
||||
|
||||
func main() {
|
||||
body := *openapiclient.NewDtoCreateTaintRequest() // DtoCreateTaintRequest | Taint payload
|
||||
xOrgID := "xOrgID_example" // string | Organization UUID (optional)
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
resp, r, err := apiClient.TaintsAPI.CreateTaint(context.Background()).Body(body).XOrgID(xOrgID).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `TaintsAPI.CreateTaint``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
// response from `CreateTaint`: DtoTaintResponse
|
||||
fmt.Fprintf(os.Stdout, "Response from `TaintsAPI.CreateTaint`: %v\n", resp)
|
||||
}
|
||||
```
|
||||
|
||||
### Path Parameters
|
||||
|
||||
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiCreateTaintRequest struct via the builder pattern
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**body** | [**DtoCreateTaintRequest**](DtoCreateTaintRequest.md) | Taint payload |
|
||||
**xOrgID** | **string** | Organization UUID |
|
||||
|
||||
### Return type
|
||||
|
||||
[**DtoTaintResponse**](DtoTaintResponse.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
|
||||
## DeleteTaint
|
||||
|
||||
> string DeleteTaint(ctx, id).XOrgID(xOrgID).Execute()
|
||||
|
||||
Delete taint (org scoped)
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
openapiclient "github.com/glueops/autoglue-sdk-go"
|
||||
)
|
||||
|
||||
func main() {
|
||||
id := "id_example" // string | Node Taint ID (UUID)
|
||||
xOrgID := "xOrgID_example" // string | Organization UUID (optional)
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
resp, r, err := apiClient.TaintsAPI.DeleteTaint(context.Background(), id).XOrgID(xOrgID).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `TaintsAPI.DeleteTaint``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
// response from `DeleteTaint`: string
|
||||
fmt.Fprintf(os.Stdout, "Response from `TaintsAPI.DeleteTaint`: %v\n", resp)
|
||||
}
|
||||
```
|
||||
|
||||
### Path Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
|
||||
**id** | **string** | Node Taint ID (UUID) |
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiDeleteTaintRequest struct via the builder pattern
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
|
||||
**xOrgID** | **string** | Organization UUID |
|
||||
|
||||
### Return type
|
||||
|
||||
**string**
|
||||
|
||||
### Authorization
|
||||
|
||||
[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
|
||||
## GetTaint
|
||||
|
||||
> DtoTaintResponse GetTaint(ctx, id).XOrgID(xOrgID).Execute()
|
||||
|
||||
Get node taint by ID (org scoped)
|
||||
|
||||
### Example
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
openapiclient "github.com/glueops/autoglue-sdk-go"
|
||||
)
|
||||
|
||||
func main() {
|
||||
id := "id_example" // string | Node Taint ID (UUID)
|
||||
xOrgID := "xOrgID_example" // string | Organization UUID (optional)
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
resp, r, err := apiClient.TaintsAPI.GetTaint(context.Background(), id).XOrgID(xOrgID).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `TaintsAPI.GetTaint``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
// response from `GetTaint`: DtoTaintResponse
|
||||
fmt.Fprintf(os.Stdout, "Response from `TaintsAPI.GetTaint`: %v\n", resp)
|
||||
}
|
||||
```
|
||||
|
||||
### Path Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
|
||||
**id** | **string** | Node Taint ID (UUID) |
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiGetTaintRequest struct via the builder pattern
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
|
||||
**xOrgID** | **string** | Organization UUID |
|
||||
|
||||
### Return type
|
||||
|
||||
[**DtoTaintResponse**](DtoTaintResponse.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
|
||||
## ListTaints
|
||||
|
||||
> []DtoTaintResponse ListTaints(ctx).XOrgID(xOrgID).Key(key).Value(value).Q(q).Execute()
|
||||
|
||||
List node pool taints (org scoped)
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
openapiclient "github.com/glueops/autoglue-sdk-go"
|
||||
)
|
||||
|
||||
func main() {
|
||||
xOrgID := "xOrgID_example" // string | Organization UUID (optional)
|
||||
key := "key_example" // string | Exact key (optional)
|
||||
value := "value_example" // string | Exact value (optional)
|
||||
q := "q_example" // string | key contains (case-insensitive) (optional)
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
resp, r, err := apiClient.TaintsAPI.ListTaints(context.Background()).XOrgID(xOrgID).Key(key).Value(value).Q(q).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `TaintsAPI.ListTaints``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
// response from `ListTaints`: []DtoTaintResponse
|
||||
fmt.Fprintf(os.Stdout, "Response from `TaintsAPI.ListTaints`: %v\n", resp)
|
||||
}
|
||||
```
|
||||
|
||||
### Path Parameters
|
||||
|
||||
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiListTaintsRequest struct via the builder pattern
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**xOrgID** | **string** | Organization UUID |
|
||||
**key** | **string** | Exact key |
|
||||
**value** | **string** | Exact value |
|
||||
**q** | **string** | key contains (case-insensitive) |
|
||||
|
||||
### Return type
|
||||
|
||||
[**[]DtoTaintResponse**](DtoTaintResponse.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
|
||||
## UpdateTaint
|
||||
|
||||
> DtoTaintResponse UpdateTaint(ctx, id).Body(body).XOrgID(xOrgID).Execute()
|
||||
|
||||
Update node taint (org scoped)
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
openapiclient "github.com/glueops/autoglue-sdk-go"
|
||||
)
|
||||
|
||||
func main() {
|
||||
id := "id_example" // string | Node Taint ID (UUID)
|
||||
body := *openapiclient.NewDtoUpdateTaintRequest() // DtoUpdateTaintRequest | Fields to update
|
||||
xOrgID := "xOrgID_example" // string | Organization UUID (optional)
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
resp, r, err := apiClient.TaintsAPI.UpdateTaint(context.Background(), id).Body(body).XOrgID(xOrgID).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `TaintsAPI.UpdateTaint``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
// response from `UpdateTaint`: DtoTaintResponse
|
||||
fmt.Fprintf(os.Stdout, "Response from `TaintsAPI.UpdateTaint`: %v\n", resp)
|
||||
}
|
||||
```
|
||||
|
||||
### Path Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
|
||||
**id** | **string** | Node Taint ID (UUID) |
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiUpdateTaintRequest struct via the builder pattern
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
|
||||
**body** | [**DtoUpdateTaintRequest**](DtoUpdateTaintRequest.md) | Fields to update |
|
||||
**xOrgID** | **string** | Organization UUID |
|
||||
|
||||
### Return type
|
||||
|
||||
[**DtoTaintResponse**](DtoTaintResponse.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[OrgKeyAuth](../README.md#OrgKeyAuth), [OrgSecretAuth](../README.md#OrgSecretAuth), [BearerAuth](../README.md#BearerAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
@@ -1,82 +0,0 @@
|
||||
# UtilsErrorResponse
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Code** | Pointer to **string** | A machine-readable error code, e.g. \"validation_error\" example: validation_error | [optional]
|
||||
**Message** | Pointer to **string** | Human-readable message example: slug is required | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewUtilsErrorResponse
|
||||
|
||||
`func NewUtilsErrorResponse() *UtilsErrorResponse`
|
||||
|
||||
NewUtilsErrorResponse instantiates a new UtilsErrorResponse 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
|
||||
|
||||
### NewUtilsErrorResponseWithDefaults
|
||||
|
||||
`func NewUtilsErrorResponseWithDefaults() *UtilsErrorResponse`
|
||||
|
||||
NewUtilsErrorResponseWithDefaults instantiates a new UtilsErrorResponse 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
|
||||
|
||||
### GetCode
|
||||
|
||||
`func (o *UtilsErrorResponse) GetCode() string`
|
||||
|
||||
GetCode returns the Code field if non-nil, zero value otherwise.
|
||||
|
||||
### GetCodeOk
|
||||
|
||||
`func (o *UtilsErrorResponse) GetCodeOk() (*string, bool)`
|
||||
|
||||
GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetCode
|
||||
|
||||
`func (o *UtilsErrorResponse) SetCode(v string)`
|
||||
|
||||
SetCode sets Code field to given value.
|
||||
|
||||
### HasCode
|
||||
|
||||
`func (o *UtilsErrorResponse) HasCode() bool`
|
||||
|
||||
HasCode returns a boolean if a field has been set.
|
||||
|
||||
### GetMessage
|
||||
|
||||
`func (o *UtilsErrorResponse) GetMessage() string`
|
||||
|
||||
GetMessage returns the Message field if non-nil, zero value otherwise.
|
||||
|
||||
### GetMessageOk
|
||||
|
||||
`func (o *UtilsErrorResponse) GetMessageOk() (*string, bool)`
|
||||
|
||||
GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetMessage
|
||||
|
||||
`func (o *UtilsErrorResponse) SetMessage(v string)`
|
||||
|
||||
SetMessage sets Message field to given value.
|
||||
|
||||
### HasMessage
|
||||
|
||||
`func (o *UtilsErrorResponse) HasMessage() bool`
|
||||
|
||||
HasMessage 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,57 +0,0 @@
|
||||
#!/bin/sh
|
||||
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
||||
#
|
||||
# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"
|
||||
|
||||
git_user_id=$1
|
||||
git_repo_id=$2
|
||||
release_note=$3
|
||||
git_host=$4
|
||||
|
||||
if [ "$git_host" = "" ]; then
|
||||
git_host="github.com"
|
||||
echo "[INFO] No command line input provided. Set \$git_host to $git_host"
|
||||
fi
|
||||
|
||||
if [ "$git_user_id" = "" ]; then
|
||||
git_user_id="glueops"
|
||||
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
||||
fi
|
||||
|
||||
if [ "$git_repo_id" = "" ]; then
|
||||
git_repo_id="autoglue-sdk-go"
|
||||
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
||||
fi
|
||||
|
||||
if [ "$release_note" = "" ]; then
|
||||
release_note="Minor update"
|
||||
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
||||
fi
|
||||
|
||||
# Initialize the local directory as a Git repository
|
||||
git init
|
||||
|
||||
# Adds the files in the local repository and stages them for commit.
|
||||
git add .
|
||||
|
||||
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
||||
git commit -m "$release_note"
|
||||
|
||||
# Sets the new remote
|
||||
git_remote=$(git remote)
|
||||
if [ "$git_remote" = "" ]; then # git remote not defined
|
||||
|
||||
if [ "$GIT_TOKEN" = "" ]; then
|
||||
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
||||
git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
|
||||
else
|
||||
git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
git pull origin master
|
||||
|
||||
# Pushes (Forces) the changes in the local repository up to the remote repository
|
||||
echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
|
||||
git push origin master 2>&1 | grep -v 'To https'
|
||||
@@ -1,11 +0,0 @@
|
||||
module github.com/glueops/autoglue-sdk-go
|
||||
|
||||
go 1.25.4
|
||||
|
||||
require github.com/stretchr/testify v1.11.1
|
||||
|
||||
require (
|
||||
github.com/davecgh/go-spew v1.1.1 // indirect
|
||||
github.com/pmezard/go-difflib v1.0.0 // indirect
|
||||
gopkg.in/yaml.v3 v3.0.1 // indirect
|
||||
)
|
||||
@@ -1,10 +0,0 @@
|
||||
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
|
||||
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
|
||||
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
|
||||
github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U=
|
||||
github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U=
|
||||
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
|
||||
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
|
||||
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
||||
@@ -1,304 +0,0 @@
|
||||
/*
|
||||
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 DtoAnnotationResponse type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &DtoAnnotationResponse{}
|
||||
|
||||
// DtoAnnotationResponse struct for DtoAnnotationResponse
|
||||
type DtoAnnotationResponse struct {
|
||||
CreatedAt *string `json:"created_at,omitempty"`
|
||||
Id *string `json:"id,omitempty"`
|
||||
Key *string `json:"key,omitempty"`
|
||||
OrganizationId *string `json:"organization_id,omitempty"`
|
||||
UpdatedAt *string `json:"updated_at,omitempty"`
|
||||
Value *string `json:"value,omitempty"`
|
||||
}
|
||||
|
||||
// NewDtoAnnotationResponse instantiates a new DtoAnnotationResponse 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 NewDtoAnnotationResponse() *DtoAnnotationResponse {
|
||||
this := DtoAnnotationResponse{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewDtoAnnotationResponseWithDefaults instantiates a new DtoAnnotationResponse 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 NewDtoAnnotationResponseWithDefaults() *DtoAnnotationResponse {
|
||||
this := DtoAnnotationResponse{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.
|
||||
func (o *DtoAnnotationResponse) 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 *DtoAnnotationResponse) 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 *DtoAnnotationResponse) 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 *DtoAnnotationResponse) SetCreatedAt(v string) {
|
||||
o.CreatedAt = &v
|
||||
}
|
||||
|
||||
// GetId returns the Id field value if set, zero value otherwise.
|
||||
func (o *DtoAnnotationResponse) 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 *DtoAnnotationResponse) 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 *DtoAnnotationResponse) 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 *DtoAnnotationResponse) SetId(v string) {
|
||||
o.Id = &v
|
||||
}
|
||||
|
||||
// GetKey returns the Key field value if set, zero value otherwise.
|
||||
func (o *DtoAnnotationResponse) GetKey() string {
|
||||
if o == nil || IsNil(o.Key) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Key
|
||||
}
|
||||
|
||||
// GetKeyOk returns a tuple with the Key field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *DtoAnnotationResponse) GetKeyOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.Key) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Key, true
|
||||
}
|
||||
|
||||
// HasKey returns a boolean if a field has been set.
|
||||
func (o *DtoAnnotationResponse) HasKey() bool {
|
||||
if o != nil && !IsNil(o.Key) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetKey gets a reference to the given string and assigns it to the Key field.
|
||||
func (o *DtoAnnotationResponse) SetKey(v string) {
|
||||
o.Key = &v
|
||||
}
|
||||
|
||||
// GetOrganizationId returns the OrganizationId field value if set, zero value otherwise.
|
||||
func (o *DtoAnnotationResponse) 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 *DtoAnnotationResponse) 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 *DtoAnnotationResponse) 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 *DtoAnnotationResponse) SetOrganizationId(v string) {
|
||||
o.OrganizationId = &v
|
||||
}
|
||||
|
||||
// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise.
|
||||
func (o *DtoAnnotationResponse) 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 *DtoAnnotationResponse) 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 *DtoAnnotationResponse) 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 *DtoAnnotationResponse) SetUpdatedAt(v string) {
|
||||
o.UpdatedAt = &v
|
||||
}
|
||||
|
||||
// GetValue returns the Value field value if set, zero value otherwise.
|
||||
func (o *DtoAnnotationResponse) GetValue() string {
|
||||
if o == nil || IsNil(o.Value) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Value
|
||||
}
|
||||
|
||||
// GetValueOk returns a tuple with the Value field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *DtoAnnotationResponse) GetValueOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.Value) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Value, true
|
||||
}
|
||||
|
||||
// HasValue returns a boolean if a field has been set.
|
||||
func (o *DtoAnnotationResponse) HasValue() bool {
|
||||
if o != nil && !IsNil(o.Value) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetValue gets a reference to the given string and assigns it to the Value field.
|
||||
func (o *DtoAnnotationResponse) SetValue(v string) {
|
||||
o.Value = &v
|
||||
}
|
||||
|
||||
func (o DtoAnnotationResponse) MarshalJSON() ([]byte, error) {
|
||||
toSerialize, err := o.ToMap()
|
||||
if err != nil {
|
||||
return []byte{}, err
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
func (o DtoAnnotationResponse) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if !IsNil(o.CreatedAt) {
|
||||
toSerialize["created_at"] = o.CreatedAt
|
||||
}
|
||||
if !IsNil(o.Id) {
|
||||
toSerialize["id"] = o.Id
|
||||
}
|
||||
if !IsNil(o.Key) {
|
||||
toSerialize["key"] = o.Key
|
||||
}
|
||||
if !IsNil(o.OrganizationId) {
|
||||
toSerialize["organization_id"] = o.OrganizationId
|
||||
}
|
||||
if !IsNil(o.UpdatedAt) {
|
||||
toSerialize["updated_at"] = o.UpdatedAt
|
||||
}
|
||||
if !IsNil(o.Value) {
|
||||
toSerialize["value"] = o.Value
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableDtoAnnotationResponse struct {
|
||||
value *DtoAnnotationResponse
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableDtoAnnotationResponse) Get() *DtoAnnotationResponse {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableDtoAnnotationResponse) Set(val *DtoAnnotationResponse) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableDtoAnnotationResponse) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableDtoAnnotationResponse) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableDtoAnnotationResponse(val *DtoAnnotationResponse) *NullableDtoAnnotationResponse {
|
||||
return &NullableDtoAnnotationResponse{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableDtoAnnotationResponse) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableDtoAnnotationResponse) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
@@ -1,124 +0,0 @@
|
||||
/*
|
||||
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)
|
||||
}
|
||||
@@ -1,124 +0,0 @@
|
||||
/*
|
||||
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)
|
||||
}
|
||||
@@ -1,124 +0,0 @@
|
||||
/*
|
||||
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)
|
||||
}
|
||||
@@ -1,124 +0,0 @@
|
||||
/*
|
||||
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)
|
||||
}
|
||||
@@ -1,124 +0,0 @@
|
||||
/*
|
||||
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 DtoAuthStartResponse type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &DtoAuthStartResponse{}
|
||||
|
||||
// DtoAuthStartResponse struct for DtoAuthStartResponse
|
||||
type DtoAuthStartResponse struct {
|
||||
AuthUrl *string `json:"auth_url,omitempty"`
|
||||
}
|
||||
|
||||
// NewDtoAuthStartResponse instantiates a new DtoAuthStartResponse 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 NewDtoAuthStartResponse() *DtoAuthStartResponse {
|
||||
this := DtoAuthStartResponse{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewDtoAuthStartResponseWithDefaults instantiates a new DtoAuthStartResponse 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 NewDtoAuthStartResponseWithDefaults() *DtoAuthStartResponse {
|
||||
this := DtoAuthStartResponse{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetAuthUrl returns the AuthUrl field value if set, zero value otherwise.
|
||||
func (o *DtoAuthStartResponse) GetAuthUrl() string {
|
||||
if o == nil || IsNil(o.AuthUrl) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.AuthUrl
|
||||
}
|
||||
|
||||
// GetAuthUrlOk returns a tuple with the AuthUrl field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *DtoAuthStartResponse) GetAuthUrlOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.AuthUrl) {
|
||||
return nil, false
|
||||
}
|
||||
return o.AuthUrl, true
|
||||
}
|
||||
|
||||
// HasAuthUrl returns a boolean if a field has been set.
|
||||
func (o *DtoAuthStartResponse) HasAuthUrl() bool {
|
||||
if o != nil && !IsNil(o.AuthUrl) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetAuthUrl gets a reference to the given string and assigns it to the AuthUrl field.
|
||||
func (o *DtoAuthStartResponse) SetAuthUrl(v string) {
|
||||
o.AuthUrl = &v
|
||||
}
|
||||
|
||||
func (o DtoAuthStartResponse) MarshalJSON() ([]byte, error) {
|
||||
toSerialize, err := o.ToMap()
|
||||
if err != nil {
|
||||
return []byte{}, err
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
func (o DtoAuthStartResponse) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if !IsNil(o.AuthUrl) {
|
||||
toSerialize["auth_url"] = o.AuthUrl
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableDtoAuthStartResponse struct {
|
||||
value *DtoAuthStartResponse
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableDtoAuthStartResponse) Get() *DtoAuthStartResponse {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableDtoAuthStartResponse) Set(val *DtoAuthStartResponse) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableDtoAuthStartResponse) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableDtoAuthStartResponse) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableDtoAuthStartResponse(val *DtoAuthStartResponse) *NullableDtoAuthStartResponse {
|
||||
return &NullableDtoAuthStartResponse{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableDtoAuthStartResponse) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableDtoAuthStartResponse) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
@@ -1,160 +0,0 @@
|
||||
/*
|
||||
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 DtoCreateAnnotationRequest type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &DtoCreateAnnotationRequest{}
|
||||
|
||||
// DtoCreateAnnotationRequest struct for DtoCreateAnnotationRequest
|
||||
type DtoCreateAnnotationRequest struct {
|
||||
Key *string `json:"key,omitempty"`
|
||||
Value *string `json:"value,omitempty"`
|
||||
}
|
||||
|
||||
// NewDtoCreateAnnotationRequest instantiates a new DtoCreateAnnotationRequest 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 NewDtoCreateAnnotationRequest() *DtoCreateAnnotationRequest {
|
||||
this := DtoCreateAnnotationRequest{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewDtoCreateAnnotationRequestWithDefaults instantiates a new DtoCreateAnnotationRequest 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 NewDtoCreateAnnotationRequestWithDefaults() *DtoCreateAnnotationRequest {
|
||||
this := DtoCreateAnnotationRequest{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetKey returns the Key field value if set, zero value otherwise.
|
||||
func (o *DtoCreateAnnotationRequest) GetKey() string {
|
||||
if o == nil || IsNil(o.Key) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Key
|
||||
}
|
||||
|
||||
// GetKeyOk returns a tuple with the Key field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *DtoCreateAnnotationRequest) GetKeyOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.Key) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Key, true
|
||||
}
|
||||
|
||||
// HasKey returns a boolean if a field has been set.
|
||||
func (o *DtoCreateAnnotationRequest) HasKey() bool {
|
||||
if o != nil && !IsNil(o.Key) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetKey gets a reference to the given string and assigns it to the Key field.
|
||||
func (o *DtoCreateAnnotationRequest) SetKey(v string) {
|
||||
o.Key = &v
|
||||
}
|
||||
|
||||
// GetValue returns the Value field value if set, zero value otherwise.
|
||||
func (o *DtoCreateAnnotationRequest) GetValue() string {
|
||||
if o == nil || IsNil(o.Value) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Value
|
||||
}
|
||||
|
||||
// GetValueOk returns a tuple with the Value field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *DtoCreateAnnotationRequest) GetValueOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.Value) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Value, true
|
||||
}
|
||||
|
||||
// HasValue returns a boolean if a field has been set.
|
||||
func (o *DtoCreateAnnotationRequest) HasValue() bool {
|
||||
if o != nil && !IsNil(o.Value) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetValue gets a reference to the given string and assigns it to the Value field.
|
||||
func (o *DtoCreateAnnotationRequest) SetValue(v string) {
|
||||
o.Value = &v
|
||||
}
|
||||
|
||||
func (o DtoCreateAnnotationRequest) MarshalJSON() ([]byte, error) {
|
||||
toSerialize, err := o.ToMap()
|
||||
if err != nil {
|
||||
return []byte{}, err
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
func (o DtoCreateAnnotationRequest) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if !IsNil(o.Key) {
|
||||
toSerialize["key"] = o.Key
|
||||
}
|
||||
if !IsNil(o.Value) {
|
||||
toSerialize["value"] = o.Value
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableDtoCreateAnnotationRequest struct {
|
||||
value *DtoCreateAnnotationRequest
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableDtoCreateAnnotationRequest) Get() *DtoCreateAnnotationRequest {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableDtoCreateAnnotationRequest) Set(val *DtoCreateAnnotationRequest) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableDtoCreateAnnotationRequest) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableDtoCreateAnnotationRequest) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableDtoCreateAnnotationRequest(val *DtoCreateAnnotationRequest) *NullableDtoCreateAnnotationRequest {
|
||||
return &NullableDtoCreateAnnotationRequest{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableDtoCreateAnnotationRequest) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableDtoCreateAnnotationRequest) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
@@ -1,160 +0,0 @@
|
||||
/*
|
||||
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 DtoCreateLabelRequest type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &DtoCreateLabelRequest{}
|
||||
|
||||
// DtoCreateLabelRequest struct for DtoCreateLabelRequest
|
||||
type DtoCreateLabelRequest struct {
|
||||
Key *string `json:"key,omitempty"`
|
||||
Value *string `json:"value,omitempty"`
|
||||
}
|
||||
|
||||
// NewDtoCreateLabelRequest instantiates a new DtoCreateLabelRequest 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 NewDtoCreateLabelRequest() *DtoCreateLabelRequest {
|
||||
this := DtoCreateLabelRequest{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewDtoCreateLabelRequestWithDefaults instantiates a new DtoCreateLabelRequest 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 NewDtoCreateLabelRequestWithDefaults() *DtoCreateLabelRequest {
|
||||
this := DtoCreateLabelRequest{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetKey returns the Key field value if set, zero value otherwise.
|
||||
func (o *DtoCreateLabelRequest) GetKey() string {
|
||||
if o == nil || IsNil(o.Key) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Key
|
||||
}
|
||||
|
||||
// GetKeyOk returns a tuple with the Key field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *DtoCreateLabelRequest) GetKeyOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.Key) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Key, true
|
||||
}
|
||||
|
||||
// HasKey returns a boolean if a field has been set.
|
||||
func (o *DtoCreateLabelRequest) HasKey() bool {
|
||||
if o != nil && !IsNil(o.Key) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetKey gets a reference to the given string and assigns it to the Key field.
|
||||
func (o *DtoCreateLabelRequest) SetKey(v string) {
|
||||
o.Key = &v
|
||||
}
|
||||
|
||||
// GetValue returns the Value field value if set, zero value otherwise.
|
||||
func (o *DtoCreateLabelRequest) GetValue() string {
|
||||
if o == nil || IsNil(o.Value) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Value
|
||||
}
|
||||
|
||||
// GetValueOk returns a tuple with the Value field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *DtoCreateLabelRequest) GetValueOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.Value) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Value, true
|
||||
}
|
||||
|
||||
// HasValue returns a boolean if a field has been set.
|
||||
func (o *DtoCreateLabelRequest) HasValue() bool {
|
||||
if o != nil && !IsNil(o.Value) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetValue gets a reference to the given string and assigns it to the Value field.
|
||||
func (o *DtoCreateLabelRequest) SetValue(v string) {
|
||||
o.Value = &v
|
||||
}
|
||||
|
||||
func (o DtoCreateLabelRequest) MarshalJSON() ([]byte, error) {
|
||||
toSerialize, err := o.ToMap()
|
||||
if err != nil {
|
||||
return []byte{}, err
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
func (o DtoCreateLabelRequest) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if !IsNil(o.Key) {
|
||||
toSerialize["key"] = o.Key
|
||||
}
|
||||
if !IsNil(o.Value) {
|
||||
toSerialize["value"] = o.Value
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableDtoCreateLabelRequest struct {
|
||||
value *DtoCreateLabelRequest
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableDtoCreateLabelRequest) Get() *DtoCreateLabelRequest {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableDtoCreateLabelRequest) Set(val *DtoCreateLabelRequest) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableDtoCreateLabelRequest) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableDtoCreateLabelRequest) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableDtoCreateLabelRequest(val *DtoCreateLabelRequest) *NullableDtoCreateLabelRequest {
|
||||
return &NullableDtoCreateLabelRequest{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableDtoCreateLabelRequest) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableDtoCreateLabelRequest) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
@@ -1,160 +0,0 @@
|
||||
/*
|
||||
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)
|
||||
}
|
||||
@@ -1,340 +0,0 @@
|
||||
/*
|
||||
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 DtoCreateServerRequest type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &DtoCreateServerRequest{}
|
||||
|
||||
// DtoCreateServerRequest struct for DtoCreateServerRequest
|
||||
type DtoCreateServerRequest struct {
|
||||
Hostname *string `json:"hostname,omitempty"`
|
||||
PrivateIpAddress *string `json:"private_ip_address,omitempty"`
|
||||
PublicIpAddress *string `json:"public_ip_address,omitempty"`
|
||||
Role *string `json:"role,omitempty"`
|
||||
SshKeyId *string `json:"ssh_key_id,omitempty"`
|
||||
SshUser *string `json:"ssh_user,omitempty"`
|
||||
Status *string `json:"status,omitempty"`
|
||||
}
|
||||
|
||||
// NewDtoCreateServerRequest instantiates a new DtoCreateServerRequest 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 NewDtoCreateServerRequest() *DtoCreateServerRequest {
|
||||
this := DtoCreateServerRequest{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewDtoCreateServerRequestWithDefaults instantiates a new DtoCreateServerRequest 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 NewDtoCreateServerRequestWithDefaults() *DtoCreateServerRequest {
|
||||
this := DtoCreateServerRequest{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetHostname returns the Hostname field value if set, zero value otherwise.
|
||||
func (o *DtoCreateServerRequest) GetHostname() string {
|
||||
if o == nil || IsNil(o.Hostname) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Hostname
|
||||
}
|
||||
|
||||
// GetHostnameOk returns a tuple with the Hostname field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *DtoCreateServerRequest) GetHostnameOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.Hostname) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Hostname, true
|
||||
}
|
||||
|
||||
// HasHostname returns a boolean if a field has been set.
|
||||
func (o *DtoCreateServerRequest) HasHostname() bool {
|
||||
if o != nil && !IsNil(o.Hostname) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetHostname gets a reference to the given string and assigns it to the Hostname field.
|
||||
func (o *DtoCreateServerRequest) SetHostname(v string) {
|
||||
o.Hostname = &v
|
||||
}
|
||||
|
||||
// GetPrivateIpAddress returns the PrivateIpAddress field value if set, zero value otherwise.
|
||||
func (o *DtoCreateServerRequest) GetPrivateIpAddress() string {
|
||||
if o == nil || IsNil(o.PrivateIpAddress) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.PrivateIpAddress
|
||||
}
|
||||
|
||||
// GetPrivateIpAddressOk returns a tuple with the PrivateIpAddress field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *DtoCreateServerRequest) GetPrivateIpAddressOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.PrivateIpAddress) {
|
||||
return nil, false
|
||||
}
|
||||
return o.PrivateIpAddress, true
|
||||
}
|
||||
|
||||
// HasPrivateIpAddress returns a boolean if a field has been set.
|
||||
func (o *DtoCreateServerRequest) HasPrivateIpAddress() bool {
|
||||
if o != nil && !IsNil(o.PrivateIpAddress) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetPrivateIpAddress gets a reference to the given string and assigns it to the PrivateIpAddress field.
|
||||
func (o *DtoCreateServerRequest) SetPrivateIpAddress(v string) {
|
||||
o.PrivateIpAddress = &v
|
||||
}
|
||||
|
||||
// GetPublicIpAddress returns the PublicIpAddress field value if set, zero value otherwise.
|
||||
func (o *DtoCreateServerRequest) GetPublicIpAddress() string {
|
||||
if o == nil || IsNil(o.PublicIpAddress) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.PublicIpAddress
|
||||
}
|
||||
|
||||
// GetPublicIpAddressOk returns a tuple with the PublicIpAddress field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *DtoCreateServerRequest) GetPublicIpAddressOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.PublicIpAddress) {
|
||||
return nil, false
|
||||
}
|
||||
return o.PublicIpAddress, true
|
||||
}
|
||||
|
||||
// HasPublicIpAddress returns a boolean if a field has been set.
|
||||
func (o *DtoCreateServerRequest) HasPublicIpAddress() bool {
|
||||
if o != nil && !IsNil(o.PublicIpAddress) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetPublicIpAddress gets a reference to the given string and assigns it to the PublicIpAddress field.
|
||||
func (o *DtoCreateServerRequest) SetPublicIpAddress(v string) {
|
||||
o.PublicIpAddress = &v
|
||||
}
|
||||
|
||||
// GetRole returns the Role field value if set, zero value otherwise.
|
||||
func (o *DtoCreateServerRequest) 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 *DtoCreateServerRequest) 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 *DtoCreateServerRequest) 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 *DtoCreateServerRequest) SetRole(v string) {
|
||||
o.Role = &v
|
||||
}
|
||||
|
||||
// GetSshKeyId returns the SshKeyId field value if set, zero value otherwise.
|
||||
func (o *DtoCreateServerRequest) GetSshKeyId() string {
|
||||
if o == nil || IsNil(o.SshKeyId) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.SshKeyId
|
||||
}
|
||||
|
||||
// GetSshKeyIdOk returns a tuple with the SshKeyId field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *DtoCreateServerRequest) GetSshKeyIdOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.SshKeyId) {
|
||||
return nil, false
|
||||
}
|
||||
return o.SshKeyId, true
|
||||
}
|
||||
|
||||
// HasSshKeyId returns a boolean if a field has been set.
|
||||
func (o *DtoCreateServerRequest) HasSshKeyId() bool {
|
||||
if o != nil && !IsNil(o.SshKeyId) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetSshKeyId gets a reference to the given string and assigns it to the SshKeyId field.
|
||||
func (o *DtoCreateServerRequest) SetSshKeyId(v string) {
|
||||
o.SshKeyId = &v
|
||||
}
|
||||
|
||||
// GetSshUser returns the SshUser field value if set, zero value otherwise.
|
||||
func (o *DtoCreateServerRequest) GetSshUser() string {
|
||||
if o == nil || IsNil(o.SshUser) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.SshUser
|
||||
}
|
||||
|
||||
// GetSshUserOk returns a tuple with the SshUser field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *DtoCreateServerRequest) GetSshUserOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.SshUser) {
|
||||
return nil, false
|
||||
}
|
||||
return o.SshUser, true
|
||||
}
|
||||
|
||||
// HasSshUser returns a boolean if a field has been set.
|
||||
func (o *DtoCreateServerRequest) HasSshUser() bool {
|
||||
if o != nil && !IsNil(o.SshUser) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetSshUser gets a reference to the given string and assigns it to the SshUser field.
|
||||
func (o *DtoCreateServerRequest) SetSshUser(v string) {
|
||||
o.SshUser = &v
|
||||
}
|
||||
|
||||
// GetStatus returns the Status field value if set, zero value otherwise.
|
||||
func (o *DtoCreateServerRequest) GetStatus() string {
|
||||
if o == nil || IsNil(o.Status) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Status
|
||||
}
|
||||
|
||||
// GetStatusOk returns a tuple with the Status field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *DtoCreateServerRequest) GetStatusOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.Status) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Status, true
|
||||
}
|
||||
|
||||
// HasStatus returns a boolean if a field has been set.
|
||||
func (o *DtoCreateServerRequest) HasStatus() bool {
|
||||
if o != nil && !IsNil(o.Status) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetStatus gets a reference to the given string and assigns it to the Status field.
|
||||
func (o *DtoCreateServerRequest) SetStatus(v string) {
|
||||
o.Status = &v
|
||||
}
|
||||
|
||||
func (o DtoCreateServerRequest) MarshalJSON() ([]byte, error) {
|
||||
toSerialize, err := o.ToMap()
|
||||
if err != nil {
|
||||
return []byte{}, err
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
func (o DtoCreateServerRequest) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if !IsNil(o.Hostname) {
|
||||
toSerialize["hostname"] = o.Hostname
|
||||
}
|
||||
if !IsNil(o.PrivateIpAddress) {
|
||||
toSerialize["private_ip_address"] = o.PrivateIpAddress
|
||||
}
|
||||
if !IsNil(o.PublicIpAddress) {
|
||||
toSerialize["public_ip_address"] = o.PublicIpAddress
|
||||
}
|
||||
if !IsNil(o.Role) {
|
||||
toSerialize["role"] = o.Role
|
||||
}
|
||||
if !IsNil(o.SshKeyId) {
|
||||
toSerialize["ssh_key_id"] = o.SshKeyId
|
||||
}
|
||||
if !IsNil(o.SshUser) {
|
||||
toSerialize["ssh_user"] = o.SshUser
|
||||
}
|
||||
if !IsNil(o.Status) {
|
||||
toSerialize["status"] = o.Status
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableDtoCreateServerRequest struct {
|
||||
value *DtoCreateServerRequest
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableDtoCreateServerRequest) Get() *DtoCreateServerRequest {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableDtoCreateServerRequest) Set(val *DtoCreateServerRequest) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableDtoCreateServerRequest) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableDtoCreateServerRequest) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableDtoCreateServerRequest(val *DtoCreateServerRequest) *NullableDtoCreateServerRequest {
|
||||
return &NullableDtoCreateServerRequest{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableDtoCreateServerRequest) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableDtoCreateServerRequest) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
@@ -1,234 +0,0 @@
|
||||
/*
|
||||
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 DtoCreateSSHRequest type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &DtoCreateSSHRequest{}
|
||||
|
||||
// DtoCreateSSHRequest struct for DtoCreateSSHRequest
|
||||
type DtoCreateSSHRequest struct {
|
||||
// Only for RSA
|
||||
Bits *int32 `json:"bits,omitempty"`
|
||||
Comment *string `json:"comment,omitempty"`
|
||||
Name *string `json:"name,omitempty"`
|
||||
// \"rsa\" (default) or \"ed25519\"
|
||||
Type *string `json:"type,omitempty"`
|
||||
}
|
||||
|
||||
// NewDtoCreateSSHRequest instantiates a new DtoCreateSSHRequest 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 NewDtoCreateSSHRequest() *DtoCreateSSHRequest {
|
||||
this := DtoCreateSSHRequest{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewDtoCreateSSHRequestWithDefaults instantiates a new DtoCreateSSHRequest 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 NewDtoCreateSSHRequestWithDefaults() *DtoCreateSSHRequest {
|
||||
this := DtoCreateSSHRequest{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetBits returns the Bits field value if set, zero value otherwise.
|
||||
func (o *DtoCreateSSHRequest) GetBits() int32 {
|
||||
if o == nil || IsNil(o.Bits) {
|
||||
var ret int32
|
||||
return ret
|
||||
}
|
||||
return *o.Bits
|
||||
}
|
||||
|
||||
// GetBitsOk returns a tuple with the Bits field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *DtoCreateSSHRequest) GetBitsOk() (*int32, bool) {
|
||||
if o == nil || IsNil(o.Bits) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Bits, true
|
||||
}
|
||||
|
||||
// HasBits returns a boolean if a field has been set.
|
||||
func (o *DtoCreateSSHRequest) HasBits() bool {
|
||||
if o != nil && !IsNil(o.Bits) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetBits gets a reference to the given int32 and assigns it to the Bits field.
|
||||
func (o *DtoCreateSSHRequest) SetBits(v int32) {
|
||||
o.Bits = &v
|
||||
}
|
||||
|
||||
// GetComment returns the Comment field value if set, zero value otherwise.
|
||||
func (o *DtoCreateSSHRequest) GetComment() string {
|
||||
if o == nil || IsNil(o.Comment) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Comment
|
||||
}
|
||||
|
||||
// GetCommentOk returns a tuple with the Comment field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *DtoCreateSSHRequest) GetCommentOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.Comment) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Comment, true
|
||||
}
|
||||
|
||||
// HasComment returns a boolean if a field has been set.
|
||||
func (o *DtoCreateSSHRequest) HasComment() bool {
|
||||
if o != nil && !IsNil(o.Comment) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetComment gets a reference to the given string and assigns it to the Comment field.
|
||||
func (o *DtoCreateSSHRequest) SetComment(v string) {
|
||||
o.Comment = &v
|
||||
}
|
||||
|
||||
// GetName returns the Name field value if set, zero value otherwise.
|
||||
func (o *DtoCreateSSHRequest) 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 *DtoCreateSSHRequest) 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 *DtoCreateSSHRequest) 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 *DtoCreateSSHRequest) SetName(v string) {
|
||||
o.Name = &v
|
||||
}
|
||||
|
||||
// GetType returns the Type field value if set, zero value otherwise.
|
||||
func (o *DtoCreateSSHRequest) GetType() string {
|
||||
if o == nil || IsNil(o.Type) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Type
|
||||
}
|
||||
|
||||
// GetTypeOk returns a tuple with the Type field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *DtoCreateSSHRequest) GetTypeOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.Type) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Type, true
|
||||
}
|
||||
|
||||
// HasType returns a boolean if a field has been set.
|
||||
func (o *DtoCreateSSHRequest) HasType() bool {
|
||||
if o != nil && !IsNil(o.Type) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetType gets a reference to the given string and assigns it to the Type field.
|
||||
func (o *DtoCreateSSHRequest) SetType(v string) {
|
||||
o.Type = &v
|
||||
}
|
||||
|
||||
func (o DtoCreateSSHRequest) MarshalJSON() ([]byte, error) {
|
||||
toSerialize, err := o.ToMap()
|
||||
if err != nil {
|
||||
return []byte{}, err
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
func (o DtoCreateSSHRequest) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if !IsNil(o.Bits) {
|
||||
toSerialize["bits"] = o.Bits
|
||||
}
|
||||
if !IsNil(o.Comment) {
|
||||
toSerialize["comment"] = o.Comment
|
||||
}
|
||||
if !IsNil(o.Name) {
|
||||
toSerialize["name"] = o.Name
|
||||
}
|
||||
if !IsNil(o.Type) {
|
||||
toSerialize["type"] = o.Type
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableDtoCreateSSHRequest struct {
|
||||
value *DtoCreateSSHRequest
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableDtoCreateSSHRequest) Get() *DtoCreateSSHRequest {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableDtoCreateSSHRequest) Set(val *DtoCreateSSHRequest) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableDtoCreateSSHRequest) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableDtoCreateSSHRequest) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableDtoCreateSSHRequest(val *DtoCreateSSHRequest) *NullableDtoCreateSSHRequest {
|
||||
return &NullableDtoCreateSSHRequest{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableDtoCreateSSHRequest) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableDtoCreateSSHRequest) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
@@ -1,196 +0,0 @@
|
||||
/*
|
||||
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 DtoCreateTaintRequest type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &DtoCreateTaintRequest{}
|
||||
|
||||
// DtoCreateTaintRequest struct for DtoCreateTaintRequest
|
||||
type DtoCreateTaintRequest struct {
|
||||
Effect *string `json:"effect,omitempty"`
|
||||
Key *string `json:"key,omitempty"`
|
||||
Value *string `json:"value,omitempty"`
|
||||
}
|
||||
|
||||
// NewDtoCreateTaintRequest instantiates a new DtoCreateTaintRequest 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 NewDtoCreateTaintRequest() *DtoCreateTaintRequest {
|
||||
this := DtoCreateTaintRequest{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewDtoCreateTaintRequestWithDefaults instantiates a new DtoCreateTaintRequest 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 NewDtoCreateTaintRequestWithDefaults() *DtoCreateTaintRequest {
|
||||
this := DtoCreateTaintRequest{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetEffect returns the Effect field value if set, zero value otherwise.
|
||||
func (o *DtoCreateTaintRequest) GetEffect() string {
|
||||
if o == nil || IsNil(o.Effect) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Effect
|
||||
}
|
||||
|
||||
// GetEffectOk returns a tuple with the Effect field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *DtoCreateTaintRequest) GetEffectOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.Effect) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Effect, true
|
||||
}
|
||||
|
||||
// HasEffect returns a boolean if a field has been set.
|
||||
func (o *DtoCreateTaintRequest) HasEffect() bool {
|
||||
if o != nil && !IsNil(o.Effect) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetEffect gets a reference to the given string and assigns it to the Effect field.
|
||||
func (o *DtoCreateTaintRequest) SetEffect(v string) {
|
||||
o.Effect = &v
|
||||
}
|
||||
|
||||
// GetKey returns the Key field value if set, zero value otherwise.
|
||||
func (o *DtoCreateTaintRequest) GetKey() string {
|
||||
if o == nil || IsNil(o.Key) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Key
|
||||
}
|
||||
|
||||
// GetKeyOk returns a tuple with the Key field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *DtoCreateTaintRequest) GetKeyOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.Key) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Key, true
|
||||
}
|
||||
|
||||
// HasKey returns a boolean if a field has been set.
|
||||
func (o *DtoCreateTaintRequest) HasKey() bool {
|
||||
if o != nil && !IsNil(o.Key) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetKey gets a reference to the given string and assigns it to the Key field.
|
||||
func (o *DtoCreateTaintRequest) SetKey(v string) {
|
||||
o.Key = &v
|
||||
}
|
||||
|
||||
// GetValue returns the Value field value if set, zero value otherwise.
|
||||
func (o *DtoCreateTaintRequest) GetValue() string {
|
||||
if o == nil || IsNil(o.Value) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Value
|
||||
}
|
||||
|
||||
// GetValueOk returns a tuple with the Value field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *DtoCreateTaintRequest) GetValueOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.Value) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Value, true
|
||||
}
|
||||
|
||||
// HasValue returns a boolean if a field has been set.
|
||||
func (o *DtoCreateTaintRequest) HasValue() bool {
|
||||
if o != nil && !IsNil(o.Value) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetValue gets a reference to the given string and assigns it to the Value field.
|
||||
func (o *DtoCreateTaintRequest) SetValue(v string) {
|
||||
o.Value = &v
|
||||
}
|
||||
|
||||
func (o DtoCreateTaintRequest) MarshalJSON() ([]byte, error) {
|
||||
toSerialize, err := o.ToMap()
|
||||
if err != nil {
|
||||
return []byte{}, err
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
func (o DtoCreateTaintRequest) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if !IsNil(o.Effect) {
|
||||
toSerialize["effect"] = o.Effect
|
||||
}
|
||||
if !IsNil(o.Key) {
|
||||
toSerialize["key"] = o.Key
|
||||
}
|
||||
if !IsNil(o.Value) {
|
||||
toSerialize["value"] = o.Value
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableDtoCreateTaintRequest struct {
|
||||
value *DtoCreateTaintRequest
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableDtoCreateTaintRequest) Get() *DtoCreateTaintRequest {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableDtoCreateTaintRequest) Set(val *DtoCreateTaintRequest) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableDtoCreateTaintRequest) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableDtoCreateTaintRequest) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableDtoCreateTaintRequest(val *DtoCreateTaintRequest) *NullableDtoCreateTaintRequest {
|
||||
return &NullableDtoCreateTaintRequest{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableDtoCreateTaintRequest) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableDtoCreateTaintRequest) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
@@ -1,484 +0,0 @@
|
||||
/*
|
||||
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 DtoJob type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &DtoJob{}
|
||||
|
||||
// DtoJob struct for DtoJob
|
||||
type DtoJob struct {
|
||||
Attempts *int32 `json:"attempts,omitempty"`
|
||||
CreatedAt *string `json:"created_at,omitempty"`
|
||||
Id *string `json:"id,omitempty"`
|
||||
LastError *string `json:"last_error,omitempty"`
|
||||
MaxAttempts *int32 `json:"max_attempts,omitempty"`
|
||||
Payload map[string]interface{} `json:"payload,omitempty"`
|
||||
Queue *string `json:"queue,omitempty"`
|
||||
RunAt *string `json:"run_at,omitempty"`
|
||||
Status *DtoJobStatus `json:"status,omitempty"`
|
||||
Type *string `json:"type,omitempty"`
|
||||
UpdatedAt *string `json:"updated_at,omitempty"`
|
||||
}
|
||||
|
||||
// NewDtoJob instantiates a new DtoJob 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 NewDtoJob() *DtoJob {
|
||||
this := DtoJob{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewDtoJobWithDefaults instantiates a new DtoJob 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 NewDtoJobWithDefaults() *DtoJob {
|
||||
this := DtoJob{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetAttempts returns the Attempts field value if set, zero value otherwise.
|
||||
func (o *DtoJob) GetAttempts() int32 {
|
||||
if o == nil || IsNil(o.Attempts) {
|
||||
var ret int32
|
||||
return ret
|
||||
}
|
||||
return *o.Attempts
|
||||
}
|
||||
|
||||
// GetAttemptsOk returns a tuple with the Attempts field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *DtoJob) GetAttemptsOk() (*int32, bool) {
|
||||
if o == nil || IsNil(o.Attempts) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Attempts, true
|
||||
}
|
||||
|
||||
// HasAttempts returns a boolean if a field has been set.
|
||||
func (o *DtoJob) HasAttempts() bool {
|
||||
if o != nil && !IsNil(o.Attempts) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetAttempts gets a reference to the given int32 and assigns it to the Attempts field.
|
||||
func (o *DtoJob) SetAttempts(v int32) {
|
||||
o.Attempts = &v
|
||||
}
|
||||
|
||||
// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.
|
||||
func (o *DtoJob) 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 *DtoJob) 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 *DtoJob) 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 *DtoJob) SetCreatedAt(v string) {
|
||||
o.CreatedAt = &v
|
||||
}
|
||||
|
||||
// GetId returns the Id field value if set, zero value otherwise.
|
||||
func (o *DtoJob) 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 *DtoJob) 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 *DtoJob) 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 *DtoJob) SetId(v string) {
|
||||
o.Id = &v
|
||||
}
|
||||
|
||||
// GetLastError returns the LastError field value if set, zero value otherwise.
|
||||
func (o *DtoJob) GetLastError() string {
|
||||
if o == nil || IsNil(o.LastError) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.LastError
|
||||
}
|
||||
|
||||
// GetLastErrorOk returns a tuple with the LastError field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *DtoJob) GetLastErrorOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.LastError) {
|
||||
return nil, false
|
||||
}
|
||||
return o.LastError, true
|
||||
}
|
||||
|
||||
// HasLastError returns a boolean if a field has been set.
|
||||
func (o *DtoJob) HasLastError() bool {
|
||||
if o != nil && !IsNil(o.LastError) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetLastError gets a reference to the given string and assigns it to the LastError field.
|
||||
func (o *DtoJob) SetLastError(v string) {
|
||||
o.LastError = &v
|
||||
}
|
||||
|
||||
// GetMaxAttempts returns the MaxAttempts field value if set, zero value otherwise.
|
||||
func (o *DtoJob) GetMaxAttempts() int32 {
|
||||
if o == nil || IsNil(o.MaxAttempts) {
|
||||
var ret int32
|
||||
return ret
|
||||
}
|
||||
return *o.MaxAttempts
|
||||
}
|
||||
|
||||
// GetMaxAttemptsOk returns a tuple with the MaxAttempts field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *DtoJob) GetMaxAttemptsOk() (*int32, bool) {
|
||||
if o == nil || IsNil(o.MaxAttempts) {
|
||||
return nil, false
|
||||
}
|
||||
return o.MaxAttempts, true
|
||||
}
|
||||
|
||||
// HasMaxAttempts returns a boolean if a field has been set.
|
||||
func (o *DtoJob) HasMaxAttempts() bool {
|
||||
if o != nil && !IsNil(o.MaxAttempts) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetMaxAttempts gets a reference to the given int32 and assigns it to the MaxAttempts field.
|
||||
func (o *DtoJob) SetMaxAttempts(v int32) {
|
||||
o.MaxAttempts = &v
|
||||
}
|
||||
|
||||
// GetPayload returns the Payload field value if set, zero value otherwise.
|
||||
func (o *DtoJob) GetPayload() map[string]interface{} {
|
||||
if o == nil || IsNil(o.Payload) {
|
||||
var ret map[string]interface{}
|
||||
return ret
|
||||
}
|
||||
return o.Payload
|
||||
}
|
||||
|
||||
// GetPayloadOk returns a tuple with the Payload field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *DtoJob) GetPayloadOk() (map[string]interface{}, bool) {
|
||||
if o == nil || IsNil(o.Payload) {
|
||||
return map[string]interface{}{}, false
|
||||
}
|
||||
return o.Payload, true
|
||||
}
|
||||
|
||||
// HasPayload returns a boolean if a field has been set.
|
||||
func (o *DtoJob) HasPayload() bool {
|
||||
if o != nil && !IsNil(o.Payload) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetPayload gets a reference to the given map[string]interface{} and assigns it to the Payload field.
|
||||
func (o *DtoJob) SetPayload(v map[string]interface{}) {
|
||||
o.Payload = v
|
||||
}
|
||||
|
||||
// GetQueue returns the Queue field value if set, zero value otherwise.
|
||||
func (o *DtoJob) GetQueue() string {
|
||||
if o == nil || IsNil(o.Queue) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Queue
|
||||
}
|
||||
|
||||
// GetQueueOk returns a tuple with the Queue field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *DtoJob) GetQueueOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.Queue) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Queue, true
|
||||
}
|
||||
|
||||
// HasQueue returns a boolean if a field has been set.
|
||||
func (o *DtoJob) HasQueue() bool {
|
||||
if o != nil && !IsNil(o.Queue) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetQueue gets a reference to the given string and assigns it to the Queue field.
|
||||
func (o *DtoJob) SetQueue(v string) {
|
||||
o.Queue = &v
|
||||
}
|
||||
|
||||
// GetRunAt returns the RunAt field value if set, zero value otherwise.
|
||||
func (o *DtoJob) GetRunAt() string {
|
||||
if o == nil || IsNil(o.RunAt) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.RunAt
|
||||
}
|
||||
|
||||
// GetRunAtOk returns a tuple with the RunAt field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *DtoJob) GetRunAtOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.RunAt) {
|
||||
return nil, false
|
||||
}
|
||||
return o.RunAt, true
|
||||
}
|
||||
|
||||
// HasRunAt returns a boolean if a field has been set.
|
||||
func (o *DtoJob) HasRunAt() bool {
|
||||
if o != nil && !IsNil(o.RunAt) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetRunAt gets a reference to the given string and assigns it to the RunAt field.
|
||||
func (o *DtoJob) SetRunAt(v string) {
|
||||
o.RunAt = &v
|
||||
}
|
||||
|
||||
// GetStatus returns the Status field value if set, zero value otherwise.
|
||||
func (o *DtoJob) GetStatus() DtoJobStatus {
|
||||
if o == nil || IsNil(o.Status) {
|
||||
var ret DtoJobStatus
|
||||
return ret
|
||||
}
|
||||
return *o.Status
|
||||
}
|
||||
|
||||
// GetStatusOk returns a tuple with the Status field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *DtoJob) GetStatusOk() (*DtoJobStatus, bool) {
|
||||
if o == nil || IsNil(o.Status) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Status, true
|
||||
}
|
||||
|
||||
// HasStatus returns a boolean if a field has been set.
|
||||
func (o *DtoJob) HasStatus() bool {
|
||||
if o != nil && !IsNil(o.Status) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetStatus gets a reference to the given DtoJobStatus and assigns it to the Status field.
|
||||
func (o *DtoJob) SetStatus(v DtoJobStatus) {
|
||||
o.Status = &v
|
||||
}
|
||||
|
||||
// GetType returns the Type field value if set, zero value otherwise.
|
||||
func (o *DtoJob) GetType() string {
|
||||
if o == nil || IsNil(o.Type) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Type
|
||||
}
|
||||
|
||||
// GetTypeOk returns a tuple with the Type field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *DtoJob) GetTypeOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.Type) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Type, true
|
||||
}
|
||||
|
||||
// HasType returns a boolean if a field has been set.
|
||||
func (o *DtoJob) HasType() bool {
|
||||
if o != nil && !IsNil(o.Type) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetType gets a reference to the given string and assigns it to the Type field.
|
||||
func (o *DtoJob) SetType(v string) {
|
||||
o.Type = &v
|
||||
}
|
||||
|
||||
// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise.
|
||||
func (o *DtoJob) 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 *DtoJob) 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 *DtoJob) 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 *DtoJob) SetUpdatedAt(v string) {
|
||||
o.UpdatedAt = &v
|
||||
}
|
||||
|
||||
func (o DtoJob) MarshalJSON() ([]byte, error) {
|
||||
toSerialize, err := o.ToMap()
|
||||
if err != nil {
|
||||
return []byte{}, err
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
func (o DtoJob) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if !IsNil(o.Attempts) {
|
||||
toSerialize["attempts"] = o.Attempts
|
||||
}
|
||||
if !IsNil(o.CreatedAt) {
|
||||
toSerialize["created_at"] = o.CreatedAt
|
||||
}
|
||||
if !IsNil(o.Id) {
|
||||
toSerialize["id"] = o.Id
|
||||
}
|
||||
if !IsNil(o.LastError) {
|
||||
toSerialize["last_error"] = o.LastError
|
||||
}
|
||||
if !IsNil(o.MaxAttempts) {
|
||||
toSerialize["max_attempts"] = o.MaxAttempts
|
||||
}
|
||||
if !IsNil(o.Payload) {
|
||||
toSerialize["payload"] = o.Payload
|
||||
}
|
||||
if !IsNil(o.Queue) {
|
||||
toSerialize["queue"] = o.Queue
|
||||
}
|
||||
if !IsNil(o.RunAt) {
|
||||
toSerialize["run_at"] = o.RunAt
|
||||
}
|
||||
if !IsNil(o.Status) {
|
||||
toSerialize["status"] = o.Status
|
||||
}
|
||||
if !IsNil(o.Type) {
|
||||
toSerialize["type"] = o.Type
|
||||
}
|
||||
if !IsNil(o.UpdatedAt) {
|
||||
toSerialize["updated_at"] = o.UpdatedAt
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableDtoJob struct {
|
||||
value *DtoJob
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableDtoJob) Get() *DtoJob {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableDtoJob) Set(val *DtoJob) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableDtoJob) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableDtoJob) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableDtoJob(val *DtoJob) *NullableDtoJob {
|
||||
return &NullableDtoJob{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableDtoJob) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableDtoJob) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
@@ -1,120 +0,0 @@
|
||||
/*
|
||||
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"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
// DtoJobStatus the model 'DtoJobStatus'
|
||||
type DtoJobStatus string
|
||||
|
||||
// List of dto.JobStatus
|
||||
const (
|
||||
StatusQueued DtoJobStatus = "queued"
|
||||
StatusRunning DtoJobStatus = "running"
|
||||
StatusSucceeded DtoJobStatus = "succeeded"
|
||||
StatusFailed DtoJobStatus = "failed"
|
||||
StatusCanceled DtoJobStatus = "canceled"
|
||||
StatusRetrying DtoJobStatus = "retrying"
|
||||
StatusScheduled DtoJobStatus = "scheduled"
|
||||
)
|
||||
|
||||
// All allowed values of DtoJobStatus enum
|
||||
var AllowedDtoJobStatusEnumValues = []DtoJobStatus{
|
||||
"queued",
|
||||
"running",
|
||||
"succeeded",
|
||||
"failed",
|
||||
"canceled",
|
||||
"retrying",
|
||||
"scheduled",
|
||||
}
|
||||
|
||||
func (v *DtoJobStatus) UnmarshalJSON(src []byte) error {
|
||||
var value string
|
||||
err := json.Unmarshal(src, &value)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
enumTypeValue := DtoJobStatus(value)
|
||||
for _, existing := range AllowedDtoJobStatusEnumValues {
|
||||
if existing == enumTypeValue {
|
||||
*v = enumTypeValue
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
return fmt.Errorf("%+v is not a valid DtoJobStatus", value)
|
||||
}
|
||||
|
||||
// NewDtoJobStatusFromValue returns a pointer to a valid DtoJobStatus
|
||||
// for the value passed as argument, or an error if the value passed is not allowed by the enum
|
||||
func NewDtoJobStatusFromValue(v string) (*DtoJobStatus, error) {
|
||||
ev := DtoJobStatus(v)
|
||||
if ev.IsValid() {
|
||||
return &ev, nil
|
||||
} else {
|
||||
return nil, fmt.Errorf("invalid value '%v' for DtoJobStatus: valid values are %v", v, AllowedDtoJobStatusEnumValues)
|
||||
}
|
||||
}
|
||||
|
||||
// IsValid return true if the value is valid for the enum, false otherwise
|
||||
func (v DtoJobStatus) IsValid() bool {
|
||||
for _, existing := range AllowedDtoJobStatusEnumValues {
|
||||
if existing == v {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
// Ptr returns reference to dto.JobStatus value
|
||||
func (v DtoJobStatus) Ptr() *DtoJobStatus {
|
||||
return &v
|
||||
}
|
||||
|
||||
type NullableDtoJobStatus struct {
|
||||
value *DtoJobStatus
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableDtoJobStatus) Get() *DtoJobStatus {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableDtoJobStatus) Set(val *DtoJobStatus) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableDtoJobStatus) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableDtoJobStatus) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableDtoJobStatus(val *DtoJobStatus) *NullableDtoJobStatus {
|
||||
return &NullableDtoJobStatus{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableDtoJobStatus) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableDtoJobStatus) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
@@ -1,340 +0,0 @@
|
||||
/*
|
||||
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 DtoJWK type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &DtoJWK{}
|
||||
|
||||
// DtoJWK struct for DtoJWK
|
||||
type DtoJWK struct {
|
||||
Alg *string `json:"alg,omitempty"`
|
||||
E *string `json:"e,omitempty"`
|
||||
Kid *string `json:"kid,omitempty"`
|
||||
Kty *string `json:"kty,omitempty"`
|
||||
N *string `json:"n,omitempty"`
|
||||
Use *string `json:"use,omitempty"`
|
||||
X *string `json:"x,omitempty"`
|
||||
}
|
||||
|
||||
// NewDtoJWK instantiates a new DtoJWK 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 NewDtoJWK() *DtoJWK {
|
||||
this := DtoJWK{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewDtoJWKWithDefaults instantiates a new DtoJWK 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 NewDtoJWKWithDefaults() *DtoJWK {
|
||||
this := DtoJWK{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetAlg returns the Alg field value if set, zero value otherwise.
|
||||
func (o *DtoJWK) GetAlg() string {
|
||||
if o == nil || IsNil(o.Alg) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Alg
|
||||
}
|
||||
|
||||
// GetAlgOk returns a tuple with the Alg field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *DtoJWK) GetAlgOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.Alg) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Alg, true
|
||||
}
|
||||
|
||||
// HasAlg returns a boolean if a field has been set.
|
||||
func (o *DtoJWK) HasAlg() bool {
|
||||
if o != nil && !IsNil(o.Alg) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetAlg gets a reference to the given string and assigns it to the Alg field.
|
||||
func (o *DtoJWK) SetAlg(v string) {
|
||||
o.Alg = &v
|
||||
}
|
||||
|
||||
// GetE returns the E field value if set, zero value otherwise.
|
||||
func (o *DtoJWK) GetE() string {
|
||||
if o == nil || IsNil(o.E) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.E
|
||||
}
|
||||
|
||||
// GetEOk returns a tuple with the E field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *DtoJWK) GetEOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.E) {
|
||||
return nil, false
|
||||
}
|
||||
return o.E, true
|
||||
}
|
||||
|
||||
// HasE returns a boolean if a field has been set.
|
||||
func (o *DtoJWK) HasE() bool {
|
||||
if o != nil && !IsNil(o.E) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetE gets a reference to the given string and assigns it to the E field.
|
||||
func (o *DtoJWK) SetE(v string) {
|
||||
o.E = &v
|
||||
}
|
||||
|
||||
// GetKid returns the Kid field value if set, zero value otherwise.
|
||||
func (o *DtoJWK) GetKid() string {
|
||||
if o == nil || IsNil(o.Kid) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Kid
|
||||
}
|
||||
|
||||
// GetKidOk returns a tuple with the Kid field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *DtoJWK) GetKidOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.Kid) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Kid, true
|
||||
}
|
||||
|
||||
// HasKid returns a boolean if a field has been set.
|
||||
func (o *DtoJWK) HasKid() bool {
|
||||
if o != nil && !IsNil(o.Kid) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetKid gets a reference to the given string and assigns it to the Kid field.
|
||||
func (o *DtoJWK) SetKid(v string) {
|
||||
o.Kid = &v
|
||||
}
|
||||
|
||||
// GetKty returns the Kty field value if set, zero value otherwise.
|
||||
func (o *DtoJWK) GetKty() string {
|
||||
if o == nil || IsNil(o.Kty) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Kty
|
||||
}
|
||||
|
||||
// GetKtyOk returns a tuple with the Kty field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *DtoJWK) GetKtyOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.Kty) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Kty, true
|
||||
}
|
||||
|
||||
// HasKty returns a boolean if a field has been set.
|
||||
func (o *DtoJWK) HasKty() bool {
|
||||
if o != nil && !IsNil(o.Kty) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetKty gets a reference to the given string and assigns it to the Kty field.
|
||||
func (o *DtoJWK) SetKty(v string) {
|
||||
o.Kty = &v
|
||||
}
|
||||
|
||||
// GetN returns the N field value if set, zero value otherwise.
|
||||
func (o *DtoJWK) GetN() string {
|
||||
if o == nil || IsNil(o.N) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.N
|
||||
}
|
||||
|
||||
// GetNOk returns a tuple with the N field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *DtoJWK) GetNOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.N) {
|
||||
return nil, false
|
||||
}
|
||||
return o.N, true
|
||||
}
|
||||
|
||||
// HasN returns a boolean if a field has been set.
|
||||
func (o *DtoJWK) HasN() bool {
|
||||
if o != nil && !IsNil(o.N) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetN gets a reference to the given string and assigns it to the N field.
|
||||
func (o *DtoJWK) SetN(v string) {
|
||||
o.N = &v
|
||||
}
|
||||
|
||||
// GetUse returns the Use field value if set, zero value otherwise.
|
||||
func (o *DtoJWK) GetUse() string {
|
||||
if o == nil || IsNil(o.Use) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Use
|
||||
}
|
||||
|
||||
// GetUseOk returns a tuple with the Use field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *DtoJWK) GetUseOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.Use) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Use, true
|
||||
}
|
||||
|
||||
// HasUse returns a boolean if a field has been set.
|
||||
func (o *DtoJWK) HasUse() bool {
|
||||
if o != nil && !IsNil(o.Use) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetUse gets a reference to the given string and assigns it to the Use field.
|
||||
func (o *DtoJWK) SetUse(v string) {
|
||||
o.Use = &v
|
||||
}
|
||||
|
||||
// GetX returns the X field value if set, zero value otherwise.
|
||||
func (o *DtoJWK) GetX() string {
|
||||
if o == nil || IsNil(o.X) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.X
|
||||
}
|
||||
|
||||
// GetXOk returns a tuple with the X field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *DtoJWK) GetXOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.X) {
|
||||
return nil, false
|
||||
}
|
||||
return o.X, true
|
||||
}
|
||||
|
||||
// HasX returns a boolean if a field has been set.
|
||||
func (o *DtoJWK) HasX() bool {
|
||||
if o != nil && !IsNil(o.X) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetX gets a reference to the given string and assigns it to the X field.
|
||||
func (o *DtoJWK) SetX(v string) {
|
||||
o.X = &v
|
||||
}
|
||||
|
||||
func (o DtoJWK) MarshalJSON() ([]byte, error) {
|
||||
toSerialize, err := o.ToMap()
|
||||
if err != nil {
|
||||
return []byte{}, err
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
func (o DtoJWK) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if !IsNil(o.Alg) {
|
||||
toSerialize["alg"] = o.Alg
|
||||
}
|
||||
if !IsNil(o.E) {
|
||||
toSerialize["e"] = o.E
|
||||
}
|
||||
if !IsNil(o.Kid) {
|
||||
toSerialize["kid"] = o.Kid
|
||||
}
|
||||
if !IsNil(o.Kty) {
|
||||
toSerialize["kty"] = o.Kty
|
||||
}
|
||||
if !IsNil(o.N) {
|
||||
toSerialize["n"] = o.N
|
||||
}
|
||||
if !IsNil(o.Use) {
|
||||
toSerialize["use"] = o.Use
|
||||
}
|
||||
if !IsNil(o.X) {
|
||||
toSerialize["x"] = o.X
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableDtoJWK struct {
|
||||
value *DtoJWK
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableDtoJWK) Get() *DtoJWK {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableDtoJWK) Set(val *DtoJWK) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableDtoJWK) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableDtoJWK) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableDtoJWK(val *DtoJWK) *NullableDtoJWK {
|
||||
return &NullableDtoJWK{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableDtoJWK) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableDtoJWK) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
@@ -1,124 +0,0 @@
|
||||
/*
|
||||
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 DtoJWKS type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &DtoJWKS{}
|
||||
|
||||
// DtoJWKS struct for DtoJWKS
|
||||
type DtoJWKS struct {
|
||||
Keys []DtoJWK `json:"keys,omitempty"`
|
||||
}
|
||||
|
||||
// NewDtoJWKS instantiates a new DtoJWKS 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 NewDtoJWKS() *DtoJWKS {
|
||||
this := DtoJWKS{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewDtoJWKSWithDefaults instantiates a new DtoJWKS 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 NewDtoJWKSWithDefaults() *DtoJWKS {
|
||||
this := DtoJWKS{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetKeys returns the Keys field value if set, zero value otherwise.
|
||||
func (o *DtoJWKS) GetKeys() []DtoJWK {
|
||||
if o == nil || IsNil(o.Keys) {
|
||||
var ret []DtoJWK
|
||||
return ret
|
||||
}
|
||||
return o.Keys
|
||||
}
|
||||
|
||||
// GetKeysOk returns a tuple with the Keys field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *DtoJWKS) GetKeysOk() ([]DtoJWK, bool) {
|
||||
if o == nil || IsNil(o.Keys) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Keys, true
|
||||
}
|
||||
|
||||
// HasKeys returns a boolean if a field has been set.
|
||||
func (o *DtoJWKS) HasKeys() bool {
|
||||
if o != nil && !IsNil(o.Keys) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetKeys gets a reference to the given []DtoJWK and assigns it to the Keys field.
|
||||
func (o *DtoJWKS) SetKeys(v []DtoJWK) {
|
||||
o.Keys = v
|
||||
}
|
||||
|
||||
func (o DtoJWKS) MarshalJSON() ([]byte, error) {
|
||||
toSerialize, err := o.ToMap()
|
||||
if err != nil {
|
||||
return []byte{}, err
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
func (o DtoJWKS) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if !IsNil(o.Keys) {
|
||||
toSerialize["keys"] = o.Keys
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableDtoJWKS struct {
|
||||
value *DtoJWKS
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableDtoJWKS) Get() *DtoJWKS {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableDtoJWKS) Set(val *DtoJWKS) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableDtoJWKS) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableDtoJWKS) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableDtoJWKS(val *DtoJWKS) *NullableDtoJWKS {
|
||||
return &NullableDtoJWKS{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableDtoJWKS) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableDtoJWKS) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user