getProductRetailV2alpha function

Future<GetProductRetailV2alphaResult> getProductRetailV2alpha(
  1. GetProductRetailV2alphaArgs args, {
  2. InvokeOptions? options,
})

Gets a Product. args Arguments passed to this invoke. Arguments for getProduct. options Invoke options controlling this call.

Implementation

Future<GetProductRetailV2alphaResult> getProductRetailV2alpha(
  GetProductRetailV2alphaArgs args, {
  pulumi.InvokeOptions? options,
}) async {
  final deployment = pulumi.Deployment.instance;
  final result = await deployment.invoke<Map<String, dynamic>>(
    'google-native:retail/v2alpha:getProduct',
    args.toMap(),
    options: pulumi.toDeploymentInvokeOptions(options),
  );
  return GetProductRetailV2alphaResult.fromMap(result);
}