public class FolderStub extends com.vmware.vapi.internal.bindings.Stub implements Folder
Folder
API service.
WARNING: Internal class, subject to change in future versions.
FolderTypes.FilterSpec, FolderTypes.Summary, FolderTypes.Type
apiProvider, converter, ifaceId, securityContext
_VAPI_SERVICE_ID, RESOURCE_TYPE
Constructor and Description |
---|
FolderStub(ApiProvider apiProvider,
StubConfigurationBase config) |
FolderStub(ApiProvider apiProvider,
com.vmware.vapi.internal.bindings.TypeConverter typeConverter,
StubConfigurationBase config) |
Modifier and Type | Method and Description |
---|---|
java.util.List<FolderTypes.Summary> |
list(FolderTypes.FilterSpec filter)
Returns information about at most 1000 visible (subject to permission checks)
folders in vCenter matching the
FolderTypes.FilterSpec . |
void |
list(FolderTypes.FilterSpec filter,
AsyncCallback<java.util.List<FolderTypes.Summary>> asyncCallback)
Returns information about at most 1000 visible (subject to permission checks)
folders in vCenter matching the
FolderTypes.FilterSpec . |
void |
list(FolderTypes.FilterSpec filter,
AsyncCallback<java.util.List<FolderTypes.Summary>> asyncCallback,
InvocationConfig invocationConfig)
Returns information about at most 1000 visible (subject to permission checks)
folders in vCenter matching the
FolderTypes.FilterSpec . |
java.util.List<FolderTypes.Summary> |
list(FolderTypes.FilterSpec filter,
InvocationConfig invocationConfig)
Returns information about at most 1000 visible (subject to permission checks)
folders in vCenter matching the
FolderTypes.FilterSpec . |
public FolderStub(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, StubConfigurationBase config)
public FolderStub(ApiProvider apiProvider, StubConfigurationBase config)
public java.util.List<FolderTypes.Summary> list(FolderTypes.FilterSpec filter)
Folder
FolderTypes.FilterSpec
.
Synchronous method overload. Result of the invocation will be reported as a method return value.
list
in interface Folder
filter
- Specification of matching folders for which information should be returned.
If null
, the behavior is equivalent to a FolderTypes.FilterSpec
with all properties null
which means all folders match the filter.FolderTypes.FilterSpec
.public java.util.List<FolderTypes.Summary> list(FolderTypes.FilterSpec filter, InvocationConfig invocationConfig)
Folder
FolderTypes.FilterSpec
.
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
list
in interface Folder
filter
- Specification of matching folders for which information should be returned.
If null
, the behavior is equivalent to a FolderTypes.FilterSpec
with all properties null
which means all folders match the filter.invocationConfig
- Configuration for the method invocation.FolderTypes.FilterSpec
.public void list(FolderTypes.FilterSpec filter, AsyncCallback<java.util.List<FolderTypes.Summary>> asyncCallback)
Folder
FolderTypes.FilterSpec
.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
Commonly used information about the folders matching the FolderTypes.FilterSpec
.
Operation Errors:
InvalidArgument
- if the FolderTypes.FilterSpec.getType()
property
contains a value that is not supported by the server.
UnableToAllocateResource
- if more than 1000 folders match the FolderTypes.FilterSpec
.
ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user doesn't have the required privileges.
list
in interface Folder
filter
- Specification of matching folders for which information should be returned.
If null
, the behavior is equivalent to a FolderTypes.FilterSpec
with all properties null
which means all folders match the filter.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void list(FolderTypes.FilterSpec filter, AsyncCallback<java.util.List<FolderTypes.Summary>> asyncCallback, InvocationConfig invocationConfig)
Folder
FolderTypes.FilterSpec
.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Invocation Result:
Commonly used information about the folders matching the FolderTypes.FilterSpec
.
Operation Errors:
InvalidArgument
- if the FolderTypes.FilterSpec.getType()
property
contains a value that is not supported by the server.
UnableToAllocateResource
- if more than 1000 folders match the FolderTypes.FilterSpec
.
ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user doesn't have the required privileges.
list
in interface Folder
filter
- Specification of matching folders for which information should be returned.
If null
, the behavior is equivalent to a FolderTypes.FilterSpec
with all properties null
which means all folders match the filter.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.