Commit 72898b70 authored by vaikas-google's avatar vaikas-google

address codereview comment. make Status omitempty

parent 8f995f3b
...@@ -151,8 +151,9 @@ const ( ...@@ -151,8 +151,9 @@ const (
) )
// ResourceState describes the state of a resource. // ResourceState describes the state of a resource.
// Status is set during resource creation and is a terminal state.
type ResourceState struct { type ResourceState struct {
Status ResourceStatus `json:"status"` Status ResourceStatus `json:"status,omitempty"`
SelfLink string `json:"selflink,omitempty"` SelfLink string `json:"selflink,omitempty"`
Errors []string `json:"errors,omitempty"` Errors []string `json:"errors,omitempty"`
} }
......
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