← SuperSaaS + Google Cloud integrations

Switch Instance Boot Status with Google Cloud API on New or changed appointments from SuperSaaS API

Pipedream makes it easy to connect APIs for Google Cloud, SuperSaaS and 2,800+ other apps remarkably fast.

Trigger workflow on
New or changed appointments from the SuperSaaS API
Next, do this
Switch Instance Boot Status with the Google Cloud API
No credit card required
Intro to Pipedream
Watch us build a workflow
Watch us build a workflow
8 min
Watch now ➜

Trusted by 1,000,000+ developers from startups to Fortune 500 companies

Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo
Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo

Developers Pipedream

Getting Started

This integration creates a workflow with a SuperSaaS trigger and Google Cloud action. When you configure and deploy the workflow, it will run on Pipedream's servers 24x7 for free.

  1. Select this integration
  2. Configure the New or changed appointments trigger
    1. Connect your SuperSaaS account
    2. Select one or more Schedules
  3. Configure the Switch Instance Boot Status action
    1. Connect your Google Cloud account
    2. Select a Zone
    3. Select a Instance Name
    4. Select a New Instance Status
    5. Configure Wait Completion
  4. Deploy the workflow
  5. Send a test event to validate your setup
  6. Turn on the trigger

Details

This integration uses pre-built, source-available components from Pipedream's GitHub repo. These components are developed by Pipedream and the community, and verified and maintained by Pipedream.

To contribute an update to an existing component or create a new component, create a PR on GitHub. If you're new to Pipedream component development, you can start with quickstarts for trigger span and action development, and then review the component API reference.

Trigger

Description:Emits an event for every changed appointments from the selected schedules.
Version:0.0.1
Key:supersaas-changed-appointments

SuperSaaS Overview

The SuperSaaS API unlocks the power to automate and streamline your appointment scheduling processes. This tool is tailored for businesses and individuals who manage bookings, reservations, or rentals. By leveraging the API with Pipedream's integration capabilities, you can craft custom workflows that handle everything from syncing appointment data with your calendar, sending customized notifications, to processing payments or follow-ups based on booking activities.

Trigger Code

