From a4d5b97f7e5ab0dd8d79218274a718d83510edd8 Mon Sep 17 00:00:00 2001 From: Daniel Gonzalez Date: Fri, 21 Dec 2018 14:56:05 +0100 Subject: [PATCH] Regenerate code --- api/openapi-spec/swagger.json | 35 ++++++++++- pkg/kubecli/generated_mock_kubevirt.go | 84 ++++++++++++++++++-------- 2 files changed, 92 insertions(+), 27 deletions(-) diff --git a/api/openapi-spec/swagger.json b/api/openapi-spec/swagger.json index 5556dfda4e67..f405285da0ac 100644 --- a/api/openapi-spec/swagger.json +++ b/api/openapi-spec/swagger.json @@ -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", @@ -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": { @@ -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" @@ -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": { diff --git a/pkg/kubecli/generated_mock_kubevirt.go b/pkg/kubecli/generated_mock_kubevirt.go index 8047dad9d463..321e9454405e 100644 --- a/pkg/kubecli/generated_mock_kubevirt.go +++ b/pkg/kubecli/generated_mock_kubevirt.go @@ -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" @@ -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) @@ -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) @@ -430,9 +462,9 @@ 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 } @@ -440,9 +472,9 @@ 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 } @@ -450,9 +482,9 @@ 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 } @@ -460,9 +492,9 @@ 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 } @@ -490,9 +522,9 @@ 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 } @@ -500,9 +532,9 @@ 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 } @@ -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 } @@ -560,9 +592,9 @@ 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 } @@ -570,9 +602,9 @@ 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 } @@ -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 }