|
VMware vSphere Automation SDK Perl
The VMware vSphere Automation SDK for Perl supports the client-side vSphere Automation API for access to vSphere services and capabilities
|
Classes | |
| class | AuthenticationMethod |
Avaliable Methods | |
| public method | set_ssl_thumbprint () |
| public method | get_automatic_sync_enabled () |
| public method | set_authentication_method () |
| public method | set_user_name () |
| public method | get_subscription_url () |
| public method | set_password () |
| public method | get_user_name () |
| public method | get_password () |
| public method | get_authentication_method () |
| public method | set_automatic_sync_enabled () |
| public method | get_ssl_thumbprint () |
| public method | get_on_demand () |
| public method | new () |
| public method | set_on_demand () |
| public method | set_subscription_url () |
The Com::Vmware::Content::Library::SubscriptionInfo class defines the subscription behavior for a subscribed library.
| public method Com::Vmware::Content::Library::SubscriptionInfo::get_authentication_method | ( | ) |
Gets the value of 'authentication_method' property.
| authentication_method | - The current value of the field. Indicate how the subscribed library should authenticate (BASIC, NONE) with the published library endpoint. optional# |
Code:
| public method Com::Vmware::Content::Library::SubscriptionInfo::get_automatic_sync_enabled | ( | ) |
Gets the value of 'automatic_sync_enabled' property.
| automatic_sync_enabled | - The current value of the field. Whether the library should participate in automatic library synchronization. In order for automatic synchronization to happen, the global :attr:Com::Vmware::Content::ConfigurationModel.automatic_sync_enabled option must also be true. The subscription is still active even when automatic synchronization is turned off, but synchronization is only activated with an explicit call to :func:Com::Vmware::Content::SubscribedLibrary.sync or :func:Com::Vmware::Content::Library::SubscribedItem.sync . In other words, manual synchronization is still available even when automatic synchronization is disabled. optional# |
Code:
| public method Com::Vmware::Content::Library::SubscriptionInfo::get_on_demand | ( | ) |
Gets the value of 'on_demand' property.
| on_demand | - The current value of the field. Indicates whether a library item's content will be synchronized only on demand. |
If this is set to true , then the library item's metadata will be synchronized but the item's content (its files) will not be synchronized. The Content Library Service will synchronize the content upon request only. This can cause the first use of the content to have a noticeable delay.
Items without synchronized content can be forcefully synchronized in advance using the :func:Com::Vmware::Content::Library::SubscribedItem.sync call with forceSyncContent set to true. Once content has been synchronized, the content can removed with the :func:Com::Vmware::Content::Library::SubscribedItem.evict call.
If this value is set to false , all content will be synchronized in advance.
optional#
Code:
| public method Com::Vmware::Content::Library::SubscriptionInfo::get_password | ( | ) |
Gets the value of 'password' property.
| password | - The current value of the field. The password to use when authenticating. |
The password must be set when using a password-based authentication method; empty strings are not allowed.
optional#
Code:
| public method Com::Vmware::Content::Library::SubscriptionInfo::get_ssl_thumbprint | ( | ) |
Gets the value of 'ssl_thumbprint' property.
| ssl_thumbprint | - The current value of the field. An optional SHA-1 hash of the SSL certificate for the remote endpoint. |
If this value is defined the SSL certificate will be verified by comparing it to the SSL thumbprint. The SSL certificate must verify against the thumbprint. When specified, the standard certificate chain validation behavior is not used. The certificate chain is validated normally if this value is null .
optional#
Code:
| public method Com::Vmware::Content::Library::SubscriptionInfo::get_subscription_url | ( | ) |
Gets the value of 'subscription_url' property.
| subscription_url | - The current value of the field. The URL of the endpoint where the metadata for the remotely published library is being served. |
This URL can be the :attr:Com::Vmware::Content::Library::PublishInfo.publish_url of the published library (for example, https://server/path/lib.json).
If the source content comes from a published library with :attr:Com::Vmware::Content::Library::PublishInfo.persist_json_enabled , the subscription URL can be a URL pointing to the library JSON file on a datastore or remote file system. The supported formats are:
vSphere 6.5
vSphere 6.0
When you specify a DS subscription URL, the datastore must be on the same vCenter Server as the subscribed library. When you specify an NFS or SMB subscription URL, the :attr:Com::Vmware::Content::Library::StorageBacking.storage_uri of the subscribed library must be on the same remote file server and should share a common parent path with the subscription URL.
optional#
Code:
| public method Com::Vmware::Content::Library::SubscriptionInfo::get_user_name | ( | ) |
Gets the value of 'user_name' property.
| user_name | - The current value of the field. The username to use when authenticating. |
The username must be set when using a password-based authentication method. Empty strings are allowed for usernames.
optional#
Code:
| public method Com::Vmware::Content::Library::SubscriptionInfo::new | ( | ) |
Constructor to initialize the Com::Vmware::Content::Library::SubscriptionInfo structure
| Blessed | object |
Code:
| public method Com::Vmware::Content::Library::SubscriptionInfo::set_authentication_method | ( | ) |
Sets the given value for 'authentication_method' property.
| authentication_method | - New value for the field. Indicate how the subscribed library should authenticate (BASIC, NONE) with the published library endpoint. |
Code:
| public method Com::Vmware::Content::Library::SubscriptionInfo::set_automatic_sync_enabled | ( | ) |
Sets the given value for 'automatic_sync_enabled' property.
| automatic_sync_enabled | - New value for the field. Whether the library should participate in automatic library synchronization. In order for automatic synchronization to happen, the global :attr:Com::Vmware::Content::ConfigurationModel.automatic_sync_enabled option must also be true. The subscription is still active even when automatic synchronization is turned off, but synchronization is only activated with an explicit call to :func:Com::Vmware::Content::SubscribedLibrary.sync or :func:Com::Vmware::Content::Library::SubscribedItem.sync . In other words, manual synchronization is still available even when automatic synchronization is disabled. |
Code:
| public method Com::Vmware::Content::Library::SubscriptionInfo::set_on_demand | ( | ) |
Sets the given value for 'on_demand' property.
| on_demand | - New value for the field. Indicates whether a library item's content will be synchronized only on demand. |
If this is set to true , then the library item's metadata will be synchronized but the item's content (its files) will not be synchronized. The Content Library Service will synchronize the content upon request only. This can cause the first use of the content to have a noticeable delay.
Items without synchronized content can be forcefully synchronized in advance using the :func:Com::Vmware::Content::Library::SubscribedItem.sync call with forceSyncContent set to true. Once content has been synchronized, the content can removed with the :func:Com::Vmware::Content::Library::SubscribedItem.evict call.
If this value is set to false , all content will be synchronized in advance.
Code:
| public method Com::Vmware::Content::Library::SubscriptionInfo::set_password | ( | ) |
Sets the given value for 'password' property.
| password | - New value for the field. The password to use when authenticating. |
The password must be set when using a password-based authentication method; empty strings are not allowed.
Code:
| public method Com::Vmware::Content::Library::SubscriptionInfo::set_ssl_thumbprint | ( | ) |
Sets the given value for 'ssl_thumbprint' property.
| ssl_thumbprint | - New value for the field. An optional SHA-1 hash of the SSL certificate for the remote endpoint. |
If this value is defined the SSL certificate will be verified by comparing it to the SSL thumbprint. The SSL certificate must verify against the thumbprint. When specified, the standard certificate chain validation behavior is not used. The certificate chain is validated normally if this value is null .
Code:
| public method Com::Vmware::Content::Library::SubscriptionInfo::set_subscription_url | ( | ) |
Sets the given value for 'subscription_url' property.
| subscription_url | - New value for the field. The URL of the endpoint where the metadata for the remotely published library is being served. |
This URL can be the :attr:Com::Vmware::Content::Library::PublishInfo.publish_url of the published library (for example, https://server/path/lib.json).
If the source content comes from a published library with :attr:Com::Vmware::Content::Library::PublishInfo.persist_json_enabled , the subscription URL can be a URL pointing to the library JSON file on a datastore or remote file system. The supported formats are:
vSphere 6.5
vSphere 6.0
When you specify a DS subscription URL, the datastore must be on the same vCenter Server as the subscribed library. When you specify an NFS or SMB subscription URL, the :attr:Com::Vmware::Content::Library::StorageBacking.storage_uri of the subscribed library must be on the same remote file server and should share a common parent path with the subscription URL.
Code:
| public method Com::Vmware::Content::Library::SubscriptionInfo::set_user_name | ( | ) |
Sets the given value for 'user_name' property.
| user_name | - New value for the field. The username to use when authenticating. |
The username must be set when using a password-based authentication method. Empty strings are allowed for usernames.
Code: