com.coralogix.zio.k8s.model.admissionregistration.v1
ServiceReference
Companion object ServiceReference
case class ServiceReference(name: String, namespace: String, path: Optional[String] = Optional.Absent, port: Optional[Int] = Optional.Absent) extends Product with Serializable
ServiceReference holds a reference to Service.legacy.k8s.io
- name
name
is the name of the service. Required- namespace
namespace
is the namespace of the service. Required- path
path
is an optional URL path which will be sent in any request to this service.- port
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).
- Alphabetic
- By Inheritance
- ServiceReference
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
ServiceReference(name: String, namespace: String, path: Optional[String] = Optional.Absent, port: Optional[Int] = Optional.Absent)
- name
name
is the name of the service. Required- namespace
namespace
is the namespace of the service. Required- path
path
is an optional URL path which will be sent in any request to this service.- port
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).
Value Members
-
def
getName: IO[K8sFailure, String]
name
is the name of the service.name
is the name of the service. RequiredThis effect always succeeds, it is safe to use the field name directly.
-
def
getNamespace: IO[K8sFailure, String]
namespace
is the namespace of the service.namespace
is the namespace of the service. RequiredThis effect always succeeds, it is safe to use the field namespace directly.
-
def
getPath: IO[K8sFailure, String]
path
is an optional URL path which will be sent in any request to this service.path
is an optional URL path which will be sent in any request to this service.If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.
-
def
getPort: IO[K8sFailure, Int]
If specified, the port on the service that hosting webhook.
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).If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.
- val name: String
- val namespace: String
- val path: Optional[String]
- val port: Optional[Int]