Class: Com::Vmware::Content::LocalLibrary
- Inherits:
-
VAPI::Bindings::VapiService
- Object
- VAPI::Bindings::VapiService
- Com::Vmware::Content::LocalLibrary
- Defined in:
- /build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/content.rb
Overview
The ``Com::Vmware::Content::LocalLibrary`` class manages local libraries.
The ``Com::Vmware::Content::LocalLibrary`` class provides support for creating and maintaining local library instances. A local library may also use the :class:`Com::Vmware::Content::Library` class to manage general library functionality.
Instance Method Summary (collapse)
-
- (String) create(create_spec, client_token = nil)
Creates a new local library.
-
- (Void) delete(library_id)
Deletes the specified local library.
-
- (Com::Vmware::Content::LibraryModel) get(library_id)
Returns a given local library.
-
- (LocalLibrary) initialize(config)
constructor
Constructs a new instance.
-
- (Array<String>) list
Returns the identifiers of all local libraries in the Content Library.
-
- (Void) update(library_id, update_spec)
Updates the properties of a local library.
Constructor Details
- (LocalLibrary) initialize(config)
Constructs a new instance.
360 361 362 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/content.rb', line 360 def initialize(config) super(config, @@service_info) end |
Instance Method Details
- (String) create(create_spec, client_token = nil)
Creates a new local library.
If not specified creation is not idempotent.
380 381 382 383 384 385 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/content.rb', line 380 def create(create_spec, client_token=nil) invoke_with_info(@@create_info, { 'client_token' => client_token, 'create_spec' => create_spec, }) end |
- (Void) delete(library_id)
Deletes the specified local library.
Deleting a local library will remove the entry immediately and begin an asynchronous task to remove all cached content for the library. If the asynchronous task fails, file content may remain on the storage backing. This content will require manual removal.
399 400 401 402 403 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/content.rb', line 399 def delete(library_id) invoke_with_info(@@delete_info, { 'library_id' => library_id, }) end |
- (Com::Vmware::Content::LibraryModel) get(library_id)
Returns a given local library.
416 417 418 419 420 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/content.rb', line 416 def get(library_id) invoke_with_info(@@get_info, { 'library_id' => library_id, }) end |
- (Array<String>) list
Returns the identifiers of all local libraries in the Content Library.
427 428 429 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/content.rb', line 427 def list() invoke_with_info(@@list_info) end |
- (Void) update(library_id, update_spec)
Updates the properties of a local library.
This is an incremental update to the local library. Fields that are nil in the update specification will be left unchanged.
449 450 451 452 453 454 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/content.rb', line 449 def update(library_id, update_spec) invoke_with_info(@@update_info, { 'library_id' => library_id, 'update_spec' => update_spec, }) end |