Beispiel #1
0
 def Args(parser):
     resource_args.AddEndpointResourceArg(
         parser,
         """to create. The endpoint id must be 1-63 characters long and match
     the regular expression `[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?` which means
     the first character must be a lowercase letter, and all following
     characters must be a dash, lowercase letter, or digit, except the last
     character, which cannot be a dash.""")
     flags.AddAddressFlag(parser)
     flags.AddPortFlag(parser)
     flags.AddMetadataFlag(parser, _RESOURCE_TYPE)
Beispiel #2
0
 def Args(parser):
   resource_args.AddEndpointResourceArg(parser, 'to update.')
   flags.AddAddressFlag(parser)
   flags.AddPortFlag(parser)
   flags.AddMetadataFlag(parser, _RESOURCE_TYPE, _ENDPOINT_LIMIT)