After creating a content library, you can publish its content to other libraries.
This example uses the steps that are described in the Publish an Existing Content Library procedure.
use Com::Vmware::Content; # Create a new LibraryModel to specify changes. my $library_spec = new Com::Vmware::Content::LibraryModel(); # Specify how the local library is published, using BASIC authentication. my $publish_info = new Com::Vmware::Content::Library::PublishInfo(); # Can omit this value; if specified, it must be 'vcsp': $publish_info->set_user_name('vcsp'); $publish_info->set_password('password'); $publish_info->set_authentication_method( Com::Vmware::Content::Library::PublishInfo::AuthenticationMethod::BASIC); $publish_info->set_published(1); # Update the LibraryModel object to contain the PublishInfo configuration. $library_spec->set_publish_info($publish_info); # Use the LibraryModel object to update the library instance. # Only the fields with values result in updates. my $local_library_stub = new Com::Vmware::Content::LocalLibrary($my_stub_config); $local_library_stub->update(library_id => $my_library_id, update_spec => $library_spec);