Class ServiceInstanceDeferredEndpoint
- Namespace
- OpenServiceBroker.Instances
- Assembly
- OpenServiceBroker.Client.dll
Represents a specific Service Instance with potentially deferred (asynchronous) operations.
public class ServiceInstanceDeferredEndpoint : ServiceInstanceEndpointBase<IServiceBindingDeferredEndpoint, ServiceBindingDeferredEndpoint>, IServiceInstanceDeferredEndpoint, IServiceInstanceEndpointBase<IServiceBindingDeferredEndpoint>, IEndpoint
- Inheritance
-
ServiceInstanceDeferredEndpoint
- Implements
- Inherited Members
- Extension Methods
Constructors
ServiceInstanceDeferredEndpoint(IEndpoint, Uri)
Represents a specific Service Instance with potentially deferred (asynchronous) operations.
public ServiceInstanceDeferredEndpoint(IEndpoint referrer, Uri relativeUri)
Parameters
referrer
IEndpointThe endpoint used to navigate to this one.
relativeUri
UriThe URI of this endpoint relative to the
referrer
's.
Methods
DeprovisionAsync(string?, string?)
Deprovisions/deletes the Service Instance.
public Task<AsyncOperation> DeprovisionAsync(string? serviceId = null, string? planId = null)
Parameters
serviceId
stringThe id of the service associated with the instance being deleted.
planId
stringThe id of the plan associated with the instance being deleted.
Returns
- Task<AsyncOperation>
A potentially deferred (asynchronous) operation. If Completed is false, start polling LastOperation(string?, string?, string?).
Exceptions
- GoneException
The instance does not exist (anymore).
LastOperation(string?, string?, string?)
Provides an endpoint to obtain the state of the last requested deferred (asynchronous) operation.
public IPollingEndpoint<LastOperationResource> LastOperation(string? serviceId = null, string? planId = null, string? operation = null)
Parameters
serviceId
stringIf present, it MUST be the ID of the service being used.
planId
stringIf present, it MUST be the ID of the plan for the Service Instance. If this endpoint is being polled as a result of changing the plan through a Service Instance Update, the ID of the plan prior to the update MUST be used.
operation
stringA Service Broker-provided identifier for the operation. When a value for operation is included with deferred (asynchronous) responses for Provision, Update, and Deprovision requests, the Platform MUST provide the same value using this query parameter. If present, MUST be a non-empty string.
Returns
ProvisionAsync(ServiceInstanceProvisionRequest)
Provisions the Service Instance.
public Task<ServiceInstanceAsyncOperation> ProvisionAsync(ServiceInstanceProvisionRequest request)
Parameters
request
ServiceInstanceProvisionRequestParameters for the requested Service Instance provision.
Returns
- Task<ServiceInstanceAsyncOperation>
A potentially deferred (asynchronous) operation. If Completed is false, start polling LastOperation(string?, string?, string?).
Exceptions
- ConflictException
An instance with the same id already exists but with different attributes.
UpdateAsync(ServiceInstanceUpdateRequest)
Updates the Service Instance.
public Task<ServiceInstanceAsyncOperation> UpdateAsync(ServiceInstanceUpdateRequest request)
Parameters
request
ServiceInstanceUpdateRequestParameters for the requested Service Instance update.
Returns
- Task<ServiceInstanceAsyncOperation>
A potentially deferred (asynchronous) operation. If Completed is false, start polling LastOperation(string?, string?, string?).
Exceptions
- BrokerException
The requested change is not supported.