MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / cmd_create_instance

Method cmd_create_instance

web/pgacloud/providers/google.py:213–222  ·  view source on GitHub ↗

Create an Google instance

(self, args)

Source from the content-addressed store, hash-verified

211 ##########################################################################
212
213 def cmd_create_instance(self, args):
214 """ Create an Google instance"""
215 instance_data = self._create_google_postgresql_instance(args)
216 data = {'instance': {
217 'Hostname': instance_data['ipAddresses'][0]['ipAddress'],
218 'Port': 5432,
219 'Database': 'postgres',
220 'Username': 'postgres',
221 }}
222 output(data)
223
224
225def load():

Callers

nothing calls this directly

Calls 2

outputFunction · 0.90

Tested by

no test coverage detected