VMware vSphere Automation SDK for .NET 7.0.0.1
|
Builder class for LibraryModel. More...
Public Member Functions | |
Builder () | |
Constructor with parameters for the required properties of LibraryModel. | |
Builder | SetId (string id) |
An identifier which uniquely identifies this LibraryModel . | |
Builder | SetCreationTime (global::System.DateTimeOffset?creationTime) |
The date and time when this library was created. | |
Builder | SetDescription (string description) |
A human-readable description for this library. | |
Builder | SetLastModifiedTime (global::System.DateTimeOffset?lastModifiedTime) |
The date and time when this library was last updated. | |
Builder | SetLastSyncTime (global::System.DateTimeOffset?lastSyncTime) |
The date and time when this library was last synchronized. | |
Builder | SetName (string name) |
The name of the library. | |
Builder | SetStorageBackings (global::System.Collections.Generic.List< vmware.content.library.StorageBacking > storageBackings) |
The list of default storage backings which are available for this library. | |
Builder | SetType (vmware.content.LibraryModel.LibraryType type) |
The type ( LOCAL, SUBSCRIBED) of this library. | |
Builder | SetOptimizationInfo (vmware.content.library.OptimizationInfo optimizationInfo) |
Defines various optimizations and optimization parameters applied to this library. | |
Builder | SetVersion (string version) |
A version number which is updated on metadata changes. | |
Builder | SetPublishInfo (vmware.content.library.PublishInfo publishInfo) |
Defines how this library is published so that it can be subscribed to by a remote subscribed library. | |
Builder | SetSubscriptionInfo (vmware.content.library.SubscriptionInfo subscriptionInfo) |
Defines the subscription behavior for this Library. | |
Builder | SetServerGuid (string serverGuid) |
The unique identifier of the vCenter server where the library exists. | |
LibraryModel | Build () |
Builder class for LibraryModel.
vmware::content::LibraryModel::Builder::Builder | ( | ) | [inline] |
Constructor with parameters for the required properties of LibraryModel.
LibraryModel vmware::content::LibraryModel::Builder::Build | ( | ) | [inline] |
Builder vmware::content::LibraryModel::Builder::SetCreationTime | ( | global::System.DateTimeOffset? | creationTime | ) | [inline] |
The date and time when this library was created.
Builder vmware::content::LibraryModel::Builder::SetDescription | ( | string | description | ) | [inline] |
A human-readable description for this library.
Builder vmware::content::LibraryModel::Builder::SetId | ( | string | id | ) | [inline] |
An identifier which uniquely identifies this LibraryModel
.
When clients pass a value of this class as a parameter, the field must be an identifier for the resource type: com.vmware.content.Library
. When methods return a value of this class as a result, the field will be an identifier for the resource type: com.vmware.content.Library
.
Builder vmware::content::LibraryModel::Builder::SetLastModifiedTime | ( | global::System.DateTimeOffset? | lastModifiedTime | ) | [inline] |
The date and time when this library was last updated.
This field is updated automatically when the library properties are changed. This field is not affected by adding, removing, or modifying a library item or its content within the library. Tagging the library or syncing the subscribed library does not alter this field.
Builder vmware::content::LibraryModel::Builder::SetLastSyncTime | ( | global::System.DateTimeOffset? | lastSyncTime | ) | [inline] |
The date and time when this library was last synchronized.
This field applies only to subscribed libraries. It is updated every time a synchronization is triggered on the library. The value is null for a local library.
Builder vmware::content::LibraryModel::Builder::SetName | ( | string | name | ) | [inline] |
Builder vmware::content::LibraryModel::Builder::SetOptimizationInfo | ( | vmware.content.library.OptimizationInfo | optimizationInfo | ) | [inline] |
Defines various optimizations and optimization parameters applied to this library.
Builder vmware::content::LibraryModel::Builder::SetPublishInfo | ( | vmware.content.library.PublishInfo | publishInfo | ) | [inline] |
Defines how this library is published so that it can be subscribed to by a remote subscribed library.
The library.PublishInfo defines where and how the metadata for this local library is accessible. A local library is only published publically if library.PublishInfo.published is true
.
Builder vmware::content::LibraryModel::Builder::SetServerGuid | ( | string | serverGuid | ) | [inline] |
The unique identifier of the vCenter server where the library exists.
When clients pass a value of this class as a parameter, the field must be an identifier for the resource type: com.vmware.vcenter.VCenter
. When methods return a value of this class as a result, the field will be an identifier for the resource type: com.vmware.vcenter.VCenter
.
Builder vmware::content::LibraryModel::Builder::SetStorageBackings | ( | global::System.Collections.Generic.List< vmware.content.library.StorageBacking > | storageBackings | ) | [inline] |
The list of default storage backings which are available for this library.
A library.StorageBacking defines a default storage location which can be used to store files for library items in this library. Some library items, for instance, virtual machine template items, support files that may be distributed across various storage backings. One or more item files may or may not be located on the default storage backing.
Multiple default storage locations are not currently supported but may become supported in future releases.
Builder vmware::content::LibraryModel::Builder::SetSubscriptionInfo | ( | vmware.content.library.SubscriptionInfo | subscriptionInfo | ) | [inline] |
Defines the subscription behavior for this Library.
The library.SubscriptionInfo defines how this subscribed library synchronizes to a remote source. Setting the value will determine the remote source to which the library synchronizes, and how. Changing the subscription will result in synchronizing to a new source. If the new source differs from the old one, the old library items and data will be lost. Setting library.SubscriptionInfo.automaticSyncEnabled to false will halt subscription but will not remove existing cached data.
Builder vmware::content::LibraryModel::Builder::SetType | ( | vmware.content.LibraryModel.LibraryType | type | ) | [inline] |
The type ( LOCAL, SUBSCRIBED) of this library.
This value can be used to determine what additional services and information can be available for this library. This field is not used for the create
and update
methods. It will always be present in the result of a get
method.
Builder vmware::content::LibraryModel::Builder::SetVersion | ( | string | version | ) | [inline] |
A version number which is updated on metadata changes.
This value allows clients to detect concurrent updates and prevent accidental clobbering of data.
This value represents a number which is incremented every time library properties, such as name or description, are changed. It is not incremented by changes to a library item within the library, including adding or removing items. It is also not affected by tagging the library.