ServiceReference class
ServiceReference holds a reference to Service.legacy.k8s.io.
Constructors
- ServiceReference({required String name, required String namespace, String? path, 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. Required.
final
- namespace → String
-
Namespace is the namespace of the service. Required.
final
- path → String?
-
Path is an optional URL path at which the webhook will be contacted.
final
- port → int?
-
Port is an optional service port at which the webhook will be contacted.
port
should be a valid port number (1-65535, inclusive). Defaults to 443 for backward compatibility.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< list) → List<String, dynamic> >ServiceReference> - Creates a list of ServiceReference from JSON data.