APIVersions class
APIVersions lists the versions that are available, to allow clients to discover the API at /api, which is the root path of the legacy v1 API.
Constructors
-
APIVersions({String? apiVersion, String? kind, required List<
ServerAddressByClientCIDR> serverAddressByClientCIDRs, required List<String> versions}) -
Default constructor.
const
-
APIVersions.fromJson(Map<
String, dynamic> json) -
Creates a APIVersions from JSON data.
factory
Properties
- apiVersion → String?
-
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.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- kind → String?
-
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.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
serverAddressByClientCIDRs
→ List<
ServerAddressByClientCIDR> -
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.
final
-
versions
→ List<
String> -
versions are the api versions that are available.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object> - Converts a APIVersions instance to JSON data.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited