Skip to content
This repository has been archived by the owner on Oct 26, 2021. It is now read-only.

Commit

Permalink
Updated to sdks
Browse files Browse the repository at this point in the history
  • Loading branch information
alexec committed Feb 25, 2020
1 parent d8d4a10 commit 561ea1f
Show file tree
Hide file tree
Showing 121 changed files with 16,885 additions and 1 deletion.
21 changes: 21 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
*.class

# Mobile Tools for Java (J2ME)
.mtj.tmp/

# Package Files #
*.jar
*.war
*.ear

# exclude jar for gradle wrapper
!gradle/wrapper/*.jar

# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*

# build files
**/target
target
.gradle
build
23 changes: 23 additions & 0 deletions .openapi-generator-ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# 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 change: 1 addition & 0 deletions .openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
4.2.3
22 changes: 22 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#
# Generated by OpenAPI Generator: https://openapi-generator.tech
#
# Ref: https://docs.travis-ci.com/user/languages/java/
#
language: java
jdk:
- openjdk12
- openjdk11
- openjdk10
- openjdk9
- openjdk8
before_install:
# ensure gradlew has proper permission
- chmod a+x ./gradlew
script:
# test using maven
#- mvn test
# test using gradle
- gradle test
# test using sbt
# - sbt test
145 changes: 144 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,144 @@
# argo-client-java
# argo-client-java

Argo
- API version: v2.4.0

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)


