Package codegen
Class MapperGrpc.MapperStub
- java.lang.Object
-
- io.grpc.stub.AbstractStub<S>
-
- io.grpc.stub.AbstractAsyncStub<MapperGrpc.MapperStub>
-
- codegen.MapperGrpc.MapperStub
-
- Enclosing class:
- MapperGrpc
public static final class MapperGrpc.MapperStub extends io.grpc.stub.AbstractAsyncStub<MapperGrpc.MapperStub>
A stub to allow clients to do asynchronous rpc calls to service Mapper.Mapper provides methods for retrieving mappings that describe how to map names in some source "provider" (e.g. a Terraform provider, if we are converting from Terraform) to names in appropriate Pulumi packages. So when converting a Terraform program containing code like `resource "aws_s3_bucket" "b" {}`, for instance, we need to know (among other things) that the `aws_s3_bucket` Terraform resource type corresponds to the Pulumi type `aws:s3/bucket:Bucket`, and thus lives in the `aws` package. This is the kind of information that a Mapper provides.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected MapperGrpc.MapperStubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions)voidgetMapping(MapperOuterClass.GetMappingRequest request, io.grpc.stub.StreamObserver<MapperOuterClass.GetMappingResponse> responseObserver)`GetMapping` returns any available mapping data for the given source provider name (so again, this is e.g.
-
-
-
Method Detail
-
build
protected MapperGrpc.MapperStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
- Specified by:
buildin classio.grpc.stub.AbstractStub<MapperGrpc.MapperStub>
-
getMapping
public void getMapping(MapperOuterClass.GetMappingRequest request, io.grpc.stub.StreamObserver<MapperOuterClass.GetMappingResponse> responseObserver)
`GetMapping` returns any available mapping data for the given source provider name (so again, this is e.g. the name of a Terraform provider if converting from Terraform). Callers may pass "hints" that describe a Pulumi package that is expected to provide the mapping and satisfy the request, which implementations may use to optimise their efforts to return the best possible mapping. If no matching mapping exists, implementations should return an empty byte array result.
-
-