forked from fabric8io/kubernetes-client
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e8c47dc
commit ee364b3
Showing
38 changed files
with
2,208 additions
and
1,039 deletions.
There are no files selected for viewing
39 changes: 39 additions & 0 deletions
39
...rnetes-client/src/main/java/io/fabric8/kubernetes/client/AuthorizationAPIGroupClient.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,39 @@ | ||
/** | ||
* Copyright (C) 2015 Red Hat, Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package io.fabric8.kubernetes.client; | ||
|
||
import io.fabric8.kubernetes.client.dsl.AuthorizationAPIGroupDSL; | ||
import okhttp3.OkHttpClient; | ||
|
||
public class AuthorizationAPIGroupClient extends BaseClient implements AuthorizationAPIGroupDSL { | ||
public AuthorizationAPIGroupClient() { | ||
super(); | ||
} | ||
|
||
public AuthorizationAPIGroupClient(OkHttpClient httpClient, final Config config) { | ||
super(httpClient, config); | ||
} | ||
|
||
@Override | ||
public V1AuthorizationAPIGroupDSL v1() { | ||
return adapt(V1AuthorizationAPIGroupClient.class); | ||
} | ||
|
||
@Override | ||
public V1beta1AuthorizationAPIGroupDSL v1beta1() { | ||
return adapt(V1beta1AuthorizationAPIGroupClient.class); | ||
} | ||
} |
37 changes: 37 additions & 0 deletions
37
...ent/src/main/java/io/fabric8/kubernetes/client/AuthorizationAPIGroupExtensionAdapter.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,37 @@ | ||
/** | ||
* Copyright (C) 2015 Red Hat, Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package io.fabric8.kubernetes.client; | ||
|
||
import okhttp3.OkHttpClient; | ||
|
||
public class AuthorizationAPIGroupExtensionAdapter extends APIGroupExtensionAdapter<AuthorizationAPIGroupClient> { | ||
|
||
@Override | ||
protected String getAPIGroupName() { | ||
return "authorization"; | ||
} | ||
|
||
@Override | ||
public Class<AuthorizationAPIGroupClient> getExtensionType() { | ||
return AuthorizationAPIGroupClient.class; | ||
} | ||
|
||
@Override | ||
protected AuthorizationAPIGroupClient newInstance(Client client) { | ||
return new AuthorizationAPIGroupClient(client.adapt(OkHttpClient.class), client.getConfiguration()); | ||
} | ||
|
||
} |
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
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
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
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
62 changes: 62 additions & 0 deletions
62
...etes-client/src/main/java/io/fabric8/kubernetes/client/V1AuthorizationAPIGroupClient.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,62 @@ | ||
/** | ||
* Copyright (C) 2015 Red Hat, Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package io.fabric8.kubernetes.client; | ||
|
||
import io.fabric8.kubernetes.api.model.authorization.v1.DoneableLocalSubjectAccessReview; | ||
import io.fabric8.kubernetes.api.model.authorization.v1.DoneableSelfSubjectAccessReview; | ||
import io.fabric8.kubernetes.api.model.authorization.v1.DoneableSelfSubjectRulesReview; | ||
import io.fabric8.kubernetes.api.model.authorization.v1.DoneableSubjectAccessReview; | ||
import io.fabric8.kubernetes.api.model.authorization.v1.LocalSubjectAccessReview; | ||
import io.fabric8.kubernetes.api.model.authorization.v1.SelfSubjectAccessReview; | ||
import io.fabric8.kubernetes.api.model.authorization.v1.SelfSubjectRulesReview; | ||
import io.fabric8.kubernetes.api.model.authorization.v1.SubjectAccessReview; | ||
import io.fabric8.kubernetes.client.dsl.internal.LocalSubjectAccessReviewOperationsImpl; | ||
import io.fabric8.kubernetes.client.dsl.internal.SubjectAccessOperationsImpl; | ||
import io.fabric8.kubernetes.client.utils.Utils; | ||
import okhttp3.OkHttpClient; | ||
|
||
public class V1AuthorizationAPIGroupClient extends BaseClient implements V1AuthorizationAPIGroupDSL { | ||
public static final String AUTHORIZATION_APIGROUP = "authorization.k8s.io"; | ||
public static final String AUTHORIZATION_APIVERSION = "v1"; | ||
|
||
public V1AuthorizationAPIGroupClient() { | ||
super(); | ||
} | ||
|
||
public V1AuthorizationAPIGroupClient(OkHttpClient httpClient, final Config config) { | ||
super(httpClient, config); | ||
} | ||
|
||
@Override | ||
public SubjectAccessOperations<SelfSubjectAccessReview, DoneableSelfSubjectAccessReview> selfSubjectAccessReview() { | ||
return new SubjectAccessOperationsImpl<>(getHttpClient(), getConfiguration(), AUTHORIZATION_APIGROUP, AUTHORIZATION_APIVERSION, Utils.getPluralFromKind(io.fabric8.kubernetes.api.model.authorization.v1beta1.SelfSubjectAccessReview.class.getSimpleName()), SelfSubjectAccessReview.class); | ||
} | ||
|
||
@Override | ||
public SubjectAccessOperations<SubjectAccessReview, DoneableSubjectAccessReview> subjectAccessReview() { | ||
return new SubjectAccessOperationsImpl<>(getHttpClient(), getConfiguration(), AUTHORIZATION_APIGROUP, AUTHORIZATION_APIVERSION, Utils.getPluralFromKind(io.fabric8.kubernetes.api.model.authorization.v1beta1.SubjectAccessReview.class.getSimpleName()), SubjectAccessReview.class); | ||
} | ||
|
||
@Override | ||
public LocalSubjectAccessReviewOperationsImpl<LocalSubjectAccessReview, DoneableLocalSubjectAccessReview> localSubjectAccessReview() { | ||
return new LocalSubjectAccessReviewOperationsImpl<>(getHttpClient(), getConfiguration(), AUTHORIZATION_APIGROUP, AUTHORIZATION_APIVERSION, Utils.getPluralFromKind(io.fabric8.kubernetes.api.model.authorization.v1beta1.LocalSubjectAccessReview.class.getSimpleName()), LocalSubjectAccessReview.class); | ||
} | ||
|
||
@Override | ||
public SubjectAccessOperations<SelfSubjectRulesReview, DoneableSelfSubjectRulesReview> selfSubjectRulesReview() { | ||
return new SubjectAccessOperationsImpl<>(getHttpClient(), getConfiguration(), AUTHORIZATION_APIGROUP, AUTHORIZATION_APIVERSION, Utils.getPluralFromKind(io.fabric8.kubernetes.api.model.authorization.v1beta1.SelfSubjectRulesReview.class.getSimpleName()), SelfSubjectRulesReview.class); | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
kubernetes-client/src/main/java/io/fabric8/kubernetes/client/V1AuthorizationAPIGroupDSL.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,33 @@ | ||
/** | ||
* Copyright (C) 2015 Red Hat, Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package io.fabric8.kubernetes.client; | ||
|
||
import io.fabric8.kubernetes.api.model.authorization.v1.DoneableLocalSubjectAccessReview; | ||
import io.fabric8.kubernetes.api.model.authorization.v1.DoneableSelfSubjectAccessReview; | ||
import io.fabric8.kubernetes.api.model.authorization.v1.DoneableSelfSubjectRulesReview; | ||
import io.fabric8.kubernetes.api.model.authorization.v1.DoneableSubjectAccessReview; | ||
import io.fabric8.kubernetes.api.model.authorization.v1.LocalSubjectAccessReview; | ||
import io.fabric8.kubernetes.api.model.authorization.v1.SelfSubjectAccessReview; | ||
import io.fabric8.kubernetes.api.model.authorization.v1.SelfSubjectRulesReview; | ||
import io.fabric8.kubernetes.api.model.authorization.v1.SubjectAccessReview; | ||
import io.fabric8.kubernetes.client.dsl.internal.LocalSubjectAccessReviewOperationsImpl; | ||
|
||
public interface V1AuthorizationAPIGroupDSL extends Client{ | ||
SubjectAccessOperations<SelfSubjectAccessReview, DoneableSelfSubjectAccessReview> selfSubjectAccessReview(); | ||
SubjectAccessOperations<SubjectAccessReview, DoneableSubjectAccessReview> subjectAccessReview(); | ||
LocalSubjectAccessReviewOperationsImpl<LocalSubjectAccessReview, DoneableLocalSubjectAccessReview> localSubjectAccessReview(); | ||
SubjectAccessOperations<SelfSubjectRulesReview, DoneableSelfSubjectRulesReview> selfSubjectRulesReview(); | ||
} |
35 changes: 35 additions & 0 deletions
35
...t/src/main/java/io/fabric8/kubernetes/client/V1AuthorizationAPIGroupExtensionAdapter.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,35 @@ | ||
/** | ||
* Copyright (C) 2015 Red Hat, Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package io.fabric8.kubernetes.client; | ||
|
||
import okhttp3.OkHttpClient; | ||
|
||
public class V1AuthorizationAPIGroupExtensionAdapter extends APIGroupExtensionAdapter<V1AuthorizationAPIGroupClient> { | ||
@Override | ||
protected String getAPIGroupName() { | ||
return "authorization/v1"; | ||
} | ||
|
||
@Override | ||
public Class<V1AuthorizationAPIGroupClient> getExtensionType() { | ||
return V1AuthorizationAPIGroupClient.class; | ||
} | ||
|
||
@Override | ||
protected V1AuthorizationAPIGroupClient newInstance(Client client) { | ||
return new V1AuthorizationAPIGroupClient(client.adapt(OkHttpClient.class), client.getConfiguration()); | ||
} | ||
} |
63 changes: 63 additions & 0 deletions
63
...client/src/main/java/io/fabric8/kubernetes/client/V1beta1AuthorizationAPIGroupClient.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,63 @@ | ||
/** | ||
* Copyright (C) 2015 Red Hat, Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package io.fabric8.kubernetes.client; | ||
|
||
import io.fabric8.kubernetes.api.model.authorization.v1beta1.DoneableLocalSubjectAccessReview; | ||
import io.fabric8.kubernetes.api.model.authorization.v1beta1.DoneableSelfSubjectAccessReview; | ||
import io.fabric8.kubernetes.api.model.authorization.v1beta1.DoneableSelfSubjectRulesReview; | ||
import io.fabric8.kubernetes.api.model.authorization.v1beta1.DoneableSubjectAccessReview; | ||
import io.fabric8.kubernetes.api.model.authorization.v1beta1.LocalSubjectAccessReview; | ||
import io.fabric8.kubernetes.api.model.authorization.v1beta1.SelfSubjectAccessReview; | ||
import io.fabric8.kubernetes.api.model.authorization.v1beta1.SelfSubjectRulesReview; | ||
import io.fabric8.kubernetes.api.model.authorization.v1beta1.SubjectAccessReview; | ||
import io.fabric8.kubernetes.client.dsl.internal.LocalSubjectAccessReviewOperationsImpl; | ||
import io.fabric8.kubernetes.client.dsl.internal.SubjectAccessOperationsImpl; | ||
import io.fabric8.kubernetes.client.utils.Utils; | ||
import okhttp3.OkHttpClient; | ||
|
||
public class V1beta1AuthorizationAPIGroupClient extends BaseClient implements V1beta1AuthorizationAPIGroupDSL { | ||
|
||
public static final String AUTHORIZATION_APIGROUP = "authorization.k8s.io"; | ||
public static final String AUTHORIZATION_APIVERSION = "v1beta1"; | ||
|
||
public V1beta1AuthorizationAPIGroupClient() { | ||
super(); | ||
} | ||
|
||
public V1beta1AuthorizationAPIGroupClient(OkHttpClient httpClient, final Config config) { | ||
super(httpClient, config); | ||
} | ||
|
||
@Override | ||
public SubjectAccessOperations<SelfSubjectAccessReview, DoneableSelfSubjectAccessReview> selfSubjectAccessReview() { | ||
return new SubjectAccessOperationsImpl<>(getHttpClient(), getConfiguration(), AUTHORIZATION_APIGROUP, AUTHORIZATION_APIVERSION, Utils.getPluralFromKind(SelfSubjectAccessReview.class.getSimpleName()), SelfSubjectAccessReview.class); | ||
} | ||
|
||
@Override | ||
public SubjectAccessOperations<SubjectAccessReview, DoneableSubjectAccessReview> subjectAccessReview() { | ||
return new SubjectAccessOperationsImpl<>(getHttpClient(), getConfiguration(), AUTHORIZATION_APIGROUP, AUTHORIZATION_APIVERSION, Utils.getPluralFromKind(SubjectAccessReview.class.getSimpleName()), SubjectAccessReview.class); | ||
} | ||
|
||
@Override | ||
public LocalSubjectAccessReviewOperationsImpl<LocalSubjectAccessReview, DoneableLocalSubjectAccessReview> localSubjectAccessReview() { | ||
return new LocalSubjectAccessReviewOperationsImpl<>(getHttpClient(), getConfiguration(), AUTHORIZATION_APIGROUP, AUTHORIZATION_APIVERSION, Utils.getPluralFromKind(LocalSubjectAccessReview.class.getSimpleName()), LocalSubjectAccessReview.class); | ||
} | ||
|
||
@Override | ||
public SubjectAccessOperations<SelfSubjectRulesReview, DoneableSelfSubjectRulesReview> selfSubjectRulesReview() { | ||
return new SubjectAccessOperationsImpl<>(getHttpClient(), getConfiguration(), AUTHORIZATION_APIGROUP, AUTHORIZATION_APIVERSION, Utils.getPluralFromKind(SelfSubjectRulesReview.class.getSimpleName()), SelfSubjectRulesReview.class); | ||
} | ||
} |
Oops, something went wrong.