def Args(parser): base.ASYNC_FLAG.AddToParser(parser) common_flags.AddDisplayNameArg(parser) labels_util.AddUpdateLabelsFlags(parser) resource_args.AddApiConfigResourceArg(parser, 'updated', positional=True)
def Args(parser): base.ASYNC_FLAG.AddToParser(parser) common_flags.AddDisplayNameArg(parser) labels_util.AddCreateLabelsFlags(parser) resource_args.AddApiConfigResourceArg(parser, 'created', positional=True) common_flags.AddBackendAuthServiceAccountFlag(parser) group = parser.add_group(mutex=True, required=True, help='Configuration files for the API.') group.add_argument( '--openapi-spec', help= ('The OpenAPI v2 specification containing service ' 'configuration information, and API specification for the gateway' '.')) group.add_argument( '--grpc-files', type=arg_parsers.ArgList(), metavar='FILE', help= ('Files describing the GRPC service. Google Service Configuration ' 'files in JSON or YAML formats as well as Proto ' 'descriptors should be listed.'))
def Args(parser): """Args is called by calliope to gather arguments for this command. Args: parser: An argparse parser that you can use to add arguments that go on the command line after this command. Positional arguments are allowed. """ base.ASYNC_FLAG.AddToParser(parser) resource_args.AddApiConfigResourceArg(parser, 'deleted', positional=True)
def Args(parser): parser.add_argument('--view', default='BASIC', choices=['BASIC', 'FULL'], help="""\ The API Configuration view to return. If \ 'FULL' is specified, the base64 encoded API Configuration's source file \ conent will be included in the response. """) resource_args.AddApiConfigResourceArg(parser, 'created', positional=True)
def _RegisterParserArgs(parser, track): """Register parser args common to all tracks. Args: parser: The parser being configured track: The command track """ base.ASYNC_FLAG.AddToParser(parser) common_flags.AddDisplayNameArg(parser) labels_util.AddCreateLabelsFlags(parser) resource_args.AddApiConfigResourceArg(parser, 'created', positional=True) common_flags.AddBackendAuthServiceAccountFlag(parser) group = parser.add_group(mutex=True, required=True, help='Configuration files for the API.') group.add_argument( '--openapi-spec', type=arg_parsers.ArgList(), metavar='FILE', help=( 'The OpenAPI v2 specifications containing service ' 'configuration information, and API specification for the gateway' '.')) # When we add gRPC support back to beta, we can remove this and combine the # track-specific commands. if track == 'alpha': group.add_argument( '--grpc-files', type=arg_parsers.ArgList(), metavar='FILE', help= ('Files describing the GRPC service. Google Service Configuration ' 'files in JSON or YAML formats as well as Proto ' 'descriptors should be listed.'))
def Args(parser): resource_args.AddApiConfigResourceArg(parser, 'created', positional=True)