*Automatically generated by the [OpenAPI Generator](https://openapi-generator.tech)*


## Requirements

Building the API client library requires:
1. Java 1.7+
2. Maven/Gradle

## Installation

To install the API client library to your local Maven repository, simply execute:

```shell
mvn clean install
```

To deploy it to a remote Maven repository instead, configure the settings of the repository and execute:

```shell
mvn clean deploy
```

Refer to the [OSSRH Guide](http://central.sonatype.org/pages/ossrh-guide.html) for more information.

### Maven users

Add this dependency to your project's POM:

```xml
<dependency>
<groupId>io.argoproj.workflow</groupId>
<artifactId>argo-client-java</artifactId>
<version>sdks</version>
<scope>compile</scope>
</dependency>
```

### Gradle users

Add this dependency to your project's build file:

```groovy
compile "io.argoproj.workflow:argo-client-java:sdks"
```

### Others

At first generate the JAR by executing:

```shell
mvn clean package
```

Then manually install the following JARs:

* `target/argo-client-java-sdks.jar`
* `target/lib/*.jar`

## Getting Started

Please follow the [installation](#installation) instruction and execute the following Java code:

```java

```

## Documentation for API Endpoints

All URIs are relative to *http://localhost*

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------


## Documentation for Models

- [ArchiveStrategy](docs/ArchiveStrategy.md)
- [Arguments](docs/Arguments.md)
- [Artifact](docs/Artifact.md)
- [ArtifactLocation](docs/ArtifactLocation.md)
- [ArtifactRepositoryRef](docs/ArtifactRepositoryRef.md)
- [ArtifactoryArtifact](docs/ArtifactoryArtifact.md)
- [ArtifactoryAuth](docs/ArtifactoryAuth.md)
- [Backoff](docs/Backoff.md)
- [ContinueOn](docs/ContinueOn.md)
- [DAGTask](docs/DAGTask.md)
- [DAGTemplate](docs/DAGTemplate.md)
- [ExecutorConfig](docs/ExecutorConfig.md)
- [GitArtifact](docs/GitArtifact.md)
- [HDFSArtifact](docs/HDFSArtifact.md)
- [HDFSConfig](docs/HDFSConfig.md)
- [HDFSKrbConfig](docs/HDFSKrbConfig.md)
- [HTTPArtifact](docs/HTTPArtifact.md)
- [Inputs](docs/Inputs.md)
- [ItemValue](docs/ItemValue.md)
- [Metadata](docs/Metadata.md)
- [NodeStatus](docs/NodeStatus.md)
- [Outputs](docs/Outputs.md)
- [ParallelSteps](docs/ParallelSteps.md)
- [Parameter](docs/Parameter.md)
- [PodGC](docs/PodGC.md)
- [RawArtifact](docs/RawArtifact.md)
- [ResourceTemplate](docs/ResourceTemplate.md)
- [RetryStrategy](docs/RetryStrategy.md)
- [S3Artifact](docs/S3Artifact.md)
- [S3Bucket](docs/S3Bucket.md)
- [ScriptTemplate](docs/ScriptTemplate.md)
- [Sequence](docs/Sequence.md)
- [SuspendTemplate](docs/SuspendTemplate.md)
- [Template](docs/Template.md)
- [TemplateRef](docs/TemplateRef.md)
- [UserContainer](docs/UserContainer.md)
- [ValueFrom](docs/ValueFrom.md)
- [Workflow](docs/Workflow.md)
- [WorkflowList](docs/WorkflowList.md)
- [WorkflowSpec](docs/WorkflowSpec.md)
- [WorkflowStatus](docs/WorkflowStatus.md)
- [WorkflowStep](docs/WorkflowStep.md)
- [WorkflowTemplate](docs/WorkflowTemplate.md)
- [WorkflowTemplateList](docs/WorkflowTemplateList.md)
- [WorkflowTemplateSpec](docs/WorkflowTemplateSpec.md)


## Documentation for Authorization

All endpoints do not require authorization.
Authentication schemes defined for the API:

## Recommendation

It's recommended to create an instance of `ApiClient` per thread in a multithreaded environment to avoid any potential issues.

## Author


114 changes: 114 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'java'

group = 'io.argoproj.workflow'
version = 'sdks'

buildscript {
repositories {
maven { url "https://repo1.maven.org/maven2" }
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.+'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
}
}

repositories {
jcenter()
}
sourceSets {
main.java.srcDirs = ['src/main/java']
}

if(hasProperty('target') && target == 'android') {

apply plugin: 'com.android.library'
apply plugin: 'com.github.dcendents.android-maven'

android {
compileSdkVersion 25
buildToolsVersion '25.0.2'
defaultConfig {
minSdkVersion 14
targetSdkVersion 25
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}

// Rename the aar correctly
libraryVariants.all { variant ->
variant.outputs.each { output ->
def outputFile = output.outputFile
if (outputFile != null && outputFile.name.endsWith('.aar')) {
def fileName = "${project.name}-${variant.baseName}-${version}.aar"
output.outputFile = new File(outputFile.parent, fileName)
}
}
}

dependencies {
provided 'javax.annotation:jsr250-api:1.0'
}
}

afterEvaluate {
android.libraryVariants.all { variant ->
def task = project.tasks.create "jar${variant.name.capitalize()}", Jar
task.description = "Create jar artifact for ${variant.name}"
task.dependsOn variant.javaCompile
task.from variant.javaCompile.destinationDir
task.destinationDir = project.file("${project.buildDir}/outputs/jar")
task.archiveName = "${project.name}-${variant.baseName}-${version}.jar"
artifacts.add('archives', task);
}
}

task sourcesJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
classifier = 'sources'
}

artifacts {
archives sourcesJar
}

} else {

apply plugin: 'java'
apply plugin: 'maven'

sourceCompatibility = JavaVersion.VERSION_1_7
targetCompatibility = JavaVersion.VERSION_1_7

install {
repositories.mavenInstaller {
pom.artifactId = 'argo-client-java'
}
}

task execute(type:JavaExec) {
main = System.getProperty('mainClass')
classpath = sourceSets.main.runtimeClasspath
}
}

dependencies {
compile 'io.swagger:swagger-annotations:1.5.22'
compile "com.google.code.findbugs:jsr305:3.0.2"
compile 'com.squareup.okhttp3:okhttp:3.14.2'
compile 'com.squareup.okhttp3:logging-interceptor:3.14.2'
compile 'com.google.code.gson:gson:2.8.5'
compile 'io.gsonfire:gson-fire:1.8.3'
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.9'
compile 'joda-time:joda-time:2.9.9'
testCompile 'junit:junit:4.13'
}

javadoc {
options.tags = [ "http.response.details:a:Http Response Details" ]
}
23 changes: 23 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
lazy val root = (project in file(".")).
settings(
organization := "io.argoproj.workflow",
name := "argo-client-java",
version := "sdks",
scalaVersion := "2.11.4",
scalacOptions ++= Seq("-feature"),
javacOptions in compile ++= Seq("-Xlint:deprecation"),
publishArtifact in (Compile, packageDoc) := false,
resolvers += Resolver.mavenLocal,
libraryDependencies ++= Seq(
"io.swagger" % "swagger-annotations" % "1.5.22",
"com.squareup.okhttp3" % "okhttp" % "3.14.2",
"com.squareup.okhttp3" % "logging-interceptor" % "3.14.2",
"com.google.code.gson" % "gson" % "2.8.5",
"org.apache.commons" % "commons-lang3" % "3.9",
"joda-time" % "joda-time" % "2.9.9" % "compile",
"io.gsonfire" % "gson-fire" % "1.8.3" % "compile",
"javax.annotation" % "jsr250-api" % "1.0" % "compile",
"junit" % "junit" % "4.13" % "test",
"com.novocode" % "junit-interface" % "0.10" % "test"
)
)
14 changes: 14 additions & 0 deletions docs/ArchiveStrategy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@


# ArchiveStrategy

ArchiveStrategy describes how to archive files/directory when saving artifacts
## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**none** | [**Object**](.md) | NoneStrategy indicates to skip tar process and upload the files or directory tree as independent files. Note that if the artifact is a directory, the artifact driver must support the ability to save/load the directory appropriately. | [optional]
**tar** | [**Object**](.md) | TarStrategy will tar and gzip the file or directory when saving | [optional]



14 changes: 14 additions & 0 deletions docs/Arguments.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@


# Arguments

Arguments to a template
## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**artifacts** | [**List&lt;Artifact&gt;**](Artifact.md) | Artifacts is the list of artifacts to pass to the template or workflow | [optional]
**parameters** | [**List&lt;Parameter&gt;**](Parameter.md) | Parameters is the list of parameters to pass to the template or workflow | [optional]



Loading

0 comments on commit 561ea1f

Please sign in to comment.