Skip to content

Commit

Permalink
Auto generated conversions and swagger spec/descriptions for ClusterN…
Browse files Browse the repository at this point in the history
…etwork resource
  • Loading branch information
Ravi Sankar Penta committed Jun 2, 2016
1 parent 40a2961 commit 84dea25
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api/swagger-spec/oapi-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -18815,6 +18815,10 @@
"serviceNetwork": {
"type": "string",
"description": "ServiceNetwork is the CIDR string to specify the service network"
},
"pluginName": {
"type": "string",
"description": "PluginName is the name of the network plugin"
}
}
},
Expand Down
1 change: 1 addition & 0 deletions pkg/sdn/api/deep_copy_generated.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ func DeepCopy_api_ClusterNetwork(in ClusterNetwork, out *ClusterNetwork, c *conv
out.Network = in.Network
out.HostSubnetLength = in.HostSubnetLength
out.ServiceNetwork = in.ServiceNetwork
out.PluginName = in.PluginName
return nil
}

Expand Down
2 changes: 2 additions & 0 deletions pkg/sdn/api/v1/conversion_generated.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func autoConvert_v1_ClusterNetwork_To_api_ClusterNetwork(in *ClusterNetwork, out
out.Network = in.Network
out.HostSubnetLength = in.HostSubnetLength
out.ServiceNetwork = in.ServiceNetwork
out.PluginName = in.PluginName
return nil
}

Expand All @@ -66,6 +67,7 @@ func autoConvert_api_ClusterNetwork_To_v1_ClusterNetwork(in *sdn_api.ClusterNetw
out.Network = in.Network
out.HostSubnetLength = in.HostSubnetLength
out.ServiceNetwork = in.ServiceNetwork
out.PluginName = in.PluginName
return nil
}

Expand Down
1 change: 1 addition & 0 deletions pkg/sdn/api/v1/deep_copy_generated.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ func DeepCopy_v1_ClusterNetwork(in ClusterNetwork, out *ClusterNetwork, c *conve
out.Network = in.Network
out.HostSubnetLength = in.HostSubnetLength
out.ServiceNetwork = in.ServiceNetwork
out.PluginName = in.PluginName
return nil
}

Expand Down
1 change: 1 addition & 0 deletions pkg/sdn/api/v1/swagger_doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ var map_ClusterNetwork = map[string]string{
"network": "Network is a CIDR string to specify the global overlay network's L3 space",
"hostsubnetlength": "HostSubnetLength is the number of bits to allocate to each host's subnet e.g. 8 would mean a /24 network on the host",
"serviceNetwork": "ServiceNetwork is the CIDR string to specify the service network",
"pluginName": "PluginName is the name of the network plugin",
}

func (ClusterNetwork) SwaggerDoc() map[string]string {
Expand Down

0 comments on commit 84dea25

Please sign in to comment.