Skip to content

Commit 7770464

Browse files
author
LaunchDarklyReleaseBot
committed
Version 6.0.0 automatically generated from ld-openapi.
1 parent 5341ea2 commit 7770464

File tree

586 files changed

+90279
-14100
lines changed

Some content is hidden

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

586 files changed

+90279
-14100
lines changed

.openapi-generator-ignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# OpenAPI Generator Ignore
2+
# Generated by openapi-generator https://github.com/openapitools/openapi-generator
3+
4+
# Use this file to prevent files from being overwritten by the generator.
5+
# The patterns follow closely to .gitignore or .dockerignore.
6+
7+
# As an example, the C# client generator defines ApiClient.cs.
8+
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
9+
#ApiClient.cs
10+
11+
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
12+
#foo/*/qux
13+
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14+
15+
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16+
#foo/**/qux
17+
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18+
19+
# You can also negate patterns with an exclamation (!).
20+
# For example, you can ignore all files in a docs folder with the file extension .md:
21+
#docs/*.md
22+
# Then explicitly reverse the ignore rule for a single file:
23+
#!docs/README.md

.openapi-generator/FILES

Lines changed: 588 additions & 0 deletions
Large diffs are not rendered by default.

.openapi-generator/VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
5.3.0-SNAPSHOT

.travis.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,22 @@
11
#
2-
# Generated by: https://github.com/swagger-api/swagger-codegen.git
2+
# Generated by OpenAPI Generator: https://openapi-generator.tech
3+
#
4+
# Ref: https://docs.travis-ci.com/user/languages/java/
35
#
46
language: java
57
jdk:
6-
- oraclejdk8
7-
- oraclejdk7
8+
- openjdk12
9+
- openjdk11
10+
- openjdk10
11+
- openjdk9
12+
- openjdk8
813
before_install:
914
# ensure gradlew has proper permission
1015
- chmod a+x ./gradlew
1116
script:
1217
# test using maven
13-
- mvn test
14-
# uncomment below to test using gradle
15-
# - gradle test
16-
# uncomment below to test using sbt
18+
#- mvn test
19+
# test using gradle
20+
- gradle test
21+
# test using sbt
1722
# - sbt test

README.md

Lines changed: 702 additions & 226 deletions
Large diffs are not rendered by default.

api/openapi.yaml

Lines changed: 16546 additions & 0 deletions
Large diffs are not rendered by default.

build.gradle

Lines changed: 127 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -1,104 +1,153 @@
1-
apply plugin: 'idea'
2-
apply plugin: 'eclipse'
3-
4-
group = 'com.launchdarkly'
5-
version = '5.3.0'
1+
// This replaces the code generator's default build.gradle template (see:
2+
// https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/resources/Java/build.gradle.mustache)
3+
// which had a number of issues making it unsuitable for the LaunchDarkly API
4+
// client build: it relied on a very old version of Gradle and the Gradle plugins,
5+
// it used the obsolete jcenter repository, and it did not include the necessary
6+
// javax.annotation dependency. It also had the option of building for Android,
7+
// but we do not need that. This script also adds code signing and pom properties.
8+
9+
// IMPORTANT: If the Java client fails to build due to a dependency problem, it
10+
// probably means that the Swagger code generator changed the dependencies in its
11+
// own build.gradle and we did not update them here. Unfortunately, overriding the
12+
// build.gradle in this way does not allow us to copy their dependencies.
613

714
buildscript {
815
repositories {
9-
jcenter()
10-
}
11-
dependencies {
12-
classpath 'com.android.tools.build:gradle:2.3.+'
13-
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
16+
mavenLocal()
17+
mavenCentral()
1418
}
1519
}
1620

