Skip to content

Commit

Permalink
Regenerate code
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzolino authored and davidvossel committed Jan 21, 2019
1 parent 0d229fc commit a4d5b97
Show file tree
Hide file tree
Showing 2 changed files with 92 additions and 27 deletions.
35 changes: 34 additions & 1 deletion api/openapi-spec/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -4177,6 +4177,13 @@
"description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources",
"type": "string"
},
"dryRun": {
"description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed",
"type": "array",
"items": {
"type": "string"
}
},
"gracePeriodSeconds": {
"description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.",
"type": "integer",
Expand Down Expand Up @@ -4758,7 +4765,7 @@
"description": "ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.",
"properties": {
"continue": {
"description": "continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response.",
"description": "continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message.",
"type": "string"
},
"resourceVersion": {
Expand Down Expand Up @@ -5052,6 +5059,10 @@
"$ref": "#/definitions/v1.PersistentVolumeAccessMode"
}
},
"dataSource": {
"description": "This field requires the VolumeSnapshotDataSource alpha feature gate to be enabled and currently VolumeSnapshot is the only supported data source. If the provisioner can support VolumeSnapshot data source, it will create a new volume and data will be restored to the volume at the same time. If the provisioner does not support VolumeSnapshot data source, volume will not be created and the failure will be reported as an event. In the future, we plan to support more data source types and the behavior of the provisioner may change.",
"$ref": "#/definitions/v1.TypedLocalObjectReference"
},
"resources": {
"description": "Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources",
"$ref": "#/definitions/v1.ResourceRequirements"
Expand Down Expand Up @@ -5494,6 +5505,28 @@
}
}
},
"v1.TypedLocalObjectReference": {
"description": "TypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same namespace.",
"required": [
"apiGroup",
"kind",
"name"
],
"properties": {
"apiGroup": {
"description": "APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.",
"type": "string"
},
"kind": {
"description": "Kind is the type of resource being referenced",
"type": "string"
},
"name": {
"description": "Name is the name of resource being referenced",
"type": "string"
}
}
},
"v1.VirtualMachine": {
"description": "VirtualMachine handles the VirtualMachines that are not running\nor are in a stopped state\nThe VirtualMachine contains the template to create the\nVirtualMachineInstance. It also mirrors the running state of the created\nVirtualMachineInstance in its status.",
"properties": {
Expand Down
84 changes: 58 additions & 26 deletions pkg/kubecli/generated_mock_kubevirt.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,26 @@ import (
v1beta12 "k8s.io/client-go/kubernetes/typed/authorization/v1beta1"
v15 "k8s.io/client-go/kubernetes/typed/autoscaling/v1"
v2beta1 "k8s.io/client-go/kubernetes/typed/autoscaling/v2beta1"
v2beta2 "k8s.io/client-go/kubernetes/typed/autoscaling/v2beta2"
v16 "k8s.io/client-go/kubernetes/typed/batch/v1"
v1beta13 "k8s.io/client-go/kubernetes/typed/batch/v1beta1"
v2alpha1 "k8s.io/client-go/kubernetes/typed/batch/v2alpha1"
v1beta14 "k8s.io/client-go/kubernetes/typed/certificates/v1beta1"
v1beta15 "k8s.io/client-go/kubernetes/typed/coordination/v1beta1"
v17 "k8s.io/client-go/kubernetes/typed/core/v1"
v1beta15 "k8s.io/client-go/kubernetes/typed/events/v1beta1"
v1beta16 "k8s.io/client-go/kubernetes/typed/extensions/v1beta1"
v1beta16 "k8s.io/client-go/kubernetes/typed/events/v1beta1"
v1beta17 "k8s.io/client-go/kubernetes/typed/extensions/v1beta1"
v18 "k8s.io/client-go/kubernetes/typed/networking/v1"
v1beta17 "k8s.io/client-go/kubernetes/typed/policy/v1beta1"
v1beta18 "k8s.io/client-go/kubernetes/typed/policy/v1beta1"
v19 "k8s.io/client-go/kubernetes/typed/rbac/v1"
v1alpha10 "k8s.io/client-go/kubernetes/typed/rbac/v1alpha1"
v1beta18 "k8s.io/client-go/kubernetes/typed/rbac/v1beta1"
v1beta19 "k8s.io/client-go/kubernetes/typed/rbac/v1beta1"
v1alpha11 "k8s.io/client-go/kubernetes/typed/scheduling/v1alpha1"
v1beta19 "k8s.io/client-go/kubernetes/typed/scheduling/v1beta1"
v1beta110 "k8s.io/client-go/kubernetes/typed/scheduling/v1beta1"
v1alpha12 "k8s.io/client-go/kubernetes/typed/settings/v1alpha1"
v110 "k8s.io/client-go/kubernetes/typed/storage/v1"
v1alpha13 "k8s.io/client-go/kubernetes/typed/storage/v1alpha1"
v1beta110 "k8s.io/client-go/kubernetes/typed/storage/v1beta1"
v1beta111 "k8s.io/client-go/kubernetes/typed/storage/v1beta1"
rest "k8s.io/client-go/rest"

versioned0 "kubevirt.io/containerized-data-importer/pkg/client/clientset/versioned"
Expand Down Expand Up @@ -350,6 +352,16 @@ func (_mr *_MockKubevirtClientRecorder) AutoscalingV2beta1() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "AutoscalingV2beta1")
}

func (_m *MockKubevirtClient) AutoscalingV2beta2() v2beta2.AutoscalingV2beta2Interface {
ret := _m.ctrl.Call(_m, "AutoscalingV2beta2")
ret0, _ := ret[0].(v2beta2.AutoscalingV2beta2Interface)
return ret0
}

func (_mr *_MockKubevirtClientRecorder) AutoscalingV2beta2() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "AutoscalingV2beta2")
}

