Skip to content

Commit 8aefcdd

Browse files
committed
fix: add DirectPathProfileManager to mo registry
Signed-off-by: Doug MacEachern <[email protected]>
1 parent b3b0a6e commit 8aefcdd

File tree

1 file changed

+21
-15
lines changed

1 file changed

+21
-15
lines changed

vim25/mo/registry.go

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,27 @@
1-
/*
2-
Copyright (c) 2014 VMware, Inc. All Rights Reserved.
1+
// © Broadcom. All Rights Reserved.
2+
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
3+
// SPDX-License-Identifier: Apache-2.0
34

4-
Licensed under the Apache License, Version 2.0 (the "License");
5-
you may not use this file except in compliance with the License.
6-
You may obtain a copy of the License at
5+
package mo
76

8-
http://www.apache.org/licenses/LICENSE-2.0
7+
import (
8+
"reflect"
99

10-
Unless required by applicable law or agreed to in writing, software
11-
distributed under the License is distributed on an "AS IS" BASIS,
12-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
See the License for the specific language governing permissions and
14-
limitations under the License.
15-
*/
10+
"github.com/vmware/govmomi/vim25/types"
11+
)
1612

17-
package mo
13+
var t = map[string]reflect.Type{}
1814

19-
import "reflect"
15+
// TODO: 9.0 mo below, not included in the generate mo/mo.go, since the generator still uses older rbvmomi vmodl.db
2016

21-
var t = map[string]reflect.Type{}
17+
type DirectPathProfileManager struct {
18+
Self types.ManagedObjectReference `json:"self"`
19+
}
20+
21+
func (m DirectPathProfileManager) Reference() types.ManagedObjectReference {
22+
return m.Self
23+
}
24+
25+
func init() {
26+
t["DirectPathProfileManager"] = reflect.TypeOf((*DirectPathProfileManager)(nil)).Elem()
27+
}

0 commit comments

Comments
 (0)