ServiceReference class

ServiceReference holds a reference to Service.legacy.k8s.io.

Constructors

ServiceReference({String? name, String? namespace, int? port})
The main constructor.
const
ServiceReference.fromJson(Map<String, dynamic> json)
Creates a ServiceReference from JSON data.

Properties

hashCode int
The hash code for this object.
no setterinherited
name String?
Name is the name of the service.
final
namespace String?
Namespace is the namespace of the service.
final
port int?
If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. port should be a valid port number (1-65535, inclusive).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, Object>
Converts a ServiceReference instance to JSON data.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

listFromJson(Iterable<Map<String, dynamic>> list) List<ServiceReference>
Creates a list of ServiceReference from JSON data.