func (_m *MockKubevirtClient) BatchV1() v16.BatchV1Interface {
ret := _m.ctrl.Call(_m, "BatchV1")
ret0, _ := ret[0].(v16.BatchV1Interface)
Expand Down Expand Up @@ -410,6 +422,26 @@ func (_mr *_MockKubevirtClientRecorder) Certificates() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "Certificates")
}

func (_m *MockKubevirtClient) CoordinationV1beta1() v1beta15.CoordinationV1beta1Interface {
ret := _m.ctrl.Call(_m, "CoordinationV1beta1")
ret0, _ := ret[0].(v1beta15.CoordinationV1beta1Interface)
return ret0
}

func (_mr *_MockKubevirtClientRecorder) CoordinationV1beta1() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "CoordinationV1beta1")
}

func (_m *MockKubevirtClient) Coordination() v1beta15.CoordinationV1beta1Interface {
ret := _m.ctrl.Call(_m, "Coordination")
ret0, _ := ret[0].(v1beta15.CoordinationV1beta1Interface)
return ret0
}

func (_mr *_MockKubevirtClientRecorder) Coordination() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "Coordination")
}

func (_m *MockKubevirtClient) CoreV1() v17.CoreV1Interface {
ret := _m.ctrl.Call(_m, "CoreV1")
ret0, _ := ret[0].(v17.CoreV1Interface)
Expand All @@ -430,39 +462,39 @@ func (_mr *_MockKubevirtClientRecorder) Core() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "Core")
}

func (_m *MockKubevirtClient) EventsV1beta1() v1beta15.EventsV1beta1Interface {
func (_m *MockKubevirtClient) EventsV1beta1() v1beta16.EventsV1beta1Interface {
ret := _m.ctrl.Call(_m, "EventsV1beta1")
ret0, _ := ret[0].(v1beta15.EventsV1beta1Interface)
ret0, _ := ret[0].(v1beta16.EventsV1beta1Interface)
return ret0
}

func (_mr *_MockKubevirtClientRecorder) EventsV1beta1() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "EventsV1beta1")
}

func (_m *MockKubevirtClient) Events() v1beta15.EventsV1beta1Interface {
func (_m *MockKubevirtClient) Events() v1beta16.EventsV1beta1Interface {
ret := _m.ctrl.Call(_m, "Events")
ret0, _ := ret[0].(v1beta15.EventsV1beta1Interface)
ret0, _ := ret[0].(v1beta16.EventsV1beta1Interface)
return ret0
}

func (_mr *_MockKubevirtClientRecorder) Events() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "Events")
}

func (_m *MockKubevirtClient) ExtensionsV1beta1() v1beta16.ExtensionsV1beta1Interface {
func (_m *MockKubevirtClient) ExtensionsV1beta1() v1beta17.ExtensionsV1beta1Interface {
ret := _m.ctrl.Call(_m, "ExtensionsV1beta1")
ret0, _ := ret[0].(v1beta16.ExtensionsV1beta1Interface)
ret0, _ := ret[0].(v1beta17.ExtensionsV1beta1Interface)
return ret0
}

func (_mr *_MockKubevirtClientRecorder) ExtensionsV1beta1() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "ExtensionsV1beta1")
}

