getWorkspace function

Future<GetWorkspaceResult> getWorkspace(
  1. GetWorkspaceArgs args, {
  2. InvokeOptions? options,
})

Fetches a single Workspace. args Arguments passed to this invoke. Arguments for getWorkspace. options Invoke options controlling this call.

Implementation

Future<GetWorkspaceResult> getWorkspace(
  GetWorkspaceArgs args, {
  pulumi.InvokeOptions? options,
}) async {
  final deployment = pulumi.Deployment.instance;
  final result = await deployment.invoke<Map<String, dynamic>>(
    'google-native:dataform/v1beta1:getWorkspace',
    args.toMap(),
    options: pulumi.toDeploymentInvokeOptions(options),
  );
  return GetWorkspaceResult.fromMap(result);
}