Skip to content

Commit

Permalink
Auto generated swagger spec/docs/protobuf/conversions
Browse files Browse the repository at this point in the history
  • Loading branch information
Ravi Sankar Penta committed Mar 13, 2017
1 parent 2178bc9 commit c291dc7
Show file tree
Hide file tree
Showing 10 changed files with 121 additions and 66 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions api/swagger-spec/oapi-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -26876,13 +26876,14 @@
"v1.EgressNetworkPolicyPeer": {
"id": "v1.EgressNetworkPolicyPeer",
"description": "EgressNetworkPolicyPeer specifies a target to apply egress network policy to",
"required": [
"cidrSelector"
],
"properties": {
"cidrSelector": {
"type": "string",
"description": "cidrSelector is the CIDR range to allow/deny traffic to"
"description": "cidrSelector is the CIDR range to allow/deny traffic to. If this is set, dnsName must be unset"
},
"dnsName": {
"type": "string",
"description": "dnsName is the domain name to allow/deny traffic to. If this is set, cidrSelector must be unset"
}
}
},
Expand Down
9 changes: 5 additions & 4 deletions api/swagger-spec/openshift-openapi-spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -50430,12 +50430,13 @@
},
"v1.EgressNetworkPolicyPeer": {
"description": "EgressNetworkPolicyPeer specifies a target to apply egress network policy to",
"required": [
"cidrSelector"
],
"properties": {
"cidrSelector": {
"description": "cidrSelector is the CIDR range to allow/deny traffic to",
"description": "cidrSelector is the CIDR range to allow/deny traffic to. If this is set, dnsName must be unset",
"type": "string"
},
"dnsName": {
"description": "dnsName is the domain name to allow/deny traffic to. If this is set, cidrSelector must be unset",
"type": "string"
}
}
Expand Down
10 changes: 8 additions & 2 deletions pkg/openapi/zz_generated.openapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -11687,13 +11687,19 @@ var OpenAPIDefinitions *common.OpenAPIDefinitions = &common.OpenAPIDefinitions{
Properties: map[string]spec.Schema{
"cidrSelector": {
SchemaProps: spec.SchemaProps{
Description: "cidrSelector is the CIDR range to allow/deny traffic to",
Description: "cidrSelector is the CIDR range to allow/deny traffic to. If this is set, dnsName must be unset",
Type: []string{"string"},
Format: "",
},
},
"dnsName": {
SchemaProps: spec.SchemaProps{
Description: "dnsName is the domain name to allow/deny traffic to. If this is set, cidrSelector must be unset",
Type: []string{"string"},
Format: "",
},
},
},
Required: []string{"cidrSelector"},
},
},
Dependencies: []string{},
Expand Down
142 changes: 89 additions & 53 deletions pkg/sdn/api/v1/generated.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion pkg/sdn/api/v1/generated.proto

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion pkg/sdn/api/v1/swagger_doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ func (EgressNetworkPolicyList) SwaggerDoc() map[string]string {

var map_EgressNetworkPolicyPeer = map[string]string{
"": "EgressNetworkPolicyPeer specifies a target to apply egress network policy to",
"cidrSelector": "cidrSelector is the CIDR range to allow/deny traffic to",
"cidrSelector": "cidrSelector is the CIDR range to allow/deny traffic to. If this is set, dnsName must be unset",
"dnsName": "dnsName is the domain name to allow/deny traffic to. If this is set, cidrSelector must be unset",
}

func (EgressNetworkPolicyPeer) SwaggerDoc() map[string]string {
Expand Down
2 changes: 2 additions & 0 deletions pkg/sdn/api/v1/zz_generated.conversion.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ func Convert_api_EgressNetworkPolicyList_To_v1_EgressNetworkPolicyList(in *api.E

func autoConvert_v1_EgressNetworkPolicyPeer_To_api_EgressNetworkPolicyPeer(in *EgressNetworkPolicyPeer, out *api.EgressNetworkPolicyPeer, s conversion.Scope) error {
out.CIDRSelector = in.CIDRSelector
out.DNSName = in.DNSName
return nil
}

Expand All @@ -194,6 +195,7 @@ func Convert_v1_EgressNetworkPolicyPeer_To_api_EgressNetworkPolicyPeer(in *Egres

func autoConvert_api_EgressNetworkPolicyPeer_To_v1_EgressNetworkPolicyPeer(in *api.EgressNetworkPolicyPeer, out *EgressNetworkPolicyPeer, s conversion.Scope) error {
out.CIDRSelector = in.CIDRSelector
out.DNSName = in.DNSName
return nil
}

Expand Down
1 change: 1 addition & 0 deletions pkg/sdn/api/v1/zz_generated.deepcopy.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ func DeepCopy_v1_EgressNetworkPolicyPeer(in interface{}, out interface{}, c *con
in := in.(*EgressNetworkPolicyPeer)
out := out.(*EgressNetworkPolicyPeer)
out.CIDRSelector = in.CIDRSelector
out.DNSName = in.DNSName
return nil
}
}
Expand Down
1 change: 1 addition & 0 deletions pkg/sdn/api/zz_generated.deepcopy.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ func DeepCopy_api_EgressNetworkPolicyPeer(in interface{}, out interface{}, c *co
in := in.(*EgressNetworkPolicyPeer)
out := out.(*EgressNetworkPolicyPeer)
out.CIDRSelector = in.CIDRSelector
out.DNSName = in.DNSName
return nil
}
}
Expand Down

0 comments on commit c291dc7

Please sign in to comment.