Skip to content
This repository was archived by the owner on Nov 20, 2023. It is now read-only.

Operator api #85

Merged
merged 32 commits into from
Feb 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
685e8ca
updates to generator/operator.go
Neutrollized Oct 21, 2021
2fdd42e
updates to generator/operator.go
Neutrollized Oct 21, 2021
469ebaf
merge
Neutrollized Oct 21, 2021
4825049
rebase & regenerated clients
Neutrollized Oct 21, 2021
3622eaf
updates to generator/operator.go
Neutrollized Oct 21, 2021
01e011c
rebase & regenerated clients
Neutrollized Oct 21, 2021
844d30e
rebased
Neutrollized Nov 18, 2021
8a3f83e
rebased & regenerated clients
Neutrollized Nov 18, 2021
ec8f030
added a few tests, missing snapshot request/restore
Neutrollized Dec 14, 2021
40b8b11
updates to generator/operator.go
Neutrollized Oct 21, 2021
a5079de
added a few tests, missing snapshot request/restore
Neutrollized Dec 14, 2021
9890c73
rebased
Neutrollized Dec 14, 2021
d31f9b0
rebase
Neutrollized Dec 14, 2021
70b7e8f
rebuilt clients
Neutrollized Dec 14, 2021
058e5be
Fix the path to the location of openapi.yaml (#84)
jonasvinther Jan 5, 2022
d9af0cd
Status api (#76)
Neutrollized Jan 5, 2022
730e030
updated tests, TestPutAutopilotConfiguration and TestPostSchedulerCon…
Neutrollized Jan 26, 2022
efc7e82
Add a default handler for response schema configuration (#89)
DerekStrickland Jan 29, 2022
bf85014
added a few tests, missing snapshot request/restore
Neutrollized Dec 14, 2021
7d064b9
updates to generator/operator.go
Neutrollized Oct 21, 2021
d92d2a0
updated tests, TestPutAutopilotConfiguration and TestPostSchedulerCon…
Neutrollized Jan 26, 2022
4850c99
rebased, merged, regen clients
Neutrollized Jan 29, 2022
6b2ba49
TestGetAutopilotConfiguration passing
Neutrollized Jan 29, 2022
2421f96
TestGetOperatorRaftConfiguration passing
Neutrollized Jan 31, 2022
4d0b203
TestGetOperatorRaftConfiguration passing
Neutrollized Jan 31, 2022
135d93f
using nomad/helper's BoolToPtr
Neutrollized Feb 1, 2022
694c883
cleaned up notes
Neutrollized Feb 1, 2022
0a8b92b
added TODO note for snapshots regarding streaming data
Neutrollized Feb 1, 2022
7b9ae3c
added TODO note for operator/license endpoint
Neutrollized Feb 1, 2022
82621de
updated UpdateScheduler
Neutrollized Feb 2, 2022
def67bd
refactored v1/operator.go and v1/operator_test.go, all tests passing
Neutrollized Feb 2, 2022
753a869
added TODOs, updated .gitignore
Neutrollized Feb 7, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.DS_Store
.vscode
# Binaries for programs and plugins
*.exe
*.exe~
Expand All @@ -17,4 +18,3 @@

generator/bin
generator/*.yaml

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ _generated_ in a number of programming languages.
## Quick start

The latest version of the OpenAPI specification for the Version 1 Nomad HTTP API
can be found in this repository at [api/v1/openapi.yaml](https://github.com/hashicorp/nomad-openapi/blob/main/api/v1/openapi.yaml).
can be found in this repository at [v1/openapi.yaml](https://github.com/hashicorp/nomad-openapi/blob/main/v1/openapi.yaml).
This file _is itself a generated file_ and _should not be edited directly_. You can
use this file to generate a client for the Nomad HTTP API in the language of your
choice.
Expand Down
22 changes: 22 additions & 0 deletions clients/go/v1/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@ api_jobs.go
api_metrics.go
api_namespaces.go
api_nodes.go
api_operator.go
api_plugins.go
api_regions.go
api_scaling.go
api_search.go
api_status.go
api_system.go
api_volumes.go
client.go
Expand All @@ -36,6 +38,7 @@ docs/AllocationListStub.md
docs/AllocationMetric.md
docs/AllocationsApi.md
docs/Attribute.md
docs/AutopilotConfiguration.md
docs/CSIControllerInfo.md
docs/CSIInfo.md
docs/CSIMountOptions.md
Expand Down Expand Up @@ -157,6 +160,8 @@ docs/NodesApi.md
docs/ObjectDiff.md
docs/OneTimeToken.md
docs/OneTimeTokenExchangeRequest.md
docs/OperatorApi.md
docs/OperatorHealthReply.md
docs/ParameterizedJobConfig.md
docs/PeriodicConfig.md
docs/PeriodicForceResponse.md
Expand All @@ -165,8 +170,11 @@ docs/PluginsApi.md
docs/PointValue.md
docs/Port.md
docs/PortMapping.md
docs/PreemptionConfig.md
docs/QuotaLimit.md
docs/QuotaSpec.md
docs/RaftConfiguration.md
docs/RaftServer.md
docs/RegionsApi.md
docs/RequestedDevice.md
docs/RescheduleEvent.md
Expand All @@ -180,14 +188,19 @@ docs/ScalingEvent.md
docs/ScalingPolicy.md
docs/ScalingPolicyListStub.md
docs/ScalingRequest.md
docs/SchedulerConfiguration.md
docs/SchedulerConfigurationResponse.md
docs/SchedulerSetConfigurationResponse.md
docs/SearchApi.md
docs/SearchRequest.md
docs/SearchResponse.md
docs/ServerHealth.md
docs/Service.md
docs/ServiceCheck.md
docs/SidecarTask.md
docs/Spread.md
docs/SpreadTarget.md
docs/StatusApi.md
docs/SystemApi.md
docs/Task.md
docs/TaskArtifact.md
Expand Down Expand Up @@ -223,6 +236,7 @@ model_allocation.go
model_allocation_list_stub.go
model_allocation_metric.go
model_attribute.go
model_autopilot_configuration.go
model_check_restart.go
model_constraint.go
model_consul.go
Expand Down Expand Up @@ -337,15 +351,19 @@ model_node_update_eligibility_request.go
model_object_diff.go
model_one_time_token.go
model_one_time_token_exchange_request.go
model_operator_health_reply.go
model_parameterized_job_config.go
model_periodic_config.go
model_periodic_force_response.go
model_plan_annotations.go
model_point_value.go
model_port.go
model_port_mapping.go
model_preemption_config.go
model_quota_limit.go
model_quota_spec.go
model_raft_configuration.go
model_raft_server.go
model_requested_device.go
model_reschedule_event.go
model_reschedule_policy.go
Expand All @@ -357,8 +375,12 @@ model_scaling_event.go
model_scaling_policy.go
model_scaling_policy_list_stub.go
model_scaling_request.go
model_scheduler_configuration.go
model_scheduler_configuration_response.go
model_scheduler_set_configuration_response.go
model_search_request.go
model_search_response.go
model_server_health.go
model_service.go
model_service_check.go
model_sidecar_task.go
Expand Down
18 changes: 18 additions & 0 deletions clients/go/v1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,13 +140,22 @@ Class | Method | HTTP request | Description
*NodesApi* | [**UpdateNodeDrain**](docs/NodesApi.md#updatenodedrain) | **Post** /node/{nodeId}/drain |
*NodesApi* | [**UpdateNodeEligibility**](docs/NodesApi.md#updatenodeeligibility) | **Post** /node/{nodeId}/eligibility |
*NodesApi* | [**UpdateNodePurge**](docs/NodesApi.md#updatenodepurge) | **Post** /node/{nodeId}/purge |
*OperatorApi* | [**DeleteOperatorRaftPeer**](docs/OperatorApi.md#deleteoperatorraftpeer) | **Delete** /operator/raft/peer |
*OperatorApi* | [**GetOperatorAutopilotConfiguration**](docs/OperatorApi.md#getoperatorautopilotconfiguration) | **Get** /operator/autopilot/configuration |
*OperatorApi* | [**GetOperatorAutopilotHealth**](docs/OperatorApi.md#getoperatorautopilothealth) | **Get** /operator/autopilot/health |
*OperatorApi* | [**GetOperatorRaftConfiguration**](docs/OperatorApi.md#getoperatorraftconfiguration) | **Get** /operator/raft/configuration |
*OperatorApi* | [**GetOperatorSchedulerConfiguration**](docs/OperatorApi.md#getoperatorschedulerconfiguration) | **Get** /operator/scheduler/configuration |
*OperatorApi* | [**PostOperatorSchedulerConfiguration**](docs/OperatorApi.md#postoperatorschedulerconfiguration) | **Post** /operator/scheduler/configuration |
*OperatorApi* | [**PutOperatorAutopilotConfiguration**](docs/OperatorApi.md#putoperatorautopilotconfiguration) | **Put** /operator/autopilot/configuration |
*PluginsApi* | [**GetPluginCSI**](docs/PluginsApi.md#getplugincsi) | **Get** /plugin/csi/{pluginID} |
*PluginsApi* | [**GetPlugins**](docs/PluginsApi.md#getplugins) | **Get** /plugins |
*RegionsApi* | [**GetRegions**](docs/RegionsApi.md#getregions) | **Get** /regions |
*ScalingApi* | [**GetScalingPolicies**](docs/ScalingApi.md#getscalingpolicies) | **Get** /scaling/policies |
*ScalingApi* | [**GetScalingPolicy**](docs/ScalingApi.md#getscalingpolicy) | **Get** /scaling/policy/{policyID} |
*SearchApi* | [**GetFuzzySearch**](docs/SearchApi.md#getfuzzysearch) | **Post** /search/fuzzy |
*SearchApi* | [**GetSearch**](docs/SearchApi.md#getsearch) | **Post** /search |
*StatusApi* | [**GetStatusLeader**](docs/StatusApi.md#getstatusleader) | **Get** /status/leader |
*StatusApi* | [**GetStatusPeers**](docs/StatusApi.md#getstatuspeers) | **Get** /status/peers |
*SystemApi* | [**PutSystemGC**](docs/SystemApi.md#putsystemgc) | **Put** /system/gc |
*SystemApi* | [**PutSystemReconcileSummaries**](docs/SystemApi.md#putsystemreconcilesummaries) | **Put** /system/reconcile/summaries |
*VolumesApi* | [**CreateVolume**](docs/VolumesApi.md#createvolume) | **Post** /volume/csi/{volumeId}/{action} |
Expand Down Expand Up @@ -180,6 +189,7 @@ Class | Method | HTTP request | Description
- [AllocationListStub](docs/AllocationListStub.md)
- [AllocationMetric](docs/AllocationMetric.md)
- [Attribute](docs/Attribute.md)
- [AutopilotConfiguration](docs/AutopilotConfiguration.md)
- [CSIControllerInfo](docs/CSIControllerInfo.md)
- [CSIInfo](docs/CSIInfo.md)
- [CSIMountOptions](docs/CSIMountOptions.md)
Expand Down Expand Up @@ -294,15 +304,19 @@ Class | Method | HTTP request | Description
- [ObjectDiff](docs/ObjectDiff.md)
- [OneTimeToken](docs/OneTimeToken.md)
- [OneTimeTokenExchangeRequest](docs/OneTimeTokenExchangeRequest.md)
- [OperatorHealthReply](docs/OperatorHealthReply.md)
- [ParameterizedJobConfig](docs/ParameterizedJobConfig.md)
- [PeriodicConfig](docs/PeriodicConfig.md)
- [PeriodicForceResponse](docs/PeriodicForceResponse.md)
- [PlanAnnotations](docs/PlanAnnotations.md)
- [PointValue](docs/PointValue.md)
- [Port](docs/Port.md)
- [PortMapping](docs/PortMapping.md)
- [PreemptionConfig](docs/PreemptionConfig.md)
- [QuotaLimit](docs/QuotaLimit.md)
- [QuotaSpec](docs/QuotaSpec.md)
- [RaftConfiguration](docs/RaftConfiguration.md)
- [RaftServer](docs/RaftServer.md)
- [RequestedDevice](docs/RequestedDevice.md)
- [RescheduleEvent](docs/RescheduleEvent.md)
- [ReschedulePolicy](docs/ReschedulePolicy.md)
Expand All @@ -314,8 +328,12 @@ Class | Method | HTTP request | Description
- [ScalingPolicy](docs/ScalingPolicy.md)
- [ScalingPolicyListStub](docs/ScalingPolicyListStub.md)
- [ScalingRequest](docs/ScalingRequest.md)
- [SchedulerConfiguration](docs/SchedulerConfiguration.md)
- [SchedulerConfigurationResponse](docs/SchedulerConfigurationResponse.md)
- [SchedulerSetConfigurationResponse](docs/SchedulerSetConfigurationResponse.md)
- [SearchRequest](docs/SearchRequest.md)
- [SearchResponse](docs/SearchResponse.md)
- [ServerHealth](docs/ServerHealth.md)
- [Service](docs/Service.md)
- [ServiceCheck](docs/ServiceCheck.md)
- [SidecarTask](docs/SidecarTask.md)
Expand Down
Loading