Skip to content

Commit

Permalink
Added the optional annotation to the Data field of VirtualMachineStat…
Browse files Browse the repository at this point in the history
…eChangeRequest

Generated new files

Signed-off-by: Omer Yahud <[email protected]>
  • Loading branch information
omeryahud committed Mar 3, 2020
1 parent 6749a8e commit 08b728a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
11 changes: 5 additions & 6 deletions api/openapi-spec/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -6972,18 +6972,17 @@
},
"v1.VirtualMachineStateChangeRequest": {
"required": [
"action",
"Data"
"action"
],
"properties": {
"Data": {
"description": "Provides additional data in order to perform the Action",
"type": "object"
},
"action": {
"description": "Indicates the type of action that is requested. e.g. Start or Stop",
"type": "string"
},
"data": {
"description": "Provides additional data in order to perform the Action",
"type": "object"
},
"uid": {
"description": "Indicates the UUID of an existing Virtual Machine Instance that this change request applies to -- if applicable",
"$ref": "#/definitions/types.UID"
Expand Down
2 changes: 1 addition & 1 deletion staging/src/kubevirt.io/client-go/api/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -912,7 +912,7 @@ type VirtualMachineStateChangeRequest struct {
// Indicates the type of action that is requested. e.g. Start or Stop
Action StateChangeRequestAction `json:"action"`
// Provides additional data in order to perform the Action
Data map[string]string `json:"data,omitempty"`
Data map[string]string `json:"data,omitempty" optional:"true"`
// Indicates the UUID of an existing Virtual Machine Instance that this change request applies to -- if applicable
UID *types.UID `json:"uid,omitempty" optional:"true" protobuf:"bytes,5,opt,name=uid,casttype=k8s.io/kubernetes/pkg/types.UID"`
}
Expand Down

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

0 comments on commit 08b728a

Please sign in to comment.