public class SubscriptionsStub extends com.vmware.vapi.internal.bindings.Stub implements Subscriptions
Subscriptions
API service.
WARNING: Internal class, subject to change in future versions.
apiProvider, converter, ifaceId, retryPolicy, securityContext
_VAPI_SERVICE_ID, GET_0_OFFER_TYPE_ON_DEMAND, GET_0_OFFER_TYPE_TERM
Constructor and Description |
---|
SubscriptionsStub(ApiProvider apiProvider,
StubConfigurationBase config) |
SubscriptionsStub(ApiProvider apiProvider,
com.vmware.vapi.internal.bindings.TypeConverter typeConverter,
StubConfigurationBase config) |
Modifier and Type | Method and Description |
---|---|
Task |
create(java.lang.String org,
SubscriptionRequest subscriptionRequest)
Initiates the creation of a subscription
|
void |
create(java.lang.String org,
SubscriptionRequest subscriptionRequest,
AsyncCallback<Task> asyncCallback)
Initiates the creation of a subscription
|
void |
create(java.lang.String org,
SubscriptionRequest subscriptionRequest,
AsyncCallback<Task> asyncCallback,
InvocationConfig invocationConfig)
Initiates the creation of a subscription
|
Task |
create(java.lang.String org,
SubscriptionRequest subscriptionRequest,
InvocationConfig invocationConfig)
Initiates the creation of a subscription
|
SubscriptionDetails |
get(java.lang.String org,
java.lang.String subscription)
Get subscription details for a given subscription id
|
void |
get(java.lang.String org,
java.lang.String subscription,
AsyncCallback<SubscriptionDetails> asyncCallback)
Get subscription details for a given subscription id
|
void |
get(java.lang.String org,
java.lang.String subscription,
AsyncCallback<SubscriptionDetails> asyncCallback,
InvocationConfig invocationConfig)
Get subscription details for a given subscription id
|
SubscriptionDetails |
get(java.lang.String org,
java.lang.String subscription,
InvocationConfig invocationConfig)
Get subscription details for a given subscription id
|
java.util.List<SubscriptionDetails> |
get0(java.lang.String org,
java.lang.String offerType)
Returns default billing account subscriptions for a given org id
|
void |
get0(java.lang.String org,
java.lang.String offerType,
AsyncCallback<java.util.List<SubscriptionDetails>> asyncCallback)
Returns default billing account subscriptions for a given org id
|
void |
get0(java.lang.String org,
java.lang.String offerType,
AsyncCallback<java.util.List<SubscriptionDetails>> asyncCallback,
InvocationConfig invocationConfig)
Returns default billing account subscriptions for a given org id
|
java.util.List<SubscriptionDetails> |
get0(java.lang.String org,
java.lang.String offerType,
InvocationConfig invocationConfig)
Returns default billing account subscriptions for a given org id
|
public SubscriptionsStub(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, StubConfigurationBase config)
public SubscriptionsStub(ApiProvider apiProvider, StubConfigurationBase config)
public Task create(java.lang.String org, SubscriptionRequest subscriptionRequest)
Subscriptions
Synchronous method overload. Result of the invocation will be reported as a method return value.
create
in interface Subscriptions
org
- Organization identifier (required)subscriptionRequest
- subscriptionRequest (required)public Task create(java.lang.String org, SubscriptionRequest subscriptionRequest, InvocationConfig invocationConfig)
Subscriptions
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 Subscriptions
org
- Organization identifier (required)subscriptionRequest
- subscriptionRequest (required)invocationConfig
- Configuration for the method invocation.public void create(java.lang.String org, SubscriptionRequest subscriptionRequest, AsyncCallback<Task> asyncCallback)
Subscriptions
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
com.vmware.vmc.model.Task
Operation Errors:
Unauthenticated
- Unauthorized
Unauthorized
- Forbidden
InternalServerError
- Server error. Check retryable flag to see if request should be retried.
create
in interface Subscriptions
org
- Organization identifier (required)subscriptionRequest
- subscriptionRequest (required)asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void create(java.lang.String org, SubscriptionRequest subscriptionRequest, AsyncCallback<Task> asyncCallback, InvocationConfig invocationConfig)
Subscriptions
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:
com.vmware.vmc.model.Task
Operation Errors:
Unauthenticated
- Unauthorized
Unauthorized
- Forbidden
InternalServerError
- Server error. Check retryable flag to see if request should be retried.
create
in interface Subscriptions
org
- Organization identifier (required)subscriptionRequest
- subscriptionRequest (required)asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public SubscriptionDetails get(java.lang.String org, java.lang.String subscription)
Subscriptions
Synchronous method overload. Result of the invocation will be reported as a method return value.
get
in interface Subscriptions
org
- Organization identifier (required)subscription
- SubscriptionId for an sddc. (required)public SubscriptionDetails get(java.lang.String org, java.lang.String subscription, InvocationConfig invocationConfig)
Subscriptions
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
get
in interface Subscriptions
org
- Organization identifier (required)subscription
- SubscriptionId for an sddc. (required)invocationConfig
- Configuration for the method invocation.public void get(java.lang.String org, java.lang.String subscription, AsyncCallback<SubscriptionDetails> asyncCallback)
Subscriptions
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
com.vmware.vmc.model.SubscriptionDetails
Operation Errors:
InternalServerError
- Server error. Check retryable flag to see if request should be retried.
NotFound
- Not Found
get
in interface Subscriptions
org
- Organization identifier (required)subscription
- SubscriptionId for an sddc. (required)asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void get(java.lang.String org, java.lang.String subscription, AsyncCallback<SubscriptionDetails> asyncCallback, InvocationConfig invocationConfig)
Subscriptions
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:
com.vmware.vmc.model.SubscriptionDetails
Operation Errors:
InternalServerError
- Server error. Check retryable flag to see if request should be retried.
NotFound
- Not Found
get
in interface Subscriptions
org
- Organization identifier (required)subscription
- SubscriptionId for an sddc. (required)asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public java.util.List<SubscriptionDetails> get0(java.lang.String org, java.lang.String offerType)
Subscriptions
Synchronous method overload. Result of the invocation will be reported as a method return value.
get0
in interface Subscriptions
org
- Organization identifier (required)offerType
- Offer Type * `ON_DEMAND` - on-demand subscription * `TERM` - term subscription *
All subscriptions if not specified (optional)public java.util.List<SubscriptionDetails> get0(java.lang.String org, java.lang.String offerType, InvocationConfig invocationConfig)
Subscriptions
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
get0
in interface Subscriptions
org
- Organization identifier (required)offerType
- Offer Type * `ON_DEMAND` - on-demand subscription * `TERM` - term subscription *
All subscriptions if not specified (optional)invocationConfig
- Configuration for the method invocation.public void get0(java.lang.String org, java.lang.String offerType, AsyncCallback<java.util.List<SubscriptionDetails>> asyncCallback)
Subscriptions
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
Unauthenticated
- Unauthorized
InternalServerError
- Server error. Check retryable flag to see if request should be retried.
NotFound
- Not Found
get0
in interface Subscriptions
org
- Organization identifier (required)offerType
- Offer Type * `ON_DEMAND` - on-demand subscription * `TERM` - term subscription *
All subscriptions if not specified (optional)asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void get0(java.lang.String org, java.lang.String offerType, AsyncCallback<java.util.List<SubscriptionDetails>> asyncCallback, InvocationConfig invocationConfig)
Subscriptions
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:
Unauthenticated
- Unauthorized
InternalServerError
- Server error. Check retryable flag to see if request should be retried.
NotFound
- Not Found
get0
in interface Subscriptions
org
- Organization identifier (required)offerType
- Offer Type * `ON_DEMAND` - on-demand subscription * `TERM` - term subscription *
All subscriptions if not specified (optional)asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.