def Args(parser): """Register flags for this command.""" 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)
def Args(parser, track=base.ReleaseTrack.BETA): """Registers flags for this command.""" flags.AddFunctionResourceArg(parser, 'to get IAM policy for') flags.AddIAMPolicyFileArg(parser) # Add additional flags for GCFv2 flags.AddGen2Flag(parser, track)
def Args(parser, track=base.ReleaseTrack.BETA): """Registers flags for this command.""" flags.AddFunctionResourceArg(parser, 'to execute') flags.AddGen2Flag(parser, track) # Add additional flags for GCFv2 data_flag_group = parser.add_mutually_exclusive_group() flags.AddDataFlag(data_flag_group) flags.AddCloudEventsFlag(data_flag_group, track)
def Args(parser, track=base.ReleaseTrack.GA): """Registers flags for this command. Args: parser: The argparse parser. track: base.ReleaseTrack, calliope release track. """ flags.AddFunctionResourceArg(parser, 'to add IAM policy binding for') iam_util.AddArgsForAddIamPolicyBinding(parser)
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)
def Args(parser): """Register flags for this command.""" flags.AddFunctionResourceArg(parser, 'to add IAM policy binding for') iam_util.AddArgsForAddIamPolicyBinding(parser)
def Args(parser): """Register flags for this command.""" flags.AddFunctionResourceArg(parser, 'to get IAM policy for') flags.AddIAMPolicyFileArg(parser)
def Args(parser): """Register flags for this command.""" flags.AddFunctionResourceArg(parser, 'to describe')
def _CommonArgs(parser, track): """Registers flags for this command.""" del track flags.AddFunctionResourceArg(parser, 'to add the invoker binding to') iam_util.AddMemberFlag(parser, 'to add to the IAM policy', False)
def Args(parser): """Register flags for this command.""" flags.AddFunctionResourceArg(parser, 'to delete') parser.display_info.AddCacheUpdater(None)
def Args(parser): """Register flags for this command.""" flags.AddFunctionResourceArg(parser, 'to execute') parser.add_argument( '--data', help='JSON string with data that will be passed to the function.')
def Args(parser): """Registers flags for this command.""" flags.AddFunctionResourceArg(parser, 'to execute') flags.AddDataFlag(parser)
def Args(parser, track=base.ReleaseTrack.GA): """Registers flags for this command.""" flags.AddFunctionResourceArg(parser, 'to remove IAM policy binding from') iam_util.AddArgsForRemoveIamPolicyBinding(parser)