示例#1
0
    def Args(parser):
        """Register flags for this command."""
        flags.AddMaxInstancesFlag(parser)
        flags.AddFunctionResourceArg(parser, 'to deploy')
        # Add args for function properties
        flags.AddFunctionMemoryFlag(parser)
        flags.AddFunctionTimeoutFlag(parser)
        flags.AddFunctionRetryFlag(parser)
        args_labels_util.AddUpdateLabelsFlags(
            parser,
            extra_update_message=labels_util.
            NO_LABELS_STARTING_WITH_DEPLOY_MESSAGE,
            extra_remove_message=labels_util.
            NO_LABELS_STARTING_WITH_DEPLOY_MESSAGE)

        flags.AddServiceAccountFlag(parser)

        # Add args for specifying the function source code
        flags.AddSourceFlag(parser)
        flags.AddStageBucketFlag(parser)
        flags.AddEntryPointFlag(parser)

        # Add args for specifying the function trigger
        flags.AddTriggerFlagGroup(parser)

        flags.AddRuntimeFlag(parser)

        # Add args for specifying environment variables
        env_vars_util.AddUpdateEnvVarsFlags(parser)

        # Add args for specifying ignore files to upload source
        flags.AddIgnoreFileFlag(parser)

        flags.AddVPCConnectorMutexGroup(parser)
示例#2
0
 def Args(parser):
     """Register flags for this command."""
     Deploy.Args(parser)
     flags.AddVPCConnectorMutexGroup(parser)
     flags.AddEgressSettingsFlag(parser)
     flags.AddIngressSettingsFlag(parser)
     flags.AddAllowUnauthenticatedFlag(parser)
示例#3
0
 def Args(parser):
     """Register flags for this command."""
     Deploy.Args(parser)
     flags.AddMaxInstancesFlag(parser)
     flags.AddVPCConnectorMutexGroup(parser)
     flags.AddAllowUnauthenticatedFlag(parser)