build(deps): bump github.com/vmware/govmomi from 0.23.0 to 0.26.1
Bumps [github.com/vmware/govmomi](https://github.com/vmware/govmomi) from 0.23.0 to 0.26.1. - [Release notes](https://github.com/vmware/govmomi/releases) - [Changelog](https://github.com/vmware/govmomi/blob/master/CHANGELOG.md) - [Commits](https://github.com/vmware/govmomi/compare/v0.23.0...v0.26.1) --- updated-dependencies: - dependency-name: github.com/vmware/govmomi dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
parent
974c258382
commit
137819b9cd
77 changed files with 7610 additions and 486 deletions
14
vendor/github.com/vmware/govmomi/vapi/library/library.go
generated
vendored
14
vendor/github.com/vmware/govmomi/vapi/library/library.go
generated
vendored
|
|
@ -212,6 +212,20 @@ func (c *Manager) PublishLibrary(ctx context.Context, library *Library, subscrip
|
|||
return c.Do(ctx, url.Request(http.MethodPost, spec), nil)
|
||||
}
|
||||
|
||||
// UpdateLibrary can update one or both of the tag Description and Name fields.
|
||||
func (c *Manager) UpdateLibrary(ctx context.Context, l *Library) error {
|
||||
spec := struct {
|
||||
Library `json:"update_spec"`
|
||||
}{
|
||||
Library{
|
||||
Name: l.Name,
|
||||
Description: l.Description,
|
||||
},
|
||||
}
|
||||
url := c.Resource(internal.LibraryPath).WithID(l.ID)
|
||||
return c.Do(ctx, url.Request(http.MethodPatch, spec), nil)
|
||||
}
|
||||
|
||||
// DeleteLibrary deletes an existing library.
|
||||
func (c *Manager) DeleteLibrary(ctx context.Context, library *Library) error {
|
||||
path := internal.LocalLibraryPath
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue