ResourceProviderStub

pulumirpc.provider.ResourceProviderGrpc.ResourceProviderStub
See theResourceProviderStub companion object
class ResourceProviderStub(channel: Channel, options: CallOptions) extends AbstractStub[ResourceProviderStub], ResourceProvider

Attributes

Companion
object
Graph
Supertypes
trait AbstractService
class AbstractStub[ResourceProviderStub]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def attach(request: PluginAttach): Future[Empty]

Attach sends the engine address to an already running plugin.

Attach sends the engine address to an already running plugin.

Attributes

Definition Classes
override def build(channel: Channel, options: CallOptions): ResourceProviderStub

Attributes

Definition Classes
AbstractStub
override def call(request: CallRequest): Future[CallResponse]

Call dynamically executes a method in the provider associated with a component resource.

Call dynamically executes a method in the provider associated with a component resource.

Attributes

Definition Classes
override def cancel(request: Empty): Future[Empty]

Cancel signals the provider to gracefully shut down and abort any ongoing resource operations. Operations aborted in this way will return an error (e.g., Update and Create will either return a creation error or an initialization error). Since Cancel is advisory and non-blocking, it is up to the host to decide how long to wait after Cancel is called before (e.g.) hard-closing any gRPC connection.

Cancel signals the provider to gracefully shut down and abort any ongoing resource operations. Operations aborted in this way will return an error (e.g., Update and Create will either return a creation error or an initialization error). Since Cancel is advisory and non-blocking, it is up to the host to decide how long to wait after Cancel is called before (e.g.) hard-closing any gRPC connection.

Attributes

Definition Classes
override def check(request: CheckRequest): Future[CheckResponse]

Check validates that the given property bag is valid for a resource of the given type and returns the inputs that should be passed to successive calls to Diff, Create, or Update for this resource. As a rule, the provider inputs returned by a call to Check should preserve the original representation of the properties as present in the program inputs. Though this rule is not required for correctness, violations thereof can negatively impact the end-user experience, as the provider inputs are using for detecting and rendering diffs.

Check validates that the given property bag is valid for a resource of the given type and returns the inputs that should be passed to successive calls to Diff, Create, or Update for this resource. As a rule, the provider inputs returned by a call to Check should preserve the original representation of the properties as present in the program inputs. Though this rule is not required for correctness, violations thereof can negatively impact the end-user experience, as the provider inputs are using for detecting and rendering diffs.

Attributes

Definition Classes
override def checkConfig(request: CheckRequest): Future[CheckResponse]

CheckConfig validates the configuration for this resource provider.

CheckConfig validates the configuration for this resource provider.

Attributes

Definition Classes

Configure configures the resource provider with "globals" that control its behavior.

Configure configures the resource provider with "globals" that control its behavior.

:::{warning} ConfigureRequest.args may include secrets. Because ConfigureRequest is sent before ConfigureResponse can specify acceptSecrets: false, providers must handle secrets from ConfigureRequest.args. :::

Attributes

Definition Classes

Construct creates a new instance of the provided component resource and returns its state.

Construct creates a new instance of the provided component resource and returns its state.

Attributes

Definition Classes
override def create(request: CreateRequest): Future[CreateResponse]

Create allocates a new instance of the provided resource and returns its unique ID afterwards. (The input ID must be blank.) If this call fails, the resource must not have been created (i.e., it is "transactional").

Create allocates a new instance of the provided resource and returns its unique ID afterwards. (The input ID must be blank.) If this call fails, the resource must not have been created (i.e., it is "transactional").

Attributes

Definition Classes
override def delete(request: DeleteRequest): Future[Empty]

Delete tears down an existing resource with the given ID. If it fails, the resource is assumed to still exist.

Delete tears down an existing resource with the given ID. If it fails, the resource is assumed to still exist.

Attributes

Definition Classes
override def diff(request: DiffRequest): Future[DiffResponse]

Diff checks what impacts a hypothetical update will have on the resource's properties.

Diff checks what impacts a hypothetical update will have on the resource's properties.

Attributes

Definition Classes
override def diffConfig(request: DiffRequest): Future[DiffResponse]

DiffConfig checks the impact a hypothetical change to this provider's configuration will have on the provider.

DiffConfig checks the impact a hypothetical change to this provider's configuration will have on the provider.

Attributes

Definition Classes

GetMapping fetches the mapping for this resource provider, if any. A provider should return an empty response (not an error) if it doesn't have a mapping for the given key.

GetMapping fetches the mapping for this resource provider, if any. A provider should return an empty response (not an error) if it doesn't have a mapping for the given key.

Attributes

Definition Classes

GetMappings is an optional method that returns what mappings (if any) a provider supports. If a provider does not implement this method the engine falls back to the old behaviour of just calling GetMapping without a name. If this method is implemented than the engine will then call GetMapping only with the names returned from this method.

GetMappings is an optional method that returns what mappings (if any) a provider supports. If a provider does not implement this method the engine falls back to the old behaviour of just calling GetMapping without a name. If this method is implemented than the engine will then call GetMapping only with the names returned from this method.

Attributes

Definition Classes
override def getPluginInfo(request: Empty): Future[PluginInfo]

GetPluginInfo returns generic information about this plugin, like its version.

GetPluginInfo returns generic information about this plugin, like its version.

Attributes

Definition Classes

GetSchema fetches the schema for this resource provider.

GetSchema fetches the schema for this resource provider.

Attributes

Definition Classes
override def invoke(request: InvokeRequest): Future[InvokeResponse]

Invoke dynamically executes a built-in function in the provider.

Invoke dynamically executes a built-in function in the provider.

Attributes

Definition Classes

Parameterize takes either a string array of command line inputs or a value embedded from sdk generation.

Parameterize takes either a string array of command line inputs or a value embedded from sdk generation.

Providers can be parameterized with either multiple extension packages (which don't define their own provider resources), or with a replacement package (which does define its own provider resource).

Parameterize may be called multiple times for extension packages, but for a replacement package it will only be called once. Extension packages may even be called multiple times for the same package name, but with different versions.

Parameterize should work the same for both the ParametersArgs input and the ParametersValue input. Either way should return the sub-package name and version (which for ParametersValue should match the given input).

For extension resources their CRUD operations will include the version of which sub-package they correspond to.

Attributes

Definition Classes
override def read(request: ReadRequest): Future[ReadResponse]

Read the current live state associated with a resource. Enough state must be include in the inputs to uniquely identify the resource; this is typically just the resource ID, but may also include some properties.

Read the current live state associated with a resource. Enough state must be include in the inputs to uniquely identify the resource; this is typically just the resource ID, but may also include some properties.

Attributes

Definition Classes
override def streamInvoke(request: InvokeRequest, responseObserver: StreamObserver[InvokeResponse]): Unit

StreamInvoke dynamically executes a built-in function in the provider, which returns a stream of responses.

StreamInvoke dynamically executes a built-in function in the provider, which returns a stream of responses.

Attributes

Definition Classes
override def update(request: UpdateRequest): Future[UpdateResponse]

Update updates an existing resource with new values.

Update updates an existing resource with new values.

Attributes

Definition Classes

Inherited methods

final def getCallOptions(): CallOptions

Attributes

Inherited from:
AbstractStub
final def getChannel(): Channel

Attributes

Inherited from:
AbstractStub
override def serviceCompanion: ServiceCompanion[ResourceProvider]

Attributes

Definition Classes
ResourceProvider -> AbstractService
Inherited from:
ResourceProvider
final def withCallCredentials(x$0: CallCredentials): ResourceProviderStub

Attributes

Inherited from:
AbstractStub

Attributes

Inherited from:
AbstractStub
final def withDeadline(x$0: Deadline): ResourceProviderStub

Attributes

Inherited from:
AbstractStub

Attributes

Inherited from:
AbstractStub

Attributes

Inherited from:
AbstractStub
final def withInterceptors(x$0: ClientInterceptor*): ResourceProviderStub

Attributes

Inherited from:
AbstractStub
@ExperimentalApi(value = "https://github.com/grpc/grpc-java/issues/2563")

Attributes

Inherited from:
AbstractStub
@ExperimentalApi(value = "https://github.com/grpc/grpc-java/issues/2563")

Attributes

Inherited from:
AbstractStub
@ExperimentalApi(value = "https://github.com/grpc/grpc-java/issues/1869")
final def withOption[T <: <FromJavaObject>](x$0: Key[T], x$1: T): ResourceProviderStub

Attributes

Inherited from:
AbstractStub

Attributes

Inherited from:
AbstractStub

Deprecated and Inherited methods

final def withChannel(x$0: Channel): ResourceProviderStub

Attributes

Deprecated
true
Inherited from:
AbstractStub