-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automated openapi generation from release-1.28
Signed-off-by: Kubernetes Prow Robot <[email protected]>
- Loading branch information
1 parent
6488f23
commit 6934cf0
Showing
1,199 changed files
with
126,699 additions
and
45,168 deletions.
There are no files selected for viewing
83 changes: 83 additions & 0 deletions
83
fluent/src/main/java/io/kubernetes/client/openapi/models/AbstractOpenApiSchemaFluent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
package io.kubernetes.client.openapi.models; | ||
|
||
import java.lang.SuppressWarnings; | ||
import io.kubernetes.client.fluent.BaseFluent; | ||
import java.lang.Object; | ||
import java.lang.String; | ||
import java.lang.Boolean; | ||
|
||
/** | ||
* Generated | ||
*/ | ||
@SuppressWarnings("unchecked") | ||
public class AbstractOpenApiSchemaFluent<A extends AbstractOpenApiSchemaFluent<A>> extends BaseFluent<A>{ | ||
public AbstractOpenApiSchemaFluent() { | ||
} | ||
|
||
public AbstractOpenApiSchemaFluent(AbstractOpenApiSchema instance) { | ||
this.copyInstance(instance); | ||
} | ||
private Boolean isNullable; | ||
private String schemaType; | ||
|
||
protected void copyInstance(AbstractOpenApiSchema instance) { | ||
if (instance != null) { | ||
this.withSchemaType(instance.getSchemaType()); | ||
} | ||
} | ||
|
||
public Boolean getIsNullable() { | ||
return this.isNullable; | ||
} | ||
|
||
public A withIsNullable(Boolean isNullable) { | ||
this.isNullable = isNullable; | ||
return (A) this; | ||
} | ||
|
||
public boolean hasIsNullable() { | ||
return this.isNullable != null; | ||
} | ||
|
||
public String getSchemaType() { | ||
return this.schemaType; | ||
} | ||
|
||
public A withSchemaType(String schemaType) { | ||
this.schemaType = schemaType; | ||
return (A) this; | ||
} | ||
|
||
public boolean hasSchemaType() { | ||
return this.schemaType != null; | ||
} | ||
|
||
public boolean equals(Object o) { | ||
if (this == o) return true; | ||
if (o == null || getClass() != o.getClass()) return false; | ||
if (!super.equals(o)) return false; | ||
AbstractOpenApiSchemaFluent that = (AbstractOpenApiSchemaFluent) o; | ||
if (!java.util.Objects.equals(isNullable, that.isNullable)) return false; | ||
if (!java.util.Objects.equals(schemaType, that.schemaType)) return false; | ||
return true; | ||
} | ||
|
||
public int hashCode() { | ||
return java.util.Objects.hash(isNullable, schemaType, super.hashCode()); | ||
} | ||
|
||
public String toString() { | ||
StringBuilder sb = new StringBuilder(); | ||
sb.append("{"); | ||
if (isNullable != null) { sb.append("isNullable:"); sb.append(isNullable + ","); } | ||
if (schemaType != null) { sb.append("schemaType:"); sb.append(schemaType); } | ||
sb.append("}"); | ||
return sb.toString(); | ||
} | ||
|
||
public A withIsNullable() { | ||
return withIsNullable(true); | ||
} | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven | ||
# | ||
# This file is auto-generated by OpenAPI Generator (https://openapi-generator.tech) | ||
|
||
name: Java CI with Maven | ||
|
||
on: | ||
push: | ||
branches: [ main, master ] | ||
pull_request: | ||
branches: [ main, master ] | ||
|
||
jobs: | ||
build: | ||
name: Build Kubernetes | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
java: [ '8' ] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up JDK | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: ${{ matrix.java }} | ||
distribution: 'temurin' | ||
cache: maven | ||
- name: Build with Maven | ||
run: mvn -B package --no-transfer-progress --file pom.xml |
Oops, something went wrong.