original_docstring: 
      Update an existing keypair resource policy.
  
      NAME: NAME of a keypair resource policy to update.
      
docstring: Update an existing keypair resource policy.
  NAME: NAME of a keypair resource policy to update.
docstring_tokens: Update an existing keypair resource policy . NAME : NAME of a keypair resource policy to update .
code: def update(name, default_for_unspecified, total_resource_slots,
             max_concurrent_sessions, max_containers_per_session, max_vfolder_count,
             max_vfolder_size, idle_timeout, allowed_vfolder_hosts):
      """
      Update an existing keypair resource policy.
  
      NAME: NAME of a keypair resource policy to update.
      """
      with Session() as session:
          try:
              data = session.KeypairResourcePolicy.update(
                  name,
                  default_for_unspecified=default_for_unspecified,
                  total_resource_slots=total_resource_slots,
                  max_concurrent_sessions=max_concurrent_sessions,
                  max_containers_per_session=max_containers_per_session,
                  max_vfolder_count=max_vfolder_count,
                  max_vfolder_size=max_vfolder_size,
                  idle_timeout=idle_timeout,
                  allowed_vfolder_hosts=allowed_vfolder_hosts,
              )
          except Exception as e:
              print_error(e)
              sys.exit(1)
          if not data['ok']:
              print_fail('KeyPair Resource Policy creation has failed: {0}'
                         .format(data['msg']))
              sys.exit(1)
          print_done('Update succeeded.')
code_tokens: def update ( name , default_for_unspecified , total_resource_slots , max_concurrent_sessions , max_containers_per_session , max_vfolder_count , max_vfolder_size , idle_timeout , allowed_vfolder_hosts ) : with Session ( ) as session : try : data = session . KeypairResourcePolicy . update ( name , default_for_unspecified = default_for_unspecified , total_resource_slots = total_resource_slots , max_concurrent_sessions = max_concurrent_sessions , max_containers_per_session = max_containers_per_session , max_vfolder_count = max_vfolder_count , max_vfolder_size = max_vfolder_size , idle_timeout = idle_timeout , allowed_vfolder_hosts = allowed_vfolder_hosts , ) except Exception as e : print_error ( e ) sys . exit ( 1 ) if not data [ 'ok' ] : print_fail ( 'KeyPair Resource Policy creation has failed: {0}' . format ( data [ 'msg' ] ) ) sys . exit ( 1 ) print_done ( 'Update succeeded.' )
short_docstring: Update an existing keypair resource policy.
short_docstring_tokens: Update an existing keypair resource policy .
comment: """
      Update an existing keypair resource policy.
  
      NAME: NAME of a keypair resource policy to update.
      """