def Args(parser): channel_arg = resource_args.CreateNotificationChannelResourceArg( 'channel', 'to update') resource_args.AddResourceArgs(parser, [channel_arg]) flags.AddMessageFlags(parser, 'channel-content') flags.AddFieldsFlagsWithMutuallyExclusiveSettings( parser, fields_help='The list of fields to update. Must specify ' '`--channel-content` or `--channel-content-from-file` ' 'if using this flag.', add_settings_func=flags.AddNotificationChannelSettingFlags, update=True)
def Args(parser): resources = [ resource_args.CreateAlertPolicyResourceArg('to be updated.')] resource_args.AddResourceArgs(parser, resources) flags.AddMessageFlags(parser, 'policy') flags.AddFieldsFlagsWithMutuallyExclusiveSettings( parser, fields_help=('The list of fields to update. Must specify `--policy` or ' '`--policy-from-file` if using this flag.'), add_settings_func=flags.AddPolicySettingsFlags, fields_choices=['disabled', 'notificationChannels'], update=True)