com.pulumi.kubernetes.apiregistration.v1beta1.outputs.APIServiceSpec Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kubernetes Show documentation
Show all versions of kubernetes Show documentation
A Pulumi package for creating and managing Kubernetes resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.kubernetes.apiregistration.v1beta1.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import com.pulumi.kubernetes.apiregistration.v1beta1.outputs.ServiceReference;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class APIServiceSpec {
/**
* @return CABundle is a PEM encoded CA bundle which will be used to validate an API server's serving certificate. If unspecified, system trust roots on the apiserver are used.
*
*/
private @Nullable String caBundle;
/**
* @return Group is the API group name this server hosts
*
*/
private @Nullable String group;
/**
* @return GroupPriorityMininum is the priority this group should have at least. Higher priority means that the group is preferred by clients over lower priority ones. Note that other versions of this group might specify even higher GroupPriorityMininum values such that the whole group gets a higher priority. The primary sort is based on GroupPriorityMinimum, ordered highest number to lowest (20 before 10). The secondary sort is based on the alphabetical comparison of the name of the object. (v1.bar before v1.foo) We'd recommend something like: *.k8s.io (except extensions) at 18000 and PaaSes (OpenShift, Deis) are recommended to be in the 2000s
*
*/
private Integer groupPriorityMinimum;
/**
* @return InsecureSkipTLSVerify disables TLS certificate verification when communicating with this server. This is strongly discouraged. You should use the CABundle instead.
*
*/
private @Nullable Boolean insecureSkipTLSVerify;
/**
* @return Service is a reference to the service for this API server. It must communicate on port 443 If the Service is nil, that means the handling for the API groupversion is handled locally on this server. The call will simply delegate to the normal handler chain to be fulfilled.
*
*/
private ServiceReference service;
/**
* @return Version is the API version this server hosts. For example, "v1"
*
*/
private @Nullable String version;
/**
* @return VersionPriority controls the ordering of this API version inside of its group. Must be greater than zero. The primary sort is based on VersionPriority, ordered highest to lowest (20 before 10). Since it's inside of a group, the number can be small, probably in the 10s. In case of equal version priorities, the version string will be used to compute the order inside a group. If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version), then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.
*
*/
private Integer versionPriority;
private APIServiceSpec() {}
/**
* @return CABundle is a PEM encoded CA bundle which will be used to validate an API server's serving certificate. If unspecified, system trust roots on the apiserver are used.
*
*/
public Optional caBundle() {
return Optional.ofNullable(this.caBundle);
}
/**
* @return Group is the API group name this server hosts
*
*/
public Optional group() {
return Optional.ofNullable(this.group);
}
/**
* @return GroupPriorityMininum is the priority this group should have at least. Higher priority means that the group is preferred by clients over lower priority ones. Note that other versions of this group might specify even higher GroupPriorityMininum values such that the whole group gets a higher priority. The primary sort is based on GroupPriorityMinimum, ordered highest number to lowest (20 before 10). The secondary sort is based on the alphabetical comparison of the name of the object. (v1.bar before v1.foo) We'd recommend something like: *.k8s.io (except extensions) at 18000 and PaaSes (OpenShift, Deis) are recommended to be in the 2000s
*
*/
public Integer groupPriorityMinimum() {
return this.groupPriorityMinimum;
}
/**
* @return InsecureSkipTLSVerify disables TLS certificate verification when communicating with this server. This is strongly discouraged. You should use the CABundle instead.
*
*/
public Optional insecureSkipTLSVerify() {
return Optional.ofNullable(this.insecureSkipTLSVerify);
}
/**
* @return Service is a reference to the service for this API server. It must communicate on port 443 If the Service is nil, that means the handling for the API groupversion is handled locally on this server. The call will simply delegate to the normal handler chain to be fulfilled.
*
*/
public ServiceReference service() {
return this.service;
}
/**
* @return Version is the API version this server hosts. For example, "v1"
*
*/
public Optional version() {
return Optional.ofNullable(this.version);
}
/**
* @return VersionPriority controls the ordering of this API version inside of its group. Must be greater than zero. The primary sort is based on VersionPriority, ordered highest to lowest (20 before 10). Since it's inside of a group, the number can be small, probably in the 10s. In case of equal version priorities, the version string will be used to compute the order inside a group. If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version), then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.
*
*/
public Integer versionPriority() {
return this.versionPriority;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(APIServiceSpec defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String caBundle;
private @Nullable String group;
private Integer groupPriorityMinimum;
private @Nullable Boolean insecureSkipTLSVerify;
private ServiceReference service;
private @Nullable String version;
private Integer versionPriority;
public Builder() {}
public Builder(APIServiceSpec defaults) {
Objects.requireNonNull(defaults);
this.caBundle = defaults.caBundle;
this.group = defaults.group;
this.groupPriorityMinimum = defaults.groupPriorityMinimum;
this.insecureSkipTLSVerify = defaults.insecureSkipTLSVerify;
this.service = defaults.service;
this.version = defaults.version;
this.versionPriority = defaults.versionPriority;
}
@CustomType.Setter
public Builder caBundle(@Nullable String caBundle) {
this.caBundle = caBundle;
return this;
}
@CustomType.Setter
public Builder group(@Nullable String group) {
this.group = group;
return this;
}
@CustomType.Setter
public Builder groupPriorityMinimum(Integer groupPriorityMinimum) {
if (groupPriorityMinimum == null) {
throw new MissingRequiredPropertyException("APIServiceSpec", "groupPriorityMinimum");
}
this.groupPriorityMinimum = groupPriorityMinimum;
return this;
}
@CustomType.Setter
public Builder insecureSkipTLSVerify(@Nullable Boolean insecureSkipTLSVerify) {
this.insecureSkipTLSVerify = insecureSkipTLSVerify;
return this;
}
@CustomType.Setter
public Builder service(ServiceReference service) {
if (service == null) {
throw new MissingRequiredPropertyException("APIServiceSpec", "service");
}
this.service = service;
return this;
}
@CustomType.Setter
public Builder version(@Nullable String version) {
this.version = version;
return this;
}
@CustomType.Setter
public Builder versionPriority(Integer versionPriority) {
if (versionPriority == null) {
throw new MissingRequiredPropertyException("APIServiceSpec", "versionPriority");
}
this.versionPriority = versionPriority;
return this;
}
public APIServiceSpec build() {
final var _resultValue = new APIServiceSpec();
_resultValue.caBundle = caBundle;
_resultValue.group = group;
_resultValue.groupPriorityMinimum = groupPriorityMinimum;
_resultValue.insecureSkipTLSVerify = insecureSkipTLSVerify;
_resultValue.service = service;
_resultValue.version = version;
_resultValue.versionPriority = versionPriority;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy