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)
Ejemplo n.º 2
0
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)
Ejemplo n.º 3
0
def main(argv):
    init_log()
    appcommands.AddCmd('server',
                       ControllerServerApp,
                       help_full='Runs controller server.')
    appcommands.AddCmd('client',
                       ControllerClientApp,
                       help_full='Runs controller client.')
Ejemplo n.º 4
0
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')
Ejemplo n.º 7
0
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')
Ejemplo n.º 8
0
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)
Ejemplo n.º 9
0
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)
Ejemplo n.º 10
0
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)
Ejemplo n.º 11
0
def AddCommands():
    appcommands.AddCmd('addimage', AddImage)
    appcommands.AddCmd('getimage', GetImage)
    appcommands.AddCmd('deleteimage', DeleteImage)
    appcommands.AddCmd('listimages', ListImages)
    appcommands.AddCmd('deprecateimage', Deprecate)
Ejemplo n.º 12
0
def add_commands():
    appcommands.AddCmd('getqueue', GetTaskQueueCommand)
Ejemplo n.º 13
0
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')
Ejemplo n.º 14
0
def AddCommands():
  appcommands.AddCmd('moveinstances', InstanceMigratorAdapter)
Ejemplo n.º 15
0
def AddCommands():
    appcommands.AddCmd('addroute', AddRoute)
    appcommands.AddCmd('getroute', GetRoute)
    appcommands.AddCmd('deleteroute', DeleteRoute)
    appcommands.AddCmd('listroutes', ListRoutes)
Ejemplo n.º 16
0
def AddCommands():
    appcommands.AddCmd('addsnapshot', AddSnapshot)
    appcommands.AddCmd('getsnapshot', GetSnapshot)
    appcommands.AddCmd('deletesnapshot', DeleteSnapshot)
    appcommands.AddCmd('listsnapshots', ListSnapshots)
Ejemplo n.º 17
0
def AddCommands():
    appcommands.AddCmd('getzone', GetZone)
    appcommands.AddCmd('listzones', ListZones)
Ejemplo n.º 18
0
def main(argv):
    appcommands.AddCmd('note_equivalence', NoteEquivalenceCmd)
Ejemplo n.º 19
0
def main(unused_argv):
  appcommands.AddCmd('hello', HelloWorld, help_full='Runs hello world')
Ejemplo n.º 20
0
def AddCommands():
    appcommands.AddCmd('getproject', GetProject)
    appcommands.AddCmd('setcommoninstancemetadata', SetCommonInstanceMetadata)
Ejemplo n.º 21
0
def AddCommands():
    appcommands.AddCmd('getkernel', GetKernel)
    appcommands.AddCmd('listkernels', ListKernels)
Ejemplo n.º 22
0
def AddCommands():
    appcommands.AddCmd('addfirewall', AddFirewall)
    appcommands.AddCmd('getfirewall', GetFirewall)
    appcommands.AddCmd('deletefirewall', DeleteFirewall)
    appcommands.AddCmd('listfirewalls', ListFirewalls)
Ejemplo n.º 23
0
def AddCommands():
  appcommands.AddCmd('addnetwork', AddNetwork)
  appcommands.AddCmd('getnetwork', GetNetwork)
  appcommands.AddCmd('deletenetwork', DeleteNetwork)
  appcommands.AddCmd('listnetworks', ListNetworks)
Ejemplo n.º 24
0
def AddCommands():
    appcommands.AddCmd('getoperation', GetOperation)
    appcommands.AddCmd('deleteoperation', DeleteOperation)
    appcommands.AddCmd('listoperations', ListOperations)
Ejemplo n.º 25
0
def AddCommands():
  appcommands.AddCmd('getproject', GetProject)
  appcommands.AddCmd('setcommoninstancemetadata', SetCommonInstanceMetadata)
  appcommands.AddCmd('setusagebucket', SetUsageExportBucket)
  appcommands.AddCmd('clearusagebucket', ClearUsageExportBucket)
Ejemplo n.º 26
0
def main(_):
    appcommands.AddCmd('client', GenerateClient)
    appcommands.AddCmd('proto', GenerateProto)
Ejemplo n.º 27
0
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')
Ejemplo n.º 28
0
def AddCommands():
  appcommands.AddCmd('moveinstances', MoveInstances)
  appcommands.AddCmd('resumemove', ResumeMove)
def AddCommands():
  appcommands.AddCmd('getmachinetype', GetMachineType)
  appcommands.AddCmd('listmachinetypes', ListMachineTypes)
Ejemplo n.º 30
0
def AddCommands():
    appcommands.AddCmd('adddisk', AddDisk)
    appcommands.AddCmd('getdisk', GetDisk)
    appcommands.AddCmd('deletedisk', DeleteDisk)
    appcommands.AddCmd('listdisks', ListDisks)