Class MetricsStub
- java.lang.Object
-
- com.vmware.vapi.internal.bindings.Stub
-
- com.vmware.nsx_policy.orgs.projects.infra.sites.agents.MetricsStub
-
- All Implemented Interfaces:
Metrics,MetricsTypes,com.vmware.vapi.bindings.Service
public class MetricsStub extends com.vmware.vapi.internal.bindings.Stub implements Metrics
Remote stub implementation of theMetricsAPI service.WARNING: Internal class, subject to change in future versions.
-
-
Field Summary
-
Fields inherited from class com.vmware.vapi.internal.bindings.Stub
apiProvider, converter, ifaceId, retryPolicy, securityContext
-
Fields inherited from interface com.vmware.nsx_policy.orgs.projects.infra.sites.agents.MetricsTypes
_VAPI_SERVICE_ID
-
-
Constructor Summary
Constructors Constructor Description MetricsStub(com.vmware.vapi.core.ApiProvider apiProvider, com.vmware.vapi.bindings.StubConfigurationBase config)MetricsStub(com.vmware.vapi.core.ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, com.vmware.vapi.bindings.StubConfigurationBase config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MetricsAgentget(java.lang.String orgId, java.lang.String projectId)Fetch current Metric agent configvoidget(java.lang.String orgId, java.lang.String projectId, com.vmware.vapi.bindings.client.AsyncCallback<MetricsAgent> asyncCallback)Fetch current Metric agent configvoidget(java.lang.String orgId, java.lang.String projectId, com.vmware.vapi.bindings.client.AsyncCallback<MetricsAgent> asyncCallback, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)Fetch current Metric agent configMetricsAgentget(java.lang.String orgId, java.lang.String projectId, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)Fetch current Metric agent configMetricsAgentupdate(java.lang.String orgId, java.lang.String projectId, MetricsAgent metricsAgent)Create Metrics agent intent resourcevoidupdate(java.lang.String orgId, java.lang.String projectId, MetricsAgent metricsAgent, com.vmware.vapi.bindings.client.AsyncCallback<MetricsAgent> asyncCallback)Create Metrics agent intent resourcevoidupdate(java.lang.String orgId, java.lang.String projectId, MetricsAgent metricsAgent, com.vmware.vapi.bindings.client.AsyncCallback<MetricsAgent> asyncCallback, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)Create Metrics agent intent resourceMetricsAgentupdate(java.lang.String orgId, java.lang.String projectId, MetricsAgent metricsAgent, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)Create Metrics agent intent resource
-
-
-
Constructor Detail
-
MetricsStub
public MetricsStub(com.vmware.vapi.core.ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, com.vmware.vapi.bindings.StubConfigurationBase config)
-
MetricsStub
public MetricsStub(com.vmware.vapi.core.ApiProvider apiProvider, com.vmware.vapi.bindings.StubConfigurationBase config)
-
-
Method Detail
-
get
public MetricsAgent get(java.lang.String orgId, java.lang.String projectId)
Description copied from interface:MetricsFetch current Metric agent configSynchronous method overload. Result of the invocation will be reported as a method return value.
-
get
public MetricsAgent get(java.lang.String orgId, java.lang.String projectId, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Description copied from interface:MetricsFetch current Metric agent configSynchronous method overload. Result of the invocation will be reported as a method return value. Use
invocationConfigto specify configuration for this particular invocation.
-
get
public void get(java.lang.String orgId, java.lang.String projectId, com.vmware.vapi.bindings.client.AsyncCallback<MetricsAgent> asyncCallback)Description copied from interface:MetricsFetch current Metric agent configAsynchronous method overload. Result of the invocation will be reported via the specified
asyncCallback.Invocation Result:
com.vmware.nsx_policy.model.MetricsAgentOperation Errors:
InvalidRequest- Bad Request, Precondition Failed
Unauthorized- Forbidden
ServiceUnavailable- Service Unavailable
InternalServerError- Internal Server Error
NotFound- Not Found
-
get
public void get(java.lang.String orgId, java.lang.String projectId, com.vmware.vapi.bindings.client.AsyncCallback<MetricsAgent> asyncCallback, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)Description copied from interface:MetricsFetch current Metric agent configAsynchronous method overload. Result of the invocation will be reported via the specified
asyncCallback. UseinvocationConfigto specify configuration for this particular invocation.Invocation Result:
com.vmware.nsx_policy.model.MetricsAgentOperation Errors:
InvalidRequest- Bad Request, Precondition Failed
Unauthorized- Forbidden
ServiceUnavailable- Service Unavailable
InternalServerError- Internal Server Error
NotFound- Not Found
-
update
public MetricsAgent update(java.lang.String orgId, java.lang.String projectId, MetricsAgent metricsAgent)
Description copied from interface:MetricsCreate Metrics agent intent resourceSynchronous method overload. Result of the invocation will be reported as a method return value.
-
update
public MetricsAgent update(java.lang.String orgId, java.lang.String projectId, MetricsAgent metricsAgent, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Description copied from interface:MetricsCreate Metrics agent intent resourceSynchronous method overload. Result of the invocation will be reported as a method return value. Use
invocationConfigto specify configuration for this particular invocation.
-
update
public void update(java.lang.String orgId, java.lang.String projectId, MetricsAgent metricsAgent, com.vmware.vapi.bindings.client.AsyncCallback<MetricsAgent> asyncCallback)Description copied from interface:MetricsCreate Metrics agent intent resourceAsynchronous method overload. Result of the invocation will be reported via the specified
asyncCallback.Invocation Result:
com.vmware.nsx_policy.model.MetricsAgentOperation Errors:
InvalidRequest- Bad Request, Precondition Failed
Unauthorized- Forbidden
ServiceUnavailable- Service Unavailable
InternalServerError- Internal Server Error
NotFound- Not Found
-
update
public void update(java.lang.String orgId, java.lang.String projectId, MetricsAgent metricsAgent, com.vmware.vapi.bindings.client.AsyncCallback<MetricsAgent> asyncCallback, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)Description copied from interface:MetricsCreate Metrics agent intent resourceAsynchronous method overload. Result of the invocation will be reported via the specified
asyncCallback. UseinvocationConfigto specify configuration for this particular invocation.Invocation Result:
com.vmware.nsx_policy.model.MetricsAgentOperation Errors:
InvalidRequest- Bad Request, Precondition Failed
Unauthorized- Forbidden
ServiceUnavailable- Service Unavailable
InternalServerError- Internal Server Error
NotFound- Not Found
- Specified by:
updatein interfaceMetrics- Parameters:
orgId- The organization ID (required)projectId- The project ID (required)metricsAgent- (required)asyncCallback- Receives the status (progress, result or error) of the operation invocation.invocationConfig- Configuration for the method invocation.
-
-