def Args(parser): """Register flags for this command.""" parser.add_argument( 'BUCKET_ID', help='ID of the bucket to undelete.') util.AddBucketLocationArg( parser, True, 'Location of the bucket.') util.AddParentArgs(parser, 'Undelete a bucket')
def Args(parser): """Register flags for this command.""" parser.add_argument( 'BUCKET_ID', help='ID of the bucket to delete.') util.AddBucketLocationArg( parser, True, 'Location of the bucket.') util.AddParentArgs(parser, 'Delete a bucket') parser.display_info.AddCacheUpdater(None)
def Args(parser): """Register flags for this command.""" parser.add_argument('BUCKET_ID', help='The id of the bucket to update.') parser.add_argument('--retention-days', type=int, help='A new retention period for the bucket.') parser.add_argument('--description', help='A new description for the bucket.') util.AddBucketLocationArg(parser, True, 'Location of the bucket.')
def Args(parser): """Register flags for this command.""" parser.add_argument('VIEW_ID', help='Id of the view to describe.') util.AddParentArgs(parser, 'Describe a view') util.AddBucketLocationArg(parser, True, 'Location of the bucket.') parser.add_argument( '--bucket', required=True, type=arg_parsers.RegexpValidator(r'.+', 'must be non-empty'), help='ID of bucket')
def Args(parser): """Register flags for this command.""" util.AddNonProjectArgs(parser, 'List buckets') util.AddBucketLocationArg( parser, False, 'Location from which to list buckets. By default, buckets in all ' 'locations will be listed') parser.display_info.AddFormat( 'table(name, display_name, retentionDays, locked, create_time,' 'update_time, description)') parser.display_info.AddCacheUpdater(None)
def Args(parser): """Register flags for this command.""" util.AddParentArgs(parser, 'List buckets') util.AddBucketLocationArg( parser, False, 'Location from which to list buckets. By default, buckets in all ' 'locations will be listed') parser.display_info.AddFormat( 'table(name.segment(-3):label=LOCATION, ' 'name.segment(-1):label=BUCKET_ID, retentionDays, lifecycle_state, ' 'locked, create_time, update_time)') parser.display_info.AddCacheUpdater(None)
def Args(parser): """Register flags for this command.""" parser.add_argument('BUCKET_ID', help='The id of the bucket to update.') parser.add_argument('--retention-period', type=arg_parsers.Duration(), help='A new retention period for the bucket.') parser.add_argument('--display-name', help='A new display name for the bucket.') parser.add_argument('--description', help='A new description for the bucket.') util.AddBucketLocationArg(parser, True, 'Location of the bucket.')
def Args(parser): """Register flags for this command.""" parser.add_argument('VIEW_ID', help='ID of the view to create.') parser.add_argument('--description', help='A textual description for the view.') parser.add_argument('--log-filter', help='A filter for the view.') util.AddParentArgs(parser, 'Create view') util.AddBucketLocationArg( parser, True, 'Location of the bucket that will hold the view.') parser.add_argument('--bucket', required=True, type=arg_parsers.RegexpValidator( r'.+', 'must be non-empty'), help='ID of the bucket that will hold the view')
def Args(parser): """Register flags for this command.""" util.AddParentArgs(parser, 'List views') util.AddBucketLocationArg(parser, True, 'Location of the specified bucket') parser.add_argument('--bucket', required=True, type=arg_parsers.RegexpValidator( r'.+', 'must be non-empty'), help='ID of bucket') parser.display_info.AddFormat( 'table(name.segment(-1):label=VIEW_ID, filter, create_time, ' 'update_time)')
def Args(parser): """Register flags for this command.""" parser.add_argument('VIEW_ID', help='Id of the view to update.') parser.add_argument('--description', help='New description for the view.') parser.add_argument('--filter', help='New filter for the view.') util.AddParentArgs(parser, 'Update view') util.AddBucketLocationArg( parser, True, 'Location of the bucket that contains the view.') parser.add_argument('--bucket', required=True, type=arg_parsers.RegexpValidator( r'.+', 'must be non-empty'), help='ID of the bucket that holds the view')
def Args(parser): """Register flags for this command.""" parser.add_argument('BUCKET_ID', help='ID of the bucket to create.') parser.add_argument('--description', help='A textual description for the bucket.') parser.add_argument( '--retention-days', type=int, help='The period logs will be retained, after which logs will ' 'automatically be deleted. The default is 30 days.') util.AddBucketLocationArg( parser, True, 'Location in which to create the bucket. Once the bucket is created, ' 'the location cannot be changed.')
def Args(parser): """Register flags for this command.""" parser.add_argument( 'BUCKET_ID', help='The id of the bucket to update.') parser.add_argument( '--retention-days', type=int, help='A new retention period for the bucket.') parser.add_argument( '--description', help='A new description for the bucket.') util.AddBucketLocationArg(parser, True, 'Location of the bucket.') parser.add_argument( '--locked', action='store_true', help=('Lock the bucket and prevent it from being modified or deleted ' '(unless it is empty).'))
def Args(parser): """Register flags for this command.""" parser.add_argument('BUCKET_ID', help='ID of the bucket to create.') parser.add_argument('--description', help='A textual description for the bucket.') parser.add_argument( '--retention-days', type=int, help='The period logs will be retained, after which logs will ' 'automatically be deleted. The default is 30 days.') parser.add_argument( '--enable-analytics', type=bool, default=False, help='Whether to opt the bucket into advanced log analytics. This ' 'field may only be set at bucket creation and cannot be changed later.' ) util.AddBucketLocationArg( parser, True, 'Location in which to create the bucket. Once the bucket is created, ' 'the location cannot be changed.')
def Args(parser): """Register flags for this command.""" parser.add_argument('BUCKET_ID', help='ID of the bucket to create.') parser.add_argument('--description', help='A textual description for the bucket.') parser.add_argument( '--restricted-fields', help='Comma-separated list of field paths that require permission ' 'checks in this bucket. The following fields and their children are ' 'eligible: textPayload, jsonPayload, protoPayload, httpRequest, labels,' ' sourceLocation.', type=arg_parsers.ArgList(), metavar='RESTRICTED_FIELD', ) parser.add_argument( '--retention-days', type=int, help='The period logs will be retained, after which logs will ' 'automatically be deleted. The default is 30 days.') util.AddBucketLocationArg( parser, True, 'Location in which to create the bucket. Once the bucket is created, ' 'the location cannot be changed.')
def Args(parser): """Register flags for this command.""" parser.add_argument('BUCKET_ID', help='The id of the bucket to describe.') util.AddParentArgs(parser, 'Describe a bucket') util.AddBucketLocationArg(parser, True, 'Location of the bucket.')