getAgent function

Future<GetAgentResult> getAgent(
  1. GetAgentArgs args, {
  2. InvokeOptions? options,
})

Retrieves the specified agent. args Arguments passed to this invoke. Arguments for getAgent. options Invoke options controlling this call.

Implementation

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