Package io.fabric8.kubernetes.api.model
Class APIGroup
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.APIGroup
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<APIGroupBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class APIGroup extends Object implements io.fabric8.kubernetes.api.builder.Editable<APIGroupBuilder>, KubernetesResource
APIGroup contains the name, the supported versions, and the preferred version of a group.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description APIGroup()No args constructor for use in serializationAPIGroup(String apiVersion, String kind, String name, GroupVersionForDiscovery preferredVersion, List<ServerAddressByClientCIDR> serverAddressByClientCIDRs, List<GroupVersionForDiscovery> versions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description APIGroupBuilderedit()Map<String,Object>getAdditionalProperties()StringgetApiVersion()APIVersion defines the versioned schema of this representation of an object.StringgetKind()Kind is a string value representing the REST resource this object represents.StringgetName()name is the name of the group.GroupVersionForDiscoverygetPreferredVersion()APIGroup contains the name, the supported versions, and the preferred version of a group.List<ServerAddressByClientCIDR>getServerAddressByClientCIDRs()a map of client CIDR to server address that is serving this group.List<GroupVersionForDiscovery>getVersions()versions are the versions supported in this group.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetApiVersion(String apiVersion)APIVersion defines the versioned schema of this representation of an object.voidsetKind(String kind)Kind is a string value representing the REST resource this object represents.voidsetName(String name)name is the name of the group.voidsetPreferredVersion(GroupVersionForDiscovery preferredVersion)APIGroup contains the name, the supported versions, and the preferred version of a group.voidsetServerAddressByClientCIDRs(List<ServerAddressByClientCIDR> serverAddressByClientCIDRs)a map of client CIDR to server address that is serving this group.voidsetVersions(List<GroupVersionForDiscovery> versions)versions are the versions supported in this group.APIGroupBuildertoBuilder()
-
-
-
Constructor Detail
-
APIGroup
public APIGroup()
No args constructor for use in serialization
-
APIGroup
public APIGroup(String apiVersion, String kind, String name, GroupVersionForDiscovery preferredVersion, List<ServerAddressByClientCIDR> serverAddressByClientCIDRs, List<GroupVersionForDiscovery> versions)
-
-
Method Detail
-
getApiVersion
public String getApiVersion()
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
-
setApiVersion
public void setApiVersion(String apiVersion)
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
-
getKind
public String getKind()
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
-
setKind
public void setKind(String kind)
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
-
getName
public String getName()
name is the name of the group.
-
setName
public void setName(String name)
name is the name of the group.
-
getPreferredVersion
public GroupVersionForDiscovery getPreferredVersion()
APIGroup contains the name, the supported versions, and the preferred version of a group.
-
setPreferredVersion
public void setPreferredVersion(GroupVersionForDiscovery preferredVersion)
APIGroup contains the name, the supported versions, and the preferred version of a group.
-
getServerAddressByClientCIDRs
public List<ServerAddressByClientCIDR> getServerAddressByClientCIDRs()
a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
-
setServerAddressByClientCIDRs
public void setServerAddressByClientCIDRs(List<ServerAddressByClientCIDR> serverAddressByClientCIDRs)
a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
-
getVersions
public List<GroupVersionForDiscovery> getVersions()
versions are the versions supported in this group.
-
setVersions
public void setVersions(List<GroupVersionForDiscovery> versions)
versions are the versions supported in this group.
-
edit
public APIGroupBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<APIGroupBuilder>
-
toBuilder
public APIGroupBuilder toBuilder()
-
-