public class ConfigStub extends com.vmware.vapi.internal.bindings.Stub implements Config
Config
API service.
WARNING: Internal class, subject to change in future versions.
ConfigTypes._VAPI_OPERATIONS, ConfigTypes.CreateSpec, ConfigTypes.Info, ConfigTypes.ScanSpec
apiProvider, converter, ifaceId, retryPolicy, securityContext
_VAPI_SERVICE_ID
Constructor and Description |
---|
ConfigStub(ApiProvider apiProvider,
StubConfigurationBase config) |
ConfigStub(ApiProvider apiProvider,
com.vmware.vapi.internal.bindings.TypeConverter typeConverter,
StubConfigurationBase config) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
create(ConfigTypes.CreateSpec spec)
Creates a Profile.
|
void |
create(ConfigTypes.CreateSpec spec,
AsyncCallback<java.lang.String> asyncCallback)
Creates a Profile.
|
void |
create(ConfigTypes.CreateSpec spec,
AsyncCallback<java.lang.String> asyncCallback,
InvocationConfig invocationConfig)
Creates a Profile.
|
java.lang.String |
create(ConfigTypes.CreateSpec spec,
InvocationConfig invocationConfig)
Creates a Profile.
|
void |
delete()
Deletes a profile.
|
void |
delete(AsyncCallback<java.lang.Void> asyncCallback)
Deletes a profile.
|
void |
delete(AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Deletes a profile.
|
void |
delete(InvocationConfig invocationConfig)
Deletes a profile.
|
ConfigTypes.Info |
get()
Returns information about a profile.
|
void |
get(AsyncCallback<ConfigTypes.Info> asyncCallback)
Returns information about a profile.
|
void |
get(AsyncCallback<ConfigTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
Returns information about a profile.
|
ConfigTypes.Info |
get(InvocationConfig invocationConfig)
Returns information about a profile.
|
java.lang.String |
scan_Task(java.lang.String version)
Scans all the components in the profiles against the applied profile.
|
void |
scan_Task(java.lang.String version,
AsyncCallback<java.lang.String> asyncCallback)
Scans all the components in the profiles against the applied profile.
|
void |
scan_Task(java.lang.String version,
AsyncCallback<java.lang.String> asyncCallback,
InvocationConfig invocationConfig)
Scans all the components in the profiles against the applied profile.
|
java.lang.String |
scan_Task(java.lang.String version,
InvocationConfig invocationConfig)
Scans all the components in the profiles against the applied profile.
|
java.lang.String |
scanDesiredState_Task(ConfigTypes.ScanSpec spec)
Scans all the components in the desired state against the applied profile.
|
void |
scanDesiredState_Task(ConfigTypes.ScanSpec spec,
AsyncCallback<java.lang.String> asyncCallback)
Scans all the components in the desired state against the applied profile.
|
void |
scanDesiredState_Task(ConfigTypes.ScanSpec spec,
AsyncCallback<java.lang.String> asyncCallback,
InvocationConfig invocationConfig)
Scans all the components in the desired state against the applied profile.
|
java.lang.String |
scanDesiredState_Task(ConfigTypes.ScanSpec spec,
InvocationConfig invocationConfig)
Scans all the components in the desired state against the applied profile.
|
public ConfigStub(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, StubConfigurationBase config)
public ConfigStub(ApiProvider apiProvider, StubConfigurationBase config)
public java.lang.String create(ConfigTypes.CreateSpec spec)
Config
Synchronous method overload. Result of the invocation will be reported as a method return value.
public java.lang.String create(ConfigTypes.CreateSpec spec, InvocationConfig invocationConfig)
Config
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
create
in interface Config
spec
- Specification of the profile to be created.invocationConfig
- Configuration for the method invocation.com.vmware.appliance.vcenter.settings.v1.config.profile
.public void create(ConfigTypes.CreateSpec spec, AsyncCallback<java.lang.String> asyncCallback)
Config
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
ID of newly-created profile.
The return value will be an identifier for the resource type: com.vmware.appliance.vcenter.settings.v1.config.profile
.
Operation Errors:
AlreadyExists
- if a profile with the specified name already exists.
Error
- if the system reports an error while responding to the request.
InvalidArgument
- if any of the specified parameters are invalid.
ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.
Unauthenticated
- if the user can not be authenticated.
public void create(ConfigTypes.CreateSpec spec, AsyncCallback<java.lang.String> asyncCallback, InvocationConfig invocationConfig)
Config
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:
ID of newly-created profile.
The return value will be an identifier for the resource type: com.vmware.appliance.vcenter.settings.v1.config.profile
.
Operation Errors:
AlreadyExists
- if a profile with the specified name already exists.
Error
- if the system reports an error while responding to the request.
InvalidArgument
- if any of the specified parameters are invalid.
ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.
Unauthenticated
- if the user can not be authenticated.
public ConfigTypes.Info get()
Config
Synchronous method overload. Result of the invocation will be reported as a method return value.
public ConfigTypes.Info get(InvocationConfig invocationConfig)
Config
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
public void get(AsyncCallback<ConfigTypes.Info> asyncCallback)
Config
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
Information about the specified profile.
Operation Errors:
Error
- if the system reports an error while responding to the request.
InvalidArgument
- If given version is different than the latest one.
NotFound
- If there is no profile or version associated with profile
or version
in the system.
ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.
Unauthenticated
- if the user can not be authenticated.
public void get(AsyncCallback<ConfigTypes.Info> asyncCallback, InvocationConfig invocationConfig)
Config
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:
Information about the specified profile.
Operation Errors:
Error
- if the system reports an error while responding to the request.
InvalidArgument
- If given version is different than the latest one.
NotFound
- If there is no profile or version associated with profile
or version
in the system.
ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.
Unauthenticated
- if the user can not be authenticated.
public void delete()
Config
Synchronous method overload. Result of the invocation will be reported as a method return value.
public void delete(InvocationConfig invocationConfig)
Config
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
public void delete(AsyncCallback<java.lang.Void> asyncCallback)
Config
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
Error
- if the system reports an error while responding to the request.
NotAllowedInCurrentState
- if any other operation running on the same profile.
NotFound
- if the profile is not found.
ServiceUnavailable
- if the system is unable to communicate service to complete the request.
Unauthenticated
- if the user can not be authenticated.
public void delete(AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
Config
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Operation Errors:
Error
- if the system reports an error while responding to the request.
NotAllowedInCurrentState
- if any other operation running on the same profile.
NotFound
- if the profile is not found.
ServiceUnavailable
- if the system is unable to communicate service to complete the request.
Unauthenticated
- if the user can not be authenticated.
public java.lang.String scan_Task(java.lang.String version)
Config
Synchronous method overload. Result of the invocation is a task identifier which will be returned by this method.
public java.lang.String scan_Task(java.lang.String version, InvocationConfig invocationConfig)
Config
Synchronous method overload. Result of the invocation is a task
identifier which will be returned by this method.
Use invocationConfig
to specify configuration for this particular invocation.
scan_Task
in interface Config
version
- version of the profile.
The parameter must be an identifier for the resource type: com.vmware.appliance.vcenter.settings.v1.config.version
.invocationConfig
- Configuration for the method invocation.public void scan_Task(java.lang.String version, AsyncCallback<java.lang.String> asyncCallback)
Config
Asynchronous method overload. Result of the invocation which is
a task identifier will be reported via the specified asyncCallback
.
Invocation Result:
identifier for the task created by this API invocation
Operation Errors:
Error
- If there is unknown internal error. The accompanying error message will give
more details about the failure.
NotFound
- If there is no profile associated with profile
in the system.
ServiceUnavailable
- If the service is not available.
Unauthenticated
- If the caller is not authenticated.
public void scan_Task(java.lang.String version, AsyncCallback<java.lang.String> asyncCallback, InvocationConfig invocationConfig)
Config
Asynchronous method overload. Result of the invocation which is
a task identifier will be reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Invocation Result:
identifier for the task created by this API invocation
Operation Errors:
Error
- If there is unknown internal error. The accompanying error message will give
more details about the failure.
NotFound
- If there is no profile associated with profile
in the system.
ServiceUnavailable
- If the service is not available.
Unauthenticated
- If the caller is not authenticated.
scan_Task
in interface Config
version
- version of the profile.
The parameter must be an identifier for the resource type: com.vmware.appliance.vcenter.settings.v1.config.version
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public java.lang.String scanDesiredState_Task(ConfigTypes.ScanSpec spec)
Config
Synchronous method overload. Result of the invocation is a task identifier which will be returned by this method.
scanDesiredState_Task
in interface Config
public java.lang.String scanDesiredState_Task(ConfigTypes.ScanSpec spec, InvocationConfig invocationConfig)
Config
Synchronous method overload. Result of the invocation is a task
identifier which will be returned by this method.
Use invocationConfig
to specify configuration for this particular invocation.
scanDesiredState_Task
in interface Config
invocationConfig
- Configuration for the method invocation.public void scanDesiredState_Task(ConfigTypes.ScanSpec spec, AsyncCallback<java.lang.String> asyncCallback)
Config
Asynchronous method overload. Result of the invocation which is
a task identifier will be reported via the specified asyncCallback
.
Invocation Result:
identifier for the task created by this API invocation
Operation Errors:
Error
- If there is unknown internal error. The accompanying error message will give
more details about the failure.
ServiceUnavailable
- If the service is not available.
Unauthenticated
- If the caller is not authenticated.
scanDesiredState_Task
in interface Config
asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void scanDesiredState_Task(ConfigTypes.ScanSpec spec, AsyncCallback<java.lang.String> asyncCallback, InvocationConfig invocationConfig)
Config
Asynchronous method overload. Result of the invocation which is
a task identifier will be reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Invocation Result:
identifier for the task created by this API invocation
Operation Errors:
Error
- If there is unknown internal error. The accompanying error message will give
more details about the failure.
ServiceUnavailable
- If the service is not available.
Unauthenticated
- If the caller is not authenticated.
scanDesiredState_Task
in interface Config
asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.