func (_m *MockKubevirtClient) Extensions() v1beta16.ExtensionsV1beta1Interface {
func (_m *MockKubevirtClient) Extensions() v1beta17.ExtensionsV1beta1Interface {
ret := _m.ctrl.Call(_m, "Extensions")
ret0, _ := ret[0].(v1beta16.ExtensionsV1beta1Interface)
ret0, _ := ret[0].(v1beta17.ExtensionsV1beta1Interface)
return ret0
}

Expand Down Expand Up @@ -490,19 +522,19 @@ func (_mr *_MockKubevirtClientRecorder) Networking() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "Networking")
}

func (_m *MockKubevirtClient) PolicyV1beta1() v1beta17.PolicyV1beta1Interface {
func (_m *MockKubevirtClient) PolicyV1beta1() v1beta18.PolicyV1beta1Interface {
ret := _m.ctrl.Call(_m, "PolicyV1beta1")
ret0, _ := ret[0].(v1beta17.PolicyV1beta1Interface)
ret0, _ := ret[0].(v1beta18.PolicyV1beta1Interface)
return ret0
}

func (_mr *_MockKubevirtClientRecorder) PolicyV1beta1() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "PolicyV1beta1")
}

func (_m *MockKubevirtClient) Policy() v1beta17.PolicyV1beta1Interface {
func (_m *MockKubevirtClient) Policy() v1beta18.PolicyV1beta1Interface {
ret := _m.ctrl.Call(_m, "Policy")
ret0, _ := ret[0].(v1beta17.PolicyV1beta1Interface)
ret0, _ := ret[0].(v1beta18.PolicyV1beta1Interface)
return ret0
}

Expand Down Expand Up @@ -530,9 +562,9 @@ func (_mr *_MockKubevirtClientRecorder) Rbac() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "Rbac")
}

func (_m *MockKubevirtClient) RbacV1beta1() v1beta18.RbacV1beta1Interface {
func (_m *MockKubevirtClient) RbacV1beta1() v1beta19.RbacV1beta1Interface {
ret := _m.ctrl.Call(_m, "RbacV1beta1")
ret0, _ := ret[0].(v1beta18.RbacV1beta1Interface)
ret0, _ := ret[0].(v1beta19.RbacV1beta1Interface)
return ret0
}

Expand Down Expand Up @@ -560,19 +592,19 @@ func (_mr *_MockKubevirtClientRecorder) SchedulingV1alpha1() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "SchedulingV1alpha1")
}

func (_m *MockKubevirtClient) SchedulingV1beta1() v1beta19.SchedulingV1beta1Interface {
func (_m *MockKubevirtClient) SchedulingV1beta1() v1beta110.SchedulingV1beta1Interface {
ret := _m.ctrl.Call(_m, "SchedulingV1beta1")
ret0, _ := ret[0].(v1beta19.SchedulingV1beta1Interface)
ret0, _ := ret[0].(v1beta110.SchedulingV1beta1Interface)
return ret0
}

func (_mr *_MockKubevirtClientRecorder) SchedulingV1beta1() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "SchedulingV1beta1")
}

func (_m *MockKubevirtClient) Scheduling() v1beta19.SchedulingV1beta1Interface {
func (_m *MockKubevirtClient) Scheduling() v1beta110.SchedulingV1beta1Interface {
ret := _m.ctrl.Call(_m, "Scheduling")
ret0, _ := ret[0].(v1beta19.SchedulingV1beta1Interface)
ret0, _ := ret[0].(v1beta110.SchedulingV1beta1Interface)
return ret0
}

Expand Down Expand Up @@ -600,9 +632,9 @@ func (_mr *_MockKubevirtClientRecorder) Settings() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "Settings")
}

func (_m *MockKubevirtClient) StorageV1beta1() v1beta110.StorageV1beta1Interface {
func (_m *MockKubevirtClient) StorageV1beta1() v1beta111.StorageV1beta1Interface {
ret := _m.ctrl.Call(_m, "StorageV1beta1")
ret0, _ := ret[0].(v1beta110.StorageV1beta1Interface)
ret0, _ := ret[0].(v1beta111.StorageV1beta1Interface)
return ret0
}

Expand Down

0 comments on commit a4d5b97

Please sign in to comment.