Skip to content

Commit dcab3aa

Browse files
committed
release version v0.24.0
1 parent ab69dd3 commit dcab3aa

File tree

127 files changed

+1089
-137
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

127 files changed

+1089
-137
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
PWD = $(shell pwd)
55
UID = $(shell id -u)
66
GID = $(shell id -g)
7-
VERSION = "0.23.1"
7+
VERSION = "0.24.0"
88
LD_FLAGS = -X beryju.io/gravity/pkg/extconfig.Version=${VERSION}
99
GO_FLAGS = -ldflags "${LD_FLAGS}" -v
1010
SCHEMA_FILE = schema.yml

api/.openapi-generator/FILES

+8
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ docs/DhcpAPIRoleConfigOutput.md
6464
docs/DhcpAPIScope.md
6565
docs/DhcpAPIScopeStatistics.md
6666
docs/DhcpAPIScopesGetOutput.md
67+
docs/DhcpAPIScopesImportInput.md
68+
docs/DhcpAPIScopesImportOutput.md
69+
docs/DhcpAPIScopesImporterType.md
6770
docs/DhcpAPIScopesPutInput.md
6871
docs/DhcpRoleConfig.md
6972
docs/DhcpScopeDNS.md
@@ -85,6 +88,7 @@ docs/DnsAPIZone.md
8588
docs/DnsAPIZonesGetOutput.md
8689
docs/DnsAPIZonesImportInput.md
8790
docs/DnsAPIZonesImportOutput.md
91+
docs/DnsAPIZonesImporterType.md
8892
docs/DnsAPIZonesPutInput.md
8993
docs/DnsRoleConfig.md
9094
docs/ExtconfigExtConfigDirs.md
@@ -170,6 +174,9 @@ model_dhcp_api_role_config_output.go
170174
model_dhcp_api_scope.go
171175
model_dhcp_api_scope_statistics.go
172176
model_dhcp_api_scopes_get_output.go
177+
model_dhcp_api_scopes_import_input.go
178+
model_dhcp_api_scopes_import_output.go
179+
model_dhcp_api_scopes_importer_type.go
173180
model_dhcp_api_scopes_put_input.go
174181
model_dhcp_role_config.go
175182
model_dhcp_scope_dns.go
@@ -191,6 +198,7 @@ model_dns_api_zone.go
191198
model_dns_api_zones_get_output.go
192199
model_dns_api_zones_import_input.go
193200
model_dns_api_zones_import_output.go
201+
model_dns_api_zones_importer_type.go
194202
model_dns_api_zones_put_input.go
195203
model_dns_role_config.go
196204
model_extconfig_ext_config_dirs.go

api/README.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/opena
55
## Overview
66
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.
77

8-
- API version: 0.23.1
8+
- API version: 0.24.0
99
- Package version: 1.0.0
1010
- Build package: org.openapitools.codegen.languages.GoClientCodegen
1111

