ó ōBQc@s0ddlmZddlmZddlmZddlmZddlmZddlmZddlmZddlmZdd lm Z dd lm Z dd l m Z dd l mZdd l mZddl mZddl mZddl mZddl mZdZdefd„ƒYZdS(i’’’’(tCommand(t COMMAND_NAME(tCOMMAND_NAME_ALIASES(tCONFIG_REQUIRED(t FILE_URIS_OK(tMAX_ARGS(tMIN_ARGS(tPROVIDER_URIS_OK(tSUPPORTED_SUB_ARGS(tURIS_START_ARG(tCommandException(t HELP_NAME(tHELP_NAME_ALIASES(tHELP_ONE_LINE_SUMMARY(t HELP_TEXT(tHelpType(t HELP_TYPEs SYNOPSIS gsutil getversioning bucket_uri DESCRIPTION The Versioning Configuration feature enables you to configure a Google Cloud Storage bucket to keep old versions of objects. The gsutil getversioning command gets the versioning configuration for a bucket, and displays an XML representation of the configuration. In Google Cloud Storage, this would look like: Enabled tGetVersioningCommandcBsˆeZdZi de6ge6de6de6de6ee 6ee 6de 6e e 6Zide6ge6eje6de6ee6Zd„ZRS(s/Implementation of gsutil getversioning command.t getversioningits8Get the versioning configuration for one or more bucketscCsŹ|j}t}xŸ|D]—}xŽ|j|ƒD]}}|jƒ}|jƒsltdt|ƒ|jfƒ‚nt}d|j |j f}|j ƒr d|GHq,d|GHq,WqW|sĘtdƒ‚ndS(Ns,URI %s must name a bucket for the %s commands%s://%ss %s: Enableds %s: SuspendedsNo URIs matchedi( targstFalsetWildcardIteratortGetUrit names_bucketR tstrt command_nametTruetschemet bucket_nametget_versioning_config(tselfturi_argst some_matchedturi_strtblrturi((s:/tmp/tmp.yUYbTOKr8o/gsutil/gslib/commands/getversioning.pyt RunCommand_s       (t__name__t __module__t__doc__RRRRRRRRR RRt command_specR R Rt COMMAND_HELPRR t_detailed_help_textRt help_specR%(((s:/tmp/tmp.yUYbTOKr8o/gsutil/gslib/commands/getversioning.pyR8s$   N(t gslib.commandRRRRRRRRRR tgslib.exceptionR tgslib.help_providerR R R RRRR+R(((s:/tmp/tmp.yUYbTOKr8o/gsutil/gslib/commands/getversioning.pyts$