def AddCommands(): """Add all of the target instance related commands.""" appcommands.AddCmd('addtargetinstance', AddTargetInstance) appcommands.AddCmd('gettargetinstance', GetTargetInstance) appcommands.AddCmd('deletetargetinstance', DeleteTargetInstance) appcommands.AddCmd('listtargetinstances', ListTargetInstances)
def main(_): """Register the commands.""" appcommands.AddCmd('interactive', Interactive, command_aliases=['shell', 'sh']) appcommands.AddCmd('batch', Batch) appcommands.AddCmd('reset_database', ResetDatabase) appcommands.AddCmd('dump_raw_protobuf', DumpRawProtobuf)
def main(argv): init_log() appcommands.AddCmd('server', ControllerServerApp, help_full='Runs controller server.') appcommands.AddCmd('client', ControllerClientApp, help_full='Runs controller client.')
def AddCommands(): """Add all of the instance related commands.""" appcommands.AddCmd('addinstance', AddInstance) appcommands.AddCmd('getinstance', GetInstance) appcommands.AddCmd('deleteinstance', DeleteInstance) appcommands.AddCmd('listinstances', ListInstances) appcommands.AddCmd('addaccessconfig', AddAccessConfig) appcommands.AddCmd('deleteaccessconfig', DeleteAccessConfig) appcommands.AddCmd('ssh', SshToInstance) appcommands.AddCmd('push', PushToInstance) appcommands.AddCmd('pull', PullFromInstance) appcommands.AddCmd('getserialportoutput', GetSerialPortOutput)
def AddCommands(): """Add all of the target pool related commands.""" appcommands.AddCmd('addtargetpool', AddTargetPool) appcommands.AddCmd('addtargetpoolhealthcheck', AddTargetPoolHealthCheck) appcommands.AddCmd('addtargetpoolinstance', AddTargetPoolInstance) appcommands.AddCmd('gettargetpool', GetTargetPool) appcommands.AddCmd('gettargetpoolhealth', GetTargetPoolHealth) appcommands.AddCmd('deletetargetpool', DeleteTargetPool) appcommands.AddCmd('removetargetpoolinstance', RemoveTargetPoolInstance) appcommands.AddCmd('removetargetpoolhealthcheck', RemoveTargetPoolHealthCheck) appcommands.AddCmd('listtargetpools', ListTargetPools) appcommands.AddCmd('settargetpoolbackup', SetTargetPoolBackup)
def main(unused_argv): """Register the commands.""" appcommands.AddCmd('test1', Test1, command_aliases=['testalias1', 'testalias2']) appcommands.AddCmd('test1b', Test1, command_aliases=['testalias1b', 'testalias2b'], all_commands_help='test1b short help', help_full="""test1b is my very favorite test because it has verbose help messages""") appcommands.AddCmd('test2', Test2) appcommands.AddCmdFunc('test3', Test3) appcommands.AddCmdFunc('test4', Test4, command_aliases=['testalias3'], all_commands_help='replacetest4help')
def main(_): appcommands.AddCmd('pyshell', PyShell) appcommands.AddCmd('changes_create', ChangesCreate) appcommands.AddCmd('changes_get', ChangesGet) appcommands.AddCmd('changes_list', ChangesList) appcommands.AddCmd('managedZones_create', ManagedZonesCreate) appcommands.AddCmd('managedZones_delete', ManagedZonesDelete) appcommands.AddCmd('managedZones_get', ManagedZonesGet) appcommands.AddCmd('managedZones_list', ManagedZonesList) appcommands.AddCmd('projects_get', ProjectsGet) appcommands.AddCmd('resourceRecordSets_list', ResourceRecordSetsList) apitools_base_cli.SetupLogger() if hasattr(appcommands, 'SetDefaultCommand'): appcommands.SetDefaultCommand('pyshell')
def main(argv): appcommands.AddCmd('auto', manage_codebases.AutoCmd) appcommands.AddCmd('change', push_codebase.ChangeCmd) appcommands.AddCmd('check_config', simple_commands.CheckConfigCmd) appcommands.AddCmd('create_codebase', create_codebase.CreateCodebaseCmd) appcommands.AddCmd('hello', simple_commands.HelloWorldCmd) appcommands.AddCmd('init', init_codebases.InitCmd) appcommands.AddCmd('round_trip', round_trip.RoundTripCmd)
def main(unused_argv): appcommands.AddCmd('email', _Email) appcommands.AddCmd('fetch', _Fetch) appcommands.AddCmd('header', _Header) appcommands.AddCmd('scopes', _Scopes) appcommands.AddCmd('userinfo', _Userinfo) appcommands.AddCmd('validate', _Validate)
def main(unused_argv): bq.Factory.SetBigqueryClientFactory( encrypted_bigquery_client.EncryptedBigqueryClient) ebq_commands = { 'load': _Load, 'mk': _Make, 'query': _Query, 'show': _Show, 'update': _Update, 'version': _Version, } for command, function in ebq_commands.items(): if command not in appcommands.GetCommandList(): appcommands.AddCmd(command, function) # the __main__ module rewrite in run_main() or bq.run_main() etc only # works once and should only be run in the top-most setuptools entry_point # target. bq.main(unused_argv)
def AddCommands(): appcommands.AddCmd('addimage', AddImage) appcommands.AddCmd('getimage', GetImage) appcommands.AddCmd('deleteimage', DeleteImage) appcommands.AddCmd('listimages', ListImages) appcommands.AddCmd('deprecateimage', Deprecate)
def add_commands(): appcommands.AddCmd('getqueue', GetTaskQueueCommand)
def main(_): appcommands.AddCmd('pyshell', PyShell) appcommands.AddCmd('iamPolicies_getPolicyDetails', IamPoliciesGetPolicyDetails) appcommands.AddCmd('projects_serviceAccounts_create', ProjectsServiceAccountsCreate) appcommands.AddCmd('projects_serviceAccounts_delete', ProjectsServiceAccountsDelete) appcommands.AddCmd('projects_serviceAccounts_get', ProjectsServiceAccountsGet) appcommands.AddCmd('projects_serviceAccounts_getIamPolicy', ProjectsServiceAccountsGetIamPolicy) appcommands.AddCmd('projects_serviceAccounts_list', ProjectsServiceAccountsList) appcommands.AddCmd('projects_serviceAccounts_setIamPolicy', ProjectsServiceAccountsSetIamPolicy) appcommands.AddCmd('projects_serviceAccounts_signBlob', ProjectsServiceAccountsSignBlob) appcommands.AddCmd('projects_serviceAccounts_signJwt', ProjectsServiceAccountsSignJwt) appcommands.AddCmd('projects_serviceAccounts_testIamPermissions', ProjectsServiceAccountsTestIamPermissions) appcommands.AddCmd('projects_serviceAccounts_update', ProjectsServiceAccountsUpdate) appcommands.AddCmd('projects_serviceAccounts_keys_create', ProjectsServiceAccountsKeysCreate) appcommands.AddCmd('projects_serviceAccounts_keys_delete', ProjectsServiceAccountsKeysDelete) appcommands.AddCmd('projects_serviceAccounts_keys_get', ProjectsServiceAccountsKeysGet) appcommands.AddCmd('projects_serviceAccounts_keys_list', ProjectsServiceAccountsKeysList) appcommands.AddCmd('roles_queryGrantableRoles', RolesQueryGrantableRoles) apitools_base_cli.SetupLogger() if hasattr(appcommands, 'SetDefaultCommand'): appcommands.SetDefaultCommand('pyshell')
def AddCommands(): appcommands.AddCmd('moveinstances', InstanceMigratorAdapter)
def AddCommands(): appcommands.AddCmd('addroute', AddRoute) appcommands.AddCmd('getroute', GetRoute) appcommands.AddCmd('deleteroute', DeleteRoute) appcommands.AddCmd('listroutes', ListRoutes)
def AddCommands(): appcommands.AddCmd('addsnapshot', AddSnapshot) appcommands.AddCmd('getsnapshot', GetSnapshot) appcommands.AddCmd('deletesnapshot', DeleteSnapshot) appcommands.AddCmd('listsnapshots', ListSnapshots)
def AddCommands(): appcommands.AddCmd('getzone', GetZone) appcommands.AddCmd('listzones', ListZones)
def main(argv): appcommands.AddCmd('note_equivalence', NoteEquivalenceCmd)
def main(unused_argv): appcommands.AddCmd('hello', HelloWorld, help_full='Runs hello world')
def AddCommands(): appcommands.AddCmd('getproject', GetProject) appcommands.AddCmd('setcommoninstancemetadata', SetCommonInstanceMetadata)
def AddCommands(): appcommands.AddCmd('getkernel', GetKernel) appcommands.AddCmd('listkernels', ListKernels)
def AddCommands(): appcommands.AddCmd('addfirewall', AddFirewall) appcommands.AddCmd('getfirewall', GetFirewall) appcommands.AddCmd('deletefirewall', DeleteFirewall) appcommands.AddCmd('listfirewalls', ListFirewalls)
def AddCommands(): appcommands.AddCmd('addnetwork', AddNetwork) appcommands.AddCmd('getnetwork', GetNetwork) appcommands.AddCmd('deletenetwork', DeleteNetwork) appcommands.AddCmd('listnetworks', ListNetworks)
def AddCommands(): appcommands.AddCmd('getoperation', GetOperation) appcommands.AddCmd('deleteoperation', DeleteOperation) appcommands.AddCmd('listoperations', ListOperations)
def AddCommands(): appcommands.AddCmd('getproject', GetProject) appcommands.AddCmd('setcommoninstancemetadata', SetCommonInstanceMetadata) appcommands.AddCmd('setusagebucket', SetUsageExportBucket) appcommands.AddCmd('clearusagebucket', ClearUsageExportBucket)
def main(_): appcommands.AddCmd('client', GenerateClient) appcommands.AddCmd('proto', GenerateProto)
def main(_): appcommands.AddCmd('pyshell', PyShell) appcommands.AddCmd('datasets_delete', DatasetsDelete) appcommands.AddCmd('datasets_get', DatasetsGet) appcommands.AddCmd('datasets_insert', DatasetsInsert) appcommands.AddCmd('datasets_list', DatasetsList) appcommands.AddCmd('datasets_patch', DatasetsPatch) appcommands.AddCmd('datasets_update', DatasetsUpdate) appcommands.AddCmd('jobs_cancel', JobsCancel) appcommands.AddCmd('jobs_get', JobsGet) appcommands.AddCmd('jobs_getQueryResults', JobsGetQueryResults) appcommands.AddCmd('jobs_insert', JobsInsert) appcommands.AddCmd('jobs_list', JobsList) appcommands.AddCmd('jobs_query', JobsQuery) appcommands.AddCmd('projects_list', ProjectsList) appcommands.AddCmd('tabledata_insertAll', TabledataInsertAll) appcommands.AddCmd('tabledata_list', TabledataList) appcommands.AddCmd('tables_delete', TablesDelete) appcommands.AddCmd('tables_get', TablesGet) appcommands.AddCmd('tables_insert', TablesInsert) appcommands.AddCmd('tables_list', TablesList) appcommands.AddCmd('tables_patch', TablesPatch) appcommands.AddCmd('tables_update', TablesUpdate) apitools_base_cli.SetupLogger() if hasattr(appcommands, 'SetDefaultCommand'): appcommands.SetDefaultCommand('pyshell')
def AddCommands(): appcommands.AddCmd('moveinstances', MoveInstances) appcommands.AddCmd('resumemove', ResumeMove)
def AddCommands(): appcommands.AddCmd('getmachinetype', GetMachineType) appcommands.AddCmd('listmachinetypes', ListMachineTypes)
def AddCommands(): appcommands.AddCmd('adddisk', AddDisk) appcommands.AddCmd('getdisk', GetDisk) appcommands.AddCmd('deletedisk', DeleteDisk) appcommands.AddCmd('listdisks', ListDisks)