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 theMetrics
API 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 MetricsAgent
get(java.lang.String orgId, java.lang.String projectId)
Fetch current Metric agent configvoid
get(java.lang.String orgId, java.lang.String projectId, com.vmware.vapi.bindings.client.AsyncCallback<MetricsAgent> asyncCallback)
Fetch current Metric agent configvoid
get(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 configMetricsAgent
get(java.lang.String orgId, java.lang.String projectId, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Fetch current Metric agent configMetricsAgent
update(java.lang.String orgId, java.lang.String projectId, MetricsAgent metricsAgent)
Create Metrics agent intent resourcevoid
update(java.lang.String orgId, java.lang.String projectId, MetricsAgent metricsAgent, com.vmware.vapi.bindings.client.AsyncCallback<MetricsAgent> asyncCallback)
Create Metrics agent intent resourcevoid
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)
Create Metrics agent intent resourceMetricsAgent
update(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:Metrics
Fetch 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:Metrics
Fetch current Metric agent configSynchronous method overload. Result of the invocation will be reported as a method return value. Use
invocationConfig
to 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:Metrics
Fetch 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:Metrics
Fetch current Metric agent configAsynchronous method overload. Result of the invocation will be reported via the specified
asyncCallback
. UseinvocationConfig
to 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:Metrics
Create 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:Metrics
Create Metrics agent intent resourceSynchronous method overload. Result of the invocation will be reported as a method return value. Use
invocationConfig
to 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:Metrics
Create 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:Metrics
Create Metrics agent intent resourceAsynchronous method overload. Result of the invocation will be reported via the specified
asyncCallback
. UseinvocationConfig
to 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:
update
in 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.
-
-