function AssetStatus()

in dialogflow-cx/vpc-sc-demo/frontend/src/DataModel.js [149:294]


function AssetStatus() {
  const dialogflowService = {current: null, set: null};
  const cloudfunctionService = {current: null, set: null};
  const computeService = {current: null, set: null};
  const iamService = {current: null, set: null};
  const servicedirectoryService = {current: null, set: null};
  const runService = {current: null, set: null};
  const cloudbuildService = {current: null, set: null};
  const artifactregistryService = {current: null, set: null};
  const accesscontextmanagerService = {current: null, set: null};
  const vpcaccessService = {current: null, set: null};
  const appengineService = {current: null, set: null};
  const cloudbillingService = {current: null, set: null};
  const network = {current: null, set: null};
  const subNetwork = {current: null, set: null};
  const natRouter = {current: null, set: null};
  const natManual = {current: null, set: null};
  const firewallDialogflow = {current: null, set: null};
  const firewallAllow = {current: null, set: null};
  const proxyNamespace = {current: null, set: null};
  const proxyService = {current: null, set: null};
  const proxyEndpoint = {current: null, set: null};
  const proxyAddress = {current: null, set: null};
  const networkModule = {current: null, set: null};
  const servicesModule = {current: null, set: null};
  const serviceDirectoryModule = {current: null, set: null};
  const webhookAgentModule = {current: null, set: null};
  const storageBucket = {current: null, set: null};
  const webhookArchive = {current: null, set: null};
  const webhookFunction = {current: null, set: null};
  const webhookAgent = {current: null, set: null};
  const allAssets = {current: null, set: null};
  const servicePerimeterModule = {current: null, set: null};
  const servicePerimeter = {current: null, set: null};
  const webhookRegistry = {current: null, set: null};
  const buildTrigger = {current: null, set: null};
  const proxyServer = {current: null, set: null};
  const serviceAgent = {current: null, set: null};
  const serviceAgentMemberA = {current: null, set: null};
  const serviceAgentMemberB = {current: null, set: null};
  const buildPubSub = {current: null, set: null};
  const serverArchive = {current: null, set: null};

  [cloudfunctionService.current, cloudfunctionService.set] = useState(null);
  [dialogflowService.current, dialogflowService.set] = useState(null);
  [computeService.current, computeService.set] = useState(null);
  [iamService.current, iamService.set] = useState(null);
  [servicedirectoryService.current, servicedirectoryService.set] =
    useState(null);
  [runService.current, runService.set] = useState(null);
  [cloudbuildService.current, cloudbuildService.set] = useState(null);
  [artifactregistryService.current, artifactregistryService.set] =
    useState(null);
  [accesscontextmanagerService.current, accesscontextmanagerService.set] =
    useState(null);
  [vpcaccessService.current, vpcaccessService.set] = useState(null);
  [appengineService.current, appengineService.set] = useState(null);
  [cloudbillingService.current, cloudbillingService.set] = useState(null);
  [network.current, network.set] = useState(null);
  [subNetwork.current, subNetwork.set] = useState(null);
  [natRouter.current, natRouter.set] = useState(null);
  [natManual.current, natManual.set] = useState(null);
  [firewallDialogflow.current, firewallDialogflow.set] = useState(null);
  [firewallAllow.current, firewallAllow.set] = useState(null);
  [proxyNamespace.current, proxyNamespace.set] = useState(null);
  [proxyService.current, proxyService.set] = useState(null);
  [proxyEndpoint.current, proxyEndpoint.set] = useState(null);
  [proxyAddress.current, proxyAddress.set] = useState(null);
  [networkModule.current, networkModule.set] = useState(null);
  [servicesModule.current, servicesModule.set] = useState(null);
  [serviceDirectoryModule.current, serviceDirectoryModule.set] = useState(null);
  [webhookAgentModule.current, webhookAgentModule.set] = useState(null);
  [storageBucket.current, storageBucket.set] = useState(null);
  [webhookArchive.current, webhookArchive.set] = useState(null);
  [webhookFunction.current, webhookFunction.set] = useState(null);
  [webhookAgent.current, webhookAgent.set] = useState(null);
  [allAssets.current, allAssets.set] = useState(null);
  [servicePerimeterModule.current, servicePerimeterModule.set] = useState(null);
  [servicePerimeter.current, servicePerimeter.set] = useState(null);
  [webhookRegistry.current, webhookRegistry.set] = useState(null);
  [buildTrigger.current, buildTrigger.set] = useState(null);
  [proxyServer.current, proxyServer.set] = useState(null);
  [serviceAgent.current, serviceAgent.set] = useState(null);
  [serviceAgentMemberA.current, serviceAgentMemberA.set] = useState(null);
  [serviceAgentMemberB.current, serviceAgentMemberB.set] = useState(null);
  [buildPubSub.current, buildPubSub.set] = useState(null);
  [serverArchive.current, serverArchive.set] = useState(null);

  return {
    'module.services': servicesModule,
    'module.services.google_project_service.appengine': appengineService,
    'google_project_service.artifactregistry': artifactregistryService,
    'module.services.google_project_service.run': runService,
    'module.services.google_project_service.vpcaccess': vpcaccessService,
    'google_project_service.accesscontextmanager': accesscontextmanagerService,
    'google_project_service.cloudbilling': cloudbillingService,
    'google_project_service.cloudbuild': cloudbuildService,
    'google_project_service.cloudfunctions': cloudfunctionService,
    'google_project_service.compute': computeService,
    'google_project_service.dialogflow': dialogflowService,
    'google_project_service.iam': iamService,
    'google_project_service.servicedirectory': servicedirectoryService,
    'module.vpc_network': networkModule,
    'module.vpc_network.google_artifact_registry_repository.webhook_registry':
      webhookRegistry,
    'module.vpc_network.google_cloudbuild_trigger.reverse_proxy_server':
      buildTrigger,
    'module.vpc_network.google_compute_address.reverse_proxy_address':
      proxyAddress,
    'module.vpc_network.google_compute_firewall.allow': firewallAllow,
    'module.vpc_network.google_compute_firewall.allow_dialogflow':
      firewallDialogflow,
    'module.vpc_network.google_compute_instance.reverse_proxy_server':
      proxyServer,
    'module.vpc_network.google_compute_network.vpc_network': network,
    'module.vpc_network.google_compute_router.nat_router': natRouter,
    'module.vpc_network.google_compute_router_nat.nat_manual': natManual,
    'module.vpc_network.google_compute_subnetwork.reverse_proxy_subnetwork':
      subNetwork,
    'module.vpc_network.google_project_service_identity.dfsa': serviceAgent,
    'module.vpc_network.google_project_iam_member.dfsa_sd_pscAuthorizedService':
      serviceAgentMemberA,
    'module.vpc_network.google_project_iam_member.dfsa_sd_viewer':
      serviceAgentMemberB,
    'module.vpc_network.google_pubsub_topic.reverse_proxy_server_build':
      buildPubSub,
    'module.vpc_network.google_storage_bucket_object.proxy_server_source':
      serverArchive,
    'module.service_directory': serviceDirectoryModule,
    'module.service_directory.google_service_directory_namespace.reverse_proxy':
      proxyNamespace,
    'module.service_directory.google_service_directory_service.reverse_proxy':
      proxyService,
    'module.service_directory.google_service_directory_endpoint.reverse_proxy':
      proxyEndpoint,
    'module.service_perimeter.google_access_context_manager_service_perimeter.service_perimeter[0]':
      servicePerimeter,
    'module.webhook_agent': webhookAgentModule,
    'google_storage_bucket.bucket': storageBucket,
    'module.webhook_agent.google_dialogflow_cx_agent.full_agent': webhookAgent,
    'module.webhook_agent.google_storage_bucket_object.webhook': webhookArchive,
    'module.webhook_agent.google_cloudfunctions_function.webhook':
      webhookFunction,
    all: allAssets,
  };
}