Skip to content

Latest commit

 

History

History
31 lines (24 loc) · 1.67 KB

File metadata and controls

31 lines (24 loc) · 1.67 KB

AdmissionregistrationV1ServiceReference

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

Properties

Name Type Description Notes
name str name is the name of the service. Required
namespace str namespace is the namespace of the service. Required
path str path is an optional URL path which will be sent in any request to this service. [optional]
port int port is the port on the service that hosts the webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). [optional]

Example

from kubernetes.client.models.admissionregistration_v1_service_reference import AdmissionregistrationV1ServiceReference

# TODO update the JSON string below
json = "{}"
# create an instance of AdmissionregistrationV1ServiceReference from a JSON string
admissionregistration_v1_service_reference_instance = AdmissionregistrationV1ServiceReference.from_json(json)
# print the JSON string representation of the object
print(AdmissionregistrationV1ServiceReference.to_json())

# convert the object into a dict
admissionregistration_v1_service_reference_dict = admissionregistration_v1_service_reference_instance.to_dict()
# create an instance of AdmissionregistrationV1ServiceReference from a dict
admissionregistration_v1_service_reference_from_dict = AdmissionregistrationV1ServiceReference.from_dict(admissionregistration_v1_service_reference_dict)

[Back to Model list] [Back to API list] [Back to README]