Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[vro-types] Add VcStorageManager class definition #449

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions vro-types/o11n-plugin-vc/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15833,6 +15833,37 @@ declare class VcVirtualMachineBackupEventInfo {
constructor(eventType: string, code: number, message: string);
}

/**
* Provice information about storage
*/
declare class VcStorageQueryManager {
readonly vimType: string;
readonly sdkConnection: VcSdkConnection;
readonly moref: VcManagedObjectReference;
readonly vimId: string;
readonly sdkId: string;
readonly vimHost: VcSdkConnection;

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see another function in the API - _getRef, maybe it is worth adding it as well
image

/**
* create a trigger
* @param {number} timeout
* @param {string} filter
* @param {string} condition
* @param {string} filterToSync
* @returns {Trigger}
*/
public createTrigger (timeout: number, filter: string, condition: string, filterToSync: string): Trigger;

/**
* get the hosts with a lun attached
* @param {string} arg0
* @returns {VcHostSystem[]} - list of ESX hosts
*/
public queryHostsWithAttachedLun (arg0: string): VcHostSystem[];

constructor(vimType: string, sdkConnection: VcSdkConnection, moref: VcManagedObjectReference, vimId: string, sdkId: string, vimHost: VcSdkConnection);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure this object has a constructor? I don't see it in the API explorer (but have it mind that i am not with latest version so mine might be outdated)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was not able to find any constructor definition for this object in the documentation (API explorer, MOB and so on).
Usually when there is available constructor this should be explicitly defined, e.g.:

image

image

}

/**
* The {@link ServiceInstanceContent} data object defines properties for the ServiceInstance
* managed object. The ServiceInstance itself does not have directly-accessible
Expand Down Expand Up @@ -15892,6 +15923,7 @@ declare class VcServiceContent {
serviceManager: VcServiceManager;
viewManager: VcViewManager;
scheduledTaskManager: VcScheduledTaskManager;
storageQueryManager: VcStorageQueryManager;
constructor();
constructor();
/**
Expand Down
Loading