const dayjs = require('dayjs'); const makeEventSummary = require('../utils/makeEventSummary.js'); const supersaas = require('../supersaas.app.js'); module.exports = { key: 'supersaas-changed-appointments', name: 'New or changed appointments', description: `Emits an event for every changed appointments from the selected schedules.`, version: '0.0.1', props: { supersaas, schedules: { propDefinition: [supersaas, 'schedules'] }, db: "$.service.db", http: '$.interface.http', }, hooks: { async activate() { const { http, schedules } = this; this.db.set('activeHooks', await this.supersaas.createHooks(schedules.map(x => ({ event: 'C', // change_appointment parent_id: Number(x), target_url: http.endpoint, })))); }, async deactivate() { await this.supersaas.destroyHooks(this.db.get('activeHooks') || []); this.db.set('activeHooks', []); }, }, async run(ev) { const outEv = { meta: { summary: makeEventSummary(ev), ts: dayjs(ev.body.created_on).valueOf(), }, body: ev.body, }; console.log('Emitting:', outEv); this.$emit(outEv, outEv.meta); }, }; 

Trigger Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI and CLI.
LabelPropTypeDescription
SuperSaaSsupersaasappThis component uses the SuperSaaS app.
Schedulesschedulesstring[]Select a value from the drop down menu.
N/Adb$.service.dbThis component uses $.service.db to maintain state between executions.
N/Ahttp$.interface.httpThis component uses $.interface.http to generate a unique URL when the component is first instantiated. Each request to the URL will trigger the run() method of the component.

Trigger Authentication

SuperSaaS uses API keys for authentication. When you connect your SuperSaaS account, Pipedream securely stores the keys so you can easily authenticate to SuperSaaS APIs in both code and no-code steps.

You can find your account name and API key in the Account Info section of your settings. See the Authentication docs for more info.

About SuperSaaS

Appointment Scheduling for Every Situation

Action

Description:Switch a virtual machine instance boot status to start or stop it. [See the documentation](https://cloud.google.com/compute/docs/instances/stop-start-instance)
Version:0.0.4
Key:google_cloud-switch-instance-boot-status

Google Cloud Overview

The Google Cloud API opens a world of possibilities for enhancing cloud operations and automating tasks. It empowers you to manage, scale, and fine-tune various services within the Google Cloud Platform (GCP) programmatically. With Pipedream, you can harness this power to create intricate workflows, trigger cloud functions based on events from other apps, manage resources, and analyze data, all in a serverless environment. The ability to interconnect GCP services with numerous other apps enriches automation, making it easier to synchronize data, streamline development workflows, and deploy applications efficiently.

Action Code

import googleCloud from "../../google_cloud.app.mjs"; import { ZonesClient, ZoneOperationsClient, InstancesClient, } from "@google-cloud/compute"; import { ConfigurationError } from "@pipedream/platform"; export default { name: "Switch Instance Boot Status", version: "0.0.4", annotations: { destructiveHint: true, openWorldHint: true, readOnlyHint: false, }, key: "google_cloud-switch-instance-boot-status", type: "action", description: "Switch a virtual machine instance boot status to start or stop it. [See the documentation](https://cloud.google.com/compute/docs/instances/stop-start-instance)", props: { googleCloud, zone: { label: "Zone", description: "The unique zone name", type: "string", async options() { const zones = await this.listZones(); return zones.map((item) => (item.name)); }, }, instanceName: { label: "Instance Name", description: "The unique instance name", type: "string", async options({ zone }) { if (!zone) { return []; } const instances = await this.listVmInstancesByZone(zone); return instances.map((item) => (item.name)); }, }, newInstanceStatus: { label: "New Instance Status", description: "Select if the instance should be either switched to started or stopped status", type: "string", options: [ "start", "stop", ], }, waitCompletion: { label: "Wait Completion", description: "Wait until the end of the operation", type: "boolean", default: false, }, }, methods: { zonesClient() { return new ZonesClient(this.googleCloud.sdkParams()); }, zoneOperationsClient() { return new ZoneOperationsClient(this.googleCloud.sdkParams()); }, instancesClient() { return new InstancesClient(this.googleCloud.sdkParams()); }, async listZones() { const zonesClient = this.zonesClient(); const sdkParams = this.googleCloud.sdkParams(); const [ zones, ] = await zonesClient.list({ project: sdkParams.projectId, }); return zones; }, async waitOperation(operation) { const operationsClient = this.zoneOperationsClient(); const sdkParams = this.googleCloud.sdkParams(); while (operation.status !== "DONE") { [ operation, ] = await operationsClient.wait({ operation: operation.name, project: sdkParams.projectId, zone: operation.zone.split("/").pop(), }); } return operation; }, async listVmInstancesByZone(zone) { const instancesClient = this.instancesClient(); const sdkParams = this.googleCloud.sdkParams(); const [ instances, ] = await instancesClient.list({ project: sdkParams.projectId, zone, }); return instances; }, async switchInstanceBootStatus(zone, instance, newStatus) { if (![ "start", "stop", ].includes(newStatus)) { throw new ConfigurationError("The new VM boot status must be 'start' or 'stop'."); } const instancesClient = this.instancesClient(); const sdkParams = this.googleCloud.sdkParams(); const [ response, ] = await instancesClient[newStatus]({ project: sdkParams.projectId, zone, instance, }); return response.latestResponse; }, }, async run({ $ }) { const { zone, instanceName, waitCompletion, newInstanceStatus, } = this; let operation = await this.switchInstanceBootStatus( zone, instanceName, newInstanceStatus, ); if (waitCompletion) { operation = await this.waitOperation(operation); } $.export("$summary", `Instance ${instanceName} boot status was set to ${newInstanceStatus}.`); return operation; }, }; 

Action Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI.

LabelPropTypeDescription
Google CloudgoogleCloudappThis component uses the Google Cloud app.
ZonezonestringSelect a value from the drop down menu.
Instance NameinstanceNamestringSelect a value from the drop down menu.
New Instance StatusnewInstanceStatusstringSelect a value from the drop down menu:startstop
Wait CompletionwaitCompletionboolean

Wait until the end of the operation

Action Authentication

Google Cloud uses API keys for authentication. When you connect your Google Cloud account, Pipedream securely stores the keys so you can easily authenticate to Google Cloud APIs in both code and no-code steps.

  1. Create a service account in GCP and set the permissions you need for Pipedream workflows.
  2. Generate a service account key
  3. Download the key details in JSON format
  4. Upload the key below.

About Google Cloud

The Google Cloud Platform, including BigQuery

More Ways to Connect Google Cloud + SuperSaaS

Logging - Write Log with Google Cloud API on New or changed appointments from SuperSaaS API
SuperSaaS + Google Cloud
 
Try it
Logging - Write Log with Google Cloud API on New or changed users from SuperSaaS API
SuperSaaS + Google Cloud
 
Try it
Logging - Write Log with Google Cloud API on Credit balance changes from SuperSaaS API
SuperSaaS + Google Cloud
 
Try it
Create Bucket with Google Cloud API on New or changed appointments from SuperSaaS API
SuperSaaS + Google Cloud
 
Try it
Create Bucket with Google Cloud API on New or changed users from SuperSaaS API
SuperSaaS + Google Cloud
 
Try it
Create Bucket with Google Cloud API on Credit balance changes from SuperSaaS API
SuperSaaS + Google Cloud
 
Try it
Get Bucket Metadata [See the docs](https://googleapis.dev/nodejs/storage/latest/Bucket.html#getMetadata) with Google Cloud API on New or changed appointments from SuperSaaS API
SuperSaaS + Google Cloud
 
Try it
Get Bucket Metadata [See the docs](https://googleapis.dev/nodejs/storage/latest/Bucket.html#getMetadata) with Google Cloud API on New or changed users from SuperSaaS API
SuperSaaS + Google Cloud
 
Try it
Get Bucket Metadata [See the docs](https://googleapis.dev/nodejs/storage/latest/Bucket.html#getMetadata) with Google Cloud API on Credit balance changes from SuperSaaS API
SuperSaaS + Google Cloud
 
Try it
Get Object with Google Cloud API on New or changed appointments from SuperSaaS API
SuperSaaS + Google Cloud
 
Try it
Get Object with Google Cloud API on New or changed users from SuperSaaS API
SuperSaaS + Google Cloud
 
Try it
Get Object with Google Cloud API on Credit balance changes from SuperSaaS API
SuperSaaS + Google Cloud
 
Try it
List Buckets with Google Cloud API on New or changed appointments from SuperSaaS API
SuperSaaS + Google Cloud
 
Try it
List Buckets with Google Cloud API on New or changed users from SuperSaaS API
SuperSaaS + Google Cloud
 
Try it
List Buckets with Google Cloud API on Credit balance changes from SuperSaaS API
SuperSaaS + Google Cloud
 
Try it
Search Objects with Google Cloud API on New or changed appointments from SuperSaaS API
SuperSaaS + Google Cloud
 
Try it
Search Objects with Google Cloud API on New or changed users from SuperSaaS API
SuperSaaS + Google Cloud
 
Try it
Search Objects with Google Cloud API on Credit balance changes from SuperSaaS API
SuperSaaS + Google Cloud
 
Try it
Upload An Object with Google Cloud API on New or changed appointments from SuperSaaS API
SuperSaaS + Google Cloud
 
Try it
Upload An Object with Google Cloud API on New or changed users from SuperSaaS API
SuperSaaS + Google Cloud
 
Try it
Credit balance changes from the SuperSaaS API

Emits an event for every user credit balance changes for the selected schedules.

 
Try it
New or changed appointments from the SuperSaaS API

Emits an event for every changed appointments from the selected schedules.

 
Try it
New or changed users from the SuperSaaS API

Emits an event for every new and changed user.

 
Try it
New Pub/Sub Messages from the Google Cloud API

Emit new Pub/Sub topic in your GCP account. Messages published to this topic are emitted from the Pipedream source.

 
Try it
BigQuery - New Row from the Google Cloud API

Emit new events when a new row is added to a table

 
Try it
BigQuery - Query Results from the Google Cloud API

Emit new events with the results of an arbitrary query

 
Try it
Bigquery Insert Rows with the Google Cloud API

Inserts rows into a BigQuery table. See the docs and for an example here

 
Try it
Create Bucket with the Google Cloud API

Creates a bucket on Google Cloud Storage See the docs

 
Try it
Create Scheduled Query with the Google Cloud API

Creates a scheduled query in Google Cloud. See the documentation

 
Try it
Get Bucket Metadata with the Google Cloud API

Gets Google Cloud Storage bucket metadata. See the docs

 
Try it
Get Object with the Google Cloud API

Downloads an object from a Google Cloud Storage bucket, See the docs

 
Try it
List Buckets with the Google Cloud API

List Google Cloud Storage buckets, See the docs

 
Try it
Logging - Write Log with the Google Cloud API

Writes log data to the Logging service, See the docs

 
Try it
Run Query with the Google Cloud API

Runs a query in BigQuery. See the documentation for more information.

 
Try it
Search Objects with the Google Cloud API

Search objects by a prefix, See the docs

 
Try it
Switch Instance Boot Status with the Google Cloud API

Switch a virtual machine instance boot status to start or stop it. See the documentation

 
Try it
Update Signature for Email in Organization with the Google Cloud API

Update the signature for a specific email address in an organization. A Google Cloud service account with delegated domain-wide authority is required for this action. See the documentation

 
Try it
Upload An Object with the Google Cloud API

Upload an object to a Google Cloud Storage bucket, See the docs

 
Try it

Explore Other Apps

1
-
24
of
2,800+
apps by most popular

Node
Node
Anything you can do with Node.js, you can do in a Pipedream workflow. This includes using most of npm's 400,000+ packages.
Python
Python
Anything you can do in Python can be done in a Pipedream Workflow. This includes using any of the 350,000+ PyPi packages available in your Python powered workflows.
Notion
Notion
Notion is a new tool that blends your everyday work apps into one. It's the all-in-one workspace for you and your team.
OpenAI (ChatGPT)
OpenAI (ChatGPT)
OpenAI is an AI research and deployment company with the mission to ensure that artificial general intelligence benefits all of humanity. They are the makers of popular models like ChatGPT, DALL-E, and Whisper.
Anthropic (Claude)
Anthropic (Claude)
AI research and products that put safety at the frontier. Introducing Claude, a next-generation AI assistant for your tasks, no matter the scale.
Google Sheets
Google Sheets
Use Google Sheets to create and edit online spreadsheets. Get insights together with secure sharing in real-time and from any device.
Telegram
Telegram
Telegram, is a cloud-based, cross-platform, encrypted instant messaging (IM) service.
Google Drive
Google Drive
Google Drive is a file storage and synchronization service which allows you to create and share your work online, and access your documents from anywhere.
HTTP / Webhook
HTTP / Webhook
Get a unique URL where you can send HTTP or webhook requests
Google Calendar
Google Calendar
With Google Calendar, you can quickly schedule meetings and events and get reminders about upcoming activities, so you always know what’s next.
Schedule
Schedule
Trigger workflows on an interval or cron schedule.
Pipedream Utils
Pipedream Utils
Utility functions to use within your Pipedream workflows
Shopify
Shopify
Shopify is a complete commerce platform that lets anyone start, manage, and grow a business. You can use Shopify to build an online store, manage sales, market to customers, and accept payments in digital and physical locations.
Supabase
Supabase
Supabase is an open source Firebase alternative.
MySQL
MySQL
MySQL is an open-source relational database management system.
PostgreSQL
PostgreSQL
PostgreSQL is a free and open-source relational database management system emphasizing extensibility and SQL compliance.
Premium
AWS
AWS
Amazon Web Services (AWS) offers reliable, scalable, and inexpensive cloud computing services.
Premium
Twilio SendGrid
Twilio SendGrid
Send marketing and transactional email through the Twilio SendGrid platform with the Email API, proprietary mail transfer agent, and infrastructure for scalable delivery.
Amazon SES
Amazon SES
Amazon SES is a cloud-based email service provider that can integrate into any application for high volume email automation
Premium
Klaviyo
Klaviyo
Email Marketing and SMS Marketing Platform
Premium
Zendesk
Zendesk
Zendesk is award-winning customer service software trusted by 200K+ customers. Make customers happy via text, mobile, phone, email, live chat, social media.
Premium
ServiceNow
ServiceNow
The smarter way to workflow
Slack
Slack
Slack is a channel-based messaging platform. With Slack, people can work together more effectively, connect all their software tools and services, and find the information they need to do their best work — all within a secure, enterprise-grade environment.
Microsoft Teams
Microsoft Teams
Microsoft Teams has communities, events, chats, channels, meetings, storage, tasks, and calendars in one place.