public class OfferInstancesStub extends com.vmware.vapi.internal.bindings.Stub implements OfferInstances
OfferInstances
API service.
WARNING: Internal class, subject to change in future versions.
apiProvider, converter, ifaceId, retryPolicy, securityContext
_VAPI_SERVICE_ID
Constructor and Description |
---|
OfferInstancesStub(ApiProvider apiProvider,
StubConfigurationBase config) |
OfferInstancesStub(ApiProvider apiProvider,
com.vmware.vapi.internal.bindings.TypeConverter typeConverter,
StubConfigurationBase config) |
Modifier and Type | Method and Description |
---|---|
OfferInstancesHolder |
list(java.lang.String org,
java.lang.String region,
java.lang.String productType,
java.lang.String product,
java.lang.String type)
List all offers available for the specific product type in the specific region
|
void |
list(java.lang.String org,
java.lang.String region,
java.lang.String productType,
java.lang.String product,
java.lang.String type,
AsyncCallback<OfferInstancesHolder> asyncCallback)
List all offers available for the specific product type in the specific region
|
void |
list(java.lang.String org,
java.lang.String region,
java.lang.String productType,
java.lang.String product,
java.lang.String type,
AsyncCallback<OfferInstancesHolder> asyncCallback,
InvocationConfig invocationConfig)
List all offers available for the specific product type in the specific region
|
OfferInstancesHolder |
list(java.lang.String org,
java.lang.String region,
java.lang.String productType,
java.lang.String product,
java.lang.String type,
InvocationConfig invocationConfig)
List all offers available for the specific product type in the specific region
|
public OfferInstancesStub(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, StubConfigurationBase config)
public OfferInstancesStub(ApiProvider apiProvider, StubConfigurationBase config)
public OfferInstancesHolder list(java.lang.String org, java.lang.String region, java.lang.String productType, java.lang.String product, java.lang.String type)
OfferInstances
Synchronous method overload. Result of the invocation will be reported as a method return value.
list
in interface OfferInstances
org
- Organization identifier (required)region
- Region for the offer (required)productType
- Type of the product in offers. *This has been deprecated*. Please use product &
type parameters (required)product
- The product that you are trying to purchase, eg. host. This needs to be
accompanied by the type parameter (optional)type
- The type/flavor of the product you are trying it purchase,eg. an `r5.metal`
host. This needs to be accompanied by the product parameter. (optional)public OfferInstancesHolder list(java.lang.String org, java.lang.String region, java.lang.String productType, java.lang.String product, java.lang.String type, InvocationConfig invocationConfig)
OfferInstances
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
list
in interface OfferInstances
org
- Organization identifier (required)region
- Region for the offer (required)productType
- Type of the product in offers. *This has been deprecated*. Please use product &
type parameters (required)product
- The product that you are trying to purchase, eg. host. This needs to be
accompanied by the type parameter (optional)type
- The type/flavor of the product you are trying it purchase,eg. an `r5.metal`
host. This needs to be accompanied by the product parameter. (optional)invocationConfig
- Configuration for the method invocation.public void list(java.lang.String org, java.lang.String region, java.lang.String productType, java.lang.String product, java.lang.String type, AsyncCallback<OfferInstancesHolder> asyncCallback)
OfferInstances
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
com.vmware.vmc.model.OfferInstancesHolder
Operation Errors:
Unauthenticated
- Unauthorized
InvalidRequest
- Bad Request. Type of the product not supported.
Unauthorized
- Forbidden
list
in interface OfferInstances
org
- Organization identifier (required)region
- Region for the offer (required)productType
- Type of the product in offers. *This has been deprecated*. Please use product &
type parameters (required)product
- The product that you are trying to purchase, eg. host. This needs to be
accompanied by the type parameter (optional)type
- The type/flavor of the product you are trying it purchase,eg. an `r5.metal`
host. This needs to be accompanied by the product parameter. (optional)asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void list(java.lang.String org, java.lang.String region, java.lang.String productType, java.lang.String product, java.lang.String type, AsyncCallback<OfferInstancesHolder> asyncCallback, InvocationConfig invocationConfig)
OfferInstances
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.OfferInstancesHolder
Operation Errors:
Unauthenticated
- Unauthorized
InvalidRequest
- Bad Request. Type of the product not supported.
Unauthorized
- Forbidden
list
in interface OfferInstances
org
- Organization identifier (required)region
- Region for the offer (required)productType
- Type of the product in offers. *This has been deprecated*. Please use product &
type parameters (required)product
- The product that you are trying to purchase, eg. host. This needs to be
accompanied by the type parameter (optional)type
- The type/flavor of the product you are trying it purchase,eg. an `r5.metal`
host. This needs to be accompanied by the product parameter. (optional)asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.