Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.kubernetes.apiregistration.v1beta1.inputs.APIServiceSpecArgs Maven / Gradle / Ivy
Go to download
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.inputs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import com.pulumi.kubernetes.apiregistration.v1beta1.inputs.ServiceReferenceArgs;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* APIServiceSpec contains information for locating and communicating with a server. Only https is supported, though you are able to disable certificate verification.
*
*/
public final class APIServiceSpecArgs extends com.pulumi.resources.ResourceArgs {
public static final APIServiceSpecArgs Empty = new APIServiceSpecArgs();
/**
* 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.
*
*/
@Import(name="caBundle")
private @Nullable Output caBundle;
/**
* @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);
}
/**
* Group is the API group name this server hosts
*
*/
@Import(name="group")
private @Nullable Output group;
/**
* @return Group is the API group name this server hosts
*
*/
public Optional> group() {
return Optional.ofNullable(this.group);
}
/**
* 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
*
*/
@Import(name="groupPriorityMinimum", required=true)
private Output groupPriorityMinimum;
/**
* @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 Output groupPriorityMinimum() {
return this.groupPriorityMinimum;
}
/**
* InsecureSkipTLSVerify disables TLS certificate verification when communicating with this server. This is strongly discouraged. You should use the CABundle instead.
*
*/
@Import(name="insecureSkipTLSVerify")
private @Nullable Output insecureSkipTLSVerify;
/**
* @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);
}
/**
* 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.
*
*/
@Import(name="service", required=true)
private Output service;
/**
* @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 Output service() {
return this.service;
}
/**
* Version is the API version this server hosts. For example, "v1"
*
*/
@Import(name="version")
private @Nullable Output version;
/**
* @return Version is the API version this server hosts. For example, "v1"
*
*/
public Optional> version() {
return Optional.ofNullable(this.version);
}
/**
* 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.
*
*/
@Import(name="versionPriority", required=true)
private Output versionPriority;
/**
* @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 Output versionPriority() {
return this.versionPriority;
}
private APIServiceSpecArgs() {}
private APIServiceSpecArgs(APIServiceSpecArgs $) {
this.caBundle = $.caBundle;
this.group = $.group;
this.groupPriorityMinimum = $.groupPriorityMinimum;
this.insecureSkipTLSVerify = $.insecureSkipTLSVerify;
this.service = $.service;
this.version = $.version;
this.versionPriority = $.versionPriority;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(APIServiceSpecArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private APIServiceSpecArgs $;
public Builder() {
$ = new APIServiceSpecArgs();
}
public Builder(APIServiceSpecArgs defaults) {
$ = new APIServiceSpecArgs(Objects.requireNonNull(defaults));
}
/**
* @param caBundle 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.
*
* @return builder
*
*/
public Builder caBundle(@Nullable Output caBundle) {
$.caBundle = caBundle;
return this;
}
/**
* @param caBundle 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.
*
* @return builder
*
*/
public Builder caBundle(String caBundle) {
return caBundle(Output.of(caBundle));
}
/**
* @param group Group is the API group name this server hosts
*
* @return builder
*
*/
public Builder group(@Nullable Output group) {
$.group = group;
return this;
}
/**
* @param group Group is the API group name this server hosts
*
* @return builder
*
*/
public Builder group(String group) {
return group(Output.of(group));
}
/**
* @param groupPriorityMinimum 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
*
* @return builder
*
*/
public Builder groupPriorityMinimum(Output groupPriorityMinimum) {
$.groupPriorityMinimum = groupPriorityMinimum;
return this;
}
/**
* @param groupPriorityMinimum 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
*
* @return builder
*
*/
public Builder groupPriorityMinimum(Integer groupPriorityMinimum) {
return groupPriorityMinimum(Output.of(groupPriorityMinimum));
}
/**
* @param insecureSkipTLSVerify InsecureSkipTLSVerify disables TLS certificate verification when communicating with this server. This is strongly discouraged. You should use the CABundle instead.
*
* @return builder
*
*/
public Builder insecureSkipTLSVerify(@Nullable Output insecureSkipTLSVerify) {
$.insecureSkipTLSVerify = insecureSkipTLSVerify;
return this;
}
/**
* @param insecureSkipTLSVerify InsecureSkipTLSVerify disables TLS certificate verification when communicating with this server. This is strongly discouraged. You should use the CABundle instead.
*
* @return builder
*
*/
public Builder insecureSkipTLSVerify(Boolean insecureSkipTLSVerify) {
return insecureSkipTLSVerify(Output.of(insecureSkipTLSVerify));
}
/**
* @param service 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.
*
* @return builder
*
*/
public Builder service(Output service) {
$.service = service;
return this;
}
/**
* @param service 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.
*
* @return builder
*
*/
public Builder service(ServiceReferenceArgs service) {
return service(Output.of(service));
}
/**
* @param version Version is the API version this server hosts. For example, "v1"
*
* @return builder
*
*/
public Builder version(@Nullable Output version) {
$.version = version;
return this;
}
/**
* @param version Version is the API version this server hosts. For example, "v1"
*
* @return builder
*
*/
public Builder version(String version) {
return version(Output.of(version));
}
/**
* @param versionPriority 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.
*
* @return builder
*
*/
public Builder versionPriority(Output versionPriority) {
$.versionPriority = versionPriority;
return this;
}
/**
* @param versionPriority 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.
*
* @return builder
*
*/
public Builder versionPriority(Integer versionPriority) {
return versionPriority(Output.of(versionPriority));
}
public APIServiceSpecArgs build() {
if ($.groupPriorityMinimum == null) {
throw new MissingRequiredPropertyException("APIServiceSpecArgs", "groupPriorityMinimum");
}
if ($.service == null) {
throw new MissingRequiredPropertyException("APIServiceSpecArgs", "service");
}
if ($.versionPriority == null) {
throw new MissingRequiredPropertyException("APIServiceSpecArgs", "versionPriority");
}
return $;
}
}
}