17-
repositories {
18-
jcenter()
21+
plugins {
22+
id 'java'
23+
id 'maven-publish'
24+
id 'signing'
25+
id 'io.codearte.nexus-staging' version '0.12.0'
26+
id 'org.ajoberstar.github-pages' version '1.7.2'
1927
}
2028

29+
repositories {
30+
mavenLocal()
31+
mavenCentral()
32+
}
2133

22-
if(hasProperty('target') && target == 'android') {
23-
24-
apply plugin: 'com.android.library'
25-
apply plugin: 'com.github.dcendents.android-maven'
34+
def ossrhUsername = hasProperty('ossrhUsername') ? ossrhUsername : System.getenv('OSSRH_USERNAME')
35+
def ossrhPassword = hasProperty('ossrhPassword') ? ossrhPassword : System.getenv('OSSRH_PASSWORD')
2636

27-
android {
28-
compileSdkVersion 25
29-
buildToolsVersion '25.0.2'
30-
defaultConfig {
31-
minSdkVersion 14
32-
targetSdkVersion 25
33-
}
34-
compileOptions {
35-
sourceCompatibility JavaVersion.VERSION_1_7
36-
targetCompatibility JavaVersion.VERSION_1_7
37-
}
37+
allprojects {
38+
group = 'com.launchdarkly'
39+
version = '6.0.0'
40+
archivesBaseName = 'api-client'
41+
sourceCompatibility = 1.8
42+
targetCompatibility = 1.8
43+
}
3844

39-
// Rename the aar correctly
40-
libraryVariants.all { variant ->
41-
variant.outputs.each { output ->
42-
def outputFile = output.outputFile
43-
if (outputFile != null && outputFile.name.endsWith('.aar')) {
44-
def fileName = "${project.name}-${variant.baseName}-${version}.aar"
45-
output.outputFile = new File(outputFile.parent, fileName)
46-
}
47-
}
48-
}
45+
dependencies {
46+
implementation 'io.swagger:swagger-annotations:1.5.24'
47+
implementation "com.google.code.findbugs:jsr305:3.0.2"
48+
implementation 'com.squareup.okhttp3:okhttp:4.9.1'
49+
implementation 'com.squareup.okhttp3:logging-interceptor:4.9.1'
50+
implementation 'com.google.code.gson:gson:2.8.6'
51+
implementation 'io.gsonfire:gson-fire:1.8.4'
52+
implementation 'org.openapitools:jackson-databind-nullable:0.2.1'
53+
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.10'
54+
implementation 'org.threeten:threetenbp:1.4.3'
55+
implementation 'javax.annotation:javax.annotation-api:1.3.2'
56+
testImplementation 'junit:junit:4.13.1'
57+
}
4958

50-
dependencies {
51-
provided 'javax.annotation:jsr250-api:1.0'
52-
}
59+
githubPages {
60+
repoUri = 'https://github.com/launchdarkly/api-client-java.git'
61+
pages {
62+
from javadoc
5363
}
64+
}
5465

55-
afterEvaluate {
56-
android.libraryVariants.all { variant ->
57-
def task = project.tasks.create "jar${variant.name.capitalize()}", Jar
58-
task.description = "Create jar artifact for ${variant.name}"
59-
task.dependsOn variant.javaCompile
60-
task.from variant.javaCompile.destinationDir
61-
task.destinationDir = project.file("${project.buildDir}/outputs/jar")
62-
task.archiveName = "${project.name}-${variant.baseName}-${version}.jar"
63-
artifacts.add('archives', task);
64-
}
65-
}
66+
compileJava {
67+
// The generated code should be treated as UTF-8 because some of the properties
68+
// in our openapi.json may include non-ASCII Unicode characters.
69+
options.encoding = "UTF-8"
70+
}
6671

67-
task sourcesJar(type: Jar) {
68-
from android.sourceSets.main.java.srcDirs
69-
classifier = 'sources'
70-
}
72+
compileTestJava {
73+
options.encoding = "UTF-8"
74+
}
7175

72-
artifacts {
73-
archives sourcesJar
74-
}
76+
javadoc {
77+
options.encoding = "UTF-8"
78+
}
79+
80+
task sourceJar(type: Jar, dependsOn: classes) {
81+
classifier 'sources'
82+
from sourceSets.main.allSource
83+
}
7584

76-
} else {
85+
task javadocJar(type: Jar, dependsOn: javadoc) {
86+
classifier = 'javadoc'
87+
from javadoc.destinationDir
88+
}
7789

78-
apply plugin: 'java'
79-
apply plugin: 'maven'
90+
if (JavaVersion.current().isJava8Compatible()) {
91+
// Suppress the many Javadoc warnings that we would otherwise get from the generated code
92+
tasks.withType(Javadoc) {
93+
options.addBooleanOption('Xdoclint:none', true)
94+
}
95+
}
8096

81-
sourceCompatibility = JavaVersion.VERSION_1_7
82-
targetCompatibility = JavaVersion.VERSION_1_7
97+
nexusStaging {
98+
packageGroup = "com.launchdarkly"
99+
username = ossrhUsername
100+
password = ossrhPassword
101+
}
83102

84-
install {
85-
repositories.mavenInstaller {
86-
pom.artifactId = 'api-client'
103+
publishing {
104+
repositories {
105+
maven {
106+
url = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
107+
credentials {
108+
username = ossrhUsername
109+
password = ossrhPassword
110+
}
87111
}
88112
}
89-
90-
task execute(type:JavaExec) {
91-
main = System.getProperty('mainClass')
92-
classpath = sourceSets.main.runtimeClasspath
113+
publications {
114+
mavenJava(MavenPublication) {
115+
from components.java
116+
artifactId = 'api-client'
117+
artifact sourceJar
118+
artifact javadocJar
119+
120+
pom {
121+
name = "API Client for Java"
122+
packaging = 'jar'
123+
description = 'Official LaunchDarkly API Client for Java'
124+
url = 'https://github.com/launchdarkly/api-client-java'
125+
126+
licenses {
127+
license {
128+
name = 'The Apache License, Version 2.0'
129+
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
130+
}
131+
}
132+
133+
developers {
134+
developer {
135+
id = 'launchdarkly'
136+
name = 'LaunchDarkly'
137+
email = 'support@launchdarkly.com'
138+
}
139+
}
140+
141+
scm {
142+
connection = 'scm:git:git://github.com/launchdarkly/api-client-java.git'
143+
developerConnection = 'scm:git:ssh:git@github.com:launchdarkly/api-client-java.git'
144+
url = 'https://github.com/launchdarkly/api-client-java'
145+
}
146+
}
147+
}
93148
}
94149
}
95150

96-
dependencies {
97-
compile 'io.swagger:swagger-annotations:1.5.17'
98-
compile 'com.squareup.okhttp:okhttp:2.7.5'
99-
compile 'com.squareup.okhttp:logging-interceptor:2.7.5'
100-
compile 'com.google.code.gson:gson:2.8.1'
101-
compile 'io.gsonfire:gson-fire:1.8.0'
102-
compile 'org.threeten:threetenbp:1.3.5'
103-
testCompile 'junit:junit:4.12'
151+
signing {
152+
sign publishing.publications.mavenJava
104153
}

build.sbt

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,25 @@ lazy val root = (project in file(".")).
22
settings(
33
organization := "com.launchdarkly",
44
name := "api-client",
5-
version := "5.3.0",
5+
version := "6.0.0",
66
scalaVersion := "2.11.4",
77
scalacOptions ++= Seq("-feature"),
88
javacOptions in compile ++= Seq("-Xlint:deprecation"),
99
publishArtifact in (Compile, packageDoc) := false,
1010
resolvers += Resolver.mavenLocal,
1111
libraryDependencies ++= Seq(
12-
"io.swagger" % "swagger-annotations" % "1.5.17",
13-
"com.squareup.okhttp" % "okhttp" % "2.7.5",
14-
"com.squareup.okhttp" % "logging-interceptor" % "2.7.5",
15-
"com.google.code.gson" % "gson" % "2.8.1",
16-
"org.threeten" % "threetenbp" % "1.3.5" % "compile",
17-
"io.gsonfire" % "gson-fire" % "1.8.0" % "compile",
18-
"junit" % "junit" % "4.12" % "test",
12+
"io.swagger" % "swagger-annotations" % "1.5.24",
13+
"com.squareup.okhttp3" % "okhttp" % "4.9.1",
14+
"com.squareup.okhttp3" % "logging-interceptor" % "4.9.1",
15+
"com.google.code.gson" % "gson" % "2.8.6",
16+
"org.apache.commons" % "commons-lang3" % "3.10",
17+
"org.openapitools" % "jackson-databind-nullable" % "0.2.1",
18+
"org.threeten" % "threetenbp" % "1.4.3" % "compile",
19+
"io.gsonfire" % "gson-fire" % "1.8.3" % "compile",
20+
"javax.annotation" % "javax.annotation-api" % "1.3.2" % "compile",
21+
"com.google.code.findbugs" % "jsr305" % "3.0.2" % "compile",
22+
"javax.annotation" % "javax.annotation-api" % "1.3.2" % "compile",
23+
"junit" % "junit" % "4.13.1" % "test",
1924
"com.novocode" % "junit-interface" % "0.10" % "test"
2025
)
2126
)

docs/AccessDeniedReasonRep.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
2+
3+
# AccessDeniedReasonRep
4+
5+
6+
## Properties
7+
8+
Name | Type | Description | Notes
9+
------------ | ------------- | ------------- | -------------
10+
**resources** | **List<Object>** | | [optional]
11+
**notResources** | **List<Object>** | | [optional]
12+
**actions** | **List<String>** | | [optional]
13+
**notActions** | **List<String>** | | [optional]
14+
**effect** | **String** | |
15+
**roleName** | **String** | | [optional]
16+
17+
18+

docs/AccessDeniedRep.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
3+
# AccessDeniedRep
4+
5+
6+
## Properties
7+
8+
Name | Type | Description | Notes
9+
------------ | ------------- | ------------- | -------------
10+
**action** | **String** | |
11+
**reason** | [**AccessDeniedReasonRep**](AccessDeniedReasonRep.md) | |
12+
13+
14+

0 commit comments

Comments
 (0)