Skip to content

Commit

Permalink
Automated openapi generation from release-1.28
Browse files Browse the repository at this point in the history
Signed-off-by: Kubernetes Prow Robot <[email protected]>
  • Loading branch information
Kubernetes Prow Robot authored and yue9944882 committed Jan 8, 2024
1 parent 6488f23 commit 6934cf0
Show file tree
Hide file tree
Showing 1,199 changed files with 126,699 additions and 45,168 deletions.
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);
}


}
30 changes: 30 additions & 0 deletions kubernetes/.github/workflows/maven.yml
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
Loading

0 comments on commit 6934cf0

Please sign in to comment.