public interface Subscriptions extends Service, SubscriptionsTypes
_VAPI_SERVICE_ID, GET_0_OFFER_TYPE_ON_DEMAND, GET_0_OFFER_TYPE_TERM
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
|
Task create(java.lang.String org, SubscriptionRequest subscriptionRequest)
Synchronous method overload. Result of the invocation will be reported as a method return value.
org
- Organization identifier (required)subscriptionRequest
- subscriptionRequest (required)Unauthenticated
- UnauthorizedUnauthorized
- ForbiddenInternalServerError
- Server error. Check retryable flag to see if request should be retried.Task create(java.lang.String org, SubscriptionRequest subscriptionRequest, InvocationConfig invocationConfig)
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
org
- Organization identifier (required)subscriptionRequest
- subscriptionRequest (required)invocationConfig
- Configuration for the method invocation.Unauthenticated
- UnauthorizedUnauthorized
- ForbiddenInternalServerError
- Server error. Check retryable flag to see if request should be retried.void create(java.lang.String org, SubscriptionRequest subscriptionRequest, AsyncCallback<Task> asyncCallback)
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.
org
- Organization identifier (required)subscriptionRequest
- subscriptionRequest (required)asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void create(java.lang.String org, SubscriptionRequest subscriptionRequest, AsyncCallback<Task> asyncCallback, InvocationConfig invocationConfig)
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.
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.SubscriptionDetails get(java.lang.String org, java.lang.String subscription)
Synchronous method overload. Result of the invocation will be reported as a method return value.
org
- Organization identifier (required)subscription
- SubscriptionId for an sddc. (required)InternalServerError
- Server error. Check retryable flag to see if request should be retried.NotFound
- Not FoundSubscriptionDetails get(java.lang.String org, java.lang.String subscription, InvocationConfig invocationConfig)
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
org
- Organization identifier (required)subscription
- SubscriptionId for an sddc. (required)invocationConfig
- Configuration for the method invocation.InternalServerError
- Server error. Check retryable flag to see if request should be retried.NotFound
- Not Foundvoid get(java.lang.String org, java.lang.String subscription, AsyncCallback<SubscriptionDetails> asyncCallback)
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
org
- Organization identifier (required)subscription
- SubscriptionId for an sddc. (required)asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void get(java.lang.String org, java.lang.String subscription, AsyncCallback<SubscriptionDetails> asyncCallback, InvocationConfig invocationConfig)
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
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.java.util.List<SubscriptionDetails> get0(java.lang.String org, java.lang.String offerType)
Synchronous method overload. Result of the invocation will be reported as a method return value.
org
- Organization identifier (required)offerType
- Offer Type * `ON_DEMAND` - on-demand subscription * `TERM` - term subscription *
All subscriptions if not specified (optional)Unauthenticated
- UnauthorizedInternalServerError
- Server error. Check retryable flag to see if request should be retried.NotFound
- Not Foundjava.util.List<SubscriptionDetails> get0(java.lang.String org, java.lang.String offerType, InvocationConfig invocationConfig)
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
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.Unauthenticated
- UnauthorizedInternalServerError
- Server error. Check retryable flag to see if request should be retried.NotFound
- Not Foundvoid get0(java.lang.String org, java.lang.String offerType, AsyncCallback<java.util.List<SubscriptionDetails>> asyncCallback)
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
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.void get0(java.lang.String org, java.lang.String offerType, AsyncCallback<java.util.List<SubscriptionDetails>> asyncCallback, InvocationConfig invocationConfig)
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
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.