File tree Expand file tree Collapse file tree 6 files changed +25
-4
lines changed
Sources/InfluxDBSwiftApis/Generated/Models Expand file tree Collapse file tree 6 files changed +25
-4
lines changed Original file line number Diff line number Diff line change @@ -214,7 +214,7 @@ jobs:
214
214
name : Install Maven & Curl
215
215
command : |
216
216
apt-get update
217
- apt-get install maven curl --yes
217
+ apt-get install maven curl wget --yes
218
218
- run :
219
219
name : Checks generating sources from swagger
220
220
command : |
Original file line number Diff line number Diff line change @@ -102,4 +102,8 @@ SourceKitten/
102
102
103
103
# Junit
104
104
junit.xml
105
- tests.xml
105
+ tests.xml
106
+
107
+ Scripts /cloud.yml
108
+ Scripts /oss.yml
109
+ Scripts /influxdb-clients-apigen /
Original file line number Diff line number Diff line change 1
1
## 1.0.0 [ unreleased]
2
2
3
+ ### Bug Fixes
4
+ 1 . [ #46 ] ( https://github.com/influxdata/influxdb-client-swift/pull/46 ) : Add missing PermissionResources from Cloud API definition
5
+
3
6
## 0.9.0 [ 2021-11-26]
4
7
5
8
### Documentation
Original file line number Diff line number Diff line change 2
2
3
3
#
4
4
# How to run script from ROOT path:
5
- # docker run --rm -it -v "${PWD}":/code -v ~/.m2:/root/.m2 -w /code maven:3.6-slim /code/Scripts/generate-sources.sh
5
+ # docker run --rm -it -v "${PWD}":/code -v ~/.m2:/root/.m2 -w /code maven:3-openjdk-8 /code/Scripts/generate-sources.sh
6
6
#
7
7
8
8
SCRIPT_PATH=" $( cd " $( dirname " $0 " ) " || exit ; pwd -P ) "
9
9
10
10
rm -rf " ${SCRIPT_PATH} " /generated
11
11
12
+ # Download and merge OSS and Cloud definition
13
+ rm -rf " ${SCRIPT_PATH} " /oss.yml || true
14
+ rm -rf " ${SCRIPT_PATH} " /cloud.yml || true
15
+ rm -rf " ${SCRIPT_PATH} " /influxdb-clients-apigen || true
16
+ wget https://raw.githubusercontent.com/influxdata/openapi/master/contracts/oss.yml -O " ${SCRIPT_PATH} /oss.yml"
17
+ wget https://raw.githubusercontent.com/influxdata/openapi/master/contracts/cloud.yml -O " ${SCRIPT_PATH} /cloud.yml"
18
+ git clone --single-branch --branch master https://github.com/bonitoo-io/influxdb-clients-apigen " ${SCRIPT_PATH} /influxdb-clients-apigen"
19
+ mvn -f " $SCRIPT_PATH " /influxdb-clients-apigen/openapi-generator/pom.xml compile exec:java -Dexec.mainClass=" com.influxdb.AppendCloudDefinitions" -Dexec.args=" $SCRIPT_PATH /oss.yml $SCRIPT_PATH /cloud.yml"
20
+
12
21
# Generate client
13
22
cd " ${SCRIPT_PATH} " / || exit
14
23
mvn org.openapitools:openapi-generator-maven-plugin:generate
Original file line number Diff line number Diff line change 14
14
<artifactId >openapi-generator-maven-plugin</artifactId >
15
15
<version >5.1.0</version >
16
16
<configuration >
17
- <inputSpec >https://raw.githubusercontent.com/influxdata/openapi/master/contracts /oss.yml</inputSpec >
17
+ <inputSpec >. /oss.yml</inputSpec >
18
18
<generatorName >swift5</generatorName >
19
19
<configOptions >
20
20
<projectName >InfluxDB2</projectName >
Original file line number Diff line number Diff line change @@ -29,6 +29,11 @@ public struct Resource: Codable {
29
29
case checks = " checks "
30
30
case dbrp = " dbrp "
31
31
case notebooks = " notebooks "
32
+ case annotations = " annotations "
33
+ case remotes = " remotes "
34
+ case replications = " replications "
35
+ case flows = " flows "
36
+ case functions = " functions "
32
37
}
33
38
public var type : ModelType
34
39
/** If ID is set that is a permission for a specific resource. if it is not set it is a permission for all resources of that resource type. */
You can’t perform that action at this time.
0 commit comments