예제 #1
0
 def Args(parser):
     """Register flags for this command."""
     Deploy.Args(parser)
     env_vars_util.AddUpdateEnvVarsFlags(parser)
     flags.AddMaxInstancesFlag(parser)
     flags.AddConnectedVPCMutexGroup(parser)
     flags.AddServiceAccountFlag(parser)
예제 #2
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)
예제 #3
0
 def Args(parser):
     """Register flags for this command."""
     Deploy.Args(parser)
     flags.AddRuntimeFlag(parser)
     env_vars_util.AddUpdateEnvVarsFlags(parser)
     flags.AddMaxInstancesFlag(parser)
     flags.AddConnectedVPCFlag(parser)
예제 #4
0
 def Args(parser):
     """Register flags for this command."""
     Deploy.Args(parser)
     flags.AddMaxInstancesFlag(parser)
     flags.AddVPCConnectorFlag(parser)
     flags.AddEgressSettingsFlag(parser)
     flags.AddIngressSettingsFlag(parser)
     flags.AddAllowUnauthenticatedFlag(parser)
예제 #5
0
    def Args(parser):
        """Register flags for this command."""
        # Add a positional "resource argument" for the name of the function
        flags.AddFunctionResourceArg(parser, 'to deploy')

        # Add args for function properties
        flags.AddAllowUnauthenticatedFlag(parser)
        flags.AddFunctionMemoryFlag(parser)
        flags.AddFunctionRetryFlag(parser)
        flags.AddFunctionTimeoutFlag(parser)
        flags.AddMaxInstancesFlag(parser)
        flags.AddRuntimeFlag(parser)
        flags.AddServiceAccountFlag(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)

        # 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)

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

        # Add flags for specifying build environment variables
        env_vars_util.AddBuildEnvVarsFlags(parser)

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

        # Add flags for network settings
        flags.AddVPCConnectorMutexGroup(parser)
        flags.AddEgressSettingsFlag(parser)
        flags.AddIngressSettingsFlag(parser)
예제 #6
0
 def Args(parser):
     """Register flags for this command."""
     Deploy.Args(parser)
     flags.AddMaxInstancesFlag(parser)
     flags.AddConnectedVPCMutexGroup(parser)
예제 #7
0
 def Args(parser):
     """Register flags for this command."""
     Deploy.Args(parser)
     flags.AddMaxInstancesFlag(parser)
예제 #8
0
 def Args(parser):
     """Register flags for this command."""
     Deploy.Args(parser)
     flags.AddMaxInstancesFlag(parser)
     flags.AddVPCMutexGroup(parser, enable_connected_vpc=True)
예제 #9
0
 def Args(parser):
     """Register flags for this command."""
     Deploy.Args(parser)
     flags.AddMaxInstancesFlag(parser)
     flags.AddVPCConnectorMutexGroup(parser)
     flags.AddAllowUnauthenticatedFlag(parser)