Commit c1076ba0 authored by Mehdy Bohlool's avatar Mehdy Bohlool

Fix API documentation, 'Port' to 'port'

parent 864cf3e3
...@@ -123,7 +123,7 @@ ...@@ -123,7 +123,7 @@
"type": "string" "type": "string"
}, },
"port": { "port": {
"description": "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).", "description": "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).",
"format": "int32", "format": "int32",
"type": "integer" "type": "integer"
} }
...@@ -2923,7 +2923,7 @@ ...@@ -2923,7 +2923,7 @@
"type": "string" "type": "string"
}, },
"port": { "port": {
"description": "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).", "description": "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).",
"format": "int32", "format": "int32",
"type": "integer" "type": "integer"
} }
...@@ -16777,7 +16777,7 @@ ...@@ -16777,7 +16777,7 @@
"type": "string" "type": "string"
}, },
"port": { "port": {
"description": "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).", "description": "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).",
"format": "int32", "format": "int32",
"type": "integer" "type": "integer"
} }
...@@ -18144,7 +18144,7 @@ ...@@ -18144,7 +18144,7 @@
"type": "string" "type": "string"
}, },
"port": { "port": {
"description": "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).", "description": "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).",
"format": "int32", "format": "int32",
"type": "integer" "type": "integer"
} }
...@@ -18315,7 +18315,7 @@ ...@@ -18315,7 +18315,7 @@
"type": "string" "type": "string"
}, },
"port": { "port": {
"description": "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).", "description": "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).",
"format": "int32", "format": "int32",
"type": "integer" "type": "integer"
} }
...@@ -335,7 +335,7 @@ type ServiceReference struct { ...@@ -335,7 +335,7 @@ type ServiceReference struct {
Path *string Path *string
// If specified, the port on the service that hosting webhook. // If specified, the port on the service that hosting webhook.
// `Port` should be a valid port number (1-65535, inclusive). // `port` should be a valid port number (1-65535, inclusive).
// +optional // +optional
Port int32 Port int32
} }
...@@ -193,7 +193,7 @@ type ServiceReference struct { ...@@ -193,7 +193,7 @@ type ServiceReference struct {
Path *string Path *string
// If specified, the port on the service that hosting webhook. // If specified, the port on the service that hosting webhook.
// `Port` should be a valid port number (1-65535, inclusive). // `port` should be a valid port number (1-65535, inclusive).
// +optional // +optional
Port int32 Port int32
} }
...@@ -126,7 +126,7 @@ message ServiceReference { ...@@ -126,7 +126,7 @@ message ServiceReference {
// 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. // Default to 443 for backward compatibility.
// `Port` should be a valid port number (1-65535, inclusive). // `port` should be a valid port number (1-65535, inclusive).
// +optional // +optional
optional int32 port = 4; optional int32 port = 4;
} }
......
...@@ -347,7 +347,7 @@ type ServiceReference struct { ...@@ -347,7 +347,7 @@ type ServiceReference struct {
// 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. // Default to 443 for backward compatibility.
// `Port` should be a valid port number (1-65535, inclusive). // `port` should be a valid port number (1-65535, inclusive).
// +optional // +optional
Port *int32 `json:"port,omitempty" protobuf:"varint,4,opt,name=port"` Port *int32 `json:"port,omitempty" protobuf:"varint,4,opt,name=port"`
} }
...@@ -73,7 +73,7 @@ var map_ServiceReference = map[string]string{ ...@@ -73,7 +73,7 @@ var map_ServiceReference = map[string]string{
"namespace": "`namespace` is the namespace of the service. Required", "namespace": "`namespace` is the namespace of the service. Required",
"name": "`name` is the name of the service. Required", "name": "`name` is the name of the service. Required",
"path": "`path` is an optional URL path which will be sent in any request to this service.", "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).", "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).",
} }
func (ServiceReference) SwaggerDoc() map[string]string { func (ServiceReference) SwaggerDoc() map[string]string {
......
...@@ -86,7 +86,7 @@ message ServiceReference { ...@@ -86,7 +86,7 @@ message ServiceReference {
// 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. // Default to 443 for backward compatibility.
// `Port` should be a valid port number (1-65535, inclusive). // `port` should be a valid port number (1-65535, inclusive).
// +optional // +optional
optional int32 port = 4; optional int32 port = 4;
} }
......
...@@ -192,7 +192,7 @@ type ServiceReference struct { ...@@ -192,7 +192,7 @@ type ServiceReference struct {
// 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. // Default to 443 for backward compatibility.
// `Port` should be a valid port number (1-65535, inclusive). // `port` should be a valid port number (1-65535, inclusive).
// +optional // +optional
Port *int32 `json:"port,omitempty" protobuf:"varint,4,opt,name=port"` Port *int32 `json:"port,omitempty" protobuf:"varint,4,opt,name=port"`
} }
...@@ -70,7 +70,7 @@ var map_ServiceReference = map[string]string{ ...@@ -70,7 +70,7 @@ var map_ServiceReference = map[string]string{
"namespace": "`namespace` is the namespace of the service. Required", "namespace": "`namespace` is the namespace of the service. Required",
"name": "`name` is the name of the service. Required", "name": "`name` is the name of the service. Required",
"path": "`path` is an optional URL path which will be sent in any request to this service.", "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).", "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).",
} }
func (ServiceReference) SwaggerDoc() map[string]string { func (ServiceReference) SwaggerDoc() map[string]string {
......
...@@ -156,7 +156,7 @@ type ServiceReference struct { ...@@ -156,7 +156,7 @@ type ServiceReference struct {
Path *string Path *string
// If specified, the port on the service that hosting webhook. // If specified, the port on the service that hosting webhook.
// `Port` should be a valid port number (1-65535, inclusive). // `port` should be a valid port number (1-65535, inclusive).
// +optional // +optional
Port int32 Port int32
} }
......
...@@ -485,7 +485,7 @@ message ServiceReference { ...@@ -485,7 +485,7 @@ message ServiceReference {
// 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. // Default to 443 for backward compatibility.
// `Port` should be a valid port number (1-65535, inclusive). // `port` should be a valid port number (1-65535, inclusive).
// +optional // +optional
optional int32 port = 4; optional int32 port = 4;
} }
......
...@@ -165,7 +165,7 @@ type ServiceReference struct { ...@@ -165,7 +165,7 @@ type ServiceReference struct {
// 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. // Default to 443 for backward compatibility.
// `Port` should be a valid port number (1-65535, inclusive). // `port` should be a valid port number (1-65535, inclusive).
// +optional // +optional
Port *int32 `json:"port,omitempty" protobuf:"varint,4,opt,name=port"` Port *int32 `json:"port,omitempty" protobuf:"varint,4,opt,name=port"`
} }
......
...@@ -36,7 +36,7 @@ type ServiceReference struct { ...@@ -36,7 +36,7 @@ type ServiceReference struct {
Name string Name string
// If specified, the port on the service that hosting the service. // If specified, the port on the service that hosting the service.
// Default to 443 for backward compatibility. // Default to 443 for backward compatibility.
// `Port` should be a valid port number (1-65535, inclusive). // `port` should be a valid port number (1-65535, inclusive).
// +optional // +optional
Port int32 Port int32
} }
......
...@@ -133,7 +133,7 @@ message ServiceReference { ...@@ -133,7 +133,7 @@ message ServiceReference {
// 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. // Default to 443 for backward compatibility.
// `Port` should be a valid port number (1-65535, inclusive). // `port` should be a valid port number (1-65535, inclusive).
// +optional // +optional
optional int32 port = 3; optional int32 port = 3;
} }
......
...@@ -36,7 +36,7 @@ type ServiceReference struct { ...@@ -36,7 +36,7 @@ type ServiceReference struct {
Name string `json:"name,omitempty" protobuf:"bytes,2,opt,name=name"` Name string `json:"name,omitempty" protobuf:"bytes,2,opt,name=name"`
// 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. // Default to 443 for backward compatibility.
// `Port` should be a valid port number (1-65535, inclusive). // `port` should be a valid port number (1-65535, inclusive).
// +optional // +optional
Port *int32 `json:"port,omitempty" protobuf:"varint,3,opt,name=port"` Port *int32 `json:"port,omitempty" protobuf:"varint,3,opt,name=port"`
} }
......
...@@ -133,7 +133,7 @@ message ServiceReference { ...@@ -133,7 +133,7 @@ message ServiceReference {
// 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. // Default to 443 for backward compatibility.
// `Port` should be a valid port number (1-65535, inclusive). // `port` should be a valid port number (1-65535, inclusive).
// +optional // +optional
optional int32 port = 3; optional int32 port = 3;
} }
......
...@@ -36,7 +36,7 @@ type ServiceReference struct { ...@@ -36,7 +36,7 @@ type ServiceReference struct {
Name string `json:"name,omitempty" protobuf:"bytes,2,opt,name=name"` Name string `json:"name,omitempty" protobuf:"bytes,2,opt,name=name"`
// 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. // Default to 443 for backward compatibility.
// `Port` should be a valid port number (1-65535, inclusive). // `port` should be a valid port number (1-65535, inclusive).
// +optional // +optional
Port *int32 `json:"port,omitempty" protobuf:"varint,3,opt,name=port"` Port *int32 `json:"port,omitempty" protobuf:"varint,3,opt,name=port"`
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment