ServiceReference class
ServiceReference holds a reference to Service.legacy.k8s.io.
Constructors
- ServiceReference({required String name, required String namespace, String? path, int? port})
-
Default constructor.
const
-
ServiceReference.fromJson(Map<
String, dynamic> json) -
Creates a ServiceReference from JSON data.
factory
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 which will be sent in any request to this 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