parameters: (self, key)
return_statement: return generation
docstring: Returns the generation/version_id number from the boto key if present.
docstring_summary: Returns the generation/version_id number from the boto key if present.
docstring_tokens: Returns the generation / version_id number from the boto key if present .
function: def _TranslateBotoKeyGeneration(self, key):
      """Returns the generation/version_id number from the boto key if present."""
      generation = None
      if self.provider == 'gs':
        if getattr(key, 'generation', None):
          generation = long(key.generation)
      elif self.provider == 's3':
        if getattr(key, 'version_id', None):
          generation = EncodeStringAsLong(key.version_id)
      return generation
function_tokens: def _TranslateBotoKeyGeneration ( self , key ) : generation = None if self . provider == 'gs' : if getattr ( key , 'generation' , None ) : generation = long ( key . generation ) elif self . provider == 's3' : if getattr ( key , 'version_id' , None ) : generation = EncodeStringAsLong ( key . version_id ) return generation