Class: Com::Vmware::Content::LibraryService
- Inherits:
-
VAPI::Bindings::VapiService
- Object
- VAPI::Bindings::VapiService
- Com::Vmware::Content::LibraryService
- Defined in:
- /build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/content.rb
Overview
The ``Com::Vmware::Content::Library`` class provides methods to manage and find :class:`Com::Vmware::Content::LibraryModel` entities.
The ``Com::Vmware::Content::Library`` class provides support for generic functionality which can be applied equally to all types of libraries. The functionality provided by this class will not affect the properties specific to the type of library. See also :class:`Com::Vmware::Content::LocalLibrary` and :class:`Com::Vmware::Content::SubscribedLibrary` .
Defined Under Namespace
Classes: FindSpec
Constant Summary
- RESOURCE_TYPE =
'com.vmware.content.Library'
Instance Method Summary (collapse)
-
- (Array<String>) find(spec)
Returns a list of all the visible (as determined by authorization policy) libraries matching the requested :class:`Com::Vmware::Content::Library::FindSpec` .
-
- (Com::Vmware::Content::LibraryModel) get(library_id)
Returns a given :class:`Com::Vmware::Content::LibraryModel` .
-
- (LibraryService) initialize(config)
constructor
Constructs a new instance.
-
- (Array<String>) list
Returns the identifiers of all libraries of any type in the Content Library.
-
- (Void) update(library_id, update_spec)
Updates the properties of a library.
Constructor Details
- (LibraryService) initialize(config)
Constructs a new instance.
159 160 161 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/content.rb', line 159 def initialize(config) super(config, @@service_info) end |
Instance Method Details
- (Array<String>) find(spec)
Returns a list of all the visible (as determined by authorization policy) libraries matching the requested :class:`Com::Vmware::Content::Library::FindSpec` .
198 199 200 201 202 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/content.rb', line 198 def find(spec) invoke_with_info(@@find_info, { 'spec' => spec, }) end |
- (Com::Vmware::Content::LibraryModel) get(library_id)
Returns a given :class:`Com::Vmware::Content::LibraryModel` .
174 175 176 177 178 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/content.rb', line 174 def get(library_id) invoke_with_info(@@get_info, { 'library_id' => library_id, }) end |
- (Array<String>) list
Returns the identifiers of all libraries of any type in the Content Library.
185 186 187 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/content.rb', line 185 def list() invoke_with_info(@@list_info) end |
- (Void) update(library_id, update_spec)
Updates the properties of a library.
This is an incremental update to the library. Any field in the :class:`Com::Vmware::Content::LibraryModel` class that is nil will not be modified.
This method will only update the common properties for all library types. This will not, for example, update the :attr:`Com::Vmware::Content::LibraryModel.publish_info` of a local library, nor the :attr:`Com::Vmware::Content::LibraryModel.subscription_info` of a subscribed library. Specific properties are updated in :func:`Com::Vmware::Content::LocalLibrary.update` and :func:`Com::Vmware::Content::SubscribedLibrary.update` .
222 223 224 225 226 227 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/content.rb', line 222 def update(library_id, update_spec) invoke_with_info(@@update_info, { 'library_id' => library_id, 'update_spec' => update_spec, }) end |