getDocumentDialogflowV2beta1 function

Future<GetDocumentDialogflowV2beta1Result> getDocumentDialogflowV2beta1(
  1. GetDocumentDialogflowV2beta1Args args, {
  2. InvokeOptions? options,
})

Retrieves the specified document. Note: The projects.agent.knowledgeBases.documents resource is deprecated; only use projects.knowledgeBases.documents. args Arguments passed to this invoke. Arguments for getDocument. options Invoke options controlling this call.

Implementation

Future<GetDocumentDialogflowV2beta1Result> getDocumentDialogflowV2beta1(
  GetDocumentDialogflowV2beta1Args args, {
  pulumi.InvokeOptions? options,
}) async {
  final deployment = pulumi.Deployment.instance;
  final result = await deployment.invoke<Map<String, dynamic>>(
    'google-native:dialogflow/v2beta1:getDocument',
    args.toMap(),
    options: pulumi.toDeploymentInvokeOptions(options),
  );
  return GetDocumentDialogflowV2beta1Result.fromMap(result);
}