@@ -107,6 +107,7 @@ Class | Method | HTTP request | Description
107107
*RolesDhcpApi* | [**DhcpGetLeases**](docs/RolesDhcpApi.md#dhcpgetleases) | **Get** /api/v1/dhcp/scopes/leases | DHCP Leases
108108
*RolesDhcpApi* | [**DhcpGetRoleConfig**](docs/RolesDhcpApi.md#dhcpgetroleconfig) | **Get** /api/v1/roles/dhcp | DHCP role config
109109
*RolesDhcpApi* | [**DhcpGetScopes**](docs/RolesDhcpApi.md#dhcpgetscopes) | **Get** /api/v1/dhcp/scopes | DHCP Scopes
110+
*RolesDhcpApi* | [**DhcpImportScopes**](docs/RolesDhcpApi.md#dhcpimportscopes) | **Post** /api/v1/dhcp/scopes/import | DHCP Scopes
110111
*RolesDhcpApi* | [**DhcpPutLeases**](docs/RolesDhcpApi.md#dhcpputleases) | **Post** /api/v1/dhcp/scopes/leases | DHCP Leases
111112
*RolesDhcpApi* | [**DhcpPutRoleConfig**](docs/RolesDhcpApi.md#dhcpputroleconfig) | **Post** /api/v1/roles/dhcp | DHCP role config
112113
*RolesDhcpApi* | [**DhcpPutScopes**](docs/RolesDhcpApi.md#dhcpputscopes) | **Post** /api/v1/dhcp/scopes | DHCP Scopes
@@ -192,6 +193,9 @@ Class | Method | HTTP request | Description
192193
- [DhcpAPIScope](docs/DhcpAPIScope.md)
193194
- [DhcpAPIScopeStatistics](docs/DhcpAPIScopeStatistics.md)
194195
- [DhcpAPIScopesGetOutput](docs/DhcpAPIScopesGetOutput.md)
196+
- [DhcpAPIScopesImportInput](docs/DhcpAPIScopesImportInput.md)
197+
- [DhcpAPIScopesImportOutput](docs/DhcpAPIScopesImportOutput.md)
198+
- [DhcpAPIScopesImporterType](docs/DhcpAPIScopesImporterType.md)
195199
- [DhcpAPIScopesPutInput](docs/DhcpAPIScopesPutInput.md)
196200
- [DhcpRoleConfig](docs/DhcpRoleConfig.md)
197201
- [DhcpScopeDNS](docs/DhcpScopeDNS.md)
@@ -213,6 +217,7 @@ Class | Method | HTTP request | Description
213217
- [DnsAPIZonesGetOutput](docs/DnsAPIZonesGetOutput.md)
214218
- [DnsAPIZonesImportInput](docs/DnsAPIZonesImportInput.md)
215219
- [DnsAPIZonesImportOutput](docs/DnsAPIZonesImportOutput.md)
220+
- [DnsAPIZonesImporterType](docs/DnsAPIZonesImporterType.md)
216221
- [DnsAPIZonesPutInput](docs/DnsAPIZonesPutInput.md)
217222
- [DnsRoleConfig](docs/DnsRoleConfig.md)
218223
- [ExtconfigExtConfigDirs](docs/ExtconfigExtConfigDirs.md)

api/api/openapi.yaml

+67-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
openapi: 3.0.3
22
info:
33
title: gravity
4-
version: 0.23.1
4+
version: 0.24.0
55
servers:
66
- url: /
77
paths:
@@ -470,6 +470,44 @@ paths:
470470
summary: DHCP Scopes
471471
tags:
472472
- roles/dhcp
473+
/api/v1/dhcp/scopes/import:
474+
post:
475+
operationId: dhcp.import_scopes
476+
parameters:
477+
- explode: true
478+
in: query
479+
name: scope
480+
required: false
481+
schema:
482+
type: string
483+
style: form
484+
requestBody:
485+
content:
486+
application/json:
487+
schema:
488+
$ref: '#/components/schemas/DhcpAPIScopesImportInput'
489+
responses:
490+
"200":
491+
content:
492+
application/json:
493+
schema:
494+
$ref: '#/components/schemas/DhcpAPIScopesImportOutput'
495+
description: OK
496+
"400":
497+
content:
498+
application/json:
499+
schema:
500+
$ref: '#/components/schemas/RestErrResponse'
501+
description: Bad Request
502+
"500":
503+
content:
504+
application/json:
505+
schema:
506+
$ref: '#/components/schemas/RestErrResponse'
507+
description: Internal Server Error
508+
summary: DHCP Scopes
509+
tags:
510+
- roles/dhcp
473511
/api/v1/dhcp/scopes/leases:
474512
delete:
475513
operationId: dhcp.delete_leases
@@ -2678,6 +2716,27 @@ components:
26782716
- scopes
26792717
- statistics
26802718
type: object
2719+
DhcpAPIScopesImportInput:
2720+
example:
2721+
payload: payload
2722+
type: null
2723+
properties:
2724+
payload:
2725+
type: string
2726+
type:
2727+
$ref: '#/components/schemas/DhcpAPIScopesImporterType'
2728+
type: object
2729+
DhcpAPIScopesImportOutput:
2730+
example:
2731+
successful: true
2732+
properties:
2733+
successful:
2734+
type: boolean
2735+
type: object
2736+
DhcpAPIScopesImporterType:
2737+
enum:
2738+
- ms_dhcp
2739+
type: string
26812740
DhcpAPIScopesPutInput:
26822741
example:
26832742
subnetCidr: subnetCidr
@@ -3099,14 +3158,12 @@ components:
30993158
DnsAPIZonesImportInput:
31003159
example:
31013160
payload: payload
3102-
type: bind
3161+
type: null
31033162
properties:
31043163
payload:
31053164
type: string
31063165
type:
3107-
enum:
3108-
- bind
3109-
type: string
3166+
$ref: '#/components/schemas/DnsAPIZonesImporterType'
31103167
type: object
31113168
DnsAPIZonesImportOutput:
31123169
example:
@@ -3115,6 +3172,11 @@ components:
31153172
successful:
31163173
type: boolean
31173174
type: object
3175+
DnsAPIZonesImporterType:
3176+
enum:
3177+
- bind
3178+
- opnsense
3179+
type: string
31183180
DnsAPIZonesPutInput:
31193181
example:
31203182
handlerConfigs:

api/api_cluster.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/api_cluster_instances.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/api_roles_api.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/api_roles_backup.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/api_roles_dhcp.go

+137-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/api_roles_discovery.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/api_roles